hongming commited on
Commit
0411b4a
1 Parent(s): 88e561d

Add new SentenceTransformer model.

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 1024,
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,497 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: intfloat/e5-large-v2
3
+ datasets:
4
+ - sentence-transformers/all-nli
5
+ language:
6
+ - en
7
+ library_name: sentence-transformers
8
+ metrics:
9
+ - pearson_cosine
10
+ - spearman_cosine
11
+ - pearson_manhattan
12
+ - spearman_manhattan
13
+ - pearson_euclidean
14
+ - spearman_euclidean
15
+ - pearson_dot
16
+ - spearman_dot
17
+ - pearson_max
18
+ - spearman_max
19
+ pipeline_tag: sentence-similarity
20
+ tags:
21
+ - sentence-transformers
22
+ - sentence-similarity
23
+ - feature-extraction
24
+ - generated_from_trainer
25
+ - dataset_size:10000
26
+ - loss:SoftmaxLoss
27
+ widget:
28
+ - source_sentence: A man selling donuts to a customer during a world exhibition event
29
+ held in the city of Angeles
30
+ sentences:
31
+ - The man is doing tricks.
32
+ - A woman drinks her coffee in a small cafe.
33
+ - The building is made of logs.
34
+ - source_sentence: A group of people prepare hot air balloons for takeoff.
35
+ sentences:
36
+ - There are hot air balloons on the ground and air.
37
+ - A man is in an art museum.
38
+ - People watch another person do a trick.
39
+ - source_sentence: Three workers are trimming down trees.
40
+ sentences:
41
+ - The goalie is sleeping at home.
42
+ - There are three workers
43
+ - The girl has brown hair.
44
+ - source_sentence: Two brown-haired men wearing short-sleeved shirts and shorts are
45
+ climbing stairs.
46
+ sentences:
47
+ - The men have blonde hair.
48
+ - A bicyclist passes an esthetically beautiful building on a sunny day
49
+ - Two men are dancing.
50
+ - source_sentence: A man is sitting in on the side of the street with brass pots.
51
+ sentences:
52
+ - a younger boy looks at his father
53
+ - Children are at the beach.
54
+ - a man does not have brass pots
55
+ model-index:
56
+ - name: SentenceTransformer based on intfloat/e5-large-v2
57
+ results:
58
+ - task:
59
+ type: semantic-similarity
60
+ name: Semantic Similarity
61
+ dataset:
62
+ name: sts dev
63
+ type: sts-dev
64
+ metrics:
65
+ - type: pearson_cosine
66
+ value: 0.25153764364319275
67
+ name: Pearson Cosine
68
+ - type: spearman_cosine
69
+ value: 0.3291921844406249
70
+ name: Spearman Cosine
71
+ - type: pearson_manhattan
72
+ value: 0.2966881773862295
73
+ name: Pearson Manhattan
74
+ - type: spearman_manhattan
75
+ value: 0.32789142408327193
76
+ name: Spearman Manhattan
77
+ - type: pearson_euclidean
78
+ value: 0.29957914563527244
79
+ name: Pearson Euclidean
80
+ - type: spearman_euclidean
81
+ value: 0.3291921844406249
82
+ name: Spearman Euclidean
83
+ - type: pearson_dot
84
+ value: 0.2515376443724997
85
+ name: Pearson Dot
86
+ - type: spearman_dot
87
+ value: 0.3291921844406249
88
+ name: Spearman Dot
89
+ - type: pearson_max
90
+ value: 0.29957914563527244
91
+ name: Pearson Max
92
+ - type: spearman_max
93
+ value: 0.3291921844406249
94
+ name: Spearman Max
95
+ - task:
96
+ type: semantic-similarity
97
+ name: Semantic Similarity
98
+ dataset:
99
+ name: sts test
100
+ type: sts-test
101
+ metrics:
102
+ - type: pearson_cosine
103
+ value: 0.27914347241714155
104
+ name: Pearson Cosine
105
+ - type: spearman_cosine
106
+ value: 0.30504478158921217
107
+ name: Spearman Cosine
108
+ - type: pearson_manhattan
109
+ value: 0.3034422953603654
110
+ name: Pearson Manhattan
111
+ - type: spearman_manhattan
112
+ value: 0.30482947439377617
113
+ name: Spearman Manhattan
114
+ - type: pearson_euclidean
115
+ value: 0.30503064655519824
116
+ name: Pearson Euclidean
117
+ - type: spearman_euclidean
118
+ value: 0.30504478158921217
119
+ name: Spearman Euclidean
120
+ - type: pearson_dot
121
+ value: 0.2791434684526028
122
+ name: Pearson Dot
123
+ - type: spearman_dot
124
+ value: 0.30504478158921217
125
+ name: Spearman Dot
126
+ - type: pearson_max
127
+ value: 0.30503064655519824
128
+ name: Pearson Max
129
+ - type: spearman_max
130
+ value: 0.30504478158921217
131
+ name: Spearman Max
132
+ ---
133
+
134
+ # SentenceTransformer based on intfloat/e5-large-v2
135
+
136
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/e5-large-v2](https://huggingface.co/intfloat/e5-large-v2) on the [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) dataset. 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.
137
+
138
+ ## Model Details
139
+
140
+ ### Model Description
141
+ - **Model Type:** Sentence Transformer
142
+ - **Base model:** [intfloat/e5-large-v2](https://huggingface.co/intfloat/e5-large-v2) <!-- at revision b322e09026e4ea05f42beadf4d661fb4e101d311 -->
143
+ - **Maximum Sequence Length:** 512 tokens
144
+ - **Output Dimensionality:** 1024 tokens
145
+ - **Similarity Function:** Cosine Similarity
146
+ - **Training Dataset:**
147
+ - [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli)
148
+ - **Language:** en
149
+ <!-- - **License:** Unknown -->
150
+
151
+ ### Model Sources
152
+
153
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
154
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
155
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
156
+
157
+ ### Full Model Architecture
158
+
159
+ ```
160
+ SentenceTransformer(
161
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
162
+ (1): Pooling({'word_embedding_dimension': 1024, '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})
163
+ (2): Normalize()
164
+ )
165
+ ```
166
+
167
+ ## Usage
168
+
169
+ ### Direct Usage (Sentence Transformers)
170
+
171
+ First install the Sentence Transformers library:
172
+
173
+ ```bash
174
+ pip install -U sentence-transformers
175
+ ```
176
+
177
+ Then you can load this model and run inference.
178
+ ```python
179
+ from sentence_transformers import SentenceTransformer
180
+
181
+ # Download from the 🤗 Hub
182
+ model = SentenceTransformer("hongming/e5-large-v2-nli-v1")
183
+ # Run inference
184
+ sentences = [
185
+ 'A man is sitting in on the side of the street with brass pots.',
186
+ 'a man does not have brass pots',
187
+ 'Children are at the beach.',
188
+ ]
189
+ embeddings = model.encode(sentences)
190
+ print(embeddings.shape)
191
+ # [3, 1024]
192
+
193
+ # Get the similarity scores for the embeddings
194
+ similarities = model.similarity(embeddings, embeddings)
195
+ print(similarities.shape)
196
+ # [3, 3]
197
+ ```
198
+
199
+ <!--
200
+ ### Direct Usage (Transformers)
201
+
202
+ <details><summary>Click to see the direct usage in Transformers</summary>
203
+
204
+ </details>
205
+ -->
206
+
207
+ <!--
208
+ ### Downstream Usage (Sentence Transformers)
209
+
210
+ You can finetune this model on your own dataset.
211
+
212
+ <details><summary>Click to expand</summary>
213
+
214
+ </details>
215
+ -->
216
+
217
+ <!--
218
+ ### Out-of-Scope Use
219
+
220
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
221
+ -->
222
+
223
+ ## Evaluation
224
+
225
+ ### Metrics
226
+
227
+ #### Semantic Similarity
228
+ * Dataset: `sts-dev`
229
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
230
+
231
+ | Metric | Value |
232
+ |:--------------------|:-----------|
233
+ | pearson_cosine | 0.2515 |
234
+ | **spearman_cosine** | **0.3292** |
235
+ | pearson_manhattan | 0.2967 |
236
+ | spearman_manhattan | 0.3279 |
237
+ | pearson_euclidean | 0.2996 |
238
+ | spearman_euclidean | 0.3292 |
239
+ | pearson_dot | 0.2515 |
240
+ | spearman_dot | 0.3292 |
241
+ | pearson_max | 0.2996 |
242
+ | spearman_max | 0.3292 |
243
+
244
+ #### Semantic Similarity
245
+ * Dataset: `sts-test`
246
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
247
+
248
+ | Metric | Value |
249
+ |:--------------------|:----------|
250
+ | pearson_cosine | 0.2791 |
251
+ | **spearman_cosine** | **0.305** |
252
+ | pearson_manhattan | 0.3034 |
253
+ | spearman_manhattan | 0.3048 |
254
+ | pearson_euclidean | 0.305 |
255
+ | spearman_euclidean | 0.305 |
256
+ | pearson_dot | 0.2791 |
257
+ | spearman_dot | 0.305 |
258
+ | pearson_max | 0.305 |
259
+ | spearman_max | 0.305 |
260
+
261
+ <!--
262
+ ## Bias, Risks and Limitations
263
+
264
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
265
+ -->
266
+
267
+ <!--
268
+ ### Recommendations
269
+
270
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
271
+ -->
272
+
273
+ ## Training Details
274
+
275
+ ### Training Dataset
276
+
277
+ #### sentence-transformers/all-nli
278
+
279
+ * Dataset: [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
280
+ * Size: 10,000 training samples
281
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
282
+ * Approximate statistics based on the first 1000 samples:
283
+ | | premise | hypothesis | label |
284
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:-------------------------------------------------------------------|
285
+ | type | string | string | int |
286
+ | details | <ul><li>min: 6 tokens</li><li>mean: 17.38 tokens</li><li>max: 52 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 10.7 tokens</li><li>max: 31 tokens</li></ul> | <ul><li>0: ~33.40%</li><li>1: ~33.30%</li><li>2: ~33.30%</li></ul> |
287
+ * Samples:
288
+ | premise | hypothesis | label |
289
+ |:--------------------------------------------------------------------|:---------------------------------------------------------------|:---------------|
290
+ | <code>A person on a horse jumps over a broken down airplane.</code> | <code>A person is training his horse for a competition.</code> | <code>1</code> |
291
+ | <code>A person on a horse jumps over a broken down airplane.</code> | <code>A person is at a diner, ordering an omelette.</code> | <code>2</code> |
292
+ | <code>A person on a horse jumps over a broken down airplane.</code> | <code>A person is outdoors, on a horse.</code> | <code>0</code> |
293
+ * Loss: [<code>SoftmaxLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#softmaxloss)
294
+
295
+ ### Evaluation Dataset
296
+
297
+ #### sentence-transformers/all-nli
298
+
299
+ * Dataset: [sentence-transformers/all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
300
+ * Size: 1,000 evaluation samples
301
+ * Columns: <code>premise</code>, <code>hypothesis</code>, and <code>label</code>
302
+ * Approximate statistics based on the first 1000 samples:
303
+ | | premise | hypothesis | label |
304
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------|
305
+ | type | string | string | int |
306
+ | details | <ul><li>min: 6 tokens</li><li>mean: 18.44 tokens</li><li>max: 57 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 10.57 tokens</li><li>max: 25 tokens</li></ul> | <ul><li>0: ~33.10%</li><li>1: ~33.30%</li><li>2: ~33.60%</li></ul> |
307
+ * Samples:
308
+ | premise | hypothesis | label |
309
+ |:-------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------|:---------------|
310
+ | <code>Two women are embracing while holding to go packages.</code> | <code>The sisters are hugging goodbye while holding to go packages after just eating lunch.</code> | <code>1</code> |
311
+ | <code>Two women are embracing while holding to go packages.</code> | <code>Two woman are holding packages.</code> | <code>0</code> |
312
+ | <code>Two women are embracing while holding to go packages.</code> | <code>The men are fighting outside a deli.</code> | <code>2</code> |
313
+ * Loss: [<code>SoftmaxLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#softmaxloss)
314
+
315
+ ### Training Hyperparameters
316
+ #### Non-Default Hyperparameters
317
+
318
+ - `eval_strategy`: steps
319
+ - `per_device_train_batch_size`: 16
320
+ - `per_device_eval_batch_size`: 16
321
+ - `num_train_epochs`: 1
322
+ - `warmup_ratio`: 0.1
323
+ - `fp16`: True
324
+
325
+ #### All Hyperparameters
326
+ <details><summary>Click to expand</summary>
327
+
328
+ - `overwrite_output_dir`: False
329
+ - `do_predict`: False
330
+ - `eval_strategy`: steps
331
+ - `prediction_loss_only`: True
332
+ - `per_device_train_batch_size`: 16
333
+ - `per_device_eval_batch_size`: 16
334
+ - `per_gpu_train_batch_size`: None
335
+ - `per_gpu_eval_batch_size`: None
336
+ - `gradient_accumulation_steps`: 1
337
+ - `eval_accumulation_steps`: None
338
+ - `torch_empty_cache_steps`: None
339
+ - `learning_rate`: 5e-05
340
+ - `weight_decay`: 0.0
341
+ - `adam_beta1`: 0.9
342
+ - `adam_beta2`: 0.999
343
+ - `adam_epsilon`: 1e-08
344
+ - `max_grad_norm`: 1.0
345
+ - `num_train_epochs`: 1
346
+ - `max_steps`: -1
347
+ - `lr_scheduler_type`: linear
348
+ - `lr_scheduler_kwargs`: {}
349
+ - `warmup_ratio`: 0.1
350
+ - `warmup_steps`: 0
351
+ - `log_level`: passive
352
+ - `log_level_replica`: warning
353
+ - `log_on_each_node`: True
354
+ - `logging_nan_inf_filter`: True
355
+ - `save_safetensors`: True
356
+ - `save_on_each_node`: False
357
+ - `save_only_model`: False
358
+ - `restore_callback_states_from_checkpoint`: False
359
+ - `no_cuda`: False
360
+ - `use_cpu`: False
361
+ - `use_mps_device`: False
362
+ - `seed`: 42
363
+ - `data_seed`: None
364
+ - `jit_mode_eval`: False
365
+ - `use_ipex`: False
366
+ - `bf16`: False
367
+ - `fp16`: True
368
+ - `fp16_opt_level`: O1
369
+ - `half_precision_backend`: auto
370
+ - `bf16_full_eval`: False
371
+ - `fp16_full_eval`: False
372
+ - `tf32`: None
373
+ - `local_rank`: 0
374
+ - `ddp_backend`: None
375
+ - `tpu_num_cores`: None
376
+ - `tpu_metrics_debug`: False
377
+ - `debug`: []
378
+ - `dataloader_drop_last`: False
379
+ - `dataloader_num_workers`: 0
380
+ - `dataloader_prefetch_factor`: None
381
+ - `past_index`: -1
382
+ - `disable_tqdm`: False
383
+ - `remove_unused_columns`: True
384
+ - `label_names`: None
385
+ - `load_best_model_at_end`: False
386
+ - `ignore_data_skip`: False
387
+ - `fsdp`: []
388
+ - `fsdp_min_num_params`: 0
389
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
390
+ - `fsdp_transformer_layer_cls_to_wrap`: None
391
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
392
+ - `deepspeed`: None
393
+ - `label_smoothing_factor`: 0.0
394
+ - `optim`: adamw_torch
395
+ - `optim_args`: None
396
+ - `adafactor`: False
397
+ - `group_by_length`: False
398
+ - `length_column_name`: length
399
+ - `ddp_find_unused_parameters`: None
400
+ - `ddp_bucket_cap_mb`: None
401
+ - `ddp_broadcast_buffers`: False
402
+ - `dataloader_pin_memory`: True
403
+ - `dataloader_persistent_workers`: False
404
+ - `skip_memory_metrics`: True
405
+ - `use_legacy_prediction_loop`: False
406
+ - `push_to_hub`: False
407
+ - `resume_from_checkpoint`: None
408
+ - `hub_model_id`: None
409
+ - `hub_strategy`: every_save
410
+ - `hub_private_repo`: False
411
+ - `hub_always_push`: False
412
+ - `gradient_checkpointing`: False
413
+ - `gradient_checkpointing_kwargs`: None
414
+ - `include_inputs_for_metrics`: False
415
+ - `eval_do_concat_batches`: True
416
+ - `fp16_backend`: auto
417
+ - `push_to_hub_model_id`: None
418
+ - `push_to_hub_organization`: None
419
+ - `mp_parameters`:
420
+ - `auto_find_batch_size`: False
421
+ - `full_determinism`: False
422
+ - `torchdynamo`: None
423
+ - `ray_scope`: last
424
+ - `ddp_timeout`: 1800
425
+ - `torch_compile`: False
426
+ - `torch_compile_backend`: None
427
+ - `torch_compile_mode`: None
428
+ - `dispatch_batches`: None
429
+ - `split_batches`: None
430
+ - `include_tokens_per_second`: False
431
+ - `include_num_input_tokens_seen`: False
432
+ - `neftune_noise_alpha`: None
433
+ - `optim_target_modules`: None
434
+ - `batch_eval_metrics`: False
435
+ - `eval_on_start`: False
436
+ - `eval_use_gather_object`: False
437
+ - `batch_sampler`: batch_sampler
438
+ - `multi_dataset_batch_sampler`: proportional
439
+
440
+ </details>
441
+
442
+ ### Training Logs
443
+ | Epoch | Step | Training Loss | loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
444
+ |:-----:|:----:|:-------------:|:------:|:-----------------------:|:------------------------:|
445
+ | 0 | 0 | - | - | 0.8888 | - |
446
+ | 0.16 | 100 | 1.0934 | 1.0656 | 0.5733 | - |
447
+ | 0.32 | 200 | 1.0461 | 1.0245 | 0.3466 | - |
448
+ | 0.48 | 300 | 1.037 | 1.0152 | 0.3391 | - |
449
+ | 0.64 | 400 | 1.0013 | 0.9931 | 0.3333 | - |
450
+ | 0.8 | 500 | 1.0014 | 0.9871 | 0.3825 | - |
451
+ | 0.96 | 600 | 0.9827 | 0.9705 | 0.3292 | - |
452
+ | 1.0 | 625 | - | - | - | 0.3050 |
453
+
454
+
455
+ ### Framework Versions
456
+ - Python: 3.8.13
457
+ - Sentence Transformers: 3.1.0.dev0
458
+ - Transformers: 4.43.3
459
+ - PyTorch: 2.1.2
460
+ - Accelerate: 0.33.0
461
+ - Datasets: 2.16.1
462
+ - Tokenizers: 0.19.1
463
+
464
+ ## Citation
465
+
466
+ ### BibTeX
467
+
468
+ #### Sentence Transformers and SoftmaxLoss
469
+ ```bibtex
470
+ @inproceedings{reimers-2019-sentence-bert,
471
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
472
+ author = "Reimers, Nils and Gurevych, Iryna",
473
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
474
+ month = "11",
475
+ year = "2019",
476
+ publisher = "Association for Computational Linguistics",
477
+ url = "https://arxiv.org/abs/1908.10084",
478
+ }
479
+ ```
480
+
481
+ <!--
482
+ ## Glossary
483
+
484
+ *Clearly define terms in order to be accessible across audiences.*
485
+ -->
486
+
487
+ <!--
488
+ ## Model Card Authors
489
+
490
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
491
+ -->
492
+
493
+ <!--
494
+ ## Model Card Contact
495
+
496
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
497
+ -->
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "intfloat/e5-large-v2",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 1024,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 4096,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 16,
17
+ "num_hidden_layers": 24,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.43.3",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.1.0.dev0",
4
+ "transformers": "4.43.3",
5
+ "pytorch": "2.1.2"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79df2d0851a8283eefc8c590c573a2b41ac45b81ccfd8018f65d5fa700a6086e
3
+ size 1340612432
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": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff