omarelsayeed
commited on
Commit
•
c802303
1
Parent(s):
cec956c
Upload folder using huggingface_hub
Browse files- 1_Pooling/config.json +10 -0
- README.md +389 -0
- config.json +43 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- vocab.txt +0 -0
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,389 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: []
|
3 |
+
library_name: sentence-transformers
|
4 |
+
tags:
|
5 |
+
- sentence-transformers
|
6 |
+
- sentence-similarity
|
7 |
+
- feature-extraction
|
8 |
+
- generated_from_trainer
|
9 |
+
- dataset_size:690000
|
10 |
+
- loss:LoggingBAS
|
11 |
+
base_model: Ammar-alhaj-ali/arabic-MARBERT-sentiment
|
12 |
+
datasets: []
|
13 |
+
widget:
|
14 |
+
- source_sentence: اول كان من أفضل البنوك ..الان من افشل البنوك لا في نسبة القروض
|
15 |
+
ولا في البطاقات الإئتمانية وتغذية المحافظ الرقمية ولا في تعليق التطبيق ولا في
|
16 |
+
تمويل تأجير السيارات..بصراحة ندمت اني كنت عميل له لسنوات
|
17 |
+
sentences:
|
18 |
+
- والله كل ماشفت لكزس قلبي يطق من فرحه عليها يارب ترزقني مثلها اركبها أنا وأمي 🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍
|
19 |
+
- للاسف تعامل غير جيد في سياسة الاستبدال بسبب ضاغط العطر عطلان من بداية استخدامة
|
20 |
+
- ليتكم تشيلون الموسيقى و وصور الحريم الموجودة في الحساب وشكرا
|
21 |
+
- source_sentence: "البنك الاهلي يحب الظهور في منصات الاعلام وهو اسوء بنك من ناحية\
|
22 |
+
\ المصداقية وتعامل مع العملاء \nوالعروض الي اغلبها وهميه"
|
23 |
+
sentences:
|
24 |
+
- بنك فاشل والي يخلي راتبه عليه فاشل فوق انك تنزل الراتب متأخر تطبيقكم الزفت خربان
|
25 |
+
والله صدق الي سماكم بنك الشيبان
|
26 |
+
- كيف شلون
|
27 |
+
- جاتني حواله على حسابي وجاني الرسايل النصيه بالحواله بس ادخل الحساب ما انضافت لمجموع
|
28 |
+
الرصيد وبعدها بساعه دخلت الاقي ان كل عمليه التحويل انحذفت مع انها كانت موجوده
|
29 |
+
ايش المشكله ؟؟؟
|
30 |
+
- source_sentence: صراحه كنت اشتريها لكن اختياركم غير موفق لمسى وعتزلتها بدون عنصيريه
|
31 |
+
لكن رايي الشخصي
|
32 |
+
sentences:
|
33 |
+
- السلام عليكم ورحمة الله وبركاته طلعت فيزا سفر بلس إلكترونية ولي ٤ أيام أحاول أفعلها
|
34 |
+
كو راضية تتفعل ياليت تحلوا هالمشكلة
|
35 |
+
- الطلب له اكثر من سنه ويوجد من طلب بعدي و استلم ، مع العلم اول سيارة اطلبها من
|
36 |
+
الشركة ، هل فيه سبب مقنع للانتظار اكثر من سنه !!؟
|
37 |
+
- السلام عليكم. رواتب موظفي الراجحي تاريخ كم تنزل من كل شهر وهل هو تاريخ ثابت او
|
38 |
+
كل شهر بتاريخ
|
39 |
+
- source_sentence: "عود ارين مستخرج من جزيره ارين في دوله اندونيسيا حيث يتم انتقاء\
|
40 |
+
\ العود بعنايه لتغير رائحه المكان \n\U0001F44C \U0001F338\n\n#حاضر_وموجود\n،،\n\
|
41 |
+
.. \n\n.. \n\n.. \n\n.. \nيارب \U0001F932\U0001F3FB"
|
42 |
+
sentences:
|
43 |
+
- تكفى يا يزيد ابوس رجولك راسلني خاص اقسم بمن احل القسم انها ضاقت بي الارض و السما
|
44 |
+
تكفى احتاج مساعدتك
|
45 |
+
- كيف اعرف تاريخ تجديد رخصة القيادة ؟ كيف اطلع ورقة بتاريخ اصدار الرخصة القيادة
|
46 |
+
؟ شركة التامين تطالبني متى جددت الرخصة للمطالبه بمبلغ حادث .
|
47 |
+
- "يارب من نصيبي \nيارب يارب يارب\nعلى الاقل آخذ فيها بيت \nأو أسدد إلتزاماتي"
|
48 |
+
- source_sentence: جميل ويتناسب مع جمال تصاميمكم ومنتجاتكم اوفسايد 😘💐
|
49 |
+
sentences:
|
50 |
+
- بكم مليون؟؟
|
51 |
+
- يعني راح تتوفر قريبًا ان شاء الله ؟؟
|
52 |
+
- 'والتقديم ع الاداري متى؟؟؟؟؟؟؟؟
|
53 |
+
|
54 |
+
شوضعهم حاجزينها واسطات؟؟؟
|
55 |
+
|
56 |
+
اختبرنا اختبارات الرخصةوماجانا قبول عشان مافي تربوي
|
57 |
+
|
58 |
+
واختبرنا قدرة معرفية عشان الادارية،واللي يطرحونه(لاتناسب مؤهلاتك).
|
59 |
+
|
60 |
+
واداري التعليم مايفتحونه اصلا!!
|
61 |
+
|
62 |
+
وش تبونا نشتغل؟؟
|
63 |
+
|
64 |
+
شغل مختلط؟؟
|
65 |
+
|
66 |
+
والا خدمة عملاء؟؟
|
67 |
+
|
68 |
+
والا فرّاشات لاسمح الله؟'
|
69 |
+
pipeline_tag: sentence-similarity
|
70 |
+
---
|
71 |
+
|
72 |
+
# SentenceTransformer based on Ammar-alhaj-ali/arabic-MARBERT-sentiment
|
73 |
+
|
74 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Ammar-alhaj-ali/arabic-MARBERT-sentiment](https://huggingface.co/Ammar-alhaj-ali/arabic-MARBERT-sentiment). 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.
|
75 |
+
|
76 |
+
## Model Details
|
77 |
+
|
78 |
+
### Model Description
|
79 |
+
- **Model Type:** Sentence Transformer
|
80 |
+
- **Base model:** [Ammar-alhaj-ali/arabic-MARBERT-sentiment](https://huggingface.co/Ammar-alhaj-ali/arabic-MARBERT-sentiment) <!-- at revision db063587f876d5abcf6cdeed70648fc76a30349f -->
|
81 |
+
- **Maximum Sequence Length:** 35 tokens
|
82 |
+
- **Output Dimensionality:** 768 tokens
|
83 |
+
- **Similarity Function:** Cosine Similarity
|
84 |
+
<!-- - **Training Dataset:** Unknown -->
|
85 |
+
<!-- - **Language:** Unknown -->
|
86 |
+
<!-- - **License:** Unknown -->
|
87 |
+
|
88 |
+
### Model Sources
|
89 |
+
|
90 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
91 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
92 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
93 |
+
|
94 |
+
### Full Model Architecture
|
95 |
+
|
96 |
+
```
|
97 |
+
SentenceTransformer(
|
98 |
+
(0): Transformer({'max_seq_length': 35, 'do_lower_case': False}) with Transformer model: BertModel
|
99 |
+
(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})
|
100 |
+
)
|
101 |
+
```
|
102 |
+
|
103 |
+
## Usage
|
104 |
+
|
105 |
+
### Direct Usage (Sentence Transformers)
|
106 |
+
|
107 |
+
First install the Sentence Transformers library:
|
108 |
+
|
109 |
+
```bash
|
110 |
+
pip install -U sentence-transformers
|
111 |
+
```
|
112 |
+
|
113 |
+
Then you can load this model and run inference.
|
114 |
+
```python
|
115 |
+
from sentence_transformers import SentenceTransformer
|
116 |
+
|
117 |
+
# Download from the 🤗 Hub
|
118 |
+
model = SentenceTransformer("sentence_transformers_model_id")
|
119 |
+
# Run inference
|
120 |
+
sentences = [
|
121 |
+
'جميل ويتناسب مع جمال تصاميمكم ومنتجاتكم اوفسايد 😘💐',
|
122 |
+
'يعني راح تتوفر قريبًا ان شاء الله ؟؟',
|
123 |
+
'بكم مليون؟؟',
|
124 |
+
]
|
125 |
+
embeddings = model.encode(sentences)
|
126 |
+
print(embeddings.shape)
|
127 |
+
# [3, 768]
|
128 |
+
|
129 |
+
# Get the similarity scores for the embeddings
|
130 |
+
similarities = model.similarity(embeddings, embeddings)
|
131 |
+
print(similarities.shape)
|
132 |
+
# [3, 3]
|
133 |
+
```
|
134 |
+
|
135 |
+
<!--
|
136 |
+
### Direct Usage (Transformers)
|
137 |
+
|
138 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
139 |
+
|
140 |
+
</details>
|
141 |
+
-->
|
142 |
+
|
143 |
+
<!--
|
144 |
+
### Downstream Usage (Sentence Transformers)
|
145 |
+
|
146 |
+
You can finetune this model on your own dataset.
|
147 |
+
|
148 |
+
<details><summary>Click to expand</summary>
|
149 |
+
|
150 |
+
</details>
|
151 |
+
-->
|
152 |
+
|
153 |
+
<!--
|
154 |
+
### Out-of-Scope Use
|
155 |
+
|
156 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
157 |
+
-->
|
158 |
+
|
159 |
+
<!--
|
160 |
+
## Bias, Risks and Limitations
|
161 |
+
|
162 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
163 |
+
-->
|
164 |
+
|
165 |
+
<!--
|
166 |
+
### Recommendations
|
167 |
+
|
168 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
169 |
+
-->
|
170 |
+
|
171 |
+
## Training Details
|
172 |
+
|
173 |
+
### Training Dataset
|
174 |
+
|
175 |
+
#### Unnamed Dataset
|
176 |
+
|
177 |
+
|
178 |
+
* Size: 690,000 training samples
|
179 |
+
* Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
|
180 |
+
* Approximate statistics based on the first 1000 samples:
|
181 |
+
| | sentence_0 | sentence_1 | label |
|
182 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------|
|
183 |
+
| type | string | string | float |
|
184 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 19.71 tokens</li><li>max: 35 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 23.62 tokens</li><li>max: 35 tokens</li></ul> | <ul><li>min: -1.0</li><li>mean: 0.13</li><li>max: 1.0</li></ul> |
|
185 |
+
* Samples:
|
186 |
+
| sentence_0 | sentence_1 | label |
|
187 |
+
|:----------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------|
|
188 |
+
| <code>انشهد</code> | <code>ماهي غريبه عليكم الإبداع صراحه ❤️���🇪❤️<br>- باذن الله اني أفوز بالتيشيرت 🇾🇪</code> | <code>1.0</code> |
|
189 |
+
| <code>ماشاء الله على التصوير والسيارة والمكان😍</code> | <code>-/<br><br>-/<br><br>-/<br>-/<br><br>-/<br><br>-/<br><br>-/عود ارين مستخرج من جزيره ارين في دوله اندونيسيا حيث يتم انتقاء العود بعنايه لتغير رائحه المكان <br>👌 🌸<br><br>#حاضر_وموجود<br>،،<br>،،<br>يارب 🤲🏻</code> | <code>1.0</code> |
|
190 |
+
| <code>عود ارين مستخرج من جزيره ارين في دوله اندونيسيا حيث يتم انتقاء العود بعنايه لتغير رائحه المكان <br>👌👌👌😍…..<br>#حاضر_وموجود</code> | <code>السلام بالله عندي سهم المطاحن الحديثه شلون ابيعه من تطبيق راجحي ؟</code> | <code>-1.0</code> |
|
191 |
+
* Loss: <code>__main__.LoggingBAS</code> with these parameters:
|
192 |
+
```json
|
193 |
+
{
|
194 |
+
"scale": 20.0,
|
195 |
+
"similarity_fct": "cos_sim"
|
196 |
+
}
|
197 |
+
```
|
198 |
+
|
199 |
+
### Training Hyperparameters
|
200 |
+
#### Non-Default Hyperparameters
|
201 |
+
|
202 |
+
- `per_device_train_batch_size`: 256
|
203 |
+
- `per_device_eval_batch_size`: 256
|
204 |
+
- `num_train_epochs`: 2
|
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`: 256
|
215 |
+
- `per_device_eval_batch_size`: 256
|
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 |
+
- `learning_rate`: 5e-05
|
221 |
+
- `weight_decay`: 0.0
|
222 |
+
- `adam_beta1`: 0.9
|
223 |
+
- `adam_beta2`: 0.999
|
224 |
+
- `adam_epsilon`: 1e-08
|
225 |
+
- `max_grad_norm`: 1
|
226 |
+
- `num_train_epochs`: 2
|
227 |
+
- `max_steps`: -1
|
228 |
+
- `lr_scheduler_type`: linear
|
229 |
+
- `lr_scheduler_kwargs`: {}
|
230 |
+
- `warmup_ratio`: 0.0
|
231 |
+
- `warmup_steps`: 0
|
232 |
+
- `log_level`: passive
|
233 |
+
- `log_level_replica`: warning
|
234 |
+
- `log_on_each_node`: True
|
235 |
+
- `logging_nan_inf_filter`: True
|
236 |
+
- `save_safetensors`: True
|
237 |
+
- `save_on_each_node`: False
|
238 |
+
- `save_only_model`: False
|
239 |
+
- `restore_callback_states_from_checkpoint`: False
|
240 |
+
- `no_cuda`: False
|
241 |
+
- `use_cpu`: False
|
242 |
+
- `use_mps_device`: False
|
243 |
+
- `seed`: 42
|
244 |
+
- `data_seed`: None
|
245 |
+
- `jit_mode_eval`: False
|
246 |
+
- `use_ipex`: False
|
247 |
+
- `bf16`: False
|
248 |
+
- `fp16`: False
|
249 |
+
- `fp16_opt_level`: O1
|
250 |
+
- `half_precision_backend`: auto
|
251 |
+
- `bf16_full_eval`: False
|
252 |
+
- `fp16_full_eval`: False
|
253 |
+
- `tf32`: None
|
254 |
+
- `local_rank`: 0
|
255 |
+
- `ddp_backend`: None
|
256 |
+
- `tpu_num_cores`: None
|
257 |
+
- `tpu_metrics_debug`: False
|
258 |
+
- `debug`: []
|
259 |
+
- `dataloader_drop_last`: False
|
260 |
+
- `dataloader_num_workers`: 0
|
261 |
+
- `dataloader_prefetch_factor`: None
|
262 |
+
- `past_index`: -1
|
263 |
+
- `disable_tqdm`: False
|
264 |
+
- `remove_unused_columns`: True
|
265 |
+
- `label_names`: None
|
266 |
+
- `load_best_model_at_end`: False
|
267 |
+
- `ignore_data_skip`: False
|
268 |
+
- `fsdp`: []
|
269 |
+
- `fsdp_min_num_params`: 0
|
270 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
271 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
272 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
273 |
+
- `deepspeed`: None
|
274 |
+
- `label_smoothing_factor`: 0.0
|
275 |
+
- `optim`: adamw_torch
|
276 |
+
- `optim_args`: None
|
277 |
+
- `adafactor`: False
|
278 |
+
- `group_by_length`: False
|
279 |
+
- `length_column_name`: length
|
280 |
+
- `ddp_find_unused_parameters`: None
|
281 |
+
- `ddp_bucket_cap_mb`: None
|
282 |
+
- `ddp_broadcast_buffers`: False
|
283 |
+
- `dataloader_pin_memory`: True
|
284 |
+
- `dataloader_persistent_workers`: False
|
285 |
+
- `skip_memory_metrics`: True
|
286 |
+
- `use_legacy_prediction_loop`: False
|
287 |
+
- `push_to_hub`: False
|
288 |
+
- `resume_from_checkpoint`: None
|
289 |
+
- `hub_model_id`: None
|
290 |
+
- `hub_strategy`: every_save
|
291 |
+
- `hub_private_repo`: False
|
292 |
+
- `hub_always_push`: False
|
293 |
+
- `gradient_checkpointing`: False
|
294 |
+
- `gradient_checkpointing_kwargs`: None
|
295 |
+
- `include_inputs_for_metrics`: False
|
296 |
+
- `eval_do_concat_batches`: True
|
297 |
+
- `fp16_backend`: auto
|
298 |
+
- `push_to_hub_model_id`: None
|
299 |
+
- `push_to_hub_organization`: None
|
300 |
+
- `mp_parameters`:
|
301 |
+
- `auto_find_batch_size`: False
|
302 |
+
- `full_determinism`: False
|
303 |
+
- `torchdynamo`: None
|
304 |
+
- `ray_scope`: last
|
305 |
+
- `ddp_timeout`: 1800
|
306 |
+
- `torch_compile`: False
|
307 |
+
- `torch_compile_backend`: None
|
308 |
+
- `torch_compile_mode`: None
|
309 |
+
- `dispatch_batches`: None
|
310 |
+
- `split_batches`: None
|
311 |
+
- `include_tokens_per_second`: False
|
312 |
+
- `include_num_input_tokens_seen`: False
|
313 |
+
- `neftune_noise_alpha`: None
|
314 |
+
- `optim_target_modules`: None
|
315 |
+
- `batch_eval_metrics`: False
|
316 |
+
- `batch_sampler`: batch_sampler
|
317 |
+
- `multi_dataset_batch_sampler`: round_robin
|
318 |
+
|
319 |
+
</details>
|
320 |
+
|
321 |
+
### Training Logs
|
322 |
+
| Epoch | Step | Training Loss |
|
323 |
+
|:------:|:----:|:-------------:|
|
324 |
+
| 0.1855 | 500 | 5.5343 |
|
325 |
+
| 0.3709 | 1000 | 5.3578 |
|
326 |
+
| 0.5564 | 1500 | 5.311 |
|
327 |
+
| 0.7418 | 2000 | 5.2962 |
|
328 |
+
| 0.9273 | 2500 | 5.2912 |
|
329 |
+
| 1.1128 | 3000 | 5.2856 |
|
330 |
+
| 1.2982 | 3500 | 5.2854 |
|
331 |
+
| 1.4837 | 4000 | 5.2815 |
|
332 |
+
| 1.6691 | 4500 | 5.2774 |
|
333 |
+
|
334 |
+
|
335 |
+
### Framework Versions
|
336 |
+
- Python: 3.10.13
|
337 |
+
- Sentence Transformers: 3.0.1
|
338 |
+
- Transformers: 4.41.2
|
339 |
+
- PyTorch: 2.1.2
|
340 |
+
- Accelerate: 0.32.1
|
341 |
+
- Datasets: 2.19.2
|
342 |
+
- Tokenizers: 0.19.1
|
343 |
+
|
344 |
+
## Citation
|
345 |
+
|
346 |
+
### BibTeX
|
347 |
+
|
348 |
+
#### Sentence Transformers
|
349 |
+
```bibtex
|
350 |
+
@inproceedings{reimers-2019-sentence-bert,
|
351 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
352 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
353 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
354 |
+
month = "11",
|
355 |
+
year = "2019",
|
356 |
+
publisher = "Association for Computational Linguistics",
|
357 |
+
url = "https://arxiv.org/abs/1908.10084",
|
358 |
+
}
|
359 |
+
```
|
360 |
+
|
361 |
+
#### LoggingBAS
|
362 |
+
```bibtex
|
363 |
+
@misc{henderson2017efficient,
|
364 |
+
title={Efficient Natural Language Response Suggestion for Smart Reply},
|
365 |
+
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},
|
366 |
+
year={2017},
|
367 |
+
eprint={1705.00652},
|
368 |
+
archivePrefix={arXiv},
|
369 |
+
primaryClass={cs.CL}
|
370 |
+
}
|
371 |
+
```
|
372 |
+
|
373 |
+
<!--
|
374 |
+
## Glossary
|
375 |
+
|
376 |
+
*Clearly define terms in order to be accessible across audiences.*
|
377 |
+
-->
|
378 |
+
|
379 |
+
<!--
|
380 |
+
## Model Card Authors
|
381 |
+
|
382 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
383 |
+
-->
|
384 |
+
|
385 |
+
<!--
|
386 |
+
## Model Card Contact
|
387 |
+
|
388 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
389 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Ammar-alhaj-ali/arabic-MARBERT-sentiment",
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "neutral",
|
15 |
+
"1": "negative",
|
16 |
+
"2": "positive"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 3072,
|
20 |
+
"label2id": {
|
21 |
+
"negative": 1,
|
22 |
+
"neutral": 0,
|
23 |
+
"positive": 2
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-12,
|
26 |
+
"max_position_embeddings": 512,
|
27 |
+
"model_type": "bert",
|
28 |
+
"num_attention_heads": 12,
|
29 |
+
"num_hidden_layers": 12,
|
30 |
+
"pad_token_id": 0,
|
31 |
+
"pooler_fc_size": 768,
|
32 |
+
"pooler_num_attention_heads": 12,
|
33 |
+
"pooler_num_fc_layers": 3,
|
34 |
+
"pooler_size_per_head": 128,
|
35 |
+
"pooler_type": "first_token_transform",
|
36 |
+
"position_embedding_type": "absolute",
|
37 |
+
"problem_type": "single_label_classification",
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.41.2",
|
40 |
+
"type_vocab_size": 2,
|
41 |
+
"use_cache": true,
|
42 |
+
"vocab_size": 100000
|
43 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.0.1",
|
4 |
+
"transformers": "4.41.2",
|
5 |
+
"pytorch": "2.1.2"
|
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:a9bfe968d746fb31767dd262d4e0042a6b14e6f775cbeab7d96d4d2ae0d41184
|
3 |
+
size 651387752
|
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": 35,
|
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,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 |
+
"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 |
+
},
|
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": 1000000000000000019884624838656,
|
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
|
|