gavinqiangli commited on
Commit
49aef7c
1 Parent(s): 4fc9fda

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": true,
4
+ "pooling_mode_mean_tokens": false,
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,439 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: BAAI/bge-large-en
3
+ datasets:
4
+ - sentence-transformers/all-nli
5
+ language:
6
+ - en
7
+ library_name: sentence-transformers
8
+ metrics:
9
+ - cosine_accuracy
10
+ - dot_accuracy
11
+ - manhattan_accuracy
12
+ - euclidean_accuracy
13
+ - max_accuracy
14
+ pipeline_tag: sentence-similarity
15
+ tags:
16
+ - sentence-transformers
17
+ - sentence-similarity
18
+ - feature-extraction
19
+ - generated_from_trainer
20
+ - dataset_size:557850
21
+ - loss:MultipleNegativesRankingLoss
22
+ widget:
23
+ - source_sentence: A construction worker is standing on a crane placing a large arm
24
+ on top of a stature in progress.
25
+ sentences:
26
+ - A man is playing with his camera.
27
+ - A person standing
28
+ - Nobody is standing
29
+ - source_sentence: A boy in red slides down an inflatable ride.
30
+ sentences:
31
+ - a baby smiling
32
+ - A boy is playing on an inflatable ride.
33
+ - A boy pierces a knife through an inflatable ride.
34
+ - source_sentence: A man in a black shirt is playing a guitar.
35
+ sentences:
36
+ - A group of women are selling their wares
37
+ - The man is wearing black.
38
+ - The man is wearing a blue shirt.
39
+ - source_sentence: A man with a large power drill standing next to his daughter with
40
+ a vacuum cleaner hose.
41
+ sentences:
42
+ - A man holding a drill stands next to a girl holding a vacuum hose.
43
+ - Kids ride an amusement ride.
44
+ - The man and girl are painting the walls.
45
+ - source_sentence: A middle-aged man works under the engine of a train on rail tracks.
46
+ sentences:
47
+ - A guy is working on a train.
48
+ - Two young asian men are squatting.
49
+ - A guy is driving to work.
50
+ model-index:
51
+ - name: SentenceTransformer based on BAAI/bge-large-en
52
+ results:
53
+ - task:
54
+ type: triplet
55
+ name: Triplet
56
+ dataset:
57
+ name: all nli test
58
+ type: all-nli-test
59
+ metrics:
60
+ - type: cosine_accuracy
61
+ value: 0.8853079134513542
62
+ name: Cosine Accuracy
63
+ - type: dot_accuracy
64
+ value: 0.11469208654864578
65
+ name: Dot Accuracy
66
+ - type: manhattan_accuracy
67
+ value: 0.885761839915267
68
+ name: Manhattan Accuracy
69
+ - type: euclidean_accuracy
70
+ value: 0.8853079134513542
71
+ name: Euclidean Accuracy
72
+ - type: max_accuracy
73
+ value: 0.885761839915267
74
+ name: Max Accuracy
75
+ ---
76
+
77
+ # SentenceTransformer based on BAAI/bge-large-en
78
+
79
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-large-en](https://huggingface.co/BAAI/bge-large-en) on the [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.
80
+
81
+ ## Model Details
82
+
83
+ ### Model Description
84
+ - **Model Type:** Sentence Transformer
85
+ - **Base model:** [BAAI/bge-large-en](https://huggingface.co/BAAI/bge-large-en) <!-- at revision abe7d9d814b775ca171121fb03f394dc42974275 -->
86
+ - **Maximum Sequence Length:** 512 tokens
87
+ - **Output Dimensionality:** 1024 tokens
88
+ - **Similarity Function:** Cosine Similarity
89
+ - **Training Dataset:**
90
+ - [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli)
91
+ - **Language:** en
92
+ <!-- - **License:** Unknown -->
93
+
94
+ ### Model Sources
95
+
96
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
97
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
98
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
99
+
100
+ ### Full Model Architecture
101
+
102
+ ```
103
+ SentenceTransformer(
104
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
105
+ (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})
106
+ (2): Normalize()
107
+ )
108
+ ```
109
+
110
+ ## Usage
111
+
112
+ ### Direct Usage (Sentence Transformers)
113
+
114
+ First install the Sentence Transformers library:
115
+
116
+ ```bash
117
+ pip install -U sentence-transformers
118
+ ```
119
+
120
+ Then you can load this model and run inference.
121
+ ```python
122
+ from sentence_transformers import SentenceTransformer
123
+
124
+ # Download from the 🤗 Hub
125
+ model = SentenceTransformer("gavinqiangli/mpnet-base-all-nli-triplet")
126
+ # Run inference
127
+ sentences = [
128
+ 'A middle-aged man works under the engine of a train on rail tracks.',
129
+ 'A guy is working on a train.',
130
+ 'A guy is driving to work.',
131
+ ]
132
+ embeddings = model.encode(sentences)
133
+ print(embeddings.shape)
134
+ # [3, 1024]
135
+
136
+ # Get the similarity scores for the embeddings
137
+ similarities = model.similarity(embeddings, embeddings)
138
+ print(similarities.shape)
139
+ # [3, 3]
140
+ ```
141
+
142
+ <!--
143
+ ### Direct Usage (Transformers)
144
+
145
+ <details><summary>Click to see the direct usage in Transformers</summary>
146
+
147
+ </details>
148
+ -->
149
+
150
+ <!--
151
+ ### Downstream Usage (Sentence Transformers)
152
+
153
+ You can finetune this model on your own dataset.
154
+
155
+ <details><summary>Click to expand</summary>
156
+
157
+ </details>
158
+ -->
159
+
160
+ <!--
161
+ ### Out-of-Scope Use
162
+
163
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
164
+ -->
165
+
166
+ ## Evaluation
167
+
168
+ ### Metrics
169
+
170
+ #### Triplet
171
+ * Dataset: `all-nli-test`
172
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
173
+
174
+ | Metric | Value |
175
+ |:-------------------|:-----------|
176
+ | cosine_accuracy | 0.8853 |
177
+ | dot_accuracy | 0.1147 |
178
+ | manhattan_accuracy | 0.8858 |
179
+ | euclidean_accuracy | 0.8853 |
180
+ | **max_accuracy** | **0.8858** |
181
+
182
+ <!--
183
+ ## Bias, Risks and Limitations
184
+
185
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
186
+ -->
187
+
188
+ <!--
189
+ ### Recommendations
190
+
191
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
192
+ -->
193
+
194
+ ## Training Details
195
+
196
+ ### Training Dataset
197
+
198
+ #### all-nli
199
+
200
+ * Dataset: [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
201
+ * Size: 557,850 training samples
202
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
203
+ * Approximate statistics based on the first 1000 samples:
204
+ | | anchor | positive | negative |
205
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
206
+ | type | string | string | string |
207
+ | details | <ul><li>min: 7 tokens</li><li>mean: 10.46 tokens</li><li>max: 46 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 12.81 tokens</li><li>max: 40 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 13.4 tokens</li><li>max: 50 tokens</li></ul> |
208
+ * Samples:
209
+ | anchor | positive | negative |
210
+ |:---------------------------------------------------------------------------|:-------------------------------------------------|:-----------------------------------------------------------|
211
+ | <code>A person on a horse jumps over a broken down airplane.</code> | <code>A person is outdoors, on a horse.</code> | <code>A person is at a diner, ordering an omelette.</code> |
212
+ | <code>Children smiling and waving at camera</code> | <code>There are children present</code> | <code>The kids are frowning</code> |
213
+ | <code>A boy is jumping on skateboard in the middle of a red bridge.</code> | <code>The boy does a skateboarding trick.</code> | <code>The boy skates down the sidewalk.</code> |
214
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
215
+ ```json
216
+ {
217
+ "scale": 20.0,
218
+ "similarity_fct": "cos_sim"
219
+ }
220
+ ```
221
+
222
+ ### Evaluation Dataset
223
+
224
+ #### all-nli
225
+
226
+ * Dataset: [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
227
+ * Size: 6,584 evaluation samples
228
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
229
+ * Approximate statistics based on the first 1000 samples:
230
+ | | anchor | positive | negative |
231
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
232
+ | type | string | string | string |
233
+ | details | <ul><li>min: 6 tokens</li><li>mean: 17.95 tokens</li><li>max: 63 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 9.78 tokens</li><li>max: 29 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 10.35 tokens</li><li>max: 29 tokens</li></ul> |
234
+ * Samples:
235
+ | anchor | positive | negative |
236
+ |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------|:--------------------------------------------------------|
237
+ | <code>Two women are embracing while holding to go packages.</code> | <code>Two woman are holding packages.</code> | <code>The men are fighting outside a deli.</code> |
238
+ | <code>Two young children in blue jerseys, one with the number 9 and one with the number 2 are standing on wooden steps in a bathroom and washing their hands in a sink.</code> | <code>Two kids in numbered jerseys wash their hands.</code> | <code>Two kids in jackets walk to school.</code> |
239
+ | <code>A man selling donuts to a customer during a world exhibition event held in the city of Angeles</code> | <code>A man selling donuts to a customer.</code> | <code>A woman drinks her coffee in a small cafe.</code> |
240
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
241
+ ```json
242
+ {
243
+ "scale": 20.0,
244
+ "similarity_fct": "cos_sim"
245
+ }
246
+ ```
247
+
248
+ ### Training Hyperparameters
249
+ #### Non-Default Hyperparameters
250
+
251
+ - `eval_strategy`: steps
252
+ - `per_device_train_batch_size`: 16
253
+ - `per_device_eval_batch_size`: 16
254
+ - `num_train_epochs`: 1
255
+ - `warmup_ratio`: 0.1
256
+ - `fp16`: True
257
+ - `batch_sampler`: no_duplicates
258
+
259
+ #### All Hyperparameters
260
+ <details><summary>Click to expand</summary>
261
+
262
+ - `overwrite_output_dir`: False
263
+ - `do_predict`: False
264
+ - `eval_strategy`: steps
265
+ - `prediction_loss_only`: True
266
+ - `per_device_train_batch_size`: 16
267
+ - `per_device_eval_batch_size`: 16
268
+ - `per_gpu_train_batch_size`: None
269
+ - `per_gpu_eval_batch_size`: None
270
+ - `gradient_accumulation_steps`: 1
271
+ - `eval_accumulation_steps`: None
272
+ - `torch_empty_cache_steps`: None
273
+ - `learning_rate`: 5e-05
274
+ - `weight_decay`: 0.0
275
+ - `adam_beta1`: 0.9
276
+ - `adam_beta2`: 0.999
277
+ - `adam_epsilon`: 1e-08
278
+ - `max_grad_norm`: 1.0
279
+ - `num_train_epochs`: 1
280
+ - `max_steps`: -1
281
+ - `lr_scheduler_type`: linear
282
+ - `lr_scheduler_kwargs`: {}
283
+ - `warmup_ratio`: 0.1
284
+ - `warmup_steps`: 0
285
+ - `log_level`: passive
286
+ - `log_level_replica`: warning
287
+ - `log_on_each_node`: True
288
+ - `logging_nan_inf_filter`: True
289
+ - `save_safetensors`: True
290
+ - `save_on_each_node`: False
291
+ - `save_only_model`: False
292
+ - `restore_callback_states_from_checkpoint`: False
293
+ - `no_cuda`: False
294
+ - `use_cpu`: False
295
+ - `use_mps_device`: False
296
+ - `seed`: 42
297
+ - `data_seed`: None
298
+ - `jit_mode_eval`: False
299
+ - `use_ipex`: False
300
+ - `bf16`: False
301
+ - `fp16`: True
302
+ - `fp16_opt_level`: O1
303
+ - `half_precision_backend`: auto
304
+ - `bf16_full_eval`: False
305
+ - `fp16_full_eval`: False
306
+ - `tf32`: None
307
+ - `local_rank`: 0
308
+ - `ddp_backend`: None
309
+ - `tpu_num_cores`: None
310
+ - `tpu_metrics_debug`: False
311
+ - `debug`: []
312
+ - `dataloader_drop_last`: False
313
+ - `dataloader_num_workers`: 0
314
+ - `dataloader_prefetch_factor`: None
315
+ - `past_index`: -1
316
+ - `disable_tqdm`: False
317
+ - `remove_unused_columns`: True
318
+ - `label_names`: None
319
+ - `load_best_model_at_end`: False
320
+ - `ignore_data_skip`: False
321
+ - `fsdp`: []
322
+ - `fsdp_min_num_params`: 0
323
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
324
+ - `fsdp_transformer_layer_cls_to_wrap`: None
325
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
326
+ - `deepspeed`: None
327
+ - `label_smoothing_factor`: 0.0
328
+ - `optim`: adamw_torch
329
+ - `optim_args`: None
330
+ - `adafactor`: False
331
+ - `group_by_length`: False
332
+ - `length_column_name`: length
333
+ - `ddp_find_unused_parameters`: None
334
+ - `ddp_bucket_cap_mb`: None
335
+ - `ddp_broadcast_buffers`: False
336
+ - `dataloader_pin_memory`: True
337
+ - `dataloader_persistent_workers`: False
338
+ - `skip_memory_metrics`: True
339
+ - `use_legacy_prediction_loop`: False
340
+ - `push_to_hub`: False
341
+ - `resume_from_checkpoint`: None
342
+ - `hub_model_id`: None
343
+ - `hub_strategy`: every_save
344
+ - `hub_private_repo`: False
345
+ - `hub_always_push`: False
346
+ - `gradient_checkpointing`: False
347
+ - `gradient_checkpointing_kwargs`: None
348
+ - `include_inputs_for_metrics`: False
349
+ - `eval_do_concat_batches`: True
350
+ - `fp16_backend`: auto
351
+ - `push_to_hub_model_id`: None
352
+ - `push_to_hub_organization`: None
353
+ - `mp_parameters`:
354
+ - `auto_find_batch_size`: False
355
+ - `full_determinism`: False
356
+ - `torchdynamo`: None
357
+ - `ray_scope`: last
358
+ - `ddp_timeout`: 1800
359
+ - `torch_compile`: False
360
+ - `torch_compile_backend`: None
361
+ - `torch_compile_mode`: None
362
+ - `dispatch_batches`: None
363
+ - `split_batches`: None
364
+ - `include_tokens_per_second`: False
365
+ - `include_num_input_tokens_seen`: False
366
+ - `neftune_noise_alpha`: None
367
+ - `optim_target_modules`: None
368
+ - `batch_eval_metrics`: False
369
+ - `eval_on_start`: False
370
+ - `eval_use_gather_object`: False
371
+ - `batch_sampler`: no_duplicates
372
+ - `multi_dataset_batch_sampler`: proportional
373
+
374
+ </details>
375
+
376
+ ### Training Logs
377
+ | Epoch | Step | Training Loss | Validation Loss | all-nli-test_max_accuracy |
378
+ |:------:|:----:|:-------------:|:---------------:|:-------------------------:|
379
+ | 0.3195 | 100 | 0.6642 | 0.6399 | - |
380
+ | 0.6390 | 200 | 0.1421 | 0.8174 | - |
381
+ | 0.9585 | 300 | 0.3632 | 1.0566 | - |
382
+ | 1.0 | 313 | - | - | 0.8858 |
383
+
384
+
385
+ ### Framework Versions
386
+ - Python: 3.10.12
387
+ - Sentence Transformers: 3.2.1
388
+ - Transformers: 4.44.2
389
+ - PyTorch: 2.5.0+cu121
390
+ - Accelerate: 0.34.2
391
+ - Datasets: 3.1.0
392
+ - Tokenizers: 0.19.1
393
+
394
+ ## Citation
395
+
396
+ ### BibTeX
397
+
398
+ #### Sentence Transformers
399
+ ```bibtex
400
+ @inproceedings{reimers-2019-sentence-bert,
401
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
402
+ author = "Reimers, Nils and Gurevych, Iryna",
403
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
404
+ month = "11",
405
+ year = "2019",
406
+ publisher = "Association for Computational Linguistics",
407
+ url = "https://arxiv.org/abs/1908.10084",
408
+ }
409
+ ```
410
+
411
+ #### MultipleNegativesRankingLoss
412
+ ```bibtex
413
+ @misc{henderson2017efficient,
414
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
415
+ 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},
416
+ year={2017},
417
+ eprint={1705.00652},
418
+ archivePrefix={arXiv},
419
+ primaryClass={cs.CL}
420
+ }
421
+ ```
422
+
423
+ <!--
424
+ ## Glossary
425
+
426
+ *Clearly define terms in order to be accessible across audiences.*
427
+ -->
428
+
429
+ <!--
430
+ ## Model Card Authors
431
+
432
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
433
+ -->
434
+
435
+ <!--
436
+ ## Model Card Contact
437
+
438
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
439
+ -->
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "BAAI/bge-large-en",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 1024,
12
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 4096,
17
+ "label2id": {
18
+ "LABEL_0": 0
19
+ },
20
+ "layer_norm_eps": 1e-12,
21
+ "max_position_embeddings": 512,
22
+ "model_type": "bert",
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 24,
25
+ "pad_token_id": 0,
26
+ "position_embedding_type": "absolute",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.44.2",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 30522
32
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.2.1",
4
+ "transformers": "4.44.2",
5
+ "pytorch": "2.5.0+cu121"
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:e89b0e79049af9700c8c50183c2857ba3f3069c519f382960ccb68fd96caae8f
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": true
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff