CoolFace
Modelpublic

ksg-dfci/TrialSpace-1225

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes116downloads
Model Card

SentenceTransformer

This is a sentence-transformers model. It maps sentences & paragraphs to a dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more. In the context of MatchMiner-AI, this model is trained to embed patient summaries and clinical trial "space" (target population summaries) to enable rapid retrieval of trial options for patients and vice versa.

Model Details

Model Description

  • —Model Type: Sentence Transformer <!-- - Base model: Unknown -->
  • —Maximum Sequence Length: 2500 tokens
  • —Output Dimensionality: 1024 dimensions
  • —Similarity Function: Cosine Similarity
  • —Training Datasets:
  • —mnri_dataset
  • —contrastive_dataset <!-- - Language: English --> <!-- - License: Unknown -->

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 2500, 'do_lower_case': False, 'architecture': 'Qwen3Model'})
  (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, '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': True, '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("sentence_transformers_model_id")
# Run inference
queries = [
    "Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age: 63  \nSex: Male  \nCancer type: Diffuse large B\u2011cell lymphoma (DLBCL)  \nHistology: Activated B\u2011cell (non\u2011germinal\u2011center) phenotype, CD20\u202fpositive, MUM1\u202fpositive, BCL2\u202fpositive, Ki\u201167\u224895\u202f%  \nCurrent extent: Limited residual disease \u2013 residual metabolic activity in the original right posterior thigh soft\u2011tissue mass (partial metabolic response) and a solitary right iliac lymph node with stable low\u2011volume uptake (stable disease); no other sites of disease evident.  \n\nBiomarkers:  \n- Immunohistochemistry: CD20+, MUM1+, BCL2+, CD10\u2011, BCL6\u2011, Ki\u201167\u224895%  \n- FISH: No MYC, BCL2, or BCL6 rearrangements (triple\u2011hit excluded)  \n- NGS (original thigh lesion): MYD88 L265P (VAF\u202f\u224835\u202f%), CD79B Y196F (VAF\u202f\u224830\u202f%), CARD11 S328F (VAF\u202f\u224828\u202f%), REL copy\u2011number gain (\u22483\u20134 copies) \u2013 low tumor mutational burden (5\u202fmut/Mb), microsatellite stable.  \n- Additional alterations identified in iliac node (September\u00a02013): TP53 p.R248Q (VAF\u202f\u224822\u202f%), CDKN2A homozygous deletion.  \n\nTreatment history:  \n# Early\u202f2011\u2013mid\u202f2011: R\u2011CHOP (rituximab, cyclophosphamide, doxorubicin, vincristine, prednisolone) \u2013 6 cycles, 21\u2011day schedule. Best response: partial metabolic response (Deauville\u202f4).  \n# Mid\u202f2011 (following R\u2011CHOP): High\u2011dose BEAM conditioning with autologous stem\u2011cell transplantation \u2013 achieved only persistent residual disease (no complete remission).  \n# Early\u202f2012 (exact infusion date unspecified, Day\u202f0 of CAR\u2011T): Axicabtagene\u202fciloleucel (axi\u2011cel) CAR\u2011T after fludarabine/cyclophosphamide lymphodepletion. Course complicated by Grade\u202f3 cytokine\u2011release syndrome (tocilizumab, brief vasopressors) and Grade\u202f2 immune effector cell\u2011associated neurotoxicity syndrome (resolved). Day\u202f60 restaging (July\u202f2012) showed partial metabolic response of thigh lesion (\u2193SUV\u202ffrom\u202f\u224813\u202fto\u202f4.2) but emergence of a new right iliac node (SUV\u202f\u22489.3) consistent with progressive disease.  \n# Late\u202f2012 (December\u202f2012): Palliative external\u2011beam radiation to right iliac node, 30\u202fGy in 15 fractions (2\u202fGy per fraction). Resulted in symptom relief and reduction of nodal size/metabolic activity (node size \u2193 to 2.5\u202fcm, SUV\u202f\u22485.8).  \n# 2013\u202fMarch onward: Observation/off\u2011therapy; serial imaging through 2014 demonstrates stable disease (persistent low\u2011grade uptake in thigh lesion, SUV\u202f\u22484.2; iliac node stable, SUV\u202f\u22485.8). No further systemic therapy administered.",
]
documents = [
    'Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: ≥18 years. Sex allowed: both. Cancer type allowed: diffuse large b cell lymphoma. Histology allowed: diffuse large b cell lymphoma–not otherwise specified. Cancer burden allowed: evaluable/measurable disease; absent massive uncontrolled pleural, pericardial, or peritoneal effusions, pulmonary lymphangitis, and liver involvement exceeding 50\u202f%. Prior treatment required: relapsed or refractory disease after prior systemic anti‑lymphoma therapy (including patients ineligible for car t‑cell therapy). Prior treatment excluded: any concurrent antitumor‑directed drug therapy. Biomarkers required: NA. Biomarkers excluded: NA.',
    'Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: 18-75 years. Sex allowed: Male and Female. Cancer type allowed: Any malignant solid tumor. Histology allowed: NA. Cancer burden allowed: Stage\u202fIIIB‑IV disease that has progressed after prior standard therapy and for whom immune‐monotherapy is planned, regardless of PD‑L1 result. Prior treatment required: Progression after receipt of standard therapy. Prior treatment excluded: NA. Biomarkers required: Presence of at least one positively expressed tumor neoantigen; PD‑L1 testing permitted but not mandatory. Biomarkers excluded: NA.',
    'Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: >=18. Sex allowed: female. Cancer type allowed: ovarian carcinosarcoma. Histology allowed: mixed carcinoma. Cancer burden allowed: relapsed or refractory disease after at least one prior platinum‑based regimen (platinum‑resistant <183\xa0days) with measurable disease. Prior treatment required: at least one prior line of platinum chemotherapy. Prior treatment excluded: prior MUC1‑directed therapy. Biomarkers required: MUC1 expression positive (>0 IHC) assessed at screening. Biomarkers excluded: NA',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 1024] [3, 1024]

# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.8415, 0.3722, 0.0634]])

<!--

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

<!--

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

mnri_dataset
  • —Dataset: mnri_dataset
  • —Size: 756,840 training samples
  • —Columns: <code>patientsummarytrunc</code> and <code>thisspacetrunc</code>
  • —Approximate statistics based on the first 1000 samples: | | patientsummarytrunc | thisspacetrunc | |:--------|:---------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 386 tokens</li><li>mean: 911.75 tokens</li><li>max: 1827 tokens</li></ul> | <ul><li>min: 112 tokens</li><li>mean: 168.64 tokens</li><li>max: 388 tokens</li></ul> |
  • —Samples: | patientsummarytrunc | thisspacetrunc | |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age: 32 <br>Sex: Male <br>Cancer type: B‑cell precursor acute lymphoblastic leukemia (ALL) <br>Histology: B‑cell lineage lymphoblasts (CD19⁺, CD20⁺, CD10⁺, TdT⁺) <br>Current extent: Systemic marrow disease (diffusely involved bone marrow, no detectable extramedullary or CNS disease) – considered advanced/systemic <br><br>Biomarkers: <br>- PAX5 p.Arg31Ser (likely pathogenic missense) – VAF ≈ 48% <br>- NRAS p.Gln61Lys (activating missense) – VAF ≈ 35‑41% <br>- FLT3 internal tandem duplication (30‑bp juxtamembrane) – pathogenic, allelic ratio ≈ 30‑36% <br>- CDKN2A homozygous deletion (exons 1‑2) – pathogenic <br>- Low‑level JAK2 V617F (p.Val617Phe) – subclonal, VAF ≈ 3% <br>- CREBBP p.Arg1664His – variant of uncertain significance, VAF ≈ 7% <br>- No BCR‑ABL1 fusion, no TEL‑AML1, no MLL/KMT2A rearrange...</code> | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: 0 through 45 years. Sex allowed: both sexes. Cancer type allowed: acute lymphoblastic leukaemia. Histology allowed: B‑cell precursor acute lymphoblastic leukaemia. Cancer burden allowed: newly diagnosed, never relapsed, de novo disease. Prior treatment required: NA. Prior treatment excluded: systemic corticosteroids ≥10 mg/m²/day prednisone equivalents for longer than one week before diagnosis; any chemotherapeutic agent administered within four weeks before diagnosis. Biomarkers required: surface immunoglobulin negative phenotype; IG::MYC rearrangement accepted only when BCL2 and BCL6 rearrangements are absent. Biomarkers excluded: KMT2A‑rearranged B‑cell precursor ALL in patients younger than 1 year; Philadelphia chromosome‑positive (t[9;22]/BCR‑ABL) ...</code> | | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age: 66 years (born 1959, most recent entry dated September 2017) <br>Sex: Female <br><br>Cancer type: Pancreatic ductal adenocarcinoma (PDAC) <br>Histology: Poorly differentiated invasive ductal adenocarcinoma <br><br>Current extent: Metastatic (Stage IV) – hepatic dominant disease with two liver deposits (segment VI ≈ 1.4 cm, segment VII ≈ 1.8 cm), solitary osteoblastic metastasis to L3 vertebral body, and persistent peripancreatic soft‑tissue thickening (likely post‑surgical fibrosis vs low‑volume nodal disease). No CNS disease documented. <br><br>Biomarkers (most recent specimen, September 2017 hepatic core biopsy): <br>• KRAS G12D point mutation (VAF 18%) – activating hotspot, different from earlier KRAS G12R clone <br>• KRAS focal amplification (estimated copy ≈ 7) <br>• TP53 R273H missense...</code> | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: 18-75 years. Sex allowed: Male and Female. Cancer type allowed: Advanced solid tumor. Histology allowed: Any. Cancer burden allowed: Locally advanced or metastatic disease refractory to standard therapy or lacking effective treatment. Prior treatment required: Progressive disease after standard systemic therapy. Prior treatment excluded: Prior receipt of targeted ROR1 inhibitor therapy. Biomarkers required: ROR1 positive (assessment planned during screening). Biomarkers excluded: NA.</code> | | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age: 66 <br>Sex: Female <br>Cancer type: Ovarian carcinosarcoma (malignant mixed Müllerian tumor) <br>Histology: Biphasic high‑grade serous carcinoma component (WT1⁺, PAX8⁺, p53 overexpression) with undifferentiated spindle‑cell sarcomatous component (vimentin⁺, desmin‑) <br><br>Current extent: Metastatic disease (peritoneal carcinomatosis with implants up to ≈2 cm, right pleural effusion, bilateral subcentimeter pulmonary nodules) – clinically stage IV, stable on current therapy <br><br>Biomarkers: <br>- TP53 p.Y220C (Likely pathogenic, somatic, VAF 68%) <br>- KRAS p.G12D (Likely pathogenic, somatic, VAF 9%) <br>- BRCA2 splice‑site alteration c.5946+2T>A (Likely pathogenic, somatic, VAF 12%) – HRD score negative, microsatellite stable, TMB 6 mut/Mb (low) <br>- CCNE1 copy‑number gain (~5‑fold am...</code> | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: >=18. Sex allowed: female. Cancer type allowed: ovarian carcinosarcoma. Histology allowed: mixed carcinoma. Cancer burden allowed: relapsed or refractory disease after at least one prior platinum‑based regimen (platinum‑resistant <183 days) with measurable disease. Prior treatment required: at least one prior line of platinum chemotherapy. Prior treatment excluded: prior MUC1‑directed therapy. Biomarkers required: MUC1 expression positive (>0 IHC) assessed at screening. Biomarkers excluded: NA</code> |
  • —Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
json
  {
      "scale": 20.0,
      "similarity_fct": "cos_sim",
      "gather_across_devices": false
  }
contrastive_dataset
  • —Dataset: contrastive_dataset
  • —Size: 1,530,582 training samples
  • —Columns: <code>patientsummarytrunc</code>, <code>thisspacetrunc</code>, and <code>label</code>
  • —Approximate statistics based on the first 1000 samples: | | patientsummarytrunc | thisspacetrunc | label | |:--------|:---------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:---------------------------------------------------------------| | type | string | string | float | | details | <ul><li>min: 202 tokens</li><li>mean: 906.99 tokens</li><li>max: 1827 tokens</li></ul> | <ul><li>min: 121 tokens</li><li>mean: 185.89 tokens</li><li>max: 388 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.39</li><li>max: 1.0</li></ul> |
  • —Samples: | patientsummarytrunc | thisspacetrunc | label | |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------| | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age: 32 <br>Sex: Male <br>Cancer type: B‑cell precursor acute lymphoblastic leukemia (ALL) <br>Histology: B‑cell lineage lymphoblasts (CD19⁺, CD20⁺, CD10⁺, TdT⁺) <br>Current extent: Systemic marrow disease (diffusely involved bone marrow, no detectable extramedullary or CNS disease) – considered advanced/systemic <br><br>Biomarkers: <br>- PAX5 p.Arg31Ser (likely pathogenic missense) – VAF ≈ 48% <br>- NRAS p.Gln61Lys (activating missense) – VAF ≈ 35‑41% <br>- FLT3 internal tandem duplication (30‑bp juxtamembrane) – pathogenic, allelic ratio ≈ 30‑36% <br>- CDKN2A homozygous deletion (exons 1‑2) – pathogenic <br>- Low‑level JAK2 V617F (p.Val617Phe) – subclonal, VAF ≈ 3% <br>- CREBBP p.Arg1664His – variant of uncertain significance, VAF ≈ 7% <br>- No BCR‑ABL1 fusion, no TEL‑AML1, no MLL/KMT2A rearrange...</code> | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: 0 through 45 years. Sex allowed: both sexes. Cancer type allowed: acute lymphoblastic leukaemia. Histology allowed: B‑cell precursor acute lymphoblastic leukaemia. Cancer burden allowed: newly diagnosed, never relapsed, de novo disease. Prior treatment required: NA. Prior treatment excluded: systemic corticosteroids ≥10 mg/m²/day prednisone equivalents for longer than one week before diagnosis; any chemotherapeutic agent administered within four weeks before diagnosis. Biomarkers required: surface immunoglobulin negative phenotype; IG::MYC rearrangement accepted only when BCL2 and BCL6 rearrangements are absent. Biomarkers excluded: KMT2A‑rearranged B‑cell precursor ALL in patients younger than 1 year; Philadelphia chromosome‑positive (t[9;22]/BCR‑ABL) ...</code> | <code>1.0</code> | | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age: 66 years (born 1959, most recent entry dated September 2017) <br>Sex: Female <br><br>Cancer type: Pancreatic ductal adenocarcinoma (PDAC) <br>Histology: Poorly differentiated invasive ductal adenocarcinoma <br><br>Current extent: Metastatic (Stage IV) – hepatic dominant disease with two liver deposits (segment VI ≈ 1.4 cm, segment VII ≈ 1.8 cm), solitary osteoblastic metastasis to L3 vertebral body, and persistent peripancreatic soft‑tissue thickening (likely post‑surgical fibrosis vs low‑volume nodal disease). No CNS disease documented. <br><br>Biomarkers (most recent specimen, September 2017 hepatic core biopsy): <br>• KRAS G12D point mutation (VAF 18%) – activating hotspot, different from earlier KRAS G12R clone <br>• KRAS focal amplification (estimated copy ≈ 7) <br>• TP53 R273H missense...</code> | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: 18-75 years. Sex allowed: Male and Female. Cancer type allowed: Advanced solid tumor. Histology allowed: Any. Cancer burden allowed: Locally advanced or metastatic disease refractory to standard therapy or lacking effective treatment. Prior treatment required: Progressive disease after standard systemic therapy. Prior treatment excluded: Prior receipt of targeted ROR1 inhibitor therapy. Biomarkers required: ROR1 positive (assessment planned during screening). Biomarkers excluded: NA.</code> | <code>1.0</code> | | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age: 18 <br>Sex: Female <br><br>Cancer type: B‑myeloid mixed‑phenotype acute leukemia (MPAL) <br>Histology: Biphenotypic blasts expressing B‑lineage (CD19+) and myeloid (CD33+, MPO+) markers; Philadelphia‑positive (BCR‑ABL1 p190) <br><br>Current extent: Relapsed/refractory disease with low‑burden molecular persistence (BCR‑ABL1 transcript ~0.02 % IS); no morphologic blasts in marrow, no extramedullary disease evident on imaging <br><br>Biomarkers: <br>- BCR‑ABL1 p190 fusion (RNA‑based detection, pathogenic) – present throughout disease course <br>- IKZF1 deletion, KRAS Q61H, PTPN11 N308S, MYC copy‑number gain – identified on initial NGS (2018‑12) and persistently reported <br>- MRD quantitative PCR: 0.05 % (day 30 post‑transplant, 2019‑03‑08); 0.02 % (Sept 2019); 0.03 % (Mar 2020); 0.022 % (June ...</code> | <code>Instruct: Given a cancer patient summary, retrieve clinical trial options that are reasonable for that patient; or, given a clinical trial option, retrieve cancer patients who are reasonable candidates for that trial. Age range allowed: 1 Year to 39 Years. Sex allowed: Male and Female. Cancer type allowed: Mixed phenotype acute leukemia, B‑myeloid. Histology allowed: B‑myeloid mixed phenotype acute leukemia. Cancer burden allowed: Relapsed or refractory disease. Prior treatment required: Full recovery from prior hematopoietic stem cell transplantation or anthracycline exposure. Prior treatment excluded: Current administration of anticancer agents (except intrathecal agents or hydroxyurea). Biomarkers required: NA. Biomarkers excluded: KMT2A rearrangement, Philadelphia chromosome/BCR‑ABL1 fusion.</code> | <code>0.0</code> |
  • —Loss: <code>OnlineContrastiveLoss</code>

Training Hyperparameters

Non-Default Hyperparameters
  • —per_device_train_batch_size: 18
  • —learning_rate: 2e-05
  • —warmup_ratio: 0.01
  • —bf16: True
All Hyperparameters

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

  • —overwrite_output_dir: False
  • —do_predict: False
  • —eval_strategy: no
  • —prediction_loss_only: True
  • —per_device_train_batch_size: 18
  • —per_device_eval_batch_size: 8
  • —per_gpu_train_batch_size: None
  • —per_gpu_eval_batch_size: None
  • —gradient_accumulation_steps: 1
  • —eval_accumulation_steps: None
  • —torch_empty_cache_steps: None
  • —learning_rate: 2e-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: 3
  • —max_steps: -1
  • —lr_scheduler_type: linear
  • —lr_scheduler_kwargs: {}
  • —warmup_ratio: 0.01
  • —warmup_steps: 0
  • —log_level: passive
  • —log_level_replica: warning
  • —log_on_each_node: True
  • —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
  • —bf16: True
  • —fp16: False
  • —fp16_opt_level: O1
  • —half_precision_backend: auto
  • —bf16_full_eval: False
  • —fp16_full_eval: False
  • —tf32: None
  • —local_rank: 1
  • —ddp_backend: None
  • —tpu_num_cores: None
  • —tpu_metrics_debug: False
  • —debug: []
  • —dataloader_drop_last: True
  • —dataloader_num_workers: 0
  • —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}
  • —fsdp_transformer_layer_cls_to_wrap: None
  • —accelerator_config: {'splitbatches': False, 'dispatchbatches': None, 'evenbatches': True, 'useseedablesampler': True, 'nonblocking': False, 'gradientaccumulationkwargs': None}
  • —parallelism_config: None
  • —deepspeed: None
  • —label_smoothing_factor: 0.0
  • —optim: adamwtorchfused
  • —optim_args: None
  • —adafactor: False
  • —group_by_length: False
  • —length_column_name: length
  • —project: huggingface
  • —trackio_space_id: trackio
  • —ddp_find_unused_parameters: None
  • —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
  • —hub_revision: None
  • —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: no
  • —neftune_noise_alpha: None
  • —optim_target_modules: None
  • —batch_eval_metrics: False
  • —eval_on_start: False
  • —use_liger_kernel: False
  • —liger_kernel_config: None
  • —eval_use_gather_object: False
  • —average_tokens_across_devices: True
  • —prompts: None
  • —batch_sampler: batch_sampler
  • —multi_dataset_batch_sampler: proportional
  • —router_mapping: {}
  • —learning_rate_mapping: {}

</details>

Training Logs

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

EpochStepTraining Loss
0.00631000.6184
0.01262000.6423
0.01893000.597
0.02524000.582
0.03155000.6083
0.03786000.6311
0.04417000.644
0.05048000.6166
0.05679000.597
0.063010000.663
0.069311000.6215
0.075512000.6366
0.081813000.6275
0.088114000.6278
0.094415000.6346
0.100716000.6317
0.107017000.6328
0.113318000.6139
0.119619000.656
0.125920000.6238
0.132221000.6208
0.138522000.6551
0.144823000.6257
0.151124000.6162
0.157425000.6386
0.163726000.65
0.170027000.6196
0.176328000.6263
0.182629000.6327
0.188930000.6268
0.195231000.6456
0.201532000.613
0.207833000.6455
0.214134000.602
0.220335000.6435
0.226636000.6329
0.232937000.625
0.239238000.6222
0.245539000.6177
0.251840000.6229
0.258141000.6502
0.264442000.6275
0.270743000.6424
0.277044000.6112
0.283345000.6298
0.289646000.6337
0.295947000.6148
0.302248000.625
0.308549000.6295
0.314850000.6326
0.321151000.6522
0.327452000.618
0.333753000.6631
0.340054000.6295
0.346355000.6388
0.352656000.6279
0.358957000.649
0.365158000.6289
0.371459000.638
0.377760000.6162
0.384061000.6324
0.390362000.6164
0.396663000.6086
0.402964000.613
0.409265000.6214
0.415566000.6106
0.421867000.6312
0.428168000.588
0.434469000.6144
0.440770000.6084
0.447071000.602
0.453372000.6224
0.459673000.6029
0.465974000.5989
0.472275000.6427
0.478576000.6246
0.484877000.5989
0.491178000.5956
0.497479000.6298
0.503780000.6092
0.509981000.6203
0.516282000.6239
0.522583000.6211
0.528884000.6102
0.535185000.5934
0.541486000.6367
0.547787000.6424
0.554088000.6014
0.560389000.6181
0.566690000.6012
0.572991000.6292
0.579292000.6316
0.585593000.6294
0.591894000.6294
0.598195000.6207
0.604496000.6119
0.610797000.5915
0.617098000.6153
0.623399000.626
0.6296100000.6628
0.6359101000.6043
0.6422102000.5846
0.6485103000.6261
0.6547104000.616
0.6610105000.622
0.6673106000.5993
0.6736107000.6219
0.6799108000.6078
0.6862109000.6102
0.6925110000.6266
0.6988111000.6058
0.7051112000.617
0.7114113000.6091
0.7177114000.5837
0.7240115000.6037
0.7303116000.5996
0.7366117000.6304
0.7429118000.6428
0.7492119000.6289
0.7555120000.617
0.7618121000.6209
0.7681122000.6064
0.7744123000.6168
0.7807124000.6027
0.7870125000.5924
0.7933126000.624
0.7995127000.6058
0.8058128000.5708
0.8121129000.6067
0.8184130000.6194
0.8247131000.6379
0.8310132000.5997
0.8373133000.5787
0.8436134000.6229
0.8499135000.621
0.8562136000.6089
0.8625137000.5786
0.8688138000.5904
0.8751139000.6216
0.8814140000.5873
0.8877141000.5898
0.8940142000.5901
0.9003143000.6105
0.9066144000.5703
0.9129145000.6118
0.9192146000.5709
0.9255147000.5768
0.9318148000.5901
0.9381149000.5881
0.9443150000.6011
0.9506151000.6083
0.9569152000.6213
0.9632153000.5922
0.9695154000.618
0.9758155000.6276
0.9821156000.5851
0.9884157000.589
0.9947158000.5988
1.0010159000.6132
1.0073160000.5756
1.0136161000.6208
1.0199162000.5767
1.0262163000.5605
1.0325164000.5581
1.0388165000.5591
1.0451166000.5734
1.0514167000.5361
1.0577168000.5334
1.0640169000.5841
1.0703170000.5455
1.0766171000.5494
1.0829172000.5511
1.0891173000.5654
1.0954174000.5305
1.1017175000.5502
1.1080176000.5496
1.1143177000.526
1.1206178000.5682
1.1269179000.5422
1.1332180000.5551
1.1395181000.5577
1.1458182000.5257
1.1521183000.5467
1.1584184000.5525
1.1647185000.554
1.1710186000.5185
1.1773187000.5414
1.1836188000.5539
1.1899189000.5262
1.1962190000.5687
1.2025191000.5165
1.2088192000.5575
1.2151193000.516
1.2214194000.5466
1.2277195000.5321
1.2339196000.5363
1.2402197000.5487
1.2465198000.5188
1.2528199000.541
1.2591200000.5655
1.2654201000.5349
1.2717202000.5451
1.2780203000.5095
1.2843204000.5542
1.2906205000.5448
1.2969206000.5097
1.3032207000.5333
1.3095208000.5425
1.3158209000.5459
1.3221210000.5527
1.3284211000.5284
1.3347212000.5664
1.3410213000.544
1.3473214000.5398
1.3536215000.5399
1.3599216000.5351
1.3662217000.5463
1.3725218000.5413
1.3787219000.5372
1.3850220000.5283
1.3913221000.5219
1.3976222000.5232
1.4039223000.5185
1.4102224000.5418
1.4165225000.5167
1.4228226000.5306
1.4291227000.4993
1.4354228000.5316
1.4417229000.5042
1.4480230000.501
1.4543231000.5345
1.4606232000.5263
1.4669233000.5057
1.4732234000.5392
1.4795235000.5352
1.4858236000.5091
1.4921237000.5028
1.4984238000.5318
1.5047239000.5285
1.5110240000.5247
1.5173241000.5375
1.5235242000.5253
1.5298243000.5191
1.5361244000.5107
1.5424245000.5553
1.5487246000.5345
1.5550247000.5059
1.5613248000.5165
1.5676249000.5209
1.5739250000.5393
1.5802251000.5339
1.5865252000.5448
1.5928253000.5236
1.5991254000.5329
1.6054255000.5056
1.6117256000.5136
1.6180257000.5265
1.6243258000.541
1.6306259000.5556
1.6369260000.508
1.6432261000.5146
1.6495262000.5323
1.6558263000.5395
1.6620264000.5185
1.6683265000.5197
1.6746266000.5137
1.6809267000.5265
1.6872268000.5256
1.6935269000.5253
1.6998270000.5158
1.7061271000.5293
1.7124272000.4998
1.7187273000.5057
1.7250274000.5114
1.7313275000.5037
1.7376276000.5432
1.7439277000.5529
1.7502278000.5301
1.7565279000.5329
1.7628280000.524
1.7691281000.5289
1.7754282000.5178
1.7817283000.5089
1.7880284000.5116
1.7943285000.5219
1.8006286000.5241
1.8068287000.4835
1.8131288000.5066
1.8194289000.5424
1.8257290000.5409
1.8320291000.4875
1.8383292000.5012
1.8446293000.5239
1.8509294000.5553
1.8572295000.5021
1.8635296000.4949
1.8698297000.4939
1.8761298000.5311
1.8824299000.5083
1.8887300000.4924
1.8950301000.5095
1.9013302000.5125
1.9076303000.4866
1.9139304000.511
1.9202305000.4887
1.9265306000.4958
1.9328307000.5005
1.9391308000.4888
1.9454309000.5259
1.9516310000.5166
1.9579311000.5219
1.9642312000.5173
1.9705313000.5248
1.9768314000.5387
1.9831315000.4897
1.9894316000.5028
1.9957317000.5272
2.0020318000.5201
2.0083319000.479
2.0146320000.5329
2.0209321000.4709
2.0272322000.4628
2.0335323000.4479
2.0398324000.4616
2.0461325000.4806
2.0524326000.434
2.0587327000.4469
2.0650328000.483
2.0713329000.4439
2.0776330000.4457
2.0839331000.4516
2.0902332000.464
2.0964333000.4403
2.1027334000.4579
2.1090335000.4603
2.1153336000.4454
2.1216337000.4727
2.1279338000.4453
2.1342339000.4698
2.1405340000.456
2.1468341000.4414
2.1531342000.4608
2.1594343000.473
2.1657344000.4579
2.1720345000.4574
2.1783346000.4483
2.1846347000.4641
2.1909348000.4397
2.1972349000.47
2.2035350000.4493
2.2098351000.4673
2.2161352000.4298
2.2224353000.4629
2.2287354000.4571
2.2350355000.4531
2.2412356000.4595
2.2475357000.4294
2.2538358000.4765
2.2601359000.4744
2.2664360000.4651
2.2727361000.451
2.2790362000.4391
2.2853363000.461
2.2916364000.4595
2.2979365000.4329
2.3042366000.4547
2.3105367000.4731
2.3168368000.4666
2.3231369000.4581
2.3294370000.4633
2.3357371000.4755
2.3420372000.4712
2.3483373000.4478
2.3546374000.4519
2.3609375000.4486
2.3672376000.4795
2.3735377000.4525
2.3798378000.4664
2.3860379000.4523
2.3923380000.4481
2.3986381000.4487
2.4049382000.4496
2.4112383000.4609
2.4175384000.4344
2.4238385000.4464
2.4301386000.4308
2.4364387000.4461
2.4427388000.4323
2.4490389000.4279
2.4553390000.4662
2.4616391000.4537
2.4679392000.4344
2.4742393000.4732
2.4805394000.4616
2.4868395000.4439
2.4931396000.4331
2.4994397000.4486
2.5057398000.4696
2.5120399000.4562
2.5183400000.4669
2.5246401000.4554
2.5308402000.4449
2.5371403000.447
2.5434404000.4963
2.5497405000.4613
2.5560406000.4411
2.5623407000.4549
2.5686408000.4557
2.5749409000.4752
2.5812410000.4617
2.5875411000.4686
2.5938412000.4548
2.6001413000.4683
2.6064414000.4393
2.6127415000.4574
2.6190416000.4602
2.6253417000.4835
2.6316418000.4856
2.6379419000.4442
2.6442420000.4581
2.6505421000.4754
2.6568422000.4749
2.6631423000.4529
2.6694424000.4524
2.6756425000.45
2.6819426000.4567
2.6882427000.4586
2.6945428000.4562
2.7008429000.4526
2.7071430000.484
2.7134431000.4359
2.7197432000.4642
2.7260433000.4446
2.7323434000.4356
2.7386435000.4909
2.7449436000.4916
2.7512437000.4761
2.7575438000.4666
2.7638439000.4763
2.7701440000.4745
2.7764441000.4637
2.7827442000.4437
2.7890443000.4724
2.7953444000.4692
2.8016445000.4569
2.8079446000.4533
2.8142447000.4621
2.8204448000.4744
2.8267449000.4951
2.8330450000.4443
2.8393451000.4514
2.8456452000.4848
2.8519453000.4941
2.8582454000.4596
2.8645455000.4481
2.8708456000.454
2.8771457000.4732
2.8834458000.4711
2.8897459000.4582
2.8960460000.4792
2.9023461000.4634
2.9086462000.441
2.9149463000.4675
2.9212464000.4513
2.9275465000.4505
2.9338466000.4592
2.9401467000.4657
2.9464468000.4891
2.9527469000.4693
2.9590470000.4814
2.9652471000.4828
2.9715472000.4899
2.9778473000.4939
2.9841474000.4507
2.9904475000.4679
2.9967476000.49

</details>

Framework Versions

  • —Python: 3.12.12
  • —Sentence Transformers: 5.1.2
  • —Transformers: 4.57.1
  • —PyTorch: 2.9.0+cu128
  • —Accelerate: 1.12.0
  • —Datasets: 4.4.1
  • —Tokenizers: 0.22.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",
}
MultipleNegativesRankingLoss
bibtex
@misc{henderson2017efficient,
    title={Efficient Natural Language Response Suggestion for Smart Reply},
    author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
    year={2017},
    eprint={1705.00652},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}

<!--

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