CrossEncoder based on answerdotai/ModernBERT-base
This is a Cross Encoder model finetuned from answerdotai/ModernBERT-base on the cxs-eval-dataset dataset using the sentence-transformers library. It computes scores for pairs of texts, which can be used for text pair classification.
Model Details
Model Description
- Model Type: Cross Encoder
- Base model: answerdotai/ModernBERT-base
- Maximum Sequence Length: 8192 tokens
- Number of Output Labels: 2 labels
- Training Dataset:
Model Sources
- Documentation: Sentence Transformers Documentation
- Documentation: Cross Encoder Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Cross Encoders on Hugging Face
Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import CrossEncoder
# Download from the 🤗 Hub
model = CrossEncoder("dnth/cxs-eval-modernbert-base-classifier")
# Get scores for pairs of texts
pairs = [
["Inflight Quality Assurance Inspector - As an Inflight Quality Assurance Inspector at Santan, you are tasked with ensuring the accuracy and efficiency of meal and product handling for inflight services. Your responsibilities include verifying cart quantities, monitoring picking and staging processes, and maintaining inventory through CMS and WMS systems. You'll oversee packers and warehouse agents, manage stock adjustments and wastage reporting, and ensure compliance with FIFO and quality assurance standards. Key tasks include verifying outbound and inbound cart quantities, ensuring accurate meal picking, confirming seal and flight details in CMS, performing inventory counts, monitoring product packing, and facilitating effective communication between all parties involved. Additionally, you'll manage stock movements, update supervisors on stock issues, and ensure timely mass production by Packers or Warehouse Agents. - Air Transport", 'Manager (Cargo) - The Manager (Cargo) leads the development of operational strategies to improve the effectiveness of air cargo and warehouse operations. He/She is responsible for driving continuous improvement and business development initiatives to optimise processes and meet customer needs. He develops Standard Operating Procedures (SOPs) and systems to mitigate safety and/or security risks and monitors the adherence to safety and/or security standards. He also advises authorities and other teams to manage incidents involving hazardous materials and/or dangerous goods. He develops the teams technical capabilities and maintains positive morale within the teams.\n\nThe Manager (Cargo) has an extensive knowledge of cargo handling procedures, international airfreight regulations and policy requirements. He is also well-versed in organisational safety regulations and practices. He possesses strong interpersonal and stakeholder management skills in order to build and maintain stakeholder relationships. In addition, he is adaptable and manages stressful situations within a tight time frame. He also has strong communication and people management skills with outstanding computer literacy and problem-solving skills.'],
["Manager, Pricing Systems - Manage the systems and tools that power our pricing and revenue management strategies. As Manager of Pricing Systems, you will oversee the implementation, maintenance, and enhancement of our pricing engines and related software. You'll work with IT and commercial teams to ensure system integrity, support new pricing initiatives, and troubleshoot issues. Technical expertise in airline pricing systems is a must. - Air Transport", 'Terminal Manager - The Terminal Manager is responsible for planning the delivery of airport services and implementing projects to improve the airport user experience. He/She collaborates with internal and external stakeholders to develop and establish compliance standards for airport operations. Besides leading research to identify new service offerings for the airport, he also enforces safety and/or security standards for the organisation. He sources for contractors to perform airport operations and establishes key indicators to track their performances. He also develops on-the-job training programmes for the department.\n\nThe Terminal Manager possesses a sound knowledge of airport and airside operations, Standard Operating Procedures (SOPs) and airport security and emergency response plans. He travels across the terminals to review operational processes and resolve incidents at the airport. To ensure operational plans and projects are implemented efficiently and effectively, he displays excellent project management skills with strong communication and stakeholder management skills to interact and engage all customers and stakeholders of the organisation.'],
['Executive, Inflight Operation Team Lead - As an Executive, Inflight Operation Team Lead, you will excel in leading the Hi-Lift Driver team by demonstrating expertise in operational leadership while upholding high standards of safety and quality. You will contribute significantly to departmental and company objectives, ensuring strict adherence to industry regulations and operational procedures. Your role champions driving excellence in operational and engineering tasks, supporting initiatives to boost efficiency, and collaborating with cross-functional teams to achieve organizational goals, all while ensuring compliance with regulatory and organizational standards. - Air Transport', 'Executive (Ramp / Technical Ramp) - The Executive (Ramp/Technical Ramp) performs regular audits to ensure that ramp/technical ramp operations comply with Standard Operating Procedures (SOPs). He/She recommends enhancements to address areas of non-compliance, improves operational efficiencies and develops action plans to prevent safety and/or security issues from recurring. He also develops workplace learning plans and on-the-job training programmes to enhance the capabilities of teams.\n \nThe Executive (Ramp/Technical Ramp) has a sound knowledge of airport operations and ramp/technical ramp procedures. He also has strong analytical abilities to identify root causes of ground handling related delays and their potential implications. He is results-oriented and possesses excellent communication and interpersonal skills. Furthermore, he has strong computer literacy skills and competence in learning orientation to determine learning and developmental needs of his team members.'],
['Executive, Customs & Logistics - As an Executive, Customs & Logistics, you will showcase your expertise as an Inflight Customs Officer by ensuring high safety and quality standards in all assignments. Your role involves contributing to the department and company objectives while adhering to industry regulations and operational procedures. You will champion excellence in operational or engineering tasks, support initiatives that enhance operational efficiency, and collaborate with cross-functional teams to achieve organizational goals, maintaining compliance with all regulatory and organizational standards. - Air Transport', 'Executive (Load Control) - The Executive (Load Control) determines load sheet requirements with airlines and develops manpower plans to support load control operations. He/She performs regular audits to ensure that the calculation of load limits, distribution and flight performance data complies with Standard Operating Procedures (SOPs). He also recommends enhancements to address areas of non-compliance and improves operational efficiencies. He develops SOPs to ensure alignment with safety and regulatory requirements, and is responsible for manpower deployment, developing on-the-job training programmes and workplace learning plans.\n\nBesides holding an Airlines Load and Trim Certification to perform his duties, the Executive (Load Control) also possesses outstanding data management and analytical skills. Moreover, he is comfortable with number crunching and is resilient to unforeseen interruptions and stressful situations. He also has excellent verbal and written communication skills and strong people management skills in order to develop effective training programmes and learning plans for the teams.'],
['Quality Assurance Engineer - As a Quality Assurance Engineer in the aviation sector, you will conduct audits and inspections to ensure adherence to safety standards, review maintenance and operational processes, and assist in quality issue investigations. Your role includes supporting safety management systems, promoting continuous quality improvement, ensuring timely resolution of audit findings, and coordinating with regulatory bodies. You will also maintain up-to-date documentation of all quality assurance activities. - Aerospace', "Technician (Assembly) - The Technician (Assembly) performs assembly tasks for aircraft components in accordance with technical manuals and standard operating procedures (SOPs). He/She operates workshop equipment, tools and machines for the assembly of aircraft components. He also keeps abreast of latest developments of related systems by updating himself through relevant manuals and other publications. He may be authorised by the organisation to perform quality control functions, including inspection of incoming materials and assembled components and parts, and registration of non-conformances. He may also be authorised to perform level 1 non-destructive testing (NDT) functions under supervision, evaluate for acceptance or rejection, and record results as specified in the work instructions. He complies with airworthiness and legislative requirements, and the organisation's safety, health and quality systems. He supports in implementation of continuous improvement initiatives and lean practices. He works in a hangar or workshop and may be required to work in shifts. He should be systematic and detail-oriented, and able to work independently and in a team to accomplish assigned tasks."],
]
scores = model.predict(pairs)
print(scores.shape)
# (5, 2)
Evaluation
Metrics
Cross Encoder Classification
- Dataset:
validation-set
- Evaluated with
CrossEncoderClassificationEvaluator
Metric | Value |
---|---|
f1_macro | 0.7481 |
f1_micro | 0.8156 |
f1_weighted | 0.8193 |
Training Details
Training Dataset
cxs-eval-dataset
- Dataset: cxs-eval-dataset at a3a8a16
- Size: 1,129 training samples
- Columns:
query
,result
, andlabel
- Approximate statistics based on the first 1000 samples:
query result label type string string int details - min: 193 characters
- mean: 661.12 characters
- max: 2255 characters
- min: 556 characters
- mean: 1161.45 characters
- max: 1836 characters
- 0: ~76.70%
- 1: ~23.30%
- Samples:
query result label Executive, Inflight Operation Team Lead - As an Executive, Inflight Operation Team Lead, you will excel in leading the Hi-Lift Driver team by demonstrating expertise in operational leadership while upholding high standards of safety and quality. You will contribute significantly to departmental and company objectives, ensuring strict adherence to industry regulations and operational procedures. Your role champions driving excellence in operational and engineering tasks, supporting initiatives to boost efficiency, and collaborating with cross-functional teams to achieve organizational goals, all while ensuring compliance with regulatory and organizational standards. - Air Transport
Executive (Baggage Services) - The Executive (Baggage Services) is the main point of contact for airline representatives, authorities and other departments to determine baggage handling standards and manpower requirements for baggage handling operations. He/She develops effective plans to mitigate compliance failures. He collates statistics and reports on baggage handling failures and is in charge of implementing new procedures to reduce these occurrences. He enforces a safety and security culture in the workplace and addresses internal or external audit issues. He is responsible for developing on-the-job training programmes and workplace learning plans.
A sound knowledge of airport operations, baggage handling procedures and associated administrative procedures to process requests and documentation is expected of the Executive (Baggage Services). He has good stakeholder management skills to handle internal and external stakeholders effectively. He is adept at customer service to hand...0
VP of Passenger Experience - Customer Experience Strategy Development: Define and implement long-term customer service strategies aligned with brand positioning, regulatory requirements, and evolving passenger expectations.
Leadership and Department Oversight: Lead cross-functional teams across reservations, in-flight services, airport staff, and support centers to ensure unified and consistent service delivery across all locations.
Performance and Quality Management: Monitor customer service KPIs (NPS, CSAT, FCR), oversee service audits, and implement improvements based on passenger feedback and competitive benchmarking. - Air TransportVice President - The Vice President formulates strategies for passenger services operations to ensure performance levels are aligned with evolving customer needs, technological advancements, airline brand identity and business objectives. He/She is responsible for spearheading continuous improvement and business development initiatives to improve the profitability of the business. He leads the development of Standard Operating Procedures (SOPs) and systems to mitigate safety and/or security risks and plays a pivotal role in influencing organisational development by making key decisions on human capital needs.
The Vice President for Passenger Services possesses exceptional leadership and stakeholder management skills to cultivate local and international relationships with senior stakeholders in the industry and further the business objectives of the organisation. Furthermore, he has an in-depth knowledge of the airports organisational structures, ground handling operations and safety a...1
Guest Services Assistant - As a Guest Services Assistant, you will uphold the highest standards of safety, security, and service in our ground operations. Your responsibilities will include verifying documentation through passport checks and ID matches, managing reservations, and issuing boarding passes. You will ensure smooth luggage tagging and inspections, oversee guest boarding and deplaning processes, and provide specialized assistance for guests with special needs, such as wheelchair services. Handling important documents like GD and crew sign-ins, as well as collecting immigration cards, is essential. You must also conduct the mandatory security questionnaire for passengers checking in luggage. Compliance with airline standards, safety protocols, and applicable laws in all operational areas is paramount. - Air Transport
Executive (Ground Services) - The Executive (Ground Services) oversees activities relating to the audit of ground service standards and develops partnerships with a wide range of audiences and stakeholders. He/She reviews service standard agreements and develops action plans to improve service efficiency for the airline. He conducts rate reviews for ground handlers regarding pricing, service quality and scope of work. In addition, he also plans cost estimates for contracts with ground handling organisations. He proposes process changes to improve passenger safety and/or security standards. He contributes to organisational development by developing on-the-job training programmes and workplace learning plans.
With foresight and highly developed analytical capabilities, the Executive (Ground Services) is able to develop action plans and provide recommendations to address any identified service delivery gaps. He develops strong rapport with the stakeholders by recognising their interests ...0
- Loss:
CrossEntropyLoss
Evaluation Dataset
cxs-eval-dataset
- Dataset: cxs-eval-dataset at a3a8a16
- Size: 141 evaluation samples
- Columns:
query
,result
, andlabel
- Approximate statistics based on the first 141 samples:
query result label type string string int details - min: 193 characters
- mean: 655.76 characters
- max: 2255 characters
- min: 556 characters
- mean: 1091.27 characters
- max: 1810 characters
- 0: ~77.30%
- 1: ~22.70%
- Samples:
query result label Inflight Quality Assurance Inspector - As an Inflight Quality Assurance Inspector at Santan, you are tasked with ensuring the accuracy and efficiency of meal and product handling for inflight services. Your responsibilities include verifying cart quantities, monitoring picking and staging processes, and maintaining inventory through CMS and WMS systems. You'll oversee packers and warehouse agents, manage stock adjustments and wastage reporting, and ensure compliance with FIFO and quality assurance standards. Key tasks include verifying outbound and inbound cart quantities, ensuring accurate meal picking, confirming seal and flight details in CMS, performing inventory counts, monitoring product packing, and facilitating effective communication between all parties involved. Additionally, you'll manage stock movements, update supervisors on stock issues, and ensure timely mass production by Packers or Warehouse Agents. - Air Transport
Manager (Cargo) - The Manager (Cargo) leads the development of operational strategies to improve the effectiveness of air cargo and warehouse operations. He/She is responsible for driving continuous improvement and business development initiatives to optimise processes and meet customer needs. He develops Standard Operating Procedures (SOPs) and systems to mitigate safety and/or security risks and monitors the adherence to safety and/or security standards. He also advises authorities and other teams to manage incidents involving hazardous materials and/or dangerous goods. He develops the teams technical capabilities and maintains positive morale within the teams.
The Manager (Cargo) has an extensive knowledge of cargo handling procedures, international airfreight regulations and policy requirements. He is also well-versed in organisational safety regulations and practices. He possesses strong interpersonal and stakeholder management skills in order to build and maintain stakeholder re...0
Manager, Pricing Systems - Manage the systems and tools that power our pricing and revenue management strategies. As Manager of Pricing Systems, you will oversee the implementation, maintenance, and enhancement of our pricing engines and related software. You'll work with IT and commercial teams to ensure system integrity, support new pricing initiatives, and troubleshoot issues. Technical expertise in airline pricing systems is a must. - Air Transport
Terminal Manager - The Terminal Manager is responsible for planning the delivery of airport services and implementing projects to improve the airport user experience. He/She collaborates with internal and external stakeholders to develop and establish compliance standards for airport operations. Besides leading research to identify new service offerings for the airport, he also enforces safety and/or security standards for the organisation. He sources for contractors to perform airport operations and establishes key indicators to track their performances. He also develops on-the-job training programmes for the department.
The Terminal Manager possesses a sound knowledge of airport and airside operations, Standard Operating Procedures (SOPs) and airport security and emergency response plans. He travels across the terminals to review operational processes and resolve incidents at the airport. To ensure operational plans and projects are implemented efficiently and effectively, he displa...0
Executive, Inflight Operation Team Lead - As an Executive, Inflight Operation Team Lead, you will excel in leading the Hi-Lift Driver team by demonstrating expertise in operational leadership while upholding high standards of safety and quality. You will contribute significantly to departmental and company objectives, ensuring strict adherence to industry regulations and operational procedures. Your role champions driving excellence in operational and engineering tasks, supporting initiatives to boost efficiency, and collaborating with cross-functional teams to achieve organizational goals, all while ensuring compliance with regulatory and organizational standards. - Air Transport
Executive (Ramp / Technical Ramp) - The Executive (Ramp/Technical Ramp) performs regular audits to ensure that ramp/technical ramp operations comply with Standard Operating Procedures (SOPs). He/She recommends enhancements to address areas of non-compliance, improves operational efficiencies and develops action plans to prevent safety and/or security issues from recurring. He also develops workplace learning plans and on-the-job training programmes to enhance the capabilities of teams.
The Executive (Ramp/Technical Ramp) has a sound knowledge of airport operations and ramp/technical ramp procedures. He also has strong analytical abilities to identify root causes of ground handling related delays and their potential implications. He is results-oriented and possesses excellent communication and interpersonal skills. Furthermore, he has strong computer literacy skills and competence in learning orientation to determine learning and developmental needs of his team members.0
- Loss:
CrossEntropyLoss
Training Hyperparameters
Non-Default Hyperparameters
eval_strategy
: epochper_device_train_batch_size
: 16per_device_eval_batch_size
: 32learning_rate
: 4e-05weight_decay
: 0.01num_train_epochs
: 10warmup_ratio
: 0.1bf16
: Trueload_best_model_at_end
: True
All Hyperparameters
Click to expand
overwrite_output_dir
: Falsedo_predict
: Falseeval_strategy
: epochprediction_loss_only
: Trueper_device_train_batch_size
: 16per_device_eval_batch_size
: 32per_gpu_train_batch_size
: Noneper_gpu_eval_batch_size
: Nonegradient_accumulation_steps
: 1eval_accumulation_steps
: Nonetorch_empty_cache_steps
: Nonelearning_rate
: 4e-05weight_decay
: 0.01adam_beta1
: 0.9adam_beta2
: 0.999adam_epsilon
: 1e-08max_grad_norm
: 1.0num_train_epochs
: 10max_steps
: -1lr_scheduler_type
: linearlr_scheduler_kwargs
: {}warmup_ratio
: 0.1warmup_steps
: 0log_level
: passivelog_level_replica
: warninglog_on_each_node
: Truelogging_nan_inf_filter
: Truesave_safetensors
: Truesave_on_each_node
: Falsesave_only_model
: Falserestore_callback_states_from_checkpoint
: Falseno_cuda
: Falseuse_cpu
: Falseuse_mps_device
: Falseseed
: 42data_seed
: Nonejit_mode_eval
: Falseuse_ipex
: Falsebf16
: Truefp16
: Falsefp16_opt_level
: O1half_precision_backend
: autobf16_full_eval
: Falsefp16_full_eval
: Falsetf32
: Nonelocal_rank
: 0ddp_backend
: Nonetpu_num_cores
: Nonetpu_metrics_debug
: Falsedebug
: []dataloader_drop_last
: Falsedataloader_num_workers
: 0dataloader_prefetch_factor
: Nonepast_index
: -1disable_tqdm
: Falseremove_unused_columns
: Truelabel_names
: Noneload_best_model_at_end
: Trueignore_data_skip
: Falsefsdp
: []fsdp_min_num_params
: 0fsdp_config
: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap
: Noneaccelerator_config
: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}deepspeed
: Nonelabel_smoothing_factor
: 0.0optim
: adamw_torchoptim_args
: Noneadafactor
: Falsegroup_by_length
: Falselength_column_name
: lengthddp_find_unused_parameters
: Noneddp_bucket_cap_mb
: Noneddp_broadcast_buffers
: Falsedataloader_pin_memory
: Truedataloader_persistent_workers
: Falseskip_memory_metrics
: Trueuse_legacy_prediction_loop
: Falsepush_to_hub
: Falseresume_from_checkpoint
: Nonehub_model_id
: Nonehub_strategy
: every_savehub_private_repo
: Nonehub_always_push
: Falsehub_revision
: Nonegradient_checkpointing
: Falsegradient_checkpointing_kwargs
: Noneinclude_inputs_for_metrics
: Falseinclude_for_metrics
: []eval_do_concat_batches
: Truefp16_backend
: autopush_to_hub_model_id
: Nonepush_to_hub_organization
: Nonemp_parameters
:auto_find_batch_size
: Falsefull_determinism
: Falsetorchdynamo
: Noneray_scope
: lastddp_timeout
: 1800torch_compile
: Falsetorch_compile_backend
: Nonetorch_compile_mode
: Noneinclude_tokens_per_second
: Falseinclude_num_input_tokens_seen
: Falseneftune_noise_alpha
: Noneoptim_target_modules
: Nonebatch_eval_metrics
: Falseeval_on_start
: Falseuse_liger_kernel
: Falseliger_kernel_config
: Noneeval_use_gather_object
: Falseaverage_tokens_across_devices
: Falseprompts
: Nonebatch_sampler
: batch_samplermulti_dataset_batch_sampler
: proportional
Training Logs
Epoch | Step | Training Loss | Validation Loss | validation-set_f1_macro |
---|---|---|---|---|
0.3521 | 25 | 0.5365 | - | - |
0.7042 | 50 | 0.5596 | - | - |
1.0 | 71 | - | 0.5498 | 0.5324 |
1.0563 | 75 | 0.5252 | - | - |
1.4085 | 100 | 0.4624 | - | - |
1.7606 | 125 | 0.4534 | - | - |
2.0 | 142 | - | 0.5547 | 0.4649 |
2.1127 | 150 | 0.4883 | - | - |
2.4648 | 175 | 0.3718 | - | - |
2.8169 | 200 | 0.4136 | - | - |
3.0 | 213 | - | 0.4693 | 0.5576 |
3.1690 | 225 | 0.3431 | - | - |
3.5211 | 250 | 0.2573 | - | - |
3.8732 | 275 | 0.3497 | - | - |
4.0 | 284 | - | 0.3733 | 0.7594 |
4.2254 | 300 | 0.2694 | - | - |
4.5775 | 325 | 0.2604 | - | - |
4.9296 | 350 | 0.1834 | - | - |
5.0 | 355 | - | 0.5547 | 0.7321 |
5.2817 | 375 | 0.1862 | - | - |
5.6338 | 400 | 0.1219 | - | - |
5.9859 | 425 | 0.1605 | - | - |
6.0 | 426 | - | 0.7399 | 0.7177 |
6.3380 | 450 | 0.1093 | - | - |
6.6901 | 475 | 0.1003 | - | - |
7.0 | 497 | - | 1.2497 | 0.7320 |
7.0423 | 500 | 0.0885 | - | - |
7.3944 | 525 | 0.0698 | - | - |
7.7465 | 550 | 0.0627 | - | - |
8.0 | 568 | - | 1.2357 | 0.7749 |
8.0986 | 575 | 0.0088 | - | - |
8.4507 | 600 | 0.0001 | - | - |
8.8028 | 625 | 0.0296 | - | - |
9.0 | 639 | - | 1.6408 | 0.7530 |
9.1549 | 650 | 0.0098 | - | - |
9.5070 | 675 | 0.0124 | - | - |
9.8592 | 700 | 0.0012 | - | - |
10.0 | 710 | - | 1.6398 | 0.7481 |
- The bold row denotes the saved checkpoint.
Framework Versions
- Python: 3.12.11
- Sentence Transformers: 4.1.0
- Transformers: 4.53.0
- PyTorch: 2.7.1+cu126
- Accelerate: 1.8.1
- Datasets: 3.6.0
- Tokenizers: 0.21.2
Citation
BibTeX
Sentence Transformers
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
- Downloads last month
- 6
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
🙋
Ask for provider support
Model tree for dnth/cxs-eval-modernbert-base-classifier
Base model
answerdotai/ModernBERT-baseDataset used to train dnth/cxs-eval-modernbert-base-classifier
Evaluation results
- F1 Macro on validation setself-reported0.748
- F1 Micro on validation setself-reported0.816
- F1 Weighted on validation setself-reported0.819