CoolFace
Modelpublic

kamkol/ab_testing_finetuned_2_arctic_ft-711c8143-04b7-4ecb-8e01-8847274c1d9c

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

SentenceTransformer based on Snowflake/snowflake-arctic-embed-l

This is a sentence-transformers model finetuned from Snowflake/snowflake-arctic-embed-l. It maps sentences & paragraphs to a 1024-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: Snowflake/snowflake-arctic-embed-l <!-- at revision d8fb21ca8d905d2832ee8b96c894d3298964346b -->
  • —Maximum Sequence Length: 512 tokens
  • —Output Dimensionality: 1024 dimensions
  • —Similarity Function: Cosine Similarity <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel 
  (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("kamkol/ab_testing_finetuned_2_arctic_ft-711c8143-04b7-4ecb-8e01-8847274c1d9c")
# Run inference
sentences = [
    'What are the estimated monthly rates of first-party cookie deletion among U.S. Internet users according to comScore and Anirban Dasgupta et al.?',
    'Tracking on the Web: Privacy and Security Implication [23]. \nCookie deletion rates are hard to estimate.  Using a panel \nof 400,000 home PCs, comScore estimated that 31 percent of \nU.S. Internet users cleared their first -party cookies during a \nmonth [24].   Anirban Dasgupta etal. [25] showed similar \nlevels of cookie clearing (25% -33% monthly, depending on \ngeography) based on the Yahoo toolbar.  Such rates imply \nthat long studies (e.g., months), where users are identified \nbased on cookies could have a selection bi as problem – as',
    'both directions: when we show fewer ads, users increase \nengagement, and when we show more ads, users decrease \nengagement or abandon. If users abandon at different rates \nbetween Control and Treatment, the remaining surviving \npopulation is different, and the conclusions can be \ncompletely wrong.  For example, the users generating the \nmost revenue may get annoyed with more ads and abandon, \nleaving a surviving population with lower Revenue/user. \n3. Not taking into account selection bias [34].  \n In an online longitudinal study that relies on cookies for \nidentification, there is likely to be a significant attrition due',
]
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
MetricValue
cosine_accuracy@10.5
cosine_accuracy@30.7419
cosine_accuracy@50.7903
cosine_accuracy@100.8629
cosine_precision@10.5
cosine_precision@30.2473
cosine_precision@50.1581
cosine_precision@100.0863
cosine_recall@10.5
cosine_recall@30.7419
cosine_recall@50.7903
cosine_recall@100.8629
cosine_ndcg@100.6895
cosine_mrr@100.6334
cosine_map@1000.6397

<!--

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: 250 training samples
  • —Columns: <code>sentence0</code> and <code>sentence1</code>
  • —Approximate statistics based on the first 250 samples: | | sentence0 | sentence1 | |:--------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------| | type | string | string | | details | <ul><li>min: 5 tokens</li><li>mean: 24.08 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>min: 13 tokens</li><li>mean: 123.64 tokens</li><li>max: 151 tokens</li></ul> |
  • —Samples: | sentence0 | sentence1 | |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | <code>What are some common pitfalls associated with long-term online controlled experiments as discussed by Dmitriev et al. in their IEEE Big Data paper?</code> | <code>Appears in IEEE Big Data. Paper available at http://bit.ly/expLongTerm <br> <br>Pitfalls of Long-Term Online Controlled Experiments <br>Pavel Dmitriev, Brian Frasca, Somit Gupta, Ron Kohavi, Garnet Vaz <br>Analysis and Experimentation <br>Microsoft Corporation <br>Redmond, WA 98052, USA <br>{padmitri,brianfra,sogupta,ronnyk,gavaz}@microsoft.com <br> <br> <br>Abstract—Online controlled experiments (e.g., A/B tests) are <br>now regularly used to guide product development and <br>accelerate innovation in software. Product ideas are evaluated</code> | | <code>What are online controlled experiments used for in product development according to the context?</code> | <code>Analysis and Experimentation <br>Microsoft Corporation <br>Redmond, WA 98052, USA <br>{padmitri,brianfra,sogupta,ronnyk,gavaz}@microsoft.com <br> <br> <br>Abstract—Online controlled experiments (e.g., A/B tests) are <br>now regularly used to guide product development and <br>accelerate innovation in software. Product ideas are evaluated <br>as scientific hypotheses, and tested on web sit es, mobile <br>applications, desktop applications, services, and operating <br>system features. <br>One of the key challenges for organizations that run <br>controlled experiments is to select an Overall Evaluation</code> | | <code>What is one of the key challenges organizations face when running online controlled experiments?</code> | <code>Abstract—Online controlled experiments (e.g., A/B tests) are <br>now regularly used to guide product development and <br>accelerate innovation in software. Product ideas are evaluated <br>as scientific hypotheses, and tested on web sit es, mobile <br>applications, desktop applications, services, and operating <br>system features. <br>One of the key challenges for organizations that run <br>controlled experiments is to select an Overall Evaluation <br>Criterion (OEC), i.e., the criterion by which to evaluat e the <br>different variants. The difficulty is that short -term changes to <br>metrics may not predict the long-term impact of a change. For</code> |
  • —Loss: <code>MatryoshkaLoss</code> with these parameters:
json
  {
      "loss": "MultipleNegativesRankingLoss",
      "matryoshka_dims": [
          1024,
          768,
          512,
          256,
          128
      ],
      "matryoshka_weights": [
          1,
          1,
          1,
          1,
          1
      ],
      "n_dims_per_step": -1
  }

Training Hyperparameters

Non-Default Hyperparameters
  • —eval_strategy: steps
  • —per_device_train_batch_size: 16
  • —per_device_eval_batch_size: 16
  • —num_train_epochs: 100
  • —multi_dataset_batch_sampler: round_robin
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: 16
  • —per_device_eval_batch_size: 16
  • —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: 5e-05
  • —weight_decay: 0.0
  • —adam_beta1: 0.9
  • —adam_beta2: 0.999
  • —adam_epsilon: 1e-08
  • —max_grad_norm: 1
  • —num_train_epochs: 100
  • —max_steps: -1
  • —lr_scheduler_type: linear
  • —lr_scheduler_kwargs: {}
  • —warmup_ratio: 0.0
  • —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
  • —use_ipex: False
  • —bf16: False
  • —fp16: False
  • —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}
  • —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: 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
  • —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: batch_sampler
  • —multi_dataset_batch_sampler: round_robin

