CoolFace
Modelpublic

pj-mathematician/JobGTE-multilingual-base-v1

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

Job - Job matching Alibaba-NLP/gte-multilingual-base (v1)

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: Alibaba-NLP/gte-multilingual-base <!-- at revision 9fdd4ee8bba0e2808a34e0e739576f6740d2b225 -->
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 768 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: NewModel 
  (1): Pooling({'word_embedding_dimension': 768, '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/JobGTE-multilingual-base-v1")
# Run inference
sentences = [
    'Volksvertreter',
    'Parlamentarier',
    'Oberbürgermeister',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]

# 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.65710.12430.29560.66020.7280.67030.1908
cosine_accuracy@200.99051.00.97040.98060.960.95061.0
cosine_accuracy@500.99051.00.98520.99030.97920.97761.0
cosine_accuracy@1000.99051.00.98520.99030.99430.98651.0
cosine_accuracy@1500.99051.00.99010.99030.99580.99321.0
cosine_accuracy@2000.99051.00.99010.99030.99740.99481.0
cosine_precision@10.65710.12430.29560.66020.7280.67030.1908
cosine_precision@200.51710.57190.50840.47820.12430.12520.1544
cosine_precision@500.3160.38850.36540.28950.05150.05230.0618
cosine_precision@1000.1890.25170.24130.17570.02630.02670.0309
cosine_precision@1500.13380.19050.18040.1260.01760.0180.0206
cosine_precision@2000.10430.15220.14470.09820.01330.01350.0154
cosine_recall@10.06780.00370.01110.06150.28130.25240.0614
cosine_recall@200.5470.38420.32210.51080.91830.90961.0
cosine_recall@500.740.56410.50250.69230.94990.94821.0
cosine_recall@1000.84530.67420.62480.80040.97010.96851.0
cosine_recall@1500.88380.74640.6830.84650.97680.97821.0
cosine_recall@2000.91090.78250.72160.87710.98180.9811.0
cosine_ndcg@10.65710.12430.29560.66020.7280.67030.1908
cosine_ndcg@200.69540.61390.53930.6540.80440.77360.5474
cosine_ndcg@500.7150.58740.52670.67070.8130.78440.5474
cosine_ndcg@1000.76790.61440.55790.72340.81730.78890.5474
cosine_ndcg@1500.78570.64990.5880.74380.81860.79090.5474
cosine_ndcg@2000.7970.66810.60710.75540.81950.79140.5474
cosine_mrr@10.65710.12430.29560.66020.7280.67030.1908
cosine_mrr@200.81380.55810.51040.80370.79690.7520.4093
cosine_mrr@500.81380.55810.5110.80410.79750.75290.4093
cosine_mrr@1000.81380.55810.5110.80410.79770.75310.4093
cosine_mrr@1500.81380.55810.5110.80410.79770.75310.4093
cosine_mrr@2000.81380.55810.5110.80410.79770.75310.4093
cosine_map@10.65710.12430.29560.66020.7280.67030.1908
cosine_map@200.55790.47990.4010.50870.73510.69680.3298
cosine_map@500.54710.4250.35880.49260.73740.69960.3298
cosine_map@1000.57960.43020.36330.52170.7380.70030.3298
cosine_map@1500.58750.44590.37770.52990.73810.70040.3298
cosine_map@2000.59120.45330.38480.53340.73820.70050.3298
cosine_map@5000.59530.46560.39780.53860.73830.70060.3298

<!--

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.74470.61250.53780.72400.70290.63450.5531
0.001013.4866-------
0.10271002.5431-------
0.20532001.45360.79930.66330.59740.76420.75670.70110.5498
0.30803001.1018-------
0.41074000.91840.79250.65860.60580.75870.77490.72780.5486
0.51335000.8973-------
0.61606000.73090.79510.66710.60960.77080.77930.73390.5525
0.71877000.7297-------
0.82148000.72810.79290.67110.60880.76450.78990.74440.5479
0.92409000.6607-------
1.026710000.60750.79150.66590.60880.76650.79680.75880.5482
1.129411000.4553-------
1.232012000.47750.79790.66960.60330.76690.79590.76240.5484
1.334713000.4838-------
1.437414000.49120.79730.67570.61120.76560.79780.76500.5487
1.540015000.4732-------
1.642716000.52690.80310.67230.61080.76540.80080.76600.5492
1.745417000.4822-------
1.848018000.50720.79620.66680.60510.75920.80010.77140.5486
1.950719000.4709-------
2.054420000.37720.79400.66470.60370.75790.80640.77320.5479
2.157121000.3982-------
2.259822000.30730.79690.66520.60050.76250.80540.77340.5493
2.362423000.383-------
2.465124000.36870.79250.66900.59870.75830.80810.77350.5477
2.567825000.3472-------
2.670426000.35570.79560.67580.60190.76590.80820.77670.5491
2.773127000.3527-------
2.875828000.34460.79450.67190.60200.76160.81240.78180.5496
2.978429000.3566-------
3.082130000.32520.79480.66820.60250.76170.81520.78480.5516
3.184831000.2968-------
3.287532000.29620.79530.67170.60860.76130.81100.78240.5482
3.390133000.3084-------
3.492834000.29090.79400.66340.60230.76150.81380.78220.5457
3.595535000.2964-------
3.698236000.31930.79600.66350.60700.75340.81640.78440.5467
3.800837000.3514-------
3.903538000.31470.79730.66960.61250.76160.81760.78850.5469
4.006239000.2738-------
4.108840000.28420.79600.66720.60820.75360.81740.78910.5479
4.211541000.2739-------
4.314242000.27040.79790.66810.61110.75400.81800.78910.5476
4.416843000.2529-------
4.519544000.2720.79680.66850.60870.75640.81850.79010.5476
4.622245000.3-------
4.724846000.25980.79720.66750.60720.75560.81900.79090.5478
4.827547000.3101-------
4.930248000.25240.79700.66810.60710.75540.81950.79140.5474

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. -->