radoslavralev commited on
Commit
ecf976e
·
verified ·
1 Parent(s): 35a0cf1

Add new SentenceTransformer model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,479 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - biencoder
7
+ - sentence-transformers
8
+ - text-classification
9
+ - sentence-pair-classification
10
+ - semantic-similarity
11
+ - semantic-search
12
+ - retrieval
13
+ - reranking
14
+ - generated_from_trainer
15
+ - dataset_size:49642
16
+ - loss:ArcFaceInBatchLoss
17
+ base_model: sentence-transformers/all-MiniLM-L6-v2
18
+ widget:
19
+ - source_sentence: '"How much would I need to narrate a ""Let''s Play"" video in order
20
+ to make money from it on YouTube?"'
21
+ sentences:
22
+ - How much money do people make from YouTube videos with 1 million views?
23
+ - '"How much would I need to narrate a ""Let''s Play"" video in order to make money
24
+ from it on YouTube?"'
25
+ - '"Does the sentence, ""I expect to be disappointed,"" make sense?"'
26
+ - source_sentence: '"I appreciate that.'
27
+ sentences:
28
+ - '"How is the Mariner rewarded in ""The Rime of the Ancient Mariner"" by Samuel
29
+ Taylor Coleridge?"'
30
+ - '"I appreciate that.'
31
+ - I can appreciate that.
32
+ - source_sentence: '"""It is very easy to defeat someone, but too hard to win some
33
+ one"". What does the previous sentence mean?"'
34
+ sentences:
35
+ - '"How can you use the word ""visceral"" in a sentence?"'
36
+ - '"""It is very easy to defeat someone, but too hard to win some one"". What does
37
+ the previous sentence mean?"'
38
+ - '"What does ""The loudest one in the room is the weakest one in the room."" Mean?"'
39
+ - source_sentence: '" We condemn this raid which is in our view illegal and morally
40
+ and politically unjustifiable , " London-based NCRI official Ali Safavi told Reuters
41
+ by telephone .'
42
+ sentences:
43
+ - 'London-based NCRI official Ali Safavi told Reuters : " We condemn this raid ,
44
+ which is in our view illegal and morally and politically unjustifiable . "'
45
+ - The social awkwardness is complicated by the fact that Marianne is a white girl
46
+ living with a black family .
47
+ - art's cause, this in my opinion
48
+ - source_sentence: '"If you click ""like"" on an old post that someone made on your
49
+ wall yet you''re no longer Facebook friends, will they still receive a notification?"'
50
+ sentences:
51
+ - '"Is there is any two wheeler having a gear box which has the feature ""automatic
52
+ neutral"" when the engine is off while it is in gear?"'
53
+ - '"If you click ""like"" on an old post that someone made on your wall yet you''re
54
+ no longer Facebook friends, will they still receive a notification?"'
55
+ - '"If your teenage son posted ""La commedia e finita"" on his Facebook wall, would
56
+ you be concerned?"'
57
+ datasets:
58
+ - redis/langcache-sentencepairs-v2
59
+ pipeline_tag: sentence-similarity
60
+ library_name: sentence-transformers
61
+ metrics:
62
+ - cosine_accuracy@1
63
+ - cosine_precision@1
64
+ - cosine_recall@1
65
+ - cosine_ndcg@10
66
+ - cosine_mrr@1
67
+ - cosine_map@100
68
+ - cosine_auc_precision_cache_hit_ratio
69
+ - cosine_auc_similarity_distribution
70
+ model-index:
71
+ - name: Redis fine-tuned BiEncoder model for semantic caching on LangCache
72
+ results:
73
+ - task:
74
+ type: custom-information-retrieval
75
+ name: Custom Information Retrieval
76
+ dataset:
77
+ name: test
78
+ type: test
79
+ metrics:
80
+ - type: cosine_accuracy@1
81
+ value: 0.5761591648590022
82
+ name: Cosine Accuracy@1
83
+ - type: cosine_precision@1
84
+ value: 0.5761591648590022
85
+ name: Cosine Precision@1
86
+ - type: cosine_recall@1
87
+ value: 0.5588122182164516
88
+ name: Cosine Recall@1
89
+ - type: cosine_ndcg@10
90
+ value: 0.7618942742503089
91
+ name: Cosine Ndcg@10
92
+ - type: cosine_mrr@1
93
+ value: 0.5761591648590022
94
+ name: Cosine Mrr@1
95
+ - type: cosine_map@100
96
+ value: 0.7107009769861719
97
+ name: Cosine Map@100
98
+ - type: cosine_auc_precision_cache_hit_ratio
99
+ value: 0.3491200519822629
100
+ name: Cosine Auc Precision Cache Hit Ratio
101
+ - type: cosine_auc_similarity_distribution
102
+ value: 0.1635457705044361
103
+ name: Cosine Auc Similarity Distribution
104
+ ---
105
+
106
+ # Redis fine-tuned BiEncoder model for semantic caching on LangCache
107
+
108
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) on the [LangCache Sentence Pairs (all)](https://huggingface.co/datasets/redis/langcache-sentencepairs-v2) dataset. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for sentence pair similarity.
109
+
110
+ ## Model Details
111
+
112
+ ### Model Description
113
+ - **Model Type:** Sentence Transformer
114
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
115
+ - **Maximum Sequence Length:** 100 tokens
116
+ - **Output Dimensionality:** 384 dimensions
117
+ - **Similarity Function:** Cosine Similarity
118
+ - **Training Dataset:**
119
+ - [LangCache Sentence Pairs (all)](https://huggingface.co/datasets/redis/langcache-sentencepairs-v2)
120
+ - **Language:** en
121
+ - **License:** apache-2.0
122
+
123
+ ### Model Sources
124
+
125
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
126
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
127
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
128
+
129
+ ### Full Model Architecture
130
+
131
+ ```
132
+ SentenceTransformer(
133
+ (0): Transformer({'max_seq_length': 100, 'do_lower_case': False, 'architecture': 'BertModel'})
134
+ (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})
135
+ (2): Normalize()
136
+ )
137
+ ```
138
+
139
+ ## Usage
140
+
141
+ ### Direct Usage (Sentence Transformers)
142
+
143
+ First install the Sentence Transformers library:
144
+
145
+ ```bash
146
+ pip install -U sentence-transformers
147
+ ```
148
+
149
+ Then you can load this model and run inference.
150
+ ```python
151
+ from sentence_transformers import SentenceTransformer
152
+
153
+ # Download from the 🤗 Hub
154
+ model = SentenceTransformer("redis/langcache-embed-v3-mini")
155
+ # Run inference
156
+ sentences = [
157
+ '"If you click ""like"" on an old post that someone made on your wall yet you\'re no longer Facebook friends, will they still receive a notification?"',
158
+ '"If you click ""like"" on an old post that someone made on your wall yet you\'re no longer Facebook friends, will they still receive a notification?"',
159
+ '"If your teenage son posted ""La commedia e finita"" on his Facebook wall, would you be concerned?"',
160
+ ]
161
+ embeddings = model.encode(sentences)
162
+ print(embeddings.shape)
163
+ # [3, 384]
164
+
165
+ # Get the similarity scores for the embeddings
166
+ similarities = model.similarity(embeddings, embeddings)
167
+ print(similarities)
168
+ # tensor([[1.0000, 1.0000, 0.3764],
169
+ # [1.0000, 1.0000, 0.3764],
170
+ # [0.3764, 0.3764, 1.0000]])
171
+ ```
172
+
173
+ <!--
174
+ ### Direct Usage (Transformers)
175
+
176
+ <details><summary>Click to see the direct usage in Transformers</summary>
177
+
178
+ </details>
179
+ -->
180
+
181
+ <!--
182
+ ### Downstream Usage (Sentence Transformers)
183
+
184
+ You can finetune this model on your own dataset.
185
+
186
+ <details><summary>Click to expand</summary>
187
+
188
+ </details>
189
+ -->
190
+
191
+ <!--
192
+ ### Out-of-Scope Use
193
+
194
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
195
+ -->
196
+
197
+ ## Evaluation
198
+
199
+ ### Metrics
200
+
201
+ #### Custom Information Retrieval
202
+
203
+ * Dataset: `test`
204
+ * Evaluated with <code>ir_evaluator.CustomInformationRetrievalEvaluator</code>
205
+
206
+ | Metric | Value |
207
+ |:-------------------------------------|:-----------|
208
+ | cosine_accuracy@1 | 0.5762 |
209
+ | cosine_precision@1 | 0.5762 |
210
+ | cosine_recall@1 | 0.5588 |
211
+ | **cosine_ndcg@10** | **0.7619** |
212
+ | cosine_mrr@1 | 0.5762 |
213
+ | cosine_map@100 | 0.7107 |
214
+ | cosine_auc_precision_cache_hit_ratio | 0.3491 |
215
+ | cosine_auc_similarity_distribution | 0.1635 |
216
+
217
+ <!--
218
+ ## Bias, Risks and Limitations
219
+
220
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
221
+ -->
222
+
223
+ <!--
224
+ ### Recommendations
225
+
226
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
227
+ -->
228
+
229
+ ## Training Details
230
+
231
+ ### Training Dataset
232
+
233
+ #### LangCache Sentence Pairs (all)
234
+
235
+ * Dataset: [LangCache Sentence Pairs (all)](https://huggingface.co/datasets/redis/langcache-sentencepairs-v2)
236
+ * Size: 132,354 training samples
237
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
238
+ * Approximate statistics based on the first 1000 samples:
239
+ | | anchor | positive | negative |
240
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
241
+ | type | string | string | string |
242
+ | details | <ul><li>min: 4 tokens</li><li>mean: 27.15 tokens</li><li>max: 100 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 26.59 tokens</li><li>max: 100 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 19.39 tokens</li><li>max: 64 tokens</li></ul> |
243
+ * Samples:
244
+ | anchor | positive | negative |
245
+ |:----------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------|
246
+ | <code> What high potential jobs are there other than computer science?</code> | <code> What high potential jobs are there other than computer science?</code> | <code>Why IT or Computer Science jobs are being over rated than other Engineering jobs?</code> |
247
+ | <code> Would India ever be able to develop a missile system like S300 or S400 missile?</code> | <code> Would India ever be able to develop a missile system like S300 or S400 missile?</code> | <code>Should India buy the Russian S400 air defence missile system?</code> |
248
+ | <code> water from the faucet is being drunk by a yellow dog</code> | <code>A yellow dog is drinking water from the faucet</code> | <code>Childlessness is low in Eastern European countries.</code> |
249
+ * Loss: <code>losses.ArcFaceInBatchLoss</code> with these parameters:
250
+ ```json
251
+ {
252
+ "scale": 20.0,
253
+ "similarity_fct": "cos_sim",
254
+ "gather_across_devices": false
255
+ }
256
+ ```
257
+
258
+ ### Evaluation Dataset
259
+
260
+ #### LangCache Sentence Pairs (all)
261
+
262
+ * Dataset: [LangCache Sentence Pairs (all)](https://huggingface.co/datasets/redis/langcache-sentencepairs-v2)
263
+ * Size: 132,354 evaluation samples
264
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
265
+ * Approximate statistics based on the first 1000 samples:
266
+ | | anchor | positive | negative |
267
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
268
+ | type | string | string | string |
269
+ | details | <ul><li>min: 4 tokens</li><li>mean: 27.15 tokens</li><li>max: 100 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 26.59 tokens</li><li>max: 100 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 19.39 tokens</li><li>max: 64 tokens</li></ul> |
270
+ * Samples:
271
+ | anchor | positive | negative |
272
+ |:----------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------|
273
+ | <code> What high potential jobs are there other than computer science?</code> | <code> What high potential jobs are there other than computer science?</code> | <code>Why IT or Computer Science jobs are being over rated than other Engineering jobs?</code> |
274
+ | <code> Would India ever be able to develop a missile system like S300 or S400 missile?</code> | <code> Would India ever be able to develop a missile system like S300 or S400 missile?</code> | <code>Should India buy the Russian S400 air defence missile system?</code> |
275
+ | <code> water from the faucet is being drunk by a yellow dog</code> | <code>A yellow dog is drinking water from the faucet</code> | <code>Childlessness is low in Eastern European countries.</code> |
276
+ * Loss: <code>losses.ArcFaceInBatchLoss</code> with these parameters:
277
+ ```json
278
+ {
279
+ "scale": 20.0,
280
+ "similarity_fct": "cos_sim",
281
+ "gather_across_devices": false
282
+ }
283
+ ```
284
+
285
+ ### Training Hyperparameters
286
+ #### Non-Default Hyperparameters
287
+
288
+ - `eval_strategy`: steps
289
+ - `per_device_train_batch_size`: 512
290
+ - `per_device_eval_batch_size`: 512
291
+ - `gradient_accumulation_steps`: 2
292
+ - `weight_decay`: 0.001
293
+ - `adam_beta2`: 0.98
294
+ - `adam_epsilon`: 1e-06
295
+ - `num_train_epochs`: 2
296
+ - `warmup_ratio`: 0.05
297
+ - `bf16`: True
298
+ - `load_best_model_at_end`: True
299
+ - `optim`: stable_adamw
300
+ - `ddp_find_unused_parameters`: False
301
+ - `push_to_hub`: True
302
+ - `hub_model_id`: redis/langcache-embed-v3-mini
303
+ - `eval_on_start`: True
304
+ - `batch_sampler`: no_duplicates
305
+
306
+ #### All Hyperparameters
307
+ <details><summary>Click to expand</summary>
308
+
309
+ - `overwrite_output_dir`: False
310
+ - `do_predict`: False
311
+ - `eval_strategy`: steps
312
+ - `prediction_loss_only`: True
313
+ - `per_device_train_batch_size`: 512
314
+ - `per_device_eval_batch_size`: 512
315
+ - `per_gpu_train_batch_size`: None
316
+ - `per_gpu_eval_batch_size`: None
317
+ - `gradient_accumulation_steps`: 2
318
+ - `eval_accumulation_steps`: None
319
+ - `torch_empty_cache_steps`: None
320
+ - `learning_rate`: 5e-05
321
+ - `weight_decay`: 0.001
322
+ - `adam_beta1`: 0.9
323
+ - `adam_beta2`: 0.98
324
+ - `adam_epsilon`: 1e-06
325
+ - `max_grad_norm`: 1.0
326
+ - `num_train_epochs`: 2
327
+ - `max_steps`: -1
328
+ - `lr_scheduler_type`: linear
329
+ - `lr_scheduler_kwargs`: {}
330
+ - `warmup_ratio`: 0.05
331
+ - `warmup_steps`: 0
332
+ - `log_level`: passive
333
+ - `log_level_replica`: warning
334
+ - `log_on_each_node`: True
335
+ - `logging_nan_inf_filter`: True
336
+ - `save_safetensors`: True
337
+ - `save_on_each_node`: False
338
+ - `save_only_model`: False
339
+ - `restore_callback_states_from_checkpoint`: False
340
+ - `no_cuda`: False
341
+ - `use_cpu`: False
342
+ - `use_mps_device`: False
343
+ - `seed`: 42
344
+ - `data_seed`: None
345
+ - `jit_mode_eval`: False
346
+ - `bf16`: True
347
+ - `fp16`: False
348
+ - `fp16_opt_level`: O1
349
+ - `half_precision_backend`: auto
350
+ - `bf16_full_eval`: False
351
+ - `fp16_full_eval`: False
352
+ - `tf32`: None
353
+ - `local_rank`: 0
354
+ - `ddp_backend`: None
355
+ - `tpu_num_cores`: None
356
+ - `tpu_metrics_debug`: False
357
+ - `debug`: []
358
+ - `dataloader_drop_last`: False
359
+ - `dataloader_num_workers`: 0
360
+ - `dataloader_prefetch_factor`: None
361
+ - `past_index`: -1
362
+ - `disable_tqdm`: False
363
+ - `remove_unused_columns`: True
364
+ - `label_names`: None
365
+ - `load_best_model_at_end`: True
366
+ - `ignore_data_skip`: False
367
+ - `fsdp`: []
368
+ - `fsdp_min_num_params`: 0
369
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
370
+ - `fsdp_transformer_layer_cls_to_wrap`: None
371
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
372
+ - `parallelism_config`: None
373
+ - `deepspeed`: None
374
+ - `label_smoothing_factor`: 0.0
375
+ - `optim`: stable_adamw
376
+ - `optim_args`: None
377
+ - `adafactor`: False
378
+ - `group_by_length`: False
379
+ - `length_column_name`: length
380
+ - `project`: huggingface
381
+ - `trackio_space_id`: trackio
382
+ - `ddp_find_unused_parameters`: False
383
+ - `ddp_bucket_cap_mb`: None
384
+ - `ddp_broadcast_buffers`: False
385
+ - `dataloader_pin_memory`: True
386
+ - `dataloader_persistent_workers`: False
387
+ - `skip_memory_metrics`: True
388
+ - `use_legacy_prediction_loop`: False
389
+ - `push_to_hub`: True
390
+ - `resume_from_checkpoint`: None
391
+ - `hub_model_id`: redis/langcache-embed-v3-mini
392
+ - `hub_strategy`: every_save
393
+ - `hub_private_repo`: None
394
+ - `hub_always_push`: False
395
+ - `hub_revision`: None
396
+ - `gradient_checkpointing`: False
397
+ - `gradient_checkpointing_kwargs`: None
398
+ - `include_inputs_for_metrics`: False
399
+ - `include_for_metrics`: []
400
+ - `eval_do_concat_batches`: True
401
+ - `fp16_backend`: auto
402
+ - `push_to_hub_model_id`: None
403
+ - `push_to_hub_organization`: None
404
+ - `mp_parameters`:
405
+ - `auto_find_batch_size`: False
406
+ - `full_determinism`: False
407
+ - `torchdynamo`: None
408
+ - `ray_scope`: last
409
+ - `ddp_timeout`: 1800
410
+ - `torch_compile`: False
411
+ - `torch_compile_backend`: None
412
+ - `torch_compile_mode`: None
413
+ - `include_tokens_per_second`: False
414
+ - `include_num_input_tokens_seen`: no
415
+ - `neftune_noise_alpha`: None
416
+ - `optim_target_modules`: None
417
+ - `batch_eval_metrics`: False
418
+ - `eval_on_start`: True
419
+ - `use_liger_kernel`: False
420
+ - `liger_kernel_config`: None
421
+ - `eval_use_gather_object`: False
422
+ - `average_tokens_across_devices`: True
423
+ - `prompts`: None
424
+ - `batch_sampler`: no_duplicates
425
+ - `multi_dataset_batch_sampler`: proportional
426
+ - `router_mapping`: {}
427
+ - `learning_rate_mapping`: {}
428
+
429
+ </details>
430
+
431
+ ### Training Logs
432
+ | Epoch | Step | Validation Loss | test_cosine_ndcg@10 |
433
+ |:-----:|:----:|:---------------:|:-------------------:|
434
+ | 0 | 0 | 0.5769 | 0.7619 |
435
+
436
+
437
+ ### Framework Versions
438
+ - Python: 3.12.3
439
+ - Sentence Transformers: 5.1.1
440
+ - Transformers: 4.57.0
441
+ - PyTorch: 2.8.0+cu128
442
+ - Accelerate: 1.10.1
443
+ - Datasets: 4.1.1
444
+ - Tokenizers: 0.22.1
445
+
446
+ ## Citation
447
+
448
+ ### BibTeX
449
+
450
+ #### Sentence Transformers
451
+ ```bibtex
452
+ @inproceedings{reimers-2019-sentence-bert,
453
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
454
+ author = "Reimers, Nils and Gurevych, Iryna",
455
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
456
+ month = "11",
457
+ year = "2019",
458
+ publisher = "Association for Computational Linguistics",
459
+ url = "https://arxiv.org/abs/1908.10084",
460
+ }
461
+ ```
462
+
463
+ <!--
464
+ ## Glossary
465
+
466
+ *Clearly define terms in order to be accessible across audiences.*
467
+ -->
468
+
469
+ <!--
470
+ ## Model Card Authors
471
+
472
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
473
+ -->
474
+
475
+ <!--
476
+ ## Model Card Contact
477
+
478
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
479
+ -->
config.json CHANGED
@@ -4,7 +4,7 @@
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
6
  "classifier_dropout": null,
7
- "dtype": "bfloat16",
8
  "gradient_checkpointing": false,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
 
4
  ],
5
  "attention_probs_dropout_prob": 0.1,
6
  "classifier_dropout": null,
7
+ "dtype": "float32",
8
  "gradient_checkpointing": false,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.1",
4
+ "transformers": "4.57.0",
5
+ "pytorch": "2.8.0+cu128"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:544b605fdcc7a5c57b7c4b3af9900b0d2e90a6a1ee38679483821ffdd73eb645
3
- size 45437864
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22301df8a57c3981b4c040d6fc519aaf20e7b7936910eaf29636e26c701d6b92
3
+ size 90864192
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 100,
3
+ "do_lower_case": false
4
+ }