</details>

Training Logs

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

EpochStepTraining Losscosine_ndcg@10
1.016-0.6381
2.032-0.6800
3.048-0.6948
3.12550-0.6967
4.064-0.6999
5.080-0.7013
6.096-0.6831
6.25100-0.6885
7.0112-0.6893
8.0128-0.7012
9.0144-0.6893
9.375150-0.6900
10.0160-0.6860
11.0176-0.6840
12.0192-0.7025
12.5200-0.6775
13.0208-0.6786
14.0224-0.7115
15.0240-0.7309
15.625250-0.7355
16.0256-0.7339
17.0272-0.7246
18.0288-0.7249
18.75300-0.7244
19.0304-0.7183
20.0320-0.6952
21.0336-0.6968
21.875350-0.7299
22.0352-0.7278
23.0368-0.7122
24.0384-0.6990
25.0400-0.6857
26.0416-0.6824
27.0432-0.6905
28.0448-0.6494
28.125450-0.6461
29.0464-0.6747
30.0480-0.6761
31.0496-0.6958
31.255000.84590.6855
32.0512-0.6940
33.0528-0.7156
34.0544-0.7284
34.375550-0.7281
35.0560-0.7288
36.0576-0.6940
37.0592-0.6992
37.5600-0.6948
38.0608-0.6991
39.0624-0.6931
40.0640-0.6893
40.625650-0.6905
41.0656-0.6960
42.0672-0.7133
43.0688-0.7137
43.75700-0.7055
44.0704-0.7077
45.0720-0.7215
46.0736-0.7056
46.875750-0.7030
47.0752-0.6996
48.0768-0.6985
49.0784-0.6878
50.0800-0.7042
51.0816-0.7097
52.0832-0.7067
53.0848-0.6977
53.125850-0.6972
54.0864-0.6999
55.0880-0.6963
56.0896-0.7006
56.25900-0.6971
57.0912-0.7008
58.0928-0.7051
59.0944-0.7034
59.375950-0.7031
60.0960-0.6978
61.0976-0.6923
62.0992-0.6966
62.510000.22270.6989
63.01008-0.6941
64.01024-0.7020
65.01040-0.7024
65.6251050-0.7050
66.01056-0.7079
67.01072-0.7059
68.01088-0.7200
68.751100-0.7207
69.01104-0.7177
70.01120-0.7008
71.01136-0.6948
71.8751150-0.6883
72.01152-0.6858
73.01168-0.6894
74.01184-0.6961
75.01200-0.6934
76.01216-0.6894
77.01232-0.6830
78.01248-0.6892
78.1251250-0.6903
79.01264-0.6903
80.01280-0.6911
81.01296-0.7021
81.251300-0.7032
82.01312-0.7032
83.01328-0.6984
84.01344-0.6872
84.3751350-0.6863
85.01360-0.6863
86.01376-0.6879
87.01392-0.6909
87.51400-0.6910
88.01408-0.6911
89.01424-0.6894
90.01440-0.6892
90.6251450-0.6952
91.01456-0.6954
92.01472-0.6924
93.01488-0.6895
93.7515000.17830.6895
94.01504-0.6895
95.01520-0.6895
96.01536-0.6895
96.8751550-0.6895
97.01552-0.6895
98.01568-0.6895
99.01584-0.6895
100.01600-0.6895

</details>

Framework Versions

  • —Python: 3.11.12
  • —Sentence Transformers: 4.1.0
  • —Transformers: 4.51.3
  • —PyTorch: 2.6.0+cu124
  • —Accelerate: 1.6.0
  • —Datasets: 3.6.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",
}
MatryoshkaLoss
bibtex
@misc{kusupati2024matryoshka,
    title={Matryoshka Representation Learning},
    author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
    year={2024},
    eprint={2205.13147},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}
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. -->