vazish commited on
Commit
ac90b8d
·
verified ·
1 Parent(s): b4c983b

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": 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,464 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:133380
8
+ - loss:CosineSimilarityLoss
9
+ base_model: sentence-transformers/all-MiniLM-L6-v2
10
+ widget:
11
+ - source_sentence: Plant-Based Nutrition Guide
12
+ sentences:
13
+ - Streaming Videos about Miscellaneous
14
+ - Honest John - Car Reviews & Buying Advice
15
+ - Participating in online forums and communities about Seasonal Forecasts
16
+ - source_sentence: 'BBC iPlayer: Science and Nature'
17
+ sentences:
18
+ - Explained | Science and Technology on Netflix
19
+ - Cosmic Convention Announcements and Details
20
+ - Opportunities in Emerging Markets
21
+ - source_sentence: How Weather Changes Affect Veteran Wellbeing
22
+ sentences:
23
+ - Participating in online forums and communities about Space Exploration
24
+ - 'Streaming: Innovative Backpacking Gear'
25
+ - Participating in online forums and communities about Video Games
26
+ - source_sentence: Smith Optics
27
+ sentences:
28
+ - Researching or Booking Travel for New York City, USA
29
+ - Casablanca Tours & Activities
30
+ - 'Stream: Journey Across the Globe'
31
+ - source_sentence: 'Crunchyroll: Anime Trends 2023'
32
+ sentences:
33
+ - Search Hotels in Montreal
34
+ - Energy Storage Forum
35
+ - Online Shopping for Vacuum Cleaners
36
+ pipeline_tag: sentence-similarity
37
+ library_name: sentence-transformers
38
+ metrics:
39
+ - pearson_cosine
40
+ - spearman_cosine
41
+ model-index:
42
+ - name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
43
+ results:
44
+ - task:
45
+ type: semantic-similarity
46
+ name: Semantic Similarity
47
+ dataset:
48
+ name: dev eval
49
+ type: dev-eval
50
+ metrics:
51
+ - type: pearson_cosine
52
+ value: 0.9643510348078764
53
+ name: Pearson Cosine
54
+ - type: spearman_cosine
55
+ value: 0.6244978728197877
56
+ name: Spearman Cosine
57
+ ---
58
+
59
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
60
+
61
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
62
+
63
+ ## Model Details
64
+
65
+ ### Model Description
66
+ - **Model Type:** Sentence Transformer
67
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
68
+ - **Maximum Sequence Length:** 256 tokens
69
+ - **Output Dimensionality:** 384 dimensions
70
+ - **Similarity Function:** Cosine Similarity
71
+ <!-- - **Training Dataset:** Unknown -->
72
+ <!-- - **Language:** Unknown -->
73
+ <!-- - **License:** Unknown -->
74
+
75
+ ### Model Sources
76
+
77
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
78
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
79
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
80
+
81
+ ### Full Model Architecture
82
+
83
+ ```
84
+ SentenceTransformer(
85
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False}) with Transformer model: BertModel
86
+ (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
87
+ (2): Normalize()
88
+ )
89
+ ```
90
+
91
+ ## Usage
92
+
93
+ ### Direct Usage (Sentence Transformers)
94
+
95
+ First install the Sentence Transformers library:
96
+
97
+ ```bash
98
+ pip install -U sentence-transformers
99
+ ```
100
+
101
+ Then you can load this model and run inference.
102
+ ```python
103
+ from sentence_transformers import SentenceTransformer
104
+
105
+ # Download from the 🤗 Hub
106
+ model = SentenceTransformer("vazish/all-Mini-fine-tuned")
107
+ # Run inference
108
+ sentences = [
109
+ 'Crunchyroll: Anime Trends 2023',
110
+ 'Search Hotels in Montreal',
111
+ 'Online Shopping for Vacuum Cleaners',
112
+ ]
113
+ embeddings = model.encode(sentences)
114
+ print(embeddings.shape)
115
+ # [3, 384]
116
+
117
+ # Get the similarity scores for the embeddings
118
+ similarities = model.similarity(embeddings, embeddings)
119
+ print(similarities.shape)
120
+ # [3, 3]
121
+ ```
122
+
123
+ <!--
124
+ ### Direct Usage (Transformers)
125
+
126
+ <details><summary>Click to see the direct usage in Transformers</summary>
127
+
128
+ </details>
129
+ -->
130
+
131
+ <!--
132
+ ### Downstream Usage (Sentence Transformers)
133
+
134
+ You can finetune this model on your own dataset.
135
+
136
+ <details><summary>Click to expand</summary>
137
+
138
+ </details>
139
+ -->
140
+
141
+ <!--
142
+ ### Out-of-Scope Use
143
+
144
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
145
+ -->
146
+
147
+ ## Evaluation
148
+
149
+ ### Metrics
150
+
151
+ #### Semantic Similarity
152
+
153
+ * Dataset: `dev-eval`
154
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
155
+
156
+ | Metric | Value |
157
+ |:--------------------|:-----------|
158
+ | pearson_cosine | 0.9644 |
159
+ | **spearman_cosine** | **0.6245** |
160
+
161
+ <!--
162
+ ## Bias, Risks and Limitations
163
+
164
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
165
+ -->
166
+
167
+ <!--
168
+ ### Recommendations
169
+
170
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
171
+ -->
172
+
173
+ ## Training Details
174
+
175
+ ### Training Dataset
176
+
177
+ #### Unnamed Dataset
178
+
179
+ * Size: 133,380 training samples
180
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
181
+ * Approximate statistics based on the first 1000 samples:
182
+ | | sentence_0 | sentence_1 | label |
183
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
184
+ | type | string | string | float |
185
+ | details | <ul><li>min: 3 tokens</li><li>mean: 8.75 tokens</li><li>max: 21 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 8.55 tokens</li><li>max: 19 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.16</li><li>max: 1.0</li></ul> |
186
+ * Samples:
187
+ | sentence_0 | sentence_1 | label |
188
+ |:----------------------------------------------------------------|:-------------------------------------------------------------|:-----------------|
189
+ | <code>Military Times</code> | <code>Financial Analyst Resume Sample</code> | <code>0.0</code> |
190
+ | <code>Outdoor Music Festivals for Adventurers</code> | <code>Balancing Mental Health with Outdoor Adventures</code> | <code>0.0</code> |
191
+ | <code>The Rise of Artificial Intelligence in Video Games</code> | <code>Winter Deals on Streaming Equipment</code> | <code>0.0</code> |
192
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
193
+ ```json
194
+ {
195
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
196
+ }
197
+ ```
198
+
199
+ ### Training Hyperparameters
200
+ #### Non-Default Hyperparameters
201
+
202
+ - `per_device_train_batch_size`: 32
203
+ - `per_device_eval_batch_size`: 32
204
+ - `num_train_epochs`: 1
205
+ - `multi_dataset_batch_sampler`: round_robin
206
+
207
+ #### All Hyperparameters
208
+ <details><summary>Click to expand</summary>
209
+
210
+ - `overwrite_output_dir`: False
211
+ - `do_predict`: False
212
+ - `eval_strategy`: no
213
+ - `prediction_loss_only`: True
214
+ - `per_device_train_batch_size`: 32
215
+ - `per_device_eval_batch_size`: 32
216
+ - `per_gpu_train_batch_size`: None
217
+ - `per_gpu_eval_batch_size`: None
218
+ - `gradient_accumulation_steps`: 1
219
+ - `eval_accumulation_steps`: None
220
+ - `torch_empty_cache_steps`: None
221
+ - `learning_rate`: 5e-05
222
+ - `weight_decay`: 0.0
223
+ - `adam_beta1`: 0.9
224
+ - `adam_beta2`: 0.999
225
+ - `adam_epsilon`: 1e-08
226
+ - `max_grad_norm`: 1
227
+ - `num_train_epochs`: 1
228
+ - `max_steps`: -1
229
+ - `lr_scheduler_type`: linear
230
+ - `lr_scheduler_kwargs`: {}
231
+ - `warmup_ratio`: 0.0
232
+ - `warmup_steps`: 0
233
+ - `log_level`: passive
234
+ - `log_level_replica`: warning
235
+ - `log_on_each_node`: True
236
+ - `logging_nan_inf_filter`: True
237
+ - `save_safetensors`: True
238
+ - `save_on_each_node`: False
239
+ - `save_only_model`: False
240
+ - `restore_callback_states_from_checkpoint`: False
241
+ - `no_cuda`: False
242
+ - `use_cpu`: False
243
+ - `use_mps_device`: False
244
+ - `seed`: 42
245
+ - `data_seed`: None
246
+ - `jit_mode_eval`: False
247
+ - `use_ipex`: False
248
+ - `bf16`: False
249
+ - `fp16`: False
250
+ - `fp16_opt_level`: O1
251
+ - `half_precision_backend`: auto
252
+ - `bf16_full_eval`: False
253
+ - `fp16_full_eval`: False
254
+ - `tf32`: None
255
+ - `local_rank`: 0
256
+ - `ddp_backend`: None
257
+ - `tpu_num_cores`: None
258
+ - `tpu_metrics_debug`: False
259
+ - `debug`: []
260
+ - `dataloader_drop_last`: False
261
+ - `dataloader_num_workers`: 0
262
+ - `dataloader_prefetch_factor`: None
263
+ - `past_index`: -1
264
+ - `disable_tqdm`: False
265
+ - `remove_unused_columns`: True
266
+ - `label_names`: None
267
+ - `load_best_model_at_end`: False
268
+ - `ignore_data_skip`: False
269
+ - `fsdp`: []
270
+ - `fsdp_min_num_params`: 0
271
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
272
+ - `tp_size`: 0
273
+ - `fsdp_transformer_layer_cls_to_wrap`: None
274
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
275
+ - `deepspeed`: None
276
+ - `label_smoothing_factor`: 0.0
277
+ - `optim`: adamw_torch
278
+ - `optim_args`: None
279
+ - `adafactor`: False
280
+ - `group_by_length`: False
281
+ - `length_column_name`: length
282
+ - `ddp_find_unused_parameters`: None
283
+ - `ddp_bucket_cap_mb`: None
284
+ - `ddp_broadcast_buffers`: False
285
+ - `dataloader_pin_memory`: True
286
+ - `dataloader_persistent_workers`: False
287
+ - `skip_memory_metrics`: True
288
+ - `use_legacy_prediction_loop`: False
289
+ - `push_to_hub`: False
290
+ - `resume_from_checkpoint`: None
291
+ - `hub_model_id`: None
292
+ - `hub_strategy`: every_save
293
+ - `hub_private_repo`: None
294
+ - `hub_always_push`: False
295
+ - `gradient_checkpointing`: False
296
+ - `gradient_checkpointing_kwargs`: None
297
+ - `include_inputs_for_metrics`: False
298
+ - `include_for_metrics`: []
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
+ - `include_tokens_per_second`: False
313
+ - `include_num_input_tokens_seen`: False
314
+ - `neftune_noise_alpha`: None
315
+ - `optim_target_modules`: None
316
+ - `batch_eval_metrics`: False
317
+ - `eval_on_start`: False
318
+ - `use_liger_kernel`: False
319
+ - `eval_use_gather_object`: False
320
+ - `average_tokens_across_devices`: False
321
+ - `prompts`: None
322
+ - `batch_sampler`: batch_sampler
323
+ - `multi_dataset_batch_sampler`: round_robin
324
+
325
+ </details>
326
+
327
+ ### Training Logs
328
+ | Epoch | Step | Training Loss | dev-eval_spearman_cosine |
329
+ |:------:|:----:|:-------------:|:------------------------:|
330
+ | 0.1199 | 500 | 0.0841 | - |
331
+ | 0.2399 | 1000 | 0.0769 | - |
332
+ | 0.3598 | 1500 | 0.0671 | - |
333
+ | 0.4797 | 2000 | 0.0623 | - |
334
+ | 0.5997 | 2500 | 0.0558 | - |
335
+ | 0.7196 | 3000 | 0.0502 | - |
336
+ | 0.8395 | 3500 | 0.046 | - |
337
+ | 0.9595 | 4000 | 0.0433 | - |
338
+ | -1 | -1 | - | 0.6101 |
339
+ | 0.1199 | 500 | 0.0362 | - |
340
+ | 0.2399 | 1000 | 0.0353 | - |
341
+ | 0.3598 | 1500 | 0.0337 | - |
342
+ | 0.4797 | 2000 | 0.0332 | - |
343
+ | 0.5997 | 2500 | 0.0327 | - |
344
+ | 0.7196 | 3000 | 0.0312 | - |
345
+ | 0.8395 | 3500 | 0.0287 | - |
346
+ | 0.9595 | 4000 | 0.0286 | - |
347
+ | -1 | -1 | - | 0.6196 |
348
+ | 0.1199 | 500 | 0.0253 | - |
349
+ | 0.2399 | 1000 | 0.0232 | - |
350
+ | 0.3598 | 1500 | 0.0207 | - |
351
+ | 0.4797 | 2000 | 0.0195 | - |
352
+ | 0.5997 | 2500 | 0.0182 | - |
353
+ | 0.7196 | 3000 | 0.0162 | - |
354
+ | 0.8395 | 3500 | 0.0139 | - |
355
+ | 0.9595 | 4000 | 0.0139 | - |
356
+ | -1 | -1 | - | 0.6221 |
357
+ | 0.1199 | 500 | 0.0195 | - |
358
+ | 0.2399 | 1000 | 0.0166 | - |
359
+ | 0.3598 | 1500 | 0.0136 | - |
360
+ | 0.4797 | 2000 | 0.012 | - |
361
+ | 0.5997 | 2500 | 0.0108 | - |
362
+ | 0.7196 | 3000 | 0.0087 | - |
363
+ | 0.8395 | 3500 | 0.0072 | - |
364
+ | 0.9595 | 4000 | 0.0069 | - |
365
+ | -1 | -1 | - | 0.6227 |
366
+ | 0.1199 | 500 | 0.0162 | - |
367
+ | 0.2399 | 1000 | 0.0127 | - |
368
+ | 0.3598 | 1500 | 0.0096 | - |
369
+ | 0.4797 | 2000 | 0.0075 | - |
370
+ | 0.5997 | 2500 | 0.0065 | - |
371
+ | 0.7196 | 3000 | 0.0049 | - |
372
+ | 0.8395 | 3500 | 0.0043 | - |
373
+ | 0.9595 | 4000 | 0.0043 | - |
374
+ | -1 | -1 | - | 0.6229 |
375
+ | 0.1199 | 500 | 0.0139 | - |
376
+ | 0.2399 | 1000 | 0.0099 | - |
377
+ | 0.3598 | 1500 | 0.0069 | - |
378
+ | 0.4797 | 2000 | 0.005 | - |
379
+ | 0.5997 | 2500 | 0.0042 | - |
380
+ | 0.7196 | 3000 | 0.0031 | - |
381
+ | 0.8395 | 3500 | 0.0027 | - |
382
+ | 0.9595 | 4000 | 0.0029 | - |
383
+ | -1 | -1 | - | 0.6234 |
384
+ | 0.1199 | 500 | 0.0125 | - |
385
+ | 0.2399 | 1000 | 0.0078 | - |
386
+ | 0.3598 | 1500 | 0.005 | - |
387
+ | 0.4797 | 2000 | 0.0036 | - |
388
+ | 0.5997 | 2500 | 0.0028 | - |
389
+ | 0.7196 | 3000 | 0.0022 | - |
390
+ | 0.8395 | 3500 | 0.002 | - |
391
+ | 0.9595 | 4000 | 0.0022 | - |
392
+ | -1 | -1 | - | 0.6248 |
393
+ | 0.1199 | 500 | 0.0114 | - |
394
+ | 0.2399 | 1000 | 0.0068 | - |
395
+ | 0.3598 | 1500 | 0.004 | - |
396
+ | 0.4797 | 2000 | 0.0027 | - |
397
+ | 0.5997 | 2500 | 0.0023 | - |
398
+ | 0.7196 | 3000 | 0.0014 | - |
399
+ | 0.8395 | 3500 | 0.0015 | - |
400
+ | 0.9595 | 4000 | 0.0015 | - |
401
+ | -1 | -1 | - | 0.6245 |
402
+ | 0.1199 | 500 | 0.0107 | - |
403
+ | 0.2399 | 1000 | 0.0058 | - |
404
+ | 0.3598 | 1500 | 0.0034 | - |
405
+ | 0.4797 | 2000 | 0.0021 | - |
406
+ | 0.5997 | 2500 | 0.0016 | - |
407
+ | 0.7196 | 3000 | 0.0011 | - |
408
+ | 0.8395 | 3500 | 0.0013 | - |
409
+ | 0.9595 | 4000 | 0.0011 | - |
410
+ | -1 | -1 | - | 0.6249 |
411
+ | 0.1199 | 500 | 0.0097 | - |
412
+ | 0.2399 | 1000 | 0.0048 | - |
413
+ | 0.3598 | 1500 | 0.0024 | - |
414
+ | 0.4797 | 2000 | 0.0015 | - |
415
+ | 0.5997 | 2500 | 0.0013 | - |
416
+ | 0.7196 | 3000 | 0.0009 | - |
417
+ | 0.8395 | 3500 | 0.001 | - |
418
+ | 0.9595 | 4000 | 0.0009 | - |
419
+ | -1 | -1 | - | 0.6245 |
420
+
421
+
422
+ ### Framework Versions
423
+ - Python: 3.11.12
424
+ - Sentence Transformers: 4.1.0
425
+ - Transformers: 4.51.3
426
+ - PyTorch: 2.6.0+cu124
427
+ - Accelerate: 1.5.2
428
+ - Datasets: 3.5.0
429
+ - Tokenizers: 0.21.1
430
+
431
+ ## Citation
432
+
433
+ ### BibTeX
434
+
435
+ #### Sentence Transformers
436
+ ```bibtex
437
+ @inproceedings{reimers-2019-sentence-bert,
438
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
439
+ author = "Reimers, Nils and Gurevych, Iryna",
440
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
441
+ month = "11",
442
+ year = "2019",
443
+ publisher = "Association for Computational Linguistics",
444
+ url = "https://arxiv.org/abs/1908.10084",
445
+ }
446
+ ```
447
+
448
+ <!--
449
+ ## Glossary
450
+
451
+ *Clearly define terms in order to be accessible across audiences.*
452
+ -->
453
+
454
+ <!--
455
+ ## Model Card Authors
456
+
457
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
458
+ -->
459
+
460
+ <!--
461
+ ## Model Card Contact
462
+
463
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
464
+ -->
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 384,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 1536,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 6,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.51.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": "4.1.0",
4
+ "transformers": "4.51.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89bd308fb2d983b30d9c2489ac913bc81b9c219d77893b3d6e39f7a51c9dbb46
3
+ size 90864192
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
4
+ }
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,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 128,
51
+ "model_max_length": 256,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff