CoolFace
Modelpublic

GozdeA/tennis-multi-return-catboost-v3

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

SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2

This is a sentence-transformers model finetuned from sentence-transformers/all-MiniLM-L6-v2. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: sentence-transformers/all-MiniLM-L6-v2 <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
  • Maximum Sequence Length: 256 tokens
  • Output Dimensionality: 384 dimensions
  • Similarity Function: Cosine Similarity <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': '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()
)

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("GozdeA/tennis-multi-return-catboost-v3")
# Run inference
sentences = [
    'What is the break point conversion for Sinner?',
    'Show me how many winners',
    'service for Sinner?',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 384]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.5908, 0.2891],
#         [0.5908, 1.0000, 0.4187],
#         [0.2891, 0.4187, 1.0000]])

<!--

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 Dataset

Unnamed Dataset
  • Size: 11,641 training samples
  • Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
  • Approximate statistics based on the first 1000 samples: | | anchor | positive | negative | |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------| | type | string | string | string | | details | <ul><li>min: 4 tokens</li><li>mean: 10.77 tokens</li><li>max: 26 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 8.62 tokens</li><li>max: 26 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 10.51 tokens</li><li>max: 26 tokens</li></ul> |
  • Samples: | anchor | positive | negative | |:----------------------------------------------------------------------|:--------------------------------------------------------|:-----------------------------------------------------| | <code>What about he's odds?</code> | <code>momentum shift?</code> | <code>What happened to he?</code> | | <code>How far has Nardi advanced at Wimbledon in his best run?</code> | <code>how many titles?</code> | <code>What is the what court for he?</code> | | <code>How effective is Swiatek's return in the match?</code> | <code>How effective is he's return in the match?</code> | <code>How effective is his return in the game</code> |
  • Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
json
  {
      "scale": 20.0,
      "similarity_fct": "cos_sim"
  }

Evaluation Dataset

Unnamed Dataset
  • Size: 2,911 evaluation samples
  • Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
  • Approximate statistics based on the first 1000 samples: | | anchor | positive | negative | |:--------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:----------------------------------------------------------------------------------| | type | string | string | string | | details | <ul><li>min: 4 tokens</li><li>mean: 11.06 tokens</li><li>max: 26 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 8.7 tokens</li><li>max: 21 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 10.53 tokens</li><li>max: 28 tokens</li></ul> |
  • Samples: | anchor | positive | negative | |:------------------------------------------|:------------------------------------|:---------------------------------------------| | <code>what venue</code> | <code>Show me what venue</code> | <code>venue time?</code> | | <code>2025 for he?</code> | <code>how many titles?</code> | <code>Show me which court</code> | | <code>What about Djokovic's debut?</code> | <code>What about he's debut?</code> | <code>What about Djokovic's momentum?</code> |
  • Loss: <code>MultipleNegativesRankingLoss</code> with these parameters:
json
  {
      "scale": 20.0,
      "similarity_fct": "cos_sim"
  }

Training Hyperparameters

Non-Default Hyperparameters
  • per_device_train_batch_size: 16
  • learning_rate: 2e-05
  • num_train_epochs: 15
  • warmup_ratio: 0.1
  • fp16: 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: 16
  • 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: 15
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: None
  • warmup_ratio: 0.1
  • 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: 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: False
  • 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.0687505.002
