Gurveer05 commited on
Commit
b359c80
·
verified ·
1 Parent(s): 36201e6

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": 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-small-en-v1.5
3
+ library_name: sentence-transformers
4
+ pipeline_tag: sentence-similarity
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - generated_from_trainer
10
+ - dataset_size:2442
11
+ - loss:MultipleNegativesSymmetricRankingLoss
12
+ widget:
13
+ - source_sentence: Carry out a subtraction problem with positive integers where the
14
+ answer is less than 0 598-1000= This problem cannot be solved
15
+ sentences:
16
+ - Rounds to the wrong degree of accuracy (rounds too much)
17
+ - When subtracting fractions, subtracts the numerators and denominators
18
+ - Believes it is impossible to subtract a bigger number from a smaller number
19
+ - source_sentence: Given the sketch of a curve in the form (x + a)(x + b), work out
20
+ its factorised form Which of the following could be the equation of this curve?
21
+ ![A graph of a quadratic curve that crosses the x axis at (1,0) and (3,0) and
22
+ crosses the y axis at (0,3).]() y=(x+1)(x+3)
23
+ sentences:
24
+ - Does not use the associative property of multiplication to find other factors
25
+ of a number
26
+ - Believes they only need to multiply the first and last pairs of terms when expanding
27
+ double brackets
28
+ - Forgets to swap the sign of roots when placing into brackets
29
+ - source_sentence: For a given output find the input of a function machine ![Image
30
+ of a function machine. The function is add one third, and the output is 7]() What
31
+ is the input of this function machine? 7 1/3
32
+ sentences:
33
+ - When finding an input of a function machine thinks you apply the operations given
34
+ rather than the inverse operation.
35
+ - Believes the solution to mx + c = a is the y intercept of y = mx +c
36
+ - Squares when asked to find the square root
37
+ - source_sentence: Count a number of objects 1,3,5,7, … ? Which pattern matches the
38
+ sequence above? ![A sequence of 4 patterns. The first pattern is 1 green dot.
39
+ The second pattern is green dots arranged in a 2 by 2 square shape. The third
40
+ pattern is green dots arranged in a 3 by 3 square shape. The fourth pattern is
41
+ green dots arranged in a 4 by 4 square shape. ]()
42
+ sentences:
43
+ - 'Subtracts instead of adds when answering worded problems '
44
+ - When multiplying a decimal less than 1 by an integer, gives an answer 10 times
45
+ smaller than it should be
46
+ - When given a linear sequence, cannot match it to a visual pattern
47
+ - source_sentence: Express one quantity as a fraction of another A group of 8 friends
48
+ share £6 equally. What fraction of the money do they each get? 1/8
49
+ sentences:
50
+ - Thinks the fraction 1/n can express sharing any number of items between n people
51
+ - 'Does not understand that in the ratio 1:n the total number of parts would be
52
+ 1+n '
53
+ - Does not recognise the distributive property
54
+ ---
55
+
56
+ # SentenceTransformer based on BAAI/bge-small-en-v1.5
57
+
58
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) on the csv dataset. 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.
59
+
60
+ ## Model Details
61
+
62
+ ### Model Description
63
+ - **Model Type:** Sentence Transformer
64
+ - **Base model:** [BAAI/bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) <!-- at revision 5c38ec7c405ec4b44b94cc5a9bb96e735b38267a -->
65
+ - **Maximum Sequence Length:** 512 tokens
66
+ - **Output Dimensionality:** 384 tokens
67
+ - **Similarity Function:** Cosine Similarity
68
+ - **Training Dataset:**
69
+ - csv
70
+ <!-- - **Language:** Unknown -->
71
+ <!-- - **License:** Unknown -->
72
+
73
+ ### Model Sources
74
+
75
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
76
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
77
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
78
+
79
+ ### Full Model Architecture
80
+
81
+ ```
82
+ SentenceTransformer(
83
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
84
+ (1): Pooling({'word_embedding_dimension': 384, '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})
85
+ (2): Normalize()
86
+ )
87
+ ```
88
+
89
+ ## Usage
90
+
91
+ ### Direct Usage (Sentence Transformers)
92
+
93
+ First install the Sentence Transformers library:
94
+
95
+ ```bash
96
+ pip install -U sentence-transformers
97
+ ```
98
+
99
+ Then you can load this model and run inference.
100
+ ```python
101
+ from sentence_transformers import SentenceTransformer
102
+
103
+ # Download from the 🤗 Hub
104
+ model = SentenceTransformer("Gurveer05/bge-small-eedi-2024")
105
+ # Run inference
106
+ sentences = [
107
+ 'Express one quantity as a fraction of another A group of 8 friends share £6 equally. What fraction of the money do they each get? 1/8',
108
+ 'Thinks the fraction 1/n can express sharing any number of items between n people',
109
+ 'Does not recognise the distributive property',
110
+ ]
111
+ embeddings = model.encode(sentences)
112
+ print(embeddings.shape)
113
+ # [3, 384]
114
+
115
+ # Get the similarity scores for the embeddings
116
+ similarities = model.similarity(embeddings, embeddings)
117
+ print(similarities.shape)
118
+ # [3, 3]
119
+ ```
120
+
121
+ <!--
122
+ ### Direct Usage (Transformers)
123
+
124
+ <details><summary>Click to see the direct usage in Transformers</summary>
125
+
126
+ </details>
127
+ -->
128
+
129
+ <!--
130
+ ### Downstream Usage (Sentence Transformers)
131
+
132
+ You can finetune this model on your own dataset.
133
+
134
+ <details><summary>Click to expand</summary>
135
+
136
+ </details>
137
+ -->
138
+
139
+ <!--
140
+ ### Out-of-Scope Use
141
+
142
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
143
+ -->
144
+
145
+ <!--
146
+ ## Bias, Risks and Limitations
147
+
148
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
149
+ -->
150
+
151
+ <!--
152
+ ### Recommendations
153
+
154
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
155
+ -->
156
+
157
+ ## Training Details
158
+
159
+ ### Training Dataset
160
+
161
+ #### csv
162
+
163
+ * Dataset: csv
164
+ * Size: 2,442 training samples
165
+ * Columns: <code>sentence1</code> and <code>sentence2</code>
166
+ * Approximate statistics based on the first 1000 samples:
167
+ | | sentence1 | sentence2 |
168
+ |:--------|:------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
169
+ | type | string | string |
170
+ | details | <ul><li>min: 13 tokens</li><li>mean: 56.55 tokens</li><li>max: 306 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 15.13 tokens</li><li>max: 40 tokens</li></ul> |
171
+ * Samples:
172
+ | sentence1 | sentence2 |
173
+ |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------|
174
+ | <code>Calculate the distance travelled using a speed-time graph Here is a speed-time graph for a car. Which of the following gives the best estimate for the distance travelled between 8 and 10 seconds? ![A graph showing time in seconds on the x axis and speed in metres per second on the y axis. The curve passes through the points (8,15) and (10,24)]() 48 m</code> | <code>Believes that when finding area under graph you can use the upper y value rather than average of upper and lower</code> |
175
+ | <code>Add proper fractions with the same denominator Work out: 4/11+7/11 Write your answer in its simplest form. 11/11</code> | <code>Forgot to simplify the fraction</code> |
176
+ | <code>Count a number of objects 1,3,5,7, … ? Which pattern matches the sequence above? ![A sequence of 4 patterns. The first pattern is 1 green dot. The second pattern is green dots arranged in a 2 by 2 square shape. The third pattern is green dots arranged in a 3 by 3 square shape. The fourth pattern is green dots arranged in a 4 by 4 square shape. ]()</code> | <code>When given a linear sequence, cannot match it to a visual pattern</code> |
177
+ * Loss: [<code>MultipleNegativesSymmetricRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativessymmetricrankingloss) with these parameters:
178
+ ```json
179
+ {
180
+ "scale": 20.0,
181
+ "similarity_fct": "cos_sim"
182
+ }
183
+ ```
184
+
185
+ ### Training Hyperparameters
186
+ #### Non-Default Hyperparameters
187
+
188
+ - `eval_strategy`: steps
189
+ - `per_device_train_batch_size`: 32
190
+ - `per_device_eval_batch_size`: 32
191
+ - `num_train_epochs`: 20
192
+ - `warmup_ratio`: 0.1
193
+ - `fp16`: True
194
+ - `load_best_model_at_end`: True
195
+ - `batch_sampler`: no_duplicates
196
+
197
+ #### All Hyperparameters
198
+ <details><summary>Click to expand</summary>
199
+
200
+ - `overwrite_output_dir`: False
201
+ - `do_predict`: False
202
+ - `eval_strategy`: steps
203
+ - `prediction_loss_only`: True
204
+ - `per_device_train_batch_size`: 32
205
+ - `per_device_eval_batch_size`: 32
206
+ - `per_gpu_train_batch_size`: None
207
+ - `per_gpu_eval_batch_size`: None
208
+ - `gradient_accumulation_steps`: 1
209
+ - `eval_accumulation_steps`: None
210
+ - `torch_empty_cache_steps`: None
211
+ - `learning_rate`: 5e-05
212
+ - `weight_decay`: 0.0
213
+ - `adam_beta1`: 0.9
214
+ - `adam_beta2`: 0.999
215
+ - `adam_epsilon`: 1e-08
216
+ - `max_grad_norm`: 1.0
217
+ - `num_train_epochs`: 20
218
+ - `max_steps`: -1
219
+ - `lr_scheduler_type`: linear
220
+ - `lr_scheduler_kwargs`: {}
221
+ - `warmup_ratio`: 0.1
222
+ - `warmup_steps`: 0
223
+ - `log_level`: passive
224
+ - `log_level_replica`: warning
225
+ - `log_on_each_node`: True
226
+ - `logging_nan_inf_filter`: True
227
+ - `save_safetensors`: True
228
+ - `save_on_each_node`: False
229
+ - `save_only_model`: False
230
+ - `restore_callback_states_from_checkpoint`: False
231
+ - `no_cuda`: False
232
+ - `use_cpu`: False
233
+ - `use_mps_device`: False
234
+ - `seed`: 42
235
+ - `data_seed`: None
236
+ - `jit_mode_eval`: False
237
+ - `use_ipex`: False
238
+ - `bf16`: False
239
+ - `fp16`: True
240
+ - `fp16_opt_level`: O1
241
+ - `half_precision_backend`: auto
242
+ - `bf16_full_eval`: False
243
+ - `fp16_full_eval`: False
244
+ - `tf32`: None
245
+ - `local_rank`: 0
246
+ - `ddp_backend`: None
247
+ - `tpu_num_cores`: None
248
+ - `tpu_metrics_debug`: False
249
+ - `debug`: []
250
+ - `dataloader_drop_last`: False
251
+ - `dataloader_num_workers`: 0
252
+ - `dataloader_prefetch_factor`: None
253
+ - `past_index`: -1
254
+ - `disable_tqdm`: False
255
+ - `remove_unused_columns`: True
256
+ - `label_names`: None
257
+ - `load_best_model_at_end`: True
258
+ - `ignore_data_skip`: False
259
+ - `fsdp`: []
260
+ - `fsdp_min_num_params`: 0
261
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
262
+ - `fsdp_transformer_layer_cls_to_wrap`: None
263
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
264
+ - `deepspeed`: None
265
+ - `label_smoothing_factor`: 0.0
266
+ - `optim`: adamw_torch
267
+ - `optim_args`: None
268
+ - `adafactor`: False
269
+ - `group_by_length`: False
270
+ - `length_column_name`: length
271
+ - `ddp_find_unused_parameters`: None
272
+ - `ddp_bucket_cap_mb`: None
273
+ - `ddp_broadcast_buffers`: False
274
+ - `dataloader_pin_memory`: True
275
+ - `dataloader_persistent_workers`: False
276
+ - `skip_memory_metrics`: True
277
+ - `use_legacy_prediction_loop`: False
278
+ - `push_to_hub`: False
279
+ - `resume_from_checkpoint`: None
280
+ - `hub_model_id`: None
281
+ - `hub_strategy`: every_save
282
+ - `hub_private_repo`: False
283
+ - `hub_always_push`: False
284
+ - `gradient_checkpointing`: False
285
+ - `gradient_checkpointing_kwargs`: None
286
+ - `include_inputs_for_metrics`: False
287
+ - `eval_do_concat_batches`: True
288
+ - `fp16_backend`: auto
289
+ - `push_to_hub_model_id`: None
290
+ - `push_to_hub_organization`: None
291
+ - `mp_parameters`:
292
+ - `auto_find_batch_size`: False
293
+ - `full_determinism`: False
294
+ - `torchdynamo`: None
295
+ - `ray_scope`: last
296
+ - `ddp_timeout`: 1800
297
+ - `torch_compile`: False
298
+ - `torch_compile_backend`: None
299
+ - `torch_compile_mode`: None
300
+ - `dispatch_batches`: None
301
+ - `split_batches`: None
302
+ - `include_tokens_per_second`: False
303
+ - `include_num_input_tokens_seen`: False
304
+ - `neftune_noise_alpha`: None
305
+ - `optim_target_modules`: None
306
+ - `batch_eval_metrics`: False
307
+ - `eval_on_start`: False
308
+ - `eval_use_gather_object`: False
309
+ - `batch_sampler`: no_duplicates
310
+ - `multi_dataset_batch_sampler`: proportional
311
+
312
+ </details>
313
+
314
+ ### Training Logs
315
+ | Epoch | Step | Training Loss |
316
+ |:-----------:|:-------:|:-------------:|
317
+ | 0.3846 | 15 | 2.5015 |
318
+ | 0.7436 | 29 | - |
319
+ | 0.7692 | 30 | 1.9614 |
320
+ | 1.1538 | 45 | 1.5138 |
321
+ | 1.4872 | 58 | - |
322
+ | 1.5385 | 60 | 1.4717 |
323
+ | 1.9231 | 75 | 1.2504 |
324
+ | 2.2308 | 87 | - |
325
+ | 2.3077 | 90 | 1.0932 |
326
+ | 2.6923 | 105 | 1.0067 |
327
+ | 2.9744 | 116 | - |
328
+ | 3.0769 | 120 | 0.7748 |
329
+ | 3.4615 | 135 | 0.7952 |
330
+ | 3.7179 | 145 | - |
331
+ | 3.8462 | 150 | 0.7165 |
332
+ | 4.2308 | 165 | 0.5502 |
333
+ | 4.4615 | 174 | - |
334
+ | 4.6154 | 180 | 0.6062 |
335
+ | 5.0 | 195 | 0.4444 |
336
+ | 5.2051 | 203 | - |
337
+ | 5.3846 | 210 | 0.4759 |
338
+ | 5.7692 | 225 | 0.4203 |
339
+ | 5.9487 | 232 | - |
340
+ | 6.1538 | 240 | 0.3599 |
341
+ | 6.5385 | 255 | 0.3613 |
342
+ | 6.6923 | 261 | - |
343
+ | 6.9231 | 270 | 0.3255 |
344
+ | 7.3077 | 285 | 0.2856 |
345
+ | 7.4359 | 290 | - |
346
+ | 7.6923 | 300 | 0.2756 |
347
+ | 8.0769 | 315 | 0.2199 |
348
+ | 8.1795 | 319 | - |
349
+ | 8.4615 | 330 | 0.2587 |
350
+ | 8.8462 | 345 | 0.2293 |
351
+ | 8.9231 | 348 | - |
352
+ | 9.2308 | 360 | 0.1848 |
353
+ | 9.6154 | 375 | 0.2232 |
354
+ | 9.6667 | 377 | - |
355
+ | 10.0 | 390 | 0.1755 |
356
+ | 10.3846 | 405 | 0.1898 |
357
+ | 10.4103 | 406 | - |
358
+ | 10.7692 | 420 | 0.1673 |
359
+ | 11.1538 | 435 | 0.1546 |
360
+ | 11.5385 | 450 | 0.1692 |
361
+ | 11.8974 | 464 | - |
362
+ | 11.9231 | 465 | 0.1471 |
363
+ | 12.3077 | 480 | 0.1299 |
364
+ | 12.6410 | 493 | - |
365
+ | 12.6923 | 495 | 0.1269 |
366
+ | 13.0769 | 510 | 0.1201 |
367
+ | 13.3846 | 522 | - |
368
+ | 13.4615 | 525 | 0.1306 |
369
+ | 13.8462 | 540 | 0.125 |
370
+ | 14.1282 | 551 | - |
371
+ | 14.2308 | 555 | 0.099 |
372
+ | 14.6154 | 570 | 0.1354 |
373
+ | 14.8718 | 580 | - |
374
+ | 15.0 | 585 | 0.0967 |
375
+ | 15.3846 | 600 | 0.1159 |
376
+ | 15.6154 | 609 | - |
377
+ | 15.7692 | 615 | 0.0996 |
378
+ | 16.1538 | 630 | 0.0933 |
379
+ | 16.3590 | 638 | - |
380
+ | 16.5385 | 645 | 0.1007 |
381
+ | 16.9231 | 660 | 0.0972 |
382
+ | 17.1026 | 667 | - |
383
+ | 17.3077 | 675 | 0.0978 |
384
+ | 17.6923 | 690 | 0.0874 |
385
+ | **17.8462** | **696** | **-** |
386
+ | 18.0769 | 705 | 0.0843 |
387
+ | 18.4615 | 720 | 0.0986 |
388
+ | 18.5897 | 725 | - |
389
+ | 18.8462 | 735 | 0.0862 |
390
+ | 19.2308 | 750 | 0.0751 |
391
+ | 19.3333 | 754 | - |
392
+ | 19.6154 | 765 | 0.1038 |
393
+ | 20.0 | 780 | 0.0791 |
394
+
395
+ * The bold row denotes the saved checkpoint.
396
+
397
+ ### Framework Versions
398
+ - Python: 3.10.14
399
+ - Sentence Transformers: 3.1.1
400
+ - Transformers: 4.44.0
401
+ - PyTorch: 2.4.0
402
+ - Accelerate: 0.33.0
403
+ - Datasets: 2.19.2
404
+ - Tokenizers: 0.19.1
405
+
406
+ ## Citation
407
+
408
+ ### BibTeX
409
+
410
+ #### Sentence Transformers
411
+ ```bibtex
412
+ @inproceedings{reimers-2019-sentence-bert,
413
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
414
+ author = "Reimers, Nils and Gurevych, Iryna",
415
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
416
+ month = "11",
417
+ year = "2019",
418
+ publisher = "Association for Computational Linguistics",
419
+ url = "https://arxiv.org/abs/1908.10084",
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,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "BAAI/bge-small-en-v1.5",
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": 384,
11
+ "id2label": {
12
+ "0": "LABEL_0"
13
+ },
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 1536,
16
+ "label2id": {
17
+ "LABEL_0": 0
18
+ },
19
+ "layer_norm_eps": 1e-12,
20
+ "max_position_embeddings": 512,
21
+ "model_type": "bert",
22
+ "num_attention_heads": 12,
23
+ "num_hidden_layers": 12,
24
+ "pad_token_id": 0,
25
+ "position_embedding_type": "absolute",
26
+ "torch_dtype": "float32",
27
+ "transformers_version": "4.44.0",
28
+ "type_vocab_size": 2,
29
+ "use_cache": true,
30
+ "vocab_size": 30522
31
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.1.1",
4
+ "transformers": "4.44.0",
5
+ "pytorch": "2.4.0"
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:2684d156a965016095e65deb5b20aed1011c5f7ae1bc4a36cbf40f93025db1eb
3
+ size 133462128
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