CoolFace
Modelpublic

pj-mathematician/JobBGE-m3

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Model Card

Job - Job matching finetuned BAAI/bge-m3

Top performing model on TalentCLEF 2025 Task A. Use it for multilingual job title matching

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: BAAI/bge-m3 <!-- at revision 5617a9f61b028005a4858fdac845db406aefb181 -->
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 1024 dimensions
  • Similarity Function: Cosine Similarity
  • Training Datasets:
  • full_en
  • full_de
  • full_es
  • full_zh
  • mix <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: XLMRobertaModel 
  (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
  (2): Normalize()
)

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 SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("pj-mathematician/JobBGE-m3")
# Run inference
sentences = [
    'Volksvertreter',
    'Parlamentarier',
    'Oberbürgermeister',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]

<!--

Direct Usage (Transformers)

<details><summary>Click to see the direct usage in Transformers</summary>

</details> -->

<!--

Downstream Usage (Sentence Transformers)

You can finetune this model on your own dataset.

<details><summary>Click to expand</summary>

</details> -->

<!--

Out-of-Scope Use

List how the model may foreseeably be misused and address what users ought not to do with the model. -->

Evaluation

Metrics

Information Retrieval
Metricfull_enfull_esfull_defull_zhmix_esmix_demix_zh
cosine_accuracy@10.64760.11350.29560.67960.73950.69270.1789
cosine_accuracy@200.99051.00.98520.99030.96360.96411.0
cosine_accuracy@500.99051.00.99010.99030.98280.98391.0
cosine_accuracy@1000.99051.00.99010.99030.99270.99221.0
cosine_accuracy@1500.99051.00.99010.99030.99480.99321.0
cosine_accuracy@2000.99051.00.99010.99030.99640.99431.0
cosine_precision@10.64760.11350.29560.67960.73950.69270.1789
cosine_precision@200.50620.56680.54040.47090.12490.1280.1544
cosine_precision@500.30650.39030.38280.28040.05170.05330.0618
cosine_precision@1000.18580.25250.25030.17320.02630.02710.0309
cosine_precision@1500.13250.19010.18780.12390.01760.01810.0206
cosine_precision@2000.10250.15080.15030.09770.01330.01360.0154
cosine_recall@10.06690.00350.01110.06430.28540.26040.0577
cosine_recall@200.53920.37960.34330.51190.92260.92851.0
cosine_recall@500.720.56360.5340.67270.95480.9651.0
cosine_recall@1000.82540.67270.64990.7880.97050.97961.0
cosine_recall@1500.8720.7360.71010.83290.97660.98371.0
cosine_recall@2000.90060.76980.75130.86870.98110.98621.0
cosine_ndcg@10.64760.11350.29560.67960.73950.69270.1789
cosine_ndcg@200.68220.61360.56480.65150.81190.79670.5443
cosine_ndcg@500.69750.59080.55220.65990.82080.80690.5443
cosine_ndcg@1000.7520.61680.57960.71570.82430.81020.5443
cosine_ndcg@1500.77250.64890.61120.73570.82550.8110.5443
cosine_ndcg@2000.78270.66530.63090.75010.82620.81140.5443
cosine_mrr@10.64760.11350.29560.67960.73950.69270.1789
cosine_mrr@200.80.55360.51640.82170.80590.77670.4002
cosine_mrr@500.80.55360.51660.82170.80660.77740.4002
cosine_mrr@1000.80.55360.51660.82170.80670.77750.4002
cosine_mrr@1500.80.55360.51660.82170.80670.77750.4002
cosine_mrr@2000.80.55360.51660.82170.80670.77750.4002
cosine_map@10.64760.11350.29560.67960.73950.69270.1789
cosine_map@200.53920.4810.42220.50120.7440.7210.3272
cosine_map@500.52580.43040.37910.48130.74650.72380.3272
cosine_map@1000.5580.43350.38290.51050.74690.72420.3272
cosine_map@1500.56660.44850.39810.51840.7470.72430.3272
cosine_map@2000.56950.45510.40560.52280.74710.72440.3272
cosine_map@5000.57440.46770.41890.52770.74720.72440.3272

<!--

Bias, Risks and Limitations

What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->

<!--

Recommendations

What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->

Training Details

Training Datasets

<details><summary>full_en</summary>

full_en
  • Dataset: full_en
  • Size: 28,880 training samples
  • Columns: <code>anchor</code> and <code>positive</code>
  • Approximate statistics based on the first 1000 samples: | | anchor | positive | |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 3 tokens</li><li>mean: 5.68 tokens</li><li>max: 11 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 5.76 tokens</li><li>max: 12 tokens</li></ul> |
  • Samples: | anchor | positive | |:-----------------------------------------|:-----------------------------------------| | <code>air commodore</code> | <code>flight lieutenant</code> | | <code>command and control officer</code> | <code>flight officer</code> | | <code>air commodore</code> | <code>command and control officer</code> |
  • Loss: <code>GISTEmbedLoss</code> with these parameters:
json
  {'guide': SentenceTransformer(
    (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel 
    (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
    (2): Normalize()
  ), 'temperature': 0.01, 'margin_strategy': 'absolute', 'margin': 0.0}

</details> <details><summary>full_de</summary>

full_de
  • Dataset: full_de
  • Size: 23,023 training samples
  • Columns: <code>anchor</code> and <code>positive</code>
  • Approximate statistics based on the first 1000 samples: | | anchor | positive | |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 3 tokens</li><li>mean: 7.99 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 8.19 tokens</li><li>max: 30 tokens</li></ul> |
  • Samples: | anchor | positive | |:----------------------------------|:-----------------------------------------------------| | <code>Staffelkommandantin</code> | <code>Kommodore</code> | | <code>Luftwaffenoffizierin</code> | <code>Luftwaffenoffizier/Luftwaffenoffizierin</code> | | <code>Staffelkommandantin</code> | <code>Luftwaffenoffizierin</code> |
  • Loss: <code>GISTEmbedLoss</code> with these parameters:
json
  {'guide': SentenceTransformer(
    (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel 
    (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
    (2): Normalize()
  ), 'temperature': 0.01, 'margin_strategy': 'absolute', 'margin': 0.0}

</details> <details><summary>full_es</summary>

full_es
  • Dataset: full_es
  • Size: 20,724 training samples
  • Columns: <code>anchor</code> and <code>positive</code>
  • Approximate statistics based on the first 1000 samples: | | anchor | positive | |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 3 tokens</li><li>mean: 9.13 tokens</li><li>max: 32 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 8.84 tokens</li><li>max: 32 tokens</li></ul> |
  • Samples: | anchor | positive | |:------------------------------------|:-------------------------------------------| | <code>jefe de escuadrón</code> | <code>instructor</code> | | <code>comandante de aeronave</code> | <code>instructor de simulador</code> | | <code>instructor</code> | <code>oficial del Ejército del Aire</code> |
  • Loss: <code>GISTEmbedLoss</code> with these parameters:
json
  {'guide': SentenceTransformer(
    (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel 
    (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
    (2): Normalize()
  ), 'temperature': 0.01, 'margin_strategy': 'absolute', 'margin': 0.0}

</details> <details><summary>full_zh</summary>

full_zh
  • Dataset: full_zh
  • Size: 30,401 training samples
  • Columns: <code>anchor</code> and <code>positive</code>
  • Approximate statistics based on the first 1000 samples: | | anchor | positive | |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 5 tokens</li><li>mean: 7.15 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 7.46 tokens</li><li>max: 21 tokens</li></ul> |
  • Samples: | anchor | positive | |:------------------|:---------------------| | <code>技术总监</code> | <code>技术和运营总监</code> | | <code>技术总监</code> | <code>技术主管</code> | | <code>技术总监</code> | <code>技术艺术总监</code> |
  • Loss: <code>GISTEmbedLoss</code> with these parameters:
json
  {'guide': SentenceTransformer(
    (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel 
    (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
    (2): Normalize()
  ), 'temperature': 0.01, 'margin_strategy': 'absolute', 'margin': 0.0}

</details> <details><summary>mix</summary>

mix
  • Dataset: mix
  • Size: 21,760 training samples
  • Columns: <code>anchor</code> and <code>positive</code>
  • Approximate statistics based on the first 1000 samples: | | anchor | positive | |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 2 tokens</li><li>mean: 6.71 tokens</li><li>max: 19 tokens</li></ul> | <ul><li>min: 2 tokens</li><li>mean: 7.69 tokens</li><li>max: 19 tokens</li></ul> |
  • Samples: | anchor | positive | |:------------------------------------------|:----------------------------------------------------------------| | <code>technical manager</code> | <code>Technischer Direktor für Bühne, Film und Fernsehen</code> | | <code>head of technical</code> | <code>directora técnica</code> | | <code>head of technical department</code> | <code>技术艺术总监</code> |
  • Loss: <code>GISTEmbedLoss</code> with these parameters:
json
  {'guide': SentenceTransformer(
    (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel 
    (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
    (2): Normalize()
  ), 'temperature': 0.01, 'margin_strategy': 'absolute', 'margin': 0.0}

</details>

Training Hyperparameters

Non-Default Hyperparameters
  • eval_strategy: steps
  • per_device_train_batch_size: 64
  • per_device_eval_batch_size: 128
  • gradient_accumulation_steps: 2
  • num_train_epochs: 5
  • warmup_ratio: 0.05
  • log_on_each_node: False
  • fp16: True
  • dataloader_num_workers: 4
  • ddp_find_unused_parameters: True
  • batch_sampler: no_duplicates
All Hyperparameters

<details><summary>Click to expand</summary>

  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 64
  • per_device_eval_batch_size: 128
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 2
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 5e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1.0
  • num_train_epochs: 5
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.05
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: False
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • use_ipex: False
  • bf16: False
  • fp16: True
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: True
  • dataloader_num_workers: 4
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'minnumparams': 0, 'xla': False, 'xlafsdpv2': False, 'xlafsdpgrad_ckpt': False}
  • tp_size: 0
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'splitbatches': False, 'dispatchbatches': None, 'evenbatches': True, 'useseedablesampler': True, 'nonblocking': False, 'gradientaccumulationkwargs': None}
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • ddp_find_unused_parameters: True
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: None
  • hub_always_push: False
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • include_for_metrics: []
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: False
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • use_liger_kernel: False
  • eval_use_gather_object: False
  • average_tokens_across_devices: False
  • prompts: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional

</details>

Training Logs

EpochStepTraining Lossfull_en_cosine_ndcg@200full_es_cosine_ndcg@200full_de_cosine_ndcg@200full_zh_cosine_ndcg@200mix_es_cosine_ndcg@200mix_de_cosine_ndcg@200mix_zh_cosine_ndcg@200
-1-1-0.68560.52070.46550.67130.62240.56040.5548
0.001015.3354-------
0.10271002.665-------
0.20532001.33750.76910.65300.62980.75170.75130.73930.5490
0.30803001.1101-------
0.41074000.94530.78020.66430.62460.75310.76100.74410.5493
0.51335000.9202-------
0.61606000.78870.77410.65490.61710.75420.76720.75400.5482
0.71877000.7604-------
0.82148000.72190.78460.66740.62440.76480.77410.75920.5497
0.92409000.6965-------
1.026710000.62530.76460.63910.61220.75030.78250.77040.5463
1.129411000.4737-------
1.232012000.50550.77580.65820.61780.75140.78570.77640.5501
1.334713000.5042-------
1.437414000.50730.76130.65780.61780.75050.78290.77620.5452
1.540015000.4975-------
1.642716000.52420.77360.66730.62790.75550.79400.78590.5477
1.745417000.4713-------
1.848018000.48140.78450.67330.62850.76420.79920.79040.5449
1.950719000.4526-------
2.054420000.360.77900.66390.62520.75000.80320.78880.5499
2.157121000.3744-------
2.259822000.30310.77870.66140.61900.75370.79930.78110.5476
2.362423000.3638-------
2.465124000.3580.77980.66150.62580.74970.80180.78280.5481
2.567825000.3247-------
2.670426000.32470.78540.66630.62480.75600.80810.78350.5452
2.773127000.3263-------
2.875828000.32120.77610.66810.62500.75170.81210.79270.5458
2.978429000.3291-------
3.082130000.28160.77270.66040.61630.73700.81630.79850.5473
3.184831000.2698-------
3.287532000.26570.77570.66150.62470.74170.81170.80040.5436
3.390133000.2724-------
3.492834000.25840.78500.65830.63200.74580.81200.79800.5454
3.595535000.2573-------
3.698236000.27440.77960.65520.62370.74090.81930.80180.5466
3.800837000.3054-------
3.903538000.27270.78250.66420.62930.75040.82130.80580.5463
4.006239000.2353-------
4.108840000.23530.77470.66280.62630.73840.82390.80650.5447
4.211541000.2385-------
4.314242000.2310.78110.66080.62540.74630.82260.80510.5442
4.416843000.2115-------
4.519544000.21510.78150.66340.63010.74890.82510.81010.5450
4.622245000.2496-------
4.724846000.21460.78140.66540.62940.75230.82580.81040.5436
4.827547000.2535-------
4.930248000.20580.78270.66530.63090.75010.82620.81140.5443

Framework Versions

  • Python: 3.11.11
  • Sentence Transformers: 4.1.0
  • Transformers: 4.51.2
  • PyTorch: 2.6.0+cu124
  • Accelerate: 1.6.0
  • Datasets: 3.5.0
  • Tokenizers: 0.21.1

Citation

BibTeX

Sentence Transformers
bibtex
@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",
}
GISTEmbedLoss
bibtex
@misc{solatorio2024gistembed,
    title={GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuning},
    author={Aivin V. Solatorio},
    year={2024},
    eprint={2402.16829},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}

<!--

Glossary

Clearly define terms in order to be accessible across audiences. -->

<!--

Model Card Authors

Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->

<!--

Model Card Contact

Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->