0.13741004.122
0.20601503.3282
0.27472002.5309
0.34342501.9021
0.41213001.7012
0.48083501.4657
0.54954001.433
0.61814501.5156
0.68685001.3941
0.75555501.2544
0.82426001.1585
0.89296501.0916
0.96157000.9743
1.03027501.0443
1.09898000.9942
1.16768501.0508
1.23639000.9211
1.30499500.9522
1.373610000.804
1.442310500.8645
1.511011000.8335
1.579711500.7337
1.648412000.7857
1.717012500.8482
1.785713000.7211
1.854413500.7442
1.923114000.7557
1.991814500.7323
2.060415000.677
2.129115500.6635
2.197816000.71
2.266516500.6193
2.335217000.6792
2.403817500.7151
2.472518000.6825
2.541218500.6452
2.609919000.666
2.678619500.5733
2.747320000.5546
2.815920500.6443
2.884621000.6835
2.953321500.6499
3.022022000.6229
3.090722500.6151
3.159323000.539
3.228023500.5997
3.296724000.571
3.365424500.6257
3.434125000.6222
3.502725500.6102
3.571426000.6575
3.640126500.5844
3.708827000.5439
3.777527500.5528
3.846228000.5894
3.914828500.6576
3.983529000.6063
4.052229500.5556
4.120930000.5872
4.189630500.544
4.258231000.5114
4.326931500.587
4.395632000.5392
4.464332500.5846
4.533033000.6077
4.601633500.6597
4.670334000.5425
4.739034500.5493
4.807735000.5291
4.876435500.5145
4.945136000.5534
5.013736500.5018
5.082437000.4948
5.151137500.553
5.219838000.5772
5.288538500.5264
5.357139000.5516
5.425839500.5303
5.494540000.5213
5.563240500.5558
5.631941000.4956
5.700541500.6035
5.769242000.5706
5.837942500.4922
5.906643000.5965
5.975343500.5143
6.044044000.5798
6.112644500.5219
6.181345000.5803
6.2545500.5035
6.318746000.5534
6.387446500.546
6.456047000.525
6.524747500.4751
6.593448000.5085
6.662148500.5282
6.730849000.5845
6.799549500.5153
6.868150000.5399
6.936850500.5532
7.005551000.5005
7.074251500.5273
7.142952000.5212
7.211552500.5245
7.280253000.5075
7.348953500.5687
7.417654000.4674
7.486354500.5115
7.554955000.4938
7.623655500.5059
7.692356000.5065
7.761056500.5252
7.829757000.4852
7.898457500.48
7.967058000.5503
8.035758500.5164
8.104459000.5756
8.173159500.5175
8.241860000.5033
8.310460500.4992
8.379161000.5299
8.447861500.4862
8.516562000.548
8.585262500.454
8.653863000.4941
8.722563500.5088
8.791264000.5065
8.859964500.4921
8.928665000.4756
8.997365500.5258
9.065966000.4658
9.134666500.4894
9.203367000.5097
9.272067500.493
9.340768000.5311
9.409368500.5157
9.478069000.5142
9.546769500.4664
9.615470000.528
9.684170500.5645
9.752771000.5214
9.821471500.4777
9.890172000.5449
9.958872500.492
10.027573000.4591
10.096273500.4576
10.164874000.4692
10.233574500.5415
10.302275000.4803
10.370975500.5487
10.439676000.5706
10.508276500.4815
10.576977000.4585
10.645677500.4861
10.714378000.4247
10.783078500.4906
10.851679000.5371
10.920379500.5393
10.989080000.4788
11.057780500.5038
11.126481000.4838
11.195181500.515
11.263782000.5299
11.332482500.5044
11.401183000.5045
11.469883500.465
11.538584000.5253
11.607184500.4517
11.675885000.5048
11.744585500.4733
11.813286000.47
11.881986500.4552
11.950587000.4203
12.019287500.395
12.087988000.5411
12.156688500.4911
12.225389000.4641
12.294089500.4608
12.362690000.4839
12.431390500.4491
12.591000.517
12.568791500.5031
12.637492000.4869
12.706092500.4856
12.774793000.4754
12.843493500.5167
12.912194000.5004
12.980894500.5293
13.049595000.4566
13.118195500.477
13.186896000.4501
13.255596500.4791
13.324297000.4746
13.392997500.4702
13.461598000.469
13.530298500.5046
13.598999000.4895
13.667699500.5223
13.7363100000.4245
13.8049100500.4701
13.8736101000.4548
13.9423101500.4998
14.0110102000.4345
14.0797102500.4371
14.1484103000.5009
14.2170103500.4816
14.2857104000.4665
14.3544104500.5047
14.4231105000.5132
14.4918105500.473
14.5604106000.4387
14.6291106500.4775
14.6978107000.4522
14.7665107500.4807
14.8352108000.482
14.9038108500.4625
14.9725109000.5052

</details>

Framework Versions

  • Python: 3.12.12
  • Sentence Transformers: 5.0.0
  • Transformers: 4.57.6
  • PyTorch: 2.10.0+cu128
  • Accelerate: 1.13.0
  • Datasets: 4.0.0
  • Tokenizers: 0.22.2

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