sachin19566 commited on
Commit
bec4a3e
1 Parent(s): 3c26276

Add new SentenceTransformer model.

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
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,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: BAAI/bge-base-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:3683
11
+ - loss:MultipleNegativesRankingLoss
12
+ widget:
13
+ - source_sentence: Cost Accounting - A Comprehensive Study
14
+ sentences:
15
+ - Beginner Level
16
+ - Business Finance
17
+ - All Levels
18
+ - source_sentence: Build Financial Models & Value Companies The Easy Way
19
+ sentences:
20
+ - All Levels
21
+ - Business Finance
22
+ - All Levels
23
+ - source_sentence: build a solid foundation for trading options
24
+ sentences:
25
+ - Intermediate Level
26
+ - Business Finance
27
+ - All Levels
28
+ - source_sentence: Create Beautiful Image Maps for Your Website
29
+ sentences:
30
+ - Graphic Design
31
+ - Intermediate Level
32
+ - All Levels
33
+ - source_sentence: 'Multiply your returns using ''Value Investing",https://www.udemy.com/multiply-your-returns-using-value-investing/,true,20,1942,19,63,All
34
+ Levels,4.5 hours,2015-07-23T00:08:33Z
35
+
36
+ 874284,Weekly Forex Analysis by Baraq FX"'
37
+ sentences:
38
+ - Beginner Level
39
+ - Business Finance
40
+ - All Levels
41
+ ---
42
+
43
+ # SentenceTransformer based on BAAI/bge-base-en-v1.5
44
+
45
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
46
+
47
+ ## Model Details
48
+
49
+ ### Model Description
50
+ - **Model Type:** Sentence Transformer
51
+ - **Base model:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) <!-- at revision a5beb1e3e68b9ab74eb54cfd186867f64f240e1a -->
52
+ - **Maximum Sequence Length:** 512 tokens
53
+ - **Output Dimensionality:** 768 tokens
54
+ - **Similarity Function:** Cosine Similarity
55
+ <!-- - **Training Dataset:** Unknown -->
56
+ <!-- - **Language:** Unknown -->
57
+ <!-- - **License:** Unknown -->
58
+
59
+ ### Model Sources
60
+
61
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
62
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
63
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
64
+
65
+ ### Full Model Architecture
66
+
67
+ ```
68
+ SentenceTransformer(
69
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
70
+ (1): Pooling({'word_embedding_dimension': 768, '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})
71
+ (2): Normalize()
72
+ )
73
+ ```
74
+
75
+ ## Usage
76
+
77
+ ### Direct Usage (Sentence Transformers)
78
+
79
+ First install the Sentence Transformers library:
80
+
81
+ ```bash
82
+ pip install -U sentence-transformers
83
+ ```
84
+
85
+ Then you can load this model and run inference.
86
+ ```python
87
+ from sentence_transformers import SentenceTransformer
88
+
89
+ # Download from the 🤗 Hub
90
+ model = SentenceTransformer("sachin19566/bge-base-en-v1.5-udemy-fte")
91
+ # Run inference
92
+ sentences = [
93
+ 'Multiply your returns using \'Value Investing",https://www.udemy.com/multiply-your-returns-using-value-investing/,true,20,1942,19,63,All Levels,4.5 hours,2015-07-23T00:08:33Z\n874284,Weekly Forex Analysis by Baraq FX"',
94
+ 'All Levels',
95
+ 'Business Finance',
96
+ ]
97
+ embeddings = model.encode(sentences)
98
+ print(embeddings.shape)
99
+ # [3, 768]
100
+
101
+ # Get the similarity scores for the embeddings
102
+ similarities = model.similarity(embeddings, embeddings)
103
+ print(similarities.shape)
104
+ # [3, 3]
105
+ ```
106
+
107
+ <!--
108
+ ### Direct Usage (Transformers)
109
+
110
+ <details><summary>Click to see the direct usage in Transformers</summary>
111
+
112
+ </details>
113
+ -->
114
+
115
+ <!--
116
+ ### Downstream Usage (Sentence Transformers)
117
+
118
+ You can finetune this model on your own dataset.
119
+
120
+ <details><summary>Click to expand</summary>
121
+
122
+ </details>
123
+ -->
124
+
125
+ <!--
126
+ ### Out-of-Scope Use
127
+
128
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
129
+ -->
130
+
131
+ <!--
132
+ ## Bias, Risks and Limitations
133
+
134
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
135
+ -->
136
+
137
+ <!--
138
+ ### Recommendations
139
+
140
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
141
+ -->
142
+
143
+ ## Training Details
144
+
145
+ ### Training Dataset
146
+
147
+ #### Unnamed Dataset
148
+
149
+
150
+ * Size: 3,683 training samples
151
+ * Columns: <code>course_title</code>, <code>level</code>, and <code>subject</code>
152
+ * Approximate statistics based on the first 1000 samples:
153
+ | | course_title | level | subject |
154
+ |:--------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:-------------------------------------------------------------------------------|
155
+ | type | string | string | string |
156
+ | details | <ul><li>min: 4 tokens</li><li>mean: 11.02 tokens</li><li>max: 81 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 4.27 tokens</li><li>max: 5 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 4.0 tokens</li><li>max: 4 tokens</li></ul> |
157
+ * Samples:
158
+ | course_title | level | subject |
159
+ |:-------------------------------------------------------------------------|:--------------------------------|:------------------------------|
160
+ | <code>Ultimate Investment Banking Course</code> | <code>All Levels</code> | <code>Business Finance</code> |
161
+ | <code>Complete GST Course & Certification - Grow Your CA Practice</code> | <code>All Levels</code> | <code>Business Finance</code> |
162
+ | <code>Financial Modeling for Business Analysts and Consultants</code> | <code>Intermediate Level</code> | <code>Business Finance</code> |
163
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
164
+ ```json
165
+ {
166
+ "scale": 20.0,
167
+ "similarity_fct": "cos_sim"
168
+ }
169
+ ```
170
+
171
+ ### Evaluation Dataset
172
+
173
+ #### Unnamed Dataset
174
+
175
+
176
+ * Size: 100 evaluation samples
177
+ * Columns: <code>course_title</code>, <code>level</code>, and <code>subject</code>
178
+ * Approximate statistics based on the first 100 samples:
179
+ | | course_title | level | subject |
180
+ |:--------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|:-------------------------------------------------------------------------------|
181
+ | type | string | string | string |
182
+ | details | <ul><li>min: 4 tokens</li><li>mean: 12.63 tokens</li><li>max: 81 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 4.42 tokens</li><li>max: 5 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 4.0 tokens</li><li>max: 4 tokens</li></ul> |
183
+ * Samples:
184
+ | course_title | level | subject |
185
+ |:-------------------------------------------------------------------------|:----------------------------|:------------------------------|
186
+ | <code>Learn to Use jQuery UI Widgets</code> | <code>Beginner Level</code> | <code>Web Development</code> |
187
+ | <code>Financial Statements: Learn Accounting. Unlock the Numbers.</code> | <code>Beginner Level</code> | <code>Business Finance</code> |
188
+ | <code>Trade Recap I - A Real Look at Futures Options Markets</code> | <code>Beginner Level</code> | <code>Business Finance</code> |
189
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
190
+ ```json
191
+ {
192
+ "scale": 20.0,
193
+ "similarity_fct": "cos_sim"
194
+ }
195
+ ```
196
+
197
+ ### Training Hyperparameters
198
+ #### Non-Default Hyperparameters
199
+
200
+ - `eval_strategy`: steps
201
+ - `per_device_train_batch_size`: 16
202
+ - `per_device_eval_batch_size`: 16
203
+ - `learning_rate`: 3e-06
204
+ - `max_steps`: 932
205
+ - `warmup_ratio`: 0.1
206
+ - `fp16`: True
207
+ - `batch_sampler`: no_duplicates
208
+
209
+ #### All Hyperparameters
210
+ <details><summary>Click to expand</summary>
211
+
212
+ - `overwrite_output_dir`: False
213
+ - `do_predict`: False
214
+ - `eval_strategy`: steps
215
+ - `prediction_loss_only`: True
216
+ - `per_device_train_batch_size`: 16
217
+ - `per_device_eval_batch_size`: 16
218
+ - `per_gpu_train_batch_size`: None
219
+ - `per_gpu_eval_batch_size`: None
220
+ - `gradient_accumulation_steps`: 1
221
+ - `eval_accumulation_steps`: None
222
+ - `torch_empty_cache_steps`: None
223
+ - `learning_rate`: 3e-06
224
+ - `weight_decay`: 0.0
225
+ - `adam_beta1`: 0.9
226
+ - `adam_beta2`: 0.999
227
+ - `adam_epsilon`: 1e-08
228
+ - `max_grad_norm`: 1.0
229
+ - `num_train_epochs`: 3.0
230
+ - `max_steps`: 932
231
+ - `lr_scheduler_type`: linear
232
+ - `lr_scheduler_kwargs`: {}
233
+ - `warmup_ratio`: 0.1
234
+ - `warmup_steps`: 0
235
+ - `log_level`: passive
236
+ - `log_level_replica`: warning
237
+ - `log_on_each_node`: True
238
+ - `logging_nan_inf_filter`: True
239
+ - `save_safetensors`: True
240
+ - `save_on_each_node`: False
241
+ - `save_only_model`: False
242
+ - `restore_callback_states_from_checkpoint`: False
243
+ - `no_cuda`: False
244
+ - `use_cpu`: False
245
+ - `use_mps_device`: False
246
+ - `seed`: 42
247
+ - `data_seed`: None
248
+ - `jit_mode_eval`: False
249
+ - `use_ipex`: False
250
+ - `bf16`: False
251
+ - `fp16`: True
252
+ - `fp16_opt_level`: O1
253
+ - `half_precision_backend`: auto
254
+ - `bf16_full_eval`: False
255
+ - `fp16_full_eval`: False
256
+ - `tf32`: None
257
+ - `local_rank`: 0
258
+ - `ddp_backend`: None
259
+ - `tpu_num_cores`: None
260
+ - `tpu_metrics_debug`: False
261
+ - `debug`: []
262
+ - `dataloader_drop_last`: False
263
+ - `dataloader_num_workers`: 0
264
+ - `dataloader_prefetch_factor`: None
265
+ - `past_index`: -1
266
+ - `disable_tqdm`: False
267
+ - `remove_unused_columns`: True
268
+ - `label_names`: None
269
+ - `load_best_model_at_end`: False
270
+ - `ignore_data_skip`: False
271
+ - `fsdp`: []
272
+ - `fsdp_min_num_params`: 0
273
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
274
+ - `fsdp_transformer_layer_cls_to_wrap`: None
275
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
276
+ - `deepspeed`: None
277
+ - `label_smoothing_factor`: 0.0
278
+ - `optim`: adamw_torch
279
+ - `optim_args`: None
280
+ - `adafactor`: False
281
+ - `group_by_length`: False
282
+ - `length_column_name`: length
283
+ - `ddp_find_unused_parameters`: None
284
+ - `ddp_bucket_cap_mb`: None
285
+ - `ddp_broadcast_buffers`: False
286
+ - `dataloader_pin_memory`: True
287
+ - `dataloader_persistent_workers`: False
288
+ - `skip_memory_metrics`: True
289
+ - `use_legacy_prediction_loop`: False
290
+ - `push_to_hub`: False
291
+ - `resume_from_checkpoint`: None
292
+ - `hub_model_id`: None
293
+ - `hub_strategy`: every_save
294
+ - `hub_private_repo`: False
295
+ - `hub_always_push`: False
296
+ - `gradient_checkpointing`: False
297
+ - `gradient_checkpointing_kwargs`: None
298
+ - `include_inputs_for_metrics`: False
299
+ - `eval_do_concat_batches`: True
300
+ - `fp16_backend`: auto
301
+ - `push_to_hub_model_id`: None
302
+ - `push_to_hub_organization`: None
303
+ - `mp_parameters`:
304
+ - `auto_find_batch_size`: False
305
+ - `full_determinism`: False
306
+ - `torchdynamo`: None
307
+ - `ray_scope`: last
308
+ - `ddp_timeout`: 1800
309
+ - `torch_compile`: False
310
+ - `torch_compile_backend`: None
311
+ - `torch_compile_mode`: None
312
+ - `dispatch_batches`: None
313
+ - `split_batches`: None
314
+ - `include_tokens_per_second`: False
315
+ - `include_num_input_tokens_seen`: False
316
+ - `neftune_noise_alpha`: None
317
+ - `optim_target_modules`: None
318
+ - `batch_eval_metrics`: False
319
+ - `eval_on_start`: False
320
+ - `eval_use_gather_object`: False
321
+ - `batch_sampler`: no_duplicates
322
+ - `multi_dataset_batch_sampler`: proportional
323
+
324
+ </details>
325
+
326
+ ### Training Logs
327
+ | Epoch | Step | Training Loss | loss |
328
+ |:------:|:----:|:-------------:|:------:|
329
+ | 0.0866 | 20 | 2.2161 | 1.7831 |
330
+ | 0.1732 | 40 | 1.9601 | 1.5400 |
331
+ | 0.2597 | 60 | 1.6253 | 1.1987 |
332
+ | 0.3463 | 80 | 1.2393 | 1.0009 |
333
+ | 0.4329 | 100 | 1.1817 | 0.9073 |
334
+ | 0.5195 | 120 | 1.0667 | 0.8817 |
335
+ | 0.6061 | 140 | 1.258 | 0.8282 |
336
+ | 0.6926 | 160 | 1.2375 | 0.7618 |
337
+ | 0.7792 | 180 | 1.0925 | 0.7274 |
338
+ | 0.8658 | 200 | 1.0823 | 0.7101 |
339
+ | 0.9524 | 220 | 0.8789 | 0.7056 |
340
+ | 1.0390 | 240 | 0.9597 | 0.7107 |
341
+ | 1.1255 | 260 | 0.8427 | 0.7221 |
342
+ | 1.2121 | 280 | 0.8612 | 0.7287 |
343
+ | 1.2987 | 300 | 0.8428 | 0.7275 |
344
+ | 1.3853 | 320 | 0.6426 | 0.7451 |
345
+ | 1.4719 | 340 | 0.709 | 0.7642 |
346
+ | 1.5584 | 360 | 0.6602 | 0.7851 |
347
+ | 1.6450 | 380 | 0.7356 | 0.8244 |
348
+ | 1.7316 | 400 | 0.7633 | 0.8310 |
349
+ | 1.8182 | 420 | 0.9592 | 0.8185 |
350
+ | 1.9048 | 440 | 0.6715 | 0.8094 |
351
+ | 1.9913 | 460 | 0.7926 | 0.8103 |
352
+ | 2.0779 | 480 | 0.7703 | 0.8011 |
353
+ | 2.1645 | 500 | 0.6287 | 0.8266 |
354
+ | 2.2511 | 520 | 0.5481 | 0.8536 |
355
+ | 2.3377 | 540 | 0.7101 | 0.8679 |
356
+ | 2.4242 | 560 | 0.423 | 0.9025 |
357
+ | 2.5108 | 580 | 0.6814 | 0.9197 |
358
+ | 2.5974 | 600 | 0.5879 | 0.9492 |
359
+ | 2.6840 | 620 | 0.537 | 0.9861 |
360
+ | 2.7706 | 640 | 0.5107 | 1.0179 |
361
+ | 2.8571 | 660 | 0.6164 | 1.0413 |
362
+ | 2.9437 | 680 | 0.6582 | 1.0710 |
363
+ | 3.0303 | 700 | 0.4553 | 1.1001 |
364
+ | 3.1169 | 720 | 0.3649 | 1.1416 |
365
+ | 3.2035 | 740 | 0.9273 | 1.1142 |
366
+ | 3.2900 | 760 | 0.8816 | 1.0694 |
367
+ | 3.3766 | 780 | 0.7005 | 1.0481 |
368
+ | 3.4632 | 800 | 1.9002 | 1.0289 |
369
+ | 3.5498 | 820 | 1.4467 | 1.0141 |
370
+ | 3.6364 | 840 | 1.5564 | 1.0023 |
371
+ | 3.7229 | 860 | 1.2316 | 0.9961 |
372
+ | 3.8095 | 880 | 1.0549 | 0.9931 |
373
+ | 3.8961 | 900 | 1.2359 | 0.9913 |
374
+ | 3.9827 | 920 | 1.3568 | 0.9897 |
375
+
376
+
377
+ ### Framework Versions
378
+ - Python: 3.10.12
379
+ - Sentence Transformers: 3.1.0
380
+ - Transformers: 4.44.2
381
+ - PyTorch: 2.4.0+cu121
382
+ - Accelerate: 0.33.0
383
+ - Datasets: 3.0.0
384
+ - Tokenizers: 0.19.1
385
+
386
+ ## Citation
387
+
388
+ ### BibTeX
389
+
390
+ #### Sentence Transformers
391
+ ```bibtex
392
+ @inproceedings{reimers-2019-sentence-bert,
393
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
394
+ author = "Reimers, Nils and Gurevych, Iryna",
395
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
396
+ month = "11",
397
+ year = "2019",
398
+ publisher = "Association for Computational Linguistics",
399
+ url = "https://arxiv.org/abs/1908.10084",
400
+ }
401
+ ```
402
+
403
+ #### MultipleNegativesRankingLoss
404
+ ```bibtex
405
+ @misc{henderson2017efficient,
406
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
407
+ 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},
408
+ year={2017},
409
+ eprint={1705.00652},
410
+ archivePrefix={arXiv},
411
+ primaryClass={cs.CL}
412
+ }
413
+ ```
414
+
415
+ <!--
416
+ ## Glossary
417
+
418
+ *Clearly define terms in order to be accessible across audiences.*
419
+ -->
420
+
421
+ <!--
422
+ ## Model Card Authors
423
+
424
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
425
+ -->
426
+
427
+ <!--
428
+ ## Model Card Contact
429
+
430
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
431
+ -->
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "BAAI/bge-base-en-v1.5",
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": 768,
12
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
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": 12,
24
+ "num_hidden_layers": 12,
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.1.0",
4
+ "transformers": "4.44.2",
5
+ "pytorch": "2.4.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:2ae3678befbe6d4227ea42348f0b298bae45247d60cd3f70683e5adb40db2fab
3
+ size 437951328
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