AhmedZaky1 commited on
Commit
dc3503e
·
verified ·
1 Parent(s): 5fb8a3f

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": 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,439 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:27788
8
+ - loss:MatryoshkaLoss
9
+ - loss:CosineSimilarityLoss
10
+ base_model: AhmedZaky1/arabic-bert-nli-matryoshka
11
+ widget:
12
+ - source_sentence: أنتِ مسيحية
13
+ sentences:
14
+ - شخص يقطع بطاطا
15
+ - أي نظام لا يعمل لنا؟ | So which system isn't working for us?
16
+ - لذا أنت لست مسيحياً
17
+ - source_sentence: صبي صغير وفتاة صغيرة يلعبان معاً بالخارج | A little boy and a little
18
+ girl playing together outside.
19
+ sentences:
20
+ - President John Evans Atta-Mills Must Resign Now -NPP Germany
21
+ - He's not wealthy because he's successful. | إنه ليس غنياً لأنه ناجح
22
+ - صبي شاب وفتاة شابة يسيران نحو بعضهما البعض | A young boy and a young girl walking
23
+ towards each other
24
+ - source_sentence: A man is playing a piano.
25
+ sentences:
26
+ - A boy is crawling into a dog house.
27
+ - '"Our strong preference is to achieve a financial restructuring out of court,
28
+ and we remain hopeful we can do so," chief executive Marce Fuller said. | "إن
29
+ تفضيلنا القوي هو تحقيق إعادة هيكلة مالية خارج المحكمة، ونحن ما زلنا نأمل في أن
30
+ نتمكن من القيام بذلك"، قال الرئيس التنفيذي مارس فولر.'
31
+ - A man is playing a flute.
32
+ - source_sentence: المسلح الذي احتجز رجال الإطفاء في ضواحي أتلانتا كرهائن مات الآن،
33
+ تقول الشرطة | Gunman who held suburban Atlanta firefighters hostage now dead,
34
+ police say
35
+ sentences:
36
+ - الكلب الأبيض والبني يركض عبر العشب.
37
+ - ضابط يتحدث إلى المجندين
38
+ - 'فيديو: مسلح يأخذ رجال الإطفاء رهائن في جورجيا | The Lede: Video: Gunman Takes
39
+ Firefighters Hostage in Georgia'
40
+ - source_sentence: ديترويت مؤهلة للحماية من الإفلاس
41
+ sentences:
42
+ - 'ديترويت مؤهلة للحماية الإفلاسية: قاضي أمريكي'
43
+ - اعتقل المدعون العامون الأمريكيون أكثر من 130 شخصاً واصادروا أكثر من 17 مليون دولار
44
+ في حملة مستمرة ضد الاحتيال والاستغلال على الإنترنت.
45
+ - بورصة نيويورك ستعيد فتحها الأربعاء
46
+ pipeline_tag: sentence-similarity
47
+ library_name: sentence-transformers
48
+ metrics:
49
+ - pearson_cosine
50
+ - spearman_cosine
51
+ model-index:
52
+ - name: SentenceTransformer based on AhmedZaky1/arabic-bert-nli-matryoshka
53
+ results:
54
+ - task:
55
+ type: semantic-similarity
56
+ name: Semantic Similarity
57
+ dataset:
58
+ name: arabic sts dev
59
+ type: arabic-sts-dev
60
+ metrics:
61
+ - type: pearson_cosine
62
+ value: 0.9649110965166922
63
+ name: Pearson Cosine
64
+ - type: spearman_cosine
65
+ value: 0.9594722408336371
66
+ name: Spearman Cosine
67
+ ---
68
+
69
+ # SentenceTransformer based on AhmedZaky1/arabic-bert-nli-matryoshka
70
+
71
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [AhmedZaky1/arabic-bert-nli-matryoshka](https://huggingface.co/AhmedZaky1/arabic-bert-nli-matryoshka). 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.
72
+
73
+ ## Model Details
74
+
75
+ ### Model Description
76
+ - **Model Type:** Sentence Transformer
77
+ - **Base model:** [AhmedZaky1/arabic-bert-nli-matryoshka](https://huggingface.co/AhmedZaky1/arabic-bert-nli-matryoshka) <!-- at revision b2d385019e1aec30d896be7bfcaf9f968973e35b -->
78
+ - **Maximum Sequence Length:** 512 tokens
79
+ - **Output Dimensionality:** 768 dimensions
80
+ - **Similarity Function:** Cosine Similarity
81
+ <!-- - **Training Dataset:** Unknown -->
82
+ <!-- - **Language:** Unknown -->
83
+ <!-- - **License:** Unknown -->
84
+
85
+ ### Model Sources
86
+
87
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
88
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
89
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
90
+
91
+ ### Full Model Architecture
92
+
93
+ ```
94
+ SentenceTransformer(
95
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
96
+ (1): Pooling({'word_embedding_dimension': 768, '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})
97
+ )
98
+ ```
99
+
100
+ ## Usage
101
+
102
+ ### Direct Usage (Sentence Transformers)
103
+
104
+ First install the Sentence Transformers library:
105
+
106
+ ```bash
107
+ pip install -U sentence-transformers
108
+ ```
109
+
110
+ Then you can load this model and run inference.
111
+ ```python
112
+ from sentence_transformers import SentenceTransformer
113
+
114
+ # Download from the 🤗 Hub
115
+ model = SentenceTransformer("AhmedZaky1/arabic-bert-improved-sts-matryoshka-20250526")
116
+ # Run inference
117
+ sentences = [
118
+ 'ديترويت مؤهلة للحماية من الإفلاس',
119
+ 'ديترويت مؤهلة للحماية الإفلاسية: قاضي أمريكي',
120
+ 'بورصة نيويورك ستعيد فتحها الأربعاء',
121
+ ]
122
+ embeddings = model.encode(sentences)
123
+ print(embeddings.shape)
124
+ # [3, 768]
125
+
126
+ # Get the similarity scores for the embeddings
127
+ similarities = model.similarity(embeddings, embeddings)
128
+ print(similarities.shape)
129
+ # [3, 3]
130
+ ```
131
+
132
+ <!--
133
+ ### Direct Usage (Transformers)
134
+
135
+ <details><summary>Click to see the direct usage in Transformers</summary>
136
+
137
+ </details>
138
+ -->
139
+
140
+ <!--
141
+ ### Downstream Usage (Sentence Transformers)
142
+
143
+ You can finetune this model on your own dataset.
144
+
145
+ <details><summary>Click to expand</summary>
146
+
147
+ </details>
148
+ -->
149
+
150
+ <!--
151
+ ### Out-of-Scope Use
152
+
153
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
154
+ -->
155
+
156
+ ## Evaluation
157
+
158
+ ### Metrics
159
+
160
+ #### Semantic Similarity
161
+
162
+ * Dataset: `arabic-sts-dev`
163
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
164
+
165
+ | Metric | Value |
166
+ |:--------------------|:-----------|
167
+ | pearson_cosine | 0.9649 |
168
+ | **spearman_cosine** | **0.9595** |
169
+
170
+ <!--
171
+ ## Bias, Risks and Limitations
172
+
173
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
174
+ -->
175
+
176
+ <!--
177
+ ### Recommendations
178
+
179
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
180
+ -->
181
+
182
+ ## Training Details
183
+
184
+ ### Training Dataset
185
+
186
+ #### Unnamed Dataset
187
+
188
+
189
+ * Size: 27,788 training samples
190
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
191
+ * Approximate statistics based on the first 1000 samples:
192
+ | | sentence_0 | sentence_1 | label |
193
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:---------------------------------------------------------------|
194
+ | type | string | string | float |
195
+ | details | <ul><li>min: 4 tokens</li><li>mean: 27.82 tokens</li><li>max: 143 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 27.67 tokens</li><li>max: 148 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.53</li><li>max: 1.0</li></ul> |
196
+ * Samples:
197
+ | sentence_0 | sentence_1 | label |
198
+ |:-----------------------------------------------------------------------|:-----------------------------------------------------------------------------------------|:------------------|
199
+ | <code>A man is walking along a path through wilderness.</code> | <code>A man is walking down a road.</code> | <code>0.5</code> |
200
+ | <code>China's online population rises to 618 mln</code> | <code>China's troubled Xinjiang hit by more violence</code> | <code>0.08</code> |
201
+ | <code>وجد الباحثون فقط تجاويف فارغة و نسيج ندب حيث كانت الأورام</code> | <code>لم يتم اكتشاف أي أورام، بل تم العثور على تجاويف فارغة ونسيج ندبة في مكانها.</code> | <code>0.8</code> |
202
+ * Loss: [<code>MatryoshkaLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
203
+ ```json
204
+ {
205
+ "loss": "CosineSimilarityLoss",
206
+ "matryoshka_dims": [
207
+ 768,
208
+ 512,
209
+ 256,
210
+ 128,
211
+ 64
212
+ ],
213
+ "matryoshka_weights": [
214
+ 1,
215
+ 1,
216
+ 1,
217
+ 1,
218
+ 1
219
+ ],
220
+ "n_dims_per_step": -1
221
+ }
222
+ ```
223
+
224
+ ### Training Hyperparameters
225
+ #### Non-Default Hyperparameters
226
+
227
+ - `eval_strategy`: steps
228
+ - `per_device_train_batch_size`: 16
229
+ - `per_device_eval_batch_size`: 16
230
+ - `num_train_epochs`: 6
231
+ - `multi_dataset_batch_sampler`: round_robin
232
+
233
+ #### All Hyperparameters
234
+ <details><summary>Click to expand</summary>
235
+
236
+ - `overwrite_output_dir`: False
237
+ - `do_predict`: False
238
+ - `eval_strategy`: steps
239
+ - `prediction_loss_only`: True
240
+ - `per_device_train_batch_size`: 16
241
+ - `per_device_eval_batch_size`: 16
242
+ - `per_gpu_train_batch_size`: None
243
+ - `per_gpu_eval_batch_size`: None
244
+ - `gradient_accumulation_steps`: 1
245
+ - `eval_accumulation_steps`: None
246
+ - `torch_empty_cache_steps`: None
247
+ - `learning_rate`: 5e-05
248
+ - `weight_decay`: 0.0
249
+ - `adam_beta1`: 0.9
250
+ - `adam_beta2`: 0.999
251
+ - `adam_epsilon`: 1e-08
252
+ - `max_grad_norm`: 1
253
+ - `num_train_epochs`: 6
254
+ - `max_steps`: -1
255
+ - `lr_scheduler_type`: linear
256
+ - `lr_scheduler_kwargs`: {}
257
+ - `warmup_ratio`: 0.0
258
+ - `warmup_steps`: 0
259
+ - `log_level`: passive
260
+ - `log_level_replica`: warning
261
+ - `log_on_each_node`: True
262
+ - `logging_nan_inf_filter`: True
263
+ - `save_safetensors`: True
264
+ - `save_on_each_node`: False
265
+ - `save_only_model`: False
266
+ - `restore_callback_states_from_checkpoint`: False
267
+ - `no_cuda`: False
268
+ - `use_cpu`: False
269
+ - `use_mps_device`: False
270
+ - `seed`: 42
271
+ - `data_seed`: None
272
+ - `jit_mode_eval`: False
273
+ - `use_ipex`: False
274
+ - `bf16`: False
275
+ - `fp16`: False
276
+ - `fp16_opt_level`: O1
277
+ - `half_precision_backend`: auto
278
+ - `bf16_full_eval`: False
279
+ - `fp16_full_eval`: False
280
+ - `tf32`: None
281
+ - `local_rank`: 0
282
+ - `ddp_backend`: None
283
+ - `tpu_num_cores`: None
284
+ - `tpu_metrics_debug`: False
285
+ - `debug`: []
286
+ - `dataloader_drop_last`: False
287
+ - `dataloader_num_workers`: 0
288
+ - `dataloader_prefetch_factor`: None
289
+ - `past_index`: -1
290
+ - `disable_tqdm`: False
291
+ - `remove_unused_columns`: True
292
+ - `label_names`: None
293
+ - `load_best_model_at_end`: False
294
+ - `ignore_data_skip`: False
295
+ - `fsdp`: []
296
+ - `fsdp_min_num_params`: 0
297
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
298
+ - `tp_size`: 0
299
+ - `fsdp_transformer_layer_cls_to_wrap`: None
300
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
301
+ - `deepspeed`: None
302
+ - `label_smoothing_factor`: 0.0
303
+ - `optim`: adamw_torch
304
+ - `optim_args`: None
305
+ - `adafactor`: False
306
+ - `group_by_length`: False
307
+ - `length_column_name`: length
308
+ - `ddp_find_unused_parameters`: None
309
+ - `ddp_bucket_cap_mb`: None
310
+ - `ddp_broadcast_buffers`: False
311
+ - `dataloader_pin_memory`: True
312
+ - `dataloader_persistent_workers`: False
313
+ - `skip_memory_metrics`: True
314
+ - `use_legacy_prediction_loop`: False
315
+ - `push_to_hub`: False
316
+ - `resume_from_checkpoint`: None
317
+ - `hub_model_id`: None
318
+ - `hub_strategy`: every_save
319
+ - `hub_private_repo`: None
320
+ - `hub_always_push`: False
321
+ - `gradient_checkpointing`: False
322
+ - `gradient_checkpointing_kwargs`: None
323
+ - `include_inputs_for_metrics`: False
324
+ - `include_for_metrics`: []
325
+ - `eval_do_concat_batches`: True
326
+ - `fp16_backend`: auto
327
+ - `push_to_hub_model_id`: None
328
+ - `push_to_hub_organization`: None
329
+ - `mp_parameters`:
330
+ - `auto_find_batch_size`: False
331
+ - `full_determinism`: False
332
+ - `torchdynamo`: None
333
+ - `ray_scope`: last
334
+ - `ddp_timeout`: 1800
335
+ - `torch_compile`: False
336
+ - `torch_compile_backend`: None
337
+ - `torch_compile_mode`: None
338
+ - `include_tokens_per_second`: False
339
+ - `include_num_input_tokens_seen`: False
340
+ - `neftune_noise_alpha`: None
341
+ - `optim_target_modules`: None
342
+ - `batch_eval_metrics`: False
343
+ - `eval_on_start`: False
344
+ - `use_liger_kernel`: False
345
+ - `eval_use_gather_object`: False
346
+ - `average_tokens_across_devices`: False
347
+ - `prompts`: None
348
+ - `batch_sampler`: batch_sampler
349
+ - `multi_dataset_batch_sampler`: round_robin
350
+
351
+ </details>
352
+
353
+ ### Training Logs
354
+ | Epoch | Step | Training Loss | arabic-sts-dev_spearman_cosine |
355
+ |:------:|:----:|:-------------:|:------------------------------:|
356
+ | 0.4994 | 434 | - | 0.8057 |
357
+ | 0.5754 | 500 | 0.1915 | - |
358
+ | 0.9988 | 868 | - | 0.8448 |
359
+ | 1.0 | 869 | - | 0.8449 |
360
+ | 1.1507 | 1000 | 0.1287 | - |
361
+ | 1.4983 | 1302 | - | 0.8742 |
362
+ | 1.7261 | 1500 | 0.0972 | - |
363
+ | 1.9977 | 1736 | - | 0.8979 |
364
+ | 2.0 | 1738 | - | 0.8978 |
365
+ | 2.3015 | 2000 | 0.0715 | - |
366
+ | 2.4971 | 2170 | - | 0.9141 |
367
+ | 2.8769 | 2500 | 0.0561 | - |
368
+ | 2.9965 | 2604 | - | 0.9279 |
369
+ | 3.0 | 2607 | - | 0.9282 |
370
+ | 3.4522 | 3000 | 0.044 | - |
371
+ | 3.4960 | 3038 | - | 0.9373 |
372
+ | 3.9954 | 3472 | - | 0.9443 |
373
+ | 4.0 | 3476 | - | 0.9442 |
374
+ | 4.0276 | 3500 | 0.0384 | - |
375
+ | 4.4948 | 3906 | - | 0.9485 |
376
+ | 4.6030 | 4000 | 0.0316 | - |
377
+ | 4.9942 | 4340 | - | 0.9528 |
378
+ | 5.0 | 4345 | - | 0.9527 |
379
+ | 5.1784 | 4500 | 0.0291 | - |
380
+ | 5.4937 | 4774 | - | 0.9576 |
381
+ | 5.7537 | 5000 | 0.0259 | - |
382
+ | 5.9931 | 5208 | - | 0.9595 |
383
+
384
+
385
+ ### Framework Versions
386
+ - Python: 3.12.7
387
+ - Sentence Transformers: 3.3.1
388
+ - Transformers: 4.51.3
389
+ - PyTorch: 2.6.0+cu124
390
+ - Accelerate: 1.4.0
391
+ - Datasets: 3.3.2
392
+ - Tokenizers: 0.21.1
393
+
394
+ ## Citation
395
+
396
+ ### BibTeX
397
+
398
+ #### Sentence Transformers
399
+ ```bibtex
400
+ @inproceedings{reimers-2019-sentence-bert,
401
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
402
+ author = "Reimers, Nils and Gurevych, Iryna",
403
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
404
+ month = "11",
405
+ year = "2019",
406
+ publisher = "Association for Computational Linguistics",
407
+ url = "https://arxiv.org/abs/1908.10084",
408
+ }
409
+ ```
410
+
411
+ #### MatryoshkaLoss
412
+ ```bibtex
413
+ @misc{kusupati2024matryoshka,
414
+ title={Matryoshka Representation Learning},
415
+ author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
416
+ year={2024},
417
+ eprint={2205.13147},
418
+ archivePrefix={arXiv},
419
+ primaryClass={cs.LG}
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,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 3072,
12
+ "layer_norm_eps": 1e-12,
13
+ "max_position_embeddings": 512,
14
+ "model_type": "bert",
15
+ "num_attention_heads": 12,
16
+ "num_hidden_layers": 12,
17
+ "pad_token_id": 0,
18
+ "position_embedding_type": "absolute",
19
+ "torch_dtype": "float32",
20
+ "transformers_version": "4.51.3",
21
+ "type_vocab_size": 2,
22
+ "use_cache": true,
23
+ "vocab_size": 64000
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.3.1",
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:94b3dff3a7c74d9cd6daa7f80426846cba3ad35ce190e599d20442fd45fc08b1
3
+ size 540795752
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
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,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "5": {
44
+ "content": "[رابط]",
45
+ "lstrip": false,
46
+ "normalized": true,
47
+ "rstrip": false,
48
+ "single_word": true,
49
+ "special": true
50
+ },
51
+ "6": {
52
+ "content": "[بريد]",
53
+ "lstrip": false,
54
+ "normalized": true,
55
+ "rstrip": false,
56
+ "single_word": true,
57
+ "special": true
58
+ },
59
+ "7": {
60
+ "content": "[مستخدم]",
61
+ "lstrip": false,
62
+ "normalized": true,
63
+ "rstrip": false,
64
+ "single_word": true,
65
+ "special": true
66
+ }
67
+ },
68
+ "clean_up_tokenization_spaces": false,
69
+ "cls_token": "[CLS]",
70
+ "do_basic_tokenize": true,
71
+ "do_lower_case": false,
72
+ "extra_special_tokens": {},
73
+ "mask_token": "[MASK]",
74
+ "max_len": 512,
75
+ "max_length": 75,
76
+ "model_max_length": 512,
77
+ "never_split": [
78
+ "[بريد]",
79
+ "[مستخدم]",
80
+ "[رابط]"
81
+ ],
82
+ "pad_to_multiple_of": null,
83
+ "pad_token": "[PAD]",
84
+ "pad_token_type_id": 0,
85
+ "padding_side": "right",
86
+ "sep_token": "[SEP]",
87
+ "stride": 0,
88
+ "strip_accents": null,
89
+ "tokenize_chinese_chars": true,
90
+ "tokenizer_class": "BertTokenizer",
91
+ "truncation_side": "right",
92
+ "truncation_strategy": "longest_first",
93
+ "unk_token": "[UNK]"
94
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff