LamaDiab commited on
Commit
99f8f81
·
verified ·
1 Parent(s): 23c5fc2

Updating model weights

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,426 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
  <br>features:
1
  <br>modern and attractive design: the doll has a stylish and modern design that suits the tastes of children of different ages.
2
  <br>long and colorful hair: long and colorful hair gives the doll a distinctive and beautiful look, enhancing the possibilities of play and creativity.
3
  <br>wide range of clothes: the game has a large assortment of clothes that allow children to choose the appropriate outfits for the doll character according to their imagination.
4
  <br>multiple accessories: it comes with various accessories that add a touch of distinction and elegance to the doll, allowing to experiment with different styles.
5
  <br>stimulate creativity and imagination: the game helps enhance children's imagination by...</code> | <code>kids</code> |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:169967
9
+ - loss:MultipleNegativesSymmetricRankingLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: blue dianne
13
+ sentences:
14
+ - soap
15
+ - maximize the freshness of your food for 12 hours with the blue dianne thermal
16
+ bag. its triple compartments, spacious storage, heat resistance, and 100% leakproof
17
+ design will keep it fresh. this bpa-free and pvc-free bag is also 100% non-toxic
18
+ and comes with a 3-month guarantee. ideal for everyday food storage.
19
+ - trolley backpack coral high colors 17 l 3 zippers 23977
20
+ - source_sentence: the forty-fifth minute
21
+ sentences:
22
+ - 'literature book '
23
+ - turkish dress.
24
+ - the making of modern middle
25
+ - source_sentence: snowflake pralines & cream
26
+ sentences:
27
+ - smoked turkey sandwich
28
+ - walnut cupcake
29
+ - chicken burrito
30
+ - source_sentence: amytis indigo cushion
31
+ sentences:
32
+ - christian lacroix cushion
33
+ - sealy boats 300 tc cotton bedsheet
34
+ - boys lunch bag
35
+ - source_sentence: hiit biker shorts - black
36
+ sentences:
37
+ - sweet pastry
38
+ - black shorts
39
+ - winter slippers for ladies christmas themed
40
+ pipeline_tag: sentence-similarity
41
+ library_name: sentence-transformers
42
+ metrics:
43
+ - cosine_accuracy
44
+ model-index:
45
+ - name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
46
+ results:
47
+ - task:
48
+ type: triplet
49
+ name: Triplet
50
+ dataset:
51
+ name: Unknown
52
+ type: unknown
53
+ metrics:
54
+ - type: cosine_accuracy
55
+ value: 0.9453626275062561
56
+ name: Cosine Accuracy
57
+ ---
58
+
59
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
60
+
61
+ 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). 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.
62
+
63
+ ## Model Details
64
+
65
+ ### Model Description
66
+ - **Model Type:** Sentence Transformer
67
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
68
+ - **Maximum Sequence Length:** 256 tokens
69
+ - **Output Dimensionality:** 384 dimensions
70
+ - **Similarity Function:** Cosine Similarity
71
+ <!-- - **Training Dataset:** Unknown -->
72
+ <!-- - **Language:** Unknown -->
73
+ <!-- - **License:** Unknown -->
74
+
75
+ ### Model Sources
76
+
77
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
78
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
79
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
80
+
81
+ ### Full Model Architecture
82
+
83
+ ```
84
+ SentenceTransformer(
85
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
86
+ (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})
87
+ (2): Normalize()
88
+ )
89
+ ```
90
+
91
+ ## Usage
92
+
93
+ ### Direct Usage (Sentence Transformers)
94
+
95
+ First install the Sentence Transformers library:
96
+
97
+ ```bash
98
+ pip install -U sentence-transformers
99
+ ```
100
+
101
+ Then you can load this model and run inference.
102
+ ```python
103
+ from sentence_transformers import SentenceTransformer
104
+
105
+ # Download from the 🤗 Hub
106
+ model = SentenceTransformer("LamaDiab/V2MiniLM-SemanticEngine")
107
+ # Run inference
108
+ sentences = [
109
+ 'hiit biker shorts - black',
110
+ 'black shorts',
111
+ 'winter slippers for ladies christmas themed',
112
+ ]
113
+ embeddings = model.encode(sentences)
114
+ print(embeddings.shape)
115
+ # [3, 384]
116
+
117
+ # Get the similarity scores for the embeddings
118
+ similarities = model.similarity(embeddings, embeddings)
119
+ print(similarities)
120
+ # tensor([[ 1.0000, 0.6842, -0.0901],
121
+ # [ 0.6842, 1.0000, -0.0166],
122
+ # [-0.0901, -0.0166, 1.0000]])
123
+ ```
124
+
125
+ <!--
126
+ ### Direct Usage (Transformers)
127
+
128
+ <details><summary>Click to see the direct usage in Transformers</summary>
129
+
130
+ </details>
131
+ -->
132
+
133
+ <!--
134
+ ### Downstream Usage (Sentence Transformers)
135
+
136
+ You can finetune this model on your own dataset.
137
+
138
+ <details><summary>Click to expand</summary>
139
+
140
+ </details>
141
+ -->
142
+
143
+ <!--
144
+ ### Out-of-Scope Use
145
+
146
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
147
+ -->
148
+
149
+ ## Evaluation
150
+
151
+ ### Metrics
152
+
153
+ #### Triplet
154
+
155
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
156
+
157
+ | Metric | Value |
158
+ |:--------------------|:-----------|
159
+ | **cosine_accuracy** | **0.9454** |
160
+
161
+ <!--
162
+ ## Bias, Risks and Limitations
163
+
164
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
165
+ -->
166
+
167
+ <!--
168
+ ### Recommendations
169
+
170
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
171
+ -->
172
+
173
+ ## Training Details
174
+
175
+ ### Training Dataset
176
+
177
+ #### Unnamed Dataset
178
+
179
+ * Size: 169,967 training samples
180
+ * Columns: <code>anchor</code> and <code>positive</code>
181
+ * Approximate statistics based on the first 1000 samples:
182
+ | | anchor | positive |
183
+ |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
184
+ | type | string | string |
185
+ | details | <ul><li>min: 3 tokens</li><li>mean: 8.82 tokens</li><li>max: 237 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 14.99 tokens</li><li>max: 256 tokens</li></ul> |
186
+ * Samples:
187
+ | anchor | positive |
188
+ |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------|
189
+ | <code>orasi barista almond milk is a premium, plant-based milk designed specifically for coffee lovers. crafted to create the perfect froth, it delivers a smooth and creamy texture that enhances the flavor of your lattes, cappuccinos, and other coffee drinks.</code> | <code>groceries</code> |
190
+ | <code>this toy is a "modern fashion" doll, combining beauty and innovation in its design. the doll has long and pink hair that adds a modern and attractive character to it. it comes with a wide variety of clothes and cool accessories that allow children to switch outfits and try different looks.
191
  <br>features:
