MossaabDev commited on
Commit
7f1fdbc
·
verified ·
1 Parent(s): 5721ccf

Upload 11 files

Browse files
.gitattributes CHANGED
@@ -1,35 +1,35 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,358 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:148
9
+ - loss:CosineSimilarityLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: I live in a very bad country, I wish I live in another country
13
+ sentences:
14
+ - O believers! Patiently endure, persevere, stand on guard, and be mindful of Allah,
15
+ so you may be successful.
16
+ - But perhaps you hate a thing and it is good for you; and perhaps you love a thing
17
+ and it is bad for you. And Allah knows, while you know not
18
+ - Do not do a favour expecting more ?in return?.
19
+ - source_sentence: My mother just died, I feel so sad
20
+ sentences:
21
+ - And never think that Allah is unaware of what the wrongdoers do. He only delays
22
+ them for a Day when eyes will stare [in horror]
23
+ - Every soul will taste death. And you will only receive your full reward on the
24
+ Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise
25
+ will ?indeed? triumph, whereas the life of this world is no more than the delusion
26
+ of enjoyment.
27
+ - Every soul will taste death. And you will only receive your full reward on the
28
+ Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise
29
+ will ?indeed? triumph, whereas the life of this world is no more than the delusion
30
+ of enjoyment.
31
+ - source_sentence: I ask for guidance
32
+ sentences:
33
+ - We have sent you ?O Prophet? only as a mercy for the whole world.
34
+ - 'Or ?a soul will? say, If only Allah had guided me, I would have certainly been
35
+ one of the righteous. '
36
+ - And live with them in kindness. For if you dislike them - perhaps you dislike
37
+ a thing and Allah makes therein much good
38
+ - source_sentence: 'I feel bad for gaza people '
39
+ sentences:
40
+ - And We will surely test you with something of fear and hunger and a loss of wealth
41
+ and lives and fruits, but give good tidings to the patient
42
+ - We have sent you ?O Prophet? only as a mercy for the whole world.
43
+ - And be patient, [O Muhammad], for the decision of your Lord, for indeed, you are
44
+ in Our eyes. And exalt [Allah] with praise of your Lord when you arise
45
+ - source_sentence: can quran cure me
46
+ sentences:
47
+ - O humanity! Indeed, there has come to you a warning from your Lord, a cure for
48
+ what is in the hearts, a guide, and a mercy for the believers.
49
+ - 'Those who believe and do good, for them will be bliss and an honourable destination. '
50
+ - Not equal are the good deed and the bad deed. Repel [evil] by that [deed] which
51
+ is better; and thereupon the one whom between you and him is enmity [will become]
52
+ as though he was a devoted friend
53
+ pipeline_tag: sentence-similarity
54
+ library_name: sentence-transformers
55
  ---
56
+
57
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
58
+
59
+ 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.
60
+
61
+ ## Model Details
62
+
63
+ ### Model Description
64
+ - **Model Type:** Sentence Transformer
65
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
66
+ - **Maximum Sequence Length:** 256 tokens
67
+ - **Output Dimensionality:** 384 dimensions
68
+ - **Similarity Function:** Cosine Similarity
69
+ <!-- - **Training Dataset:** Unknown -->
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': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
84
+ (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})
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("sentence_transformers_model_id")
105
+ # Run inference
106
+ sentences = [
107
+ 'can quran cure me',
108
+ 'O humanity! Indeed, there has come to you a warning from your Lord, a cure for what is in the hearts, a guide, and a mercy for the believers.',
109
+ 'Not equal are the good deed and the bad deed. Repel [evil] by that [deed] which is better; and thereupon the one whom between you and him is enmity [will become] as though he was a devoted friend',
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)
118
+ # tensor([[1.0000, 0.9580, 0.9128],
119
+ # [0.9580, 1.0000, 0.9162],
120
+ # [0.9128, 0.9162, 1.0000]])
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
+ <!--
148
+ ## Bias, Risks and Limitations
149
+
150
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
151
+ -->
152
+
153
+ <!--
154
+ ### Recommendations
155
+
156
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
157
+ -->
158
+
159
+ ## Training Details
160
+
161
+ ### Training Dataset
162
+
163
+ #### Unnamed Dataset
164
+
165
+ * Size: 148 training samples
166
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
167
+ * Approximate statistics based on the first 148 samples:
168
+ | | sentence_0 | sentence_1 | label |
169
+ |:--------|:----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:------------------------------------------------|
170
+ | type | string | string | int |
171
+ | details | <ul><li>min: 5 tokens</li><li>mean: 12.09 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 14 tokens</li><li>mean: 38.55 tokens</li><li>max: 121 tokens</li></ul> | <ul><li>-1: ~8.78%</li><li>1: ~91.22%</li></ul> |
172
+ * Samples:
173
+ | sentence_0 | sentence_1 | label |
174
+ |:------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------|
175
+ | <code>I have done a lot of bad things, I wanna return to allahm but I fear allah will not forgive me</code> | <code>Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins. He is indeed the All-Forgiving, Most Merciful.</code> | <code>1</code> |
176
+ | <code>how to act in arguments</code> | <code>And when the ignorant address them, they say words of peace</code> | <code>1</code> |
177
+ | <code>I failed in exams</code> | <code>But perhaps you hate a thing and it is good for you; and perhaps you love a thing and it is bad for you. And Allah knows, while you know not</code> | <code>1</code> |
178
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
179
+ ```json
180
+ {
181
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
182
+ }
183
+ ```
184
+
185
+ ### Training Hyperparameters
186
+ #### Non-Default Hyperparameters
187
+
188
+ - `num_train_epochs`: 20
189
+ - `multi_dataset_batch_sampler`: round_robin
190
+
191
+ #### All Hyperparameters
192
+ <details><summary>Click to expand</summary>
193
+
194
+ - `overwrite_output_dir`: False
195
+ - `do_predict`: False
196
+ - `eval_strategy`: no
197
+ - `prediction_loss_only`: True
198
+ - `per_device_train_batch_size`: 8
199
+ - `per_device_eval_batch_size`: 8
200
+ - `per_gpu_train_batch_size`: None
201
+ - `per_gpu_eval_batch_size`: None
202
+ - `gradient_accumulation_steps`: 1
203
+ - `eval_accumulation_steps`: None
204
+ - `torch_empty_cache_steps`: None
205
+ - `learning_rate`: 5e-05
206
+ - `weight_decay`: 0.0
207
+ - `adam_beta1`: 0.9
208
+ - `adam_beta2`: 0.999
209
+ - `adam_epsilon`: 1e-08
210
+ - `max_grad_norm`: 1
211
+ - `num_train_epochs`: 20
212
+ - `max_steps`: -1
213
+ - `lr_scheduler_type`: linear
214
+ - `lr_scheduler_kwargs`: {}
215
+ - `warmup_ratio`: 0.0
216
+ - `warmup_steps`: 0
217
+ - `log_level`: passive
218
+ - `log_level_replica`: warning
219
+ - `log_on_each_node`: True
220
+ - `logging_nan_inf_filter`: True
221
+ - `save_safetensors`: True
222
+ - `save_on_each_node`: False
223
+ - `save_only_model`: False
224
+ - `restore_callback_states_from_checkpoint`: False
225
+ - `no_cuda`: False
226
+ - `use_cpu`: False
227
+ - `use_mps_device`: False
228
+ - `seed`: 42
229
+ - `data_seed`: None
230
+ - `jit_mode_eval`: False
231
+ - `bf16`: False
232
+ - `fp16`: False
233
+ - `fp16_opt_level`: O1
234
+ - `half_precision_backend`: auto
235
+ - `bf16_full_eval`: False
236
+ - `fp16_full_eval`: False
237
+ - `tf32`: None
238
+ - `local_rank`: 0
239
+ - `ddp_backend`: None
240
+ - `tpu_num_cores`: None
241
+ - `tpu_metrics_debug`: False
242
+ - `debug`: []
243
+ - `dataloader_drop_last`: False
244
+ - `dataloader_num_workers`: 0
245
+ - `dataloader_prefetch_factor`: None
246
+ - `past_index`: -1
247
+ - `disable_tqdm`: False
248
+ - `remove_unused_columns`: True
249
+ - `label_names`: None
250
+ - `load_best_model_at_end`: False
251
+ - `ignore_data_skip`: False
252
+ - `fsdp`: []
253
+ - `fsdp_min_num_params`: 0
254
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
255
+ - `fsdp_transformer_layer_cls_to_wrap`: None
256
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
257
+ - `parallelism_config`: None
258
+ - `deepspeed`: None
259
+ - `label_smoothing_factor`: 0.0
260
+ - `optim`: adamw_torch
261
+ - `optim_args`: None
262
+ - `adafactor`: False
263
+ - `group_by_length`: False
264
+ - `length_column_name`: length
265
+ - `project`: huggingface
266
+ - `trackio_space_id`: trackio
267
+ - `ddp_find_unused_parameters`: None
268
+ - `ddp_bucket_cap_mb`: None
269
+ - `ddp_broadcast_buffers`: False
270
+ - `dataloader_pin_memory`: True
271
+ - `dataloader_persistent_workers`: False
272
+ - `skip_memory_metrics`: True
273
+ - `use_legacy_prediction_loop`: False
274
+ - `push_to_hub`: False
275
+ - `resume_from_checkpoint`: None
276
+ - `hub_model_id`: None
277
+ - `hub_strategy`: every_save
278
+ - `hub_private_repo`: None
279
+ - `hub_always_push`: False
280
+ - `hub_revision`: None
281
+ - `gradient_checkpointing`: False
282
+ - `gradient_checkpointing_kwargs`: None
283
+ - `include_inputs_for_metrics`: False
284
+ - `include_for_metrics`: []
285
+ - `eval_do_concat_batches`: True
286
+ - `fp16_backend`: auto
287
+ - `push_to_hub_model_id`: None
288
+ - `push_to_hub_organization`: None
289
+ - `mp_parameters`:
290
+ - `auto_find_batch_size`: False
291
+ - `full_determinism`: False
292
+ - `torchdynamo`: None
293
+ - `ray_scope`: last
294
+ - `ddp_timeout`: 1800
295
+ - `torch_compile`: False
296
+ - `torch_compile_backend`: None
297
+ - `torch_compile_mode`: None
298
+ - `include_tokens_per_second`: False
299
+ - `include_num_input_tokens_seen`: no
300
+ - `neftune_noise_alpha`: None
301
+ - `optim_target_modules`: None
302
+ - `batch_eval_metrics`: False
303
+ - `eval_on_start`: False
304
+ - `use_liger_kernel`: False
305
+ - `liger_kernel_config`: None
306
+ - `eval_use_gather_object`: False
307
+ - `average_tokens_across_devices`: True
308
+ - `prompts`: None
309
+ - `batch_sampler`: batch_sampler
310
+ - `multi_dataset_batch_sampler`: round_robin
311
+ - `router_mapping`: {}
312
+ - `learning_rate_mapping`: {}
313
+
314
+ </details>
315
+
316
+ ### Framework Versions
317
+ - Python: 3.12.7
318
+ - Sentence Transformers: 5.1.1
319
+ - Transformers: 4.57.1
320
+ - PyTorch: 2.5.1
321
+ - Accelerate: 1.11.0
322
+ - Datasets: 4.3.0
323
+ - Tokenizers: 0.22.1
324
+
325
+ ## Citation
326
+
327
+ ### BibTeX
328
+
329
+ #### Sentence Transformers
330
+ ```bibtex
331
+ @inproceedings{reimers-2019-sentence-bert,
332
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
333
+ author = "Reimers, Nils and Gurevych, Iryna",
334
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
335
+ month = "11",
336
+ year = "2019",
337
+ publisher = "Association for Computational Linguistics",
338
+ url = "https://arxiv.org/abs/1908.10084",
339
+ }
340
+ ```
341
+
342
+ <!--
343
+ ## Glossary
344
+
345
+ *Clearly define terms in order to be accessible across audiences.*
346
+ -->
347
+
348
+ <!--
349
+ ## Model Card Authors
350
+
351
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
352
+ -->
353
+
354
+ <!--
355
+ ## Model Card Contact
356
+
357
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
358
+ -->
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
+ "dtype": "float32",
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "transformers_version": "4.57.1",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.1",
4
+ "transformers": "4.57.1",
5
+ "pytorch": "2.5.1"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:126596ca11dd95f7a7a657a49dab20a47f7c0c62667db5e63d2c14c751b5ce9c
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