---
tags:
- sentence-transformers
- cross-encoder
- reranker
- generated_from_trainer
- dataset_size:120000
- loss:BinaryCrossEntropyLoss
base_model: cross-encoder/ms-marco-MiniLM-L6-v2
pipeline_tag: text-ranking
library_name: sentence-transformers
---
# CrossEncoder based on cross-encoder/ms-marco-MiniLM-L6-v2
This is a [Cross Encoder](https://www.sbert.net/docs/cross_encoder/usage/usage.html) model finetuned from [cross-encoder/ms-marco-MiniLM-L6-v2](https://huggingface.co/cross-encoder/ms-marco-MiniLM-L6-v2) using the [sentence-transformers](https://www.SBERT.net) library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
## Model Details
### Model Description
- **Model Type:** Cross Encoder
- **Base model:** [cross-encoder/ms-marco-MiniLM-L6-v2](https://huggingface.co/cross-encoder/ms-marco-MiniLM-L6-v2)
- **Maximum Sequence Length:** 256 tokens
- **Number of Output Labels:** 1 label
- **Supported Modality:** Text
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Documentation:** [Cross Encoder Documentation](https://www.sbert.net/docs/cross_encoder/usage/usage.html)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
- **Hugging Face:** [Cross Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=cross-encoder)
### Full Model Architecture
```
CrossEncoder(
(0): Transformer({'transformer_task': 'sequence-classification', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'logits'}}, 'module_output_name': 'scores', 'architecture': 'BertForSequenceClassification'})
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import CrossEncoder
# Download from the 🤗 Hub
model = CrossEncoder("cross_encoder_model_id")
# Get scores for pairs of inputs
pairs = [
['Job Title: Customer Support Specialist. Required Seniority: Junior. Industry: FinTech. Must-Have Skills: Ticketing, Documentation, Root Cause Analysis, Communication. Nice-to-Have Skills: Troubleshooting. Job Description: We are hiring a Customer Support Specialist to support teams in FinTech.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams.', 'Candidate Role: Customer Support Specialist. Seniority Level: Senior. Years of Experience: 9. Industry Experience: Retail. Education: High School. Skills: Ticketing, Documentation, Communication, Root Cause Analysis, SLA, Escalations, Troubleshooting, Intercom. Professional Summary: Customer Support Specialist with 9 years of experience in Retail.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.'],
['Job Title: Junior Accountant. Required Seniority: Senior. Industry: Travel. Must-Have Skills: Valuation, Forecasting, Variance Analysis, KPIs. Nice-to-Have Skills: Budgeting. Job Description: We are hiring a Junior Accountant to support teams in Travel.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams.', 'Candidate Role: Financial Analyst. Seniority Level: Junior. Years of Experience: 2. Industry Experience: E-commerce. Education: MBA. Skills: Variance Analysis, KPIs, Reporting, Budgeting, Accounting, Valuation. Professional Summary: Financial Analyst with 2 years of experience in E-commerce.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.'],
['Job Title: Sales Representative. Required Seniority: Senior. Industry: Cybersecurity. Must-Have Skills: Prospecting, Account Management, Pipeline Management, Closing. Nice-to-Have Skills: Negotiation. Job Description: We are hiring a Sales Representative to support teams in Cybersecurity.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams.', 'Candidate Role: Sales Representative. Seniority Level: Mid. Years of Experience: 6. Industry Experience: SaaS. Education: High School. Skills: CRM, Negotiation, Prospecting, Pipeline Management, Discovery Calls, Closing, Account Management, Lead Generation. Professional Summary: Sales Representative with 6 years of experience in SaaS.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.'],
['Job Title: Sales Representative. Required Seniority: Mid. Industry: E-commerce. Must-Have Skills: Prospecting, Negotiation, Outbound Outreach. Nice-to-Have Skills: CRM. Job Description: We are hiring a Sales Representative to support teams in E-commerce.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams.', 'Candidate Role: Sales Representative. Seniority Level: Mid. Years of Experience: 5. Industry Experience: E-commerce. Education: High School. Skills: Outbound Outreach, Closing, Forecasting, Negotiation, Pipeline Management, Prospecting, Lead Generation. Professional Summary: Sales Representative with 5 years of experience in E-commerce.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.'],
['Job Title: Program Coordinator. Required Seniority: Senior. Industry: Retail. Must-Have Skills: Reporting, Risk Management, Process Improvement, Timeline Management, KPIs. Nice-to-Have Skills: Stakeholder Communication. Job Description: We are hiring a Program Coordinator to support teams in Retail.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams.', 'Candidate Role: Program Coordinator. Seniority Level: Senior. Years of Experience: 11. Industry Experience: FinTech. Education: BA. Skills: Risk Management, Project Planning, KPIs, Jira, Reporting, Timeline Management, Asana, Process Improvement. Professional Summary: Program Coordinator with 11 years of experience in FinTech.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.'],
]
scores = model.predict(pairs)
print(scores)
# [-0.3621 4.0586 -0.2727 -0.2522 -0.4119]
# Or rank different texts based on similarity to a single text
ranks = model.rank(
'Job Title: Customer Support Specialist. Required Seniority: Junior. Industry: FinTech. Must-Have Skills: Ticketing, Documentation, Root Cause Analysis, Communication. Nice-to-Have Skills: Troubleshooting. Job Description: We are hiring a Customer Support Specialist to support teams in FinTech.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams.',
[
'Candidate Role: Customer Support Specialist. Seniority Level: Senior. Years of Experience: 9. Industry Experience: Retail. Education: High School. Skills: Ticketing, Documentation, Communication, Root Cause Analysis, SLA, Escalations, Troubleshooting, Intercom. Professional Summary: Customer Support Specialist with 9 years of experience in Retail.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.',
'Candidate Role: Financial Analyst. Seniority Level: Junior. Years of Experience: 2. Industry Experience: E-commerce. Education: MBA. Skills: Variance Analysis, KPIs, Reporting, Budgeting, Accounting, Valuation. Professional Summary: Financial Analyst with 2 years of experience in E-commerce.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.',
'Candidate Role: Sales Representative. Seniority Level: Mid. Years of Experience: 6. Industry Experience: SaaS. Education: High School. Skills: CRM, Negotiation, Prospecting, Pipeline Management, Discovery Calls, Closing, Account Management, Lead Generation. Professional Summary: Sales Representative with 6 years of experience in SaaS.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.',
'Candidate Role: Sales Representative. Seniority Level: Mid. Years of Experience: 5. Industry Experience: E-commerce. Education: High School. Skills: Outbound Outreach, Closing, Forecasting, Negotiation, Pipeline Management, Prospecting, Lead Generation. Professional Summary: Sales Representative with 5 years of experience in E-commerce.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.',
'Candidate Role: Program Coordinator. Seniority Level: Senior. Years of Experience: 11. Industry Experience: FinTech. Education: BA. Skills: Risk Management, Project Planning, KPIs, Jira, Reporting, Timeline Management, Asana, Process Improvement. Professional Summary: Program Coordinator with 11 years of experience in FinTech.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance.',
]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
```
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 120,000 training samples
* Columns: job_text, resume_text, and label
* Approximate statistics based on the first 100 samples:
| | job_text | resume_text | label |
|:---------|:--------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:---------------------------------------------------------------|
| type | string | string | float |
| modality | text | text | |
| details |
Job Title: Technical Support Specialist. Required Seniority: Junior. Industry: FinTech. Must-Have Skills: Escalations, SLA, Documentation, Communication, Intercom. Nice-to-Have Skills: Ticketing. Job Description: We are hiring a Technical Support Specialist to support teams in FinTech.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams. | Candidate Role: Customer Success Associate. Seniority Level: Mid. Years of Experience: 2. Industry Experience: E-commerce. Education: BA. Skills: Intercom, SLA, Customer Satisfaction, Documentation, Root Cause Analysis, Communication, Ticketing. Professional Summary: Customer Success Associate with 2 years of experience in E-commerce.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance. | 1.0 |
| Job Title: FP&A Analyst. Required Seniority: Junior. Industry: Logistics. Must-Have Skills: Forecasting, KPIs, Reporting, Accounting. Nice-to-Have Skills: Financial Modeling. Job Description: We are hiring a FP&A Analyst to support teams in Logistics.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams. | Candidate Role: Financial Analyst. Seniority Level: Senior. Years of Experience: 7. Industry Experience: E-commerce. Education: High School. Skills: Excel, Accounting, Cash Flow, Reporting, Variance Analysis, Financial Modeling, Valuation, Forecasting. Professional Summary: Financial Analyst with 7 years of experience in E-commerce.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance. | 1.0 |
| Job Title: Content Marketer. Required Seniority: Senior. Industry: Travel. Must-Have Skills: SEO, Copywriting, Meta Ads, Email Marketing, Google Ads. Nice-to-Have Skills: Content Marketing. Job Description: We are hiring a Content Marketer to support teams in Travel.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams. | Candidate Role: Content Marketer. Seniority Level: Junior. Years of Experience: 0. Industry Experience: Retail. Education: MSc. Skills: Copywriting, Conversion Optimization, Landing Pages, Content Marketing, Google Ads, Meta Ads, A/B Testing, SEO. Professional Summary: Content Marketer with 0 years of experience in Retail.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance. | 0.0 |
* Loss: [BinaryCrossEntropyLoss](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
```json
{
"activation_fn": "torch.nn.modules.linear.Identity",
"pos_weight": null
}
```
### Evaluation Dataset
#### Unnamed Dataset
* Size: 15,000 evaluation samples
* Columns: job_text, resume_text, and label
* Approximate statistics based on the first 100 samples:
| | job_text | resume_text | label |
|:---------|:--------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:--------------------------------------------------------------|
| type | string | string | float |
| modality | text | text | |
| details | Job Title: Customer Support Specialist. Required Seniority: Junior. Industry: FinTech. Must-Have Skills: Ticketing, Documentation, Root Cause Analysis, Communication. Nice-to-Have Skills: Troubleshooting. Job Description: We are hiring a Customer Support Specialist to support teams in FinTech.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams. | Candidate Role: Customer Support Specialist. Seniority Level: Senior. Years of Experience: 9. Industry Experience: Retail. Education: High School. Skills: Ticketing, Documentation, Communication, Root Cause Analysis, SLA, Escalations, Troubleshooting, Intercom. Professional Summary: Customer Support Specialist with 9 years of experience in Retail.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance. | 0.0 |
| Job Title: Junior Accountant. Required Seniority: Senior. Industry: Travel. Must-Have Skills: Valuation, Forecasting, Variance Analysis, KPIs. Nice-to-Have Skills: Budgeting. Job Description: We are hiring a Junior Accountant to support teams in Travel.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams. | Candidate Role: Financial Analyst. Seniority Level: Junior. Years of Experience: 2. Industry Experience: E-commerce. Education: MBA. Skills: Variance Analysis, KPIs, Reporting, Budgeting, Accounting, Valuation. Professional Summary: Financial Analyst with 2 years of experience in E-commerce.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance. | 1.0 |
| Job Title: Sales Representative. Required Seniority: Senior. Industry: Cybersecurity. Must-Have Skills: Prospecting, Account Management, Pipeline Management, Closing. Nice-to-Have Skills: Negotiation. Job Description: We are hiring a Sales Representative to support teams in Cybersecurity.. Responsibilities: Deliver high-quality work aligned with goals and timelines; Collaborate with stakeholders and communicate progress clearly; Improve processes and contribute to measurable outcomes. Requirements: Relevant experience and ability to learn quickly; Strong communication and ownership mindset; Comfort working with tools, data, and cross-functional teams. | Candidate Role: Sales Representative. Seniority Level: Mid. Years of Experience: 6. Industry Experience: SaaS. Education: High School. Skills: CRM, Negotiation, Prospecting, Pipeline Management, Discovery Calls, Closing, Account Management, Lead Generation. Professional Summary: Sales Representative with 6 years of experience in SaaS.. Experience Highlights: Delivered results using structured workflows and clear communication; Collaborated with stakeholders to define needs and execute tasks; Maintained reporting and documentation to support team performance. | 0.0 |
* Loss: [BinaryCrossEntropyLoss](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
```json
{
"activation_fn": "torch.nn.modules.linear.Identity",
"pos_weight": null
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 32
- `num_train_epochs`: 2
- `learning_rate`: 2e-05
- `warmup_steps`: 0.1
- `weight_decay`: 0.01
- `fp16`: True
- `auto_find_batch_size`: True
- `per_device_eval_batch_size`: 32
- `eval_accumulation_steps`: 4
- `load_best_model_at_end`: True
- `data_seed`: 42
- `dataloader_num_workers`: 2
- `dataloader_persistent_workers`: True
#### All Hyperparameters