192
  <br>modern and attractive design: the doll has a stylish and modern design that suits the tastes of children of different ages.
193
  <br>long and colorful hair: long and colorful hair gives the doll a distinctive and beautiful look, enhancing the possibilities of play and creativity.
194
  <br>wide range of clothes: the game has a large assortment of clothes that allow children to choose the appropriate outfits for the doll character according to their imagination.
195
  <br>multiple accessories: it comes with various accessories that add a touch of distinction and elegance to the doll, allowing to experiment with different styles.
196
  <br>stimulate creativity and imagination: the game helps enhance children's imagination by...</code> | <code>kids</code> |
197
+ | <code>zinnia ice box vivid gen.2 - blue</code> | <code>blue ice box</code> |
198
+ * Loss: [<code>MultipleNegativesSymmetricRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativessymmetricrankingloss) with these parameters:
199
+ ```json
200
+ {
201
+ "scale": 20.0,
202
+ "similarity_fct": "cos_sim",
203
+ "gather_across_devices": true
204
+ }
205
+ ```
206
+
207
+ ### Evaluation Dataset
208
+
209
+ #### Unnamed Dataset
210
+
211
+ * Size: 16,216 evaluation samples
212
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
213
+ * Approximate statistics based on the first 1000 samples:
214
+ | | anchor | positive | negative |
215
+ |:--------|:---------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
216
+ | type | string | string | string |
217
+ | details | <ul><li>min: 3 tokens</li><li>mean: 9.79 tokens</li><li>max: 52 tokens</li></ul> | <ul><li>min: 2 tokens</li><li>mean: 19.21 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 9.76 tokens</li><li>max: 67 tokens</li></ul> |
218
+ * Samples:
219
+ | anchor | positive | negative |
220
+ |:--------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------|
221
+ | <code>dosado ring</code> | <code>dosado or dos- à- dos: a wavy movement of two people around eachother, without turning & facing the same direction. material: 18k gold plated hammered brass. size: one size, adjustable. care instructions: to keep the jewelry pieces looking as good as new, please make sure that you store them in an airtight container. they should not come in contact with sweat, water or pefume, alcohol, sanitizers etc. polish with a microfiber cloth.</code> | <code>kiprun ks light men's running shoes - black</code> |
222
+ | <code>puzzle city of fog</code> | <code>this amazing puzzle offers a unique opportunity to explore the beauty of san francisco, also known as the "city by the bay," through assembling a 2000-piece jigsaw. you'll immerse yourself in a world full of colors and details, as your eyes wander across the iconic golden gate bridge, towering buildings, distinctive hilly streets, and sailing ships in the harbor. it’s a panoramic depiction of san francisco, providing a comprehensive view of the city and its landmarks.<br>features:<br>explore san francisco: enjoy a virtual exploration of san francisco without leaving your home. get up close with famous landmarks such as the golden gate bridge and the harbor.<br>improves cognitive skills: assembling the puzzle enhances focus, memory, and fine motor skills while boosting problem-solving and decision-making abilities.<br>relaxation and stress relief: puzzle assembly is a fun and engaging activity that helps to relax and reduce stress, especially when concentrating on the appealing details of san franc...</code> | <code>unicorn</code> |
223
+ | <code>my fault series</code> | <code>mercedes ron book</code> | <code>sophie's world</code> |
224
+ * Loss: [<code>MultipleNegativesSymmetricRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativessymmetricrankingloss) with these parameters:
225
+ ```json
226
+ {
227
+ "scale": 20.0,
228
+ "similarity_fct": "cos_sim",
229
+ "gather_across_devices": true
230
+ }
231
+ ```
232
+
233
+ ### Training Hyperparameters
234
+ #### Non-Default Hyperparameters
235
+
236
+ - `eval_strategy`: steps
237
+ - `per_device_train_batch_size`: 128
238
+ - `per_device_eval_batch_size`: 128
239
+ - `num_train_epochs`: 5
240
+ - `warmup_ratio`: 0.1
241
+ - `fp16`: True
242
+ - `dataloader_num_workers`: 2
243
+ - `dataloader_prefetch_factor`: 2
244
+ - `push_to_hub`: True
245
+ - `hub_model_id`: LamaDiab/V2MiniLM-SemanticEngine
246
+ - `batch_sampler`: no_duplicates
247
+
248
+ #### All Hyperparameters
249
+ <details><summary>Click to expand</summary>
250
+
251
+ - `overwrite_output_dir`: False
252
+ - `do_predict`: False
253
+ - `eval_strategy`: steps
254
+ - `prediction_loss_only`: True
255
+ - `per_device_train_batch_size`: 128
256
+ - `per_device_eval_batch_size`: 128
257
+ - `per_gpu_train_batch_size`: None
258
+ - `per_gpu_eval_batch_size`: None
259
+ - `gradient_accumulation_steps`: 1
260
+ - `eval_accumulation_steps`: None
261
+ - `torch_empty_cache_steps`: None
262
+ - `learning_rate`: 5e-05
263
+ - `weight_decay`: 0
264
+ - `adam_beta1`: 0.9
265
+ - `adam_beta2`: 0.999
266
+ - `adam_epsilon`: 1e-08
267
+ - `max_grad_norm`: 1.0
268
+ - `num_train_epochs`: 5
269
+ - `max_steps`: -1
270
+ - `lr_scheduler_type`: linear
271
+ - `lr_scheduler_kwargs`: {}
272
+ - `warmup_ratio`: 0.1
273
+ - `warmup_steps`: 0
274
+ - `log_level`: passive
275
+ - `log_level_replica`: warning
276
+ - `log_on_each_node`: True
277
+ - `logging_nan_inf_filter`: True
278
+ - `save_safetensors`: True
279
+ - `save_on_each_node`: False
280
+ - `save_only_model`: False
281
+ - `restore_callback_states_from_checkpoint`: False
282
+ - `no_cuda`: False
283
+ - `use_cpu`: False
284
+ - `use_mps_device`: False
285
+ - `seed`: 42
286
+ - `data_seed`: None
287
+ - `jit_mode_eval`: False
288
+ - `use_ipex`: False
289
+ - `bf16`: False
290
+ - `fp16`: True
291
+ - `fp16_opt_level`: O1
292
+ - `half_precision_backend`: auto
293
+ - `bf16_full_eval`: False
294
+ - `fp16_full_eval`: False
295
+ - `tf32`: None
296
+ - `local_rank`: 0
297
+ - `ddp_backend`: None
298
+ - `tpu_num_cores`: None
299
+ - `tpu_metrics_debug`: False
300
+ - `debug`: []
301
+ - `dataloader_drop_last`: False
302
+ - `dataloader_num_workers`: 2
303
+ - `dataloader_prefetch_factor`: 2
304
+ - `past_index`: -1
305
+ - `disable_tqdm`: False
306
+ - `remove_unused_columns`: True
307
+ - `label_names`: None
308
+ - `load_best_model_at_end`: False
309
+ - `ignore_data_skip`: False
310
+ - `fsdp`: []
311
+ - `fsdp_min_num_params`: 0
312
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
313
+ - `fsdp_transformer_layer_cls_to_wrap`: None
314
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
315
+ - `deepspeed`: None
316
+ - `label_smoothing_factor`: 0.0
317
+ - `optim`: adamw_torch
318
+ - `optim_args`: None
319
+ - `adafactor`: False
320
+ - `group_by_length`: False
321
+ - `length_column_name`: length
322
+ - `ddp_find_unused_parameters`: None
323
+ - `ddp_bucket_cap_mb`: None
324
+ - `ddp_broadcast_buffers`: False
325
+ - `dataloader_pin_memory`: True
326
+ - `dataloader_persistent_workers`: False
327
+ - `skip_memory_metrics`: True
328
+ - `use_legacy_prediction_loop`: False
329
+ - `push_to_hub`: True
330
+ - `resume_from_checkpoint`: None
331
+ - `hub_model_id`: LamaDiab/V2MiniLM-SemanticEngine
332
+ - `hub_strategy`: every_save
333
+ - `hub_private_repo`: None
334
+ - `hub_always_push`: False
335
+ - `hub_revision`: None
336
+ - `gradient_checkpointing`: False
337
+ - `gradient_checkpointing_kwargs`: None
338
+ - `include_inputs_for_metrics`: False
339
+ - `include_for_metrics`: []
340
+ - `eval_do_concat_batches`: True
341
+ - `fp16_backend`: auto
342
+ - `push_to_hub_model_id`: None
343
+ - `push_to_hub_organization`: None
344
+ - `mp_parameters`:
345
+ - `auto_find_batch_size`: False
346
+ - `full_determinism`: False
347
+ - `torchdynamo`: None
348
+ - `ray_scope`: last
349
+ - `ddp_timeout`: 1800
350
+ - `torch_compile`: False
351
+ - `torch_compile_backend`: None
352
+ - `torch_compile_mode`: None
353
+ - `include_tokens_per_second`: False
354
+ - `include_num_input_tokens_seen`: False
355
+ - `neftune_noise_alpha`: None
356
+ - `optim_target_modules`: None
357
+ - `batch_eval_metrics`: False
358
+ - `eval_on_start`: False
359
+ - `use_liger_kernel`: False
360
+ - `liger_kernel_config`: None
361
+ - `eval_use_gather_object`: False
362
+ - `average_tokens_across_devices`: False
363
+ - `prompts`: None
364
+ - `batch_sampler`: no_duplicates
365
+ - `multi_dataset_batch_sampler`: proportional
366
+ - `router_mapping`: {}
367
+ - `learning_rate_mapping`: {}
368
+
369
+ </details>
370
+
371
+ ### Training Logs
372
+ | Epoch | Step | Training Loss | Validation Loss | cosine_accuracy |
373
+ |:------:|:----:|:-------------:|:---------------:|:---------------:|
374
+ | 0.0008 | 1 | 2.1228 | - | - |
375
+ | 0.3765 | 500 | 1.7297 | 0.9363 | 0.9258 |
376
+ | 0.7530 | 1000 | 1.2095 | 0.8464 | 0.9291 |
377
+ | 1.1295 | 1500 | 0.8608 | 0.8149 | 0.9354 |
378
+ | 1.5060 | 2000 | 0.942 | 0.7942 | 0.9362 |
379
+ | 1.8825 | 2500 | 0.8845 | 0.7641 | 0.9408 |
380
+ | 2.2590 | 3000 | 0.639 | 0.7520 | 0.9413 |
381
+ | 2.6355 | 3500 | 0.7679 | 0.7359 | 0.9412 |
382
+ | 3.0120 | 4000 | 0.5956 | 0.7447 | 0.9415 |
383
+ | 3.3886 | 4500 | 0.6923 | 0.7280 | 0.9435 |
384
+ | 3.7651 | 5000 | 0.6853 | 0.7202 | 0.9455 |
385
+ | 4.1416 | 5500 | 0.5151 | 0.7153 | 0.9460 |
386
+ | 4.5181 | 6000 | 0.6355 | 0.7220 | 0.9456 |
387
+ | 4.8946 | 6500 | 0.6312 | 0.7185 | 0.9454 |
388
+
389
+
390
+ ### Framework Versions
391
+ - Python: 3.11.13
392
+ - Sentence Transformers: 5.1.2
393
+ - Transformers: 4.53.3
394
+ - PyTorch: 2.6.0+cu124
395
+ - Accelerate: 1.9.0
396
+ - Datasets: 4.4.1
397
+ - Tokenizers: 0.21.2
398
+
399
+ ## Citation
400
+
401
+ ### BibTeX
402
+
403
+ #### Sentence Transformers
404
+ ```bibtex
405
+ @inproceedings{reimers-2019-sentence-bert,
406
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
407
+ author = "Reimers, Nils and Gurevych, Iryna",
408
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
409
+ month = "11",
410
+ year = "2019",
411
+ publisher = "Association for Computational Linguistics",
412
+ url = "https://arxiv.org/abs/1908.10084",
413
+ }
414
+ ```
415
+
416
+ <!--
417
+ ## Glossary
418
+
419
+ *Clearly define terms in order to be accessible across audiences.*
420
+ -->
421
+
422
+ <!--
423
+ ## Model Card Authors
424
+
425
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
426
+ -->
427
+
428
+ <!--
429
+ ## Model Card Contact
430
+
431
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
432
+ -->
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.2",
4
+ "transformers": "4.53.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
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": 256,
3
+ "do_lower_case": false
4
+ }