HeyDunaX commited on
Commit
180af21
·
verified ·
1 Parent(s): 7558788

Tay–Vietnamese embedding trained with contrastive learning

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* 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
 
 
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
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 1024,
3
+ "pooling_mode_cls_token": true,
4
+ "pooling_mode_mean_tokens": false,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,450 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:20554
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: AITeamVN/Vietnamese_Embedding_v2
11
+ widget:
12
+ - source_sentence: bon
13
+ sentences:
14
+ - cây mon
15
+ - đổ chậu nước
16
+ - yên phận làm ăn
17
+ - source_sentence: Tua cáy chọt oóc khói doòng
18
+ sentences:
19
+ - chăn
20
+ - hen thở khò khè
21
+ - con gà xổng ra khỏi lồng
22
+ - source_sentence: Khảm
23
+ sentences:
24
+ - kiểm tra
25
+ - treo
26
+ - rạo rực
27
+ - source_sentence: khẩu hảo Bẩu
28
+ sentences:
29
+ - mẹ mắng không bằng bố sa sầm mặt
30
+ - cạo trọc đầu
31
+ - thóc chưa khô hẳn
32
+ - source_sentence: Các
33
+ sentences:
34
+ - mập mạp
35
+ - chân tay mập
36
+ - bắc
37
+ datasets:
38
+ - HeyDunaX/tay-vietnamese-nmt
39
+ pipeline_tag: sentence-similarity
40
+ library_name: sentence-transformers
41
+ ---
42
+
43
+ # SentenceTransformer based on AITeamVN/Vietnamese_Embedding_v2
44
+
45
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [AITeamVN/Vietnamese_Embedding_v2](https://huggingface.co/AITeamVN/Vietnamese_Embedding_v2) on the [tay-vietnamese-nmt](https://huggingface.co/datasets/HeyDunaX/tay-vietnamese-nmt) dataset. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
46
+
47
+ ## Model Details
48
+
49
+ ### Model Description
50
+ - **Model Type:** Sentence Transformer
51
+ - **Base model:** [AITeamVN/Vietnamese_Embedding_v2](https://huggingface.co/AITeamVN/Vietnamese_Embedding_v2) <!-- at revision 18b44161e041bf1d3a333ab5144b5b7b93f914d2 -->
52
+ - **Maximum Sequence Length:** 8192 tokens
53
+ - **Output Dimensionality:** 1024 dimensions
54
+ - **Similarity Function:** Cosine Similarity
55
+ - **Training Dataset:**
56
+ - [tay-vietnamese-nmt](https://huggingface.co/datasets/HeyDunaX/tay-vietnamese-nmt)
57
+ <!-- - **Language:** Unknown -->
58
+ <!-- - **License:** Unknown -->
59
+
60
+ ### Model Sources
61
+
62
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
63
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
64
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
65
+
66
+ ### Full Model Architecture
67
+
68
+ ```
69
+ SentenceTransformer(
70
+ (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False, 'architecture': 'XLMRobertaModel'})
71
+ (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
72
+ (2): Normalize()
73
+ )
74
+ ```
75
+
76
+ ## Usage
77
+
78
+ ### Direct Usage (Sentence Transformers)
79
+
80
+ First install the Sentence Transformers library:
81
+
82
+ ```bash
83
+ pip install -U sentence-transformers
84
+ ```
85
+
86
+ Then you can load this model and run inference.
87
+ ```python
88
+ from sentence_transformers import SentenceTransformer
89
+
90
+ # Download from the 🤗 Hub
91
+ model = SentenceTransformer("HeyDunaX/Tay_Embedding")
92
+ # Run inference
93
+ sentences = [
94
+ 'Các',
95
+ 'bắc',
96
+ 'chân tay mập',
97
+ ]
98
+ embeddings = model.encode(sentences)
99
+ print(embeddings.shape)
100
+ # [3, 1024]
101
+
102
+ # Get the similarity scores for the embeddings
103
+ similarities = model.similarity(embeddings, embeddings)
104
+ print(similarities)
105
+ # tensor([[ 1.0000, 0.3147, -0.0254],
106
+ # [ 0.3147, 1.0000, -0.1489],
107
+ # [-0.0254, -0.1489, 1.0000]])
108
+ ```
109
+
110
+ <!--
111
+ ### Direct Usage (Transformers)
112
+
113
+ <details><summary>Click to see the direct usage in Transformers</summary>
114
+
115
+ </details>
116
+ -->
117
+
118
+ <!--
119
+ ### Downstream Usage (Sentence Transformers)
120
+
121
+ You can finetune this model on your own dataset.
122
+
123
+ <details><summary>Click to expand</summary>
124
+
125
+ </details>
126
+ -->
127
+
128
+ <!--
129
+ ### Out-of-Scope Use
130
+
131
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
132
+ -->
133
+
134
+ <!--
135
+ ## Bias, Risks and Limitations
136
+
137
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
138
+ -->
139
+
140
+ <!--
141
+ ### Recommendations
142
+
143
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
144
+ -->
145
+
146
+ ## Training Details
147
+
148
+ ### Training Dataset
149
+
150
+ #### tay-vietnamese-nmt
151
+
152
+ * Dataset: [tay-vietnamese-nmt](https://huggingface.co/datasets/HeyDunaX/tay-vietnamese-nmt) at [2b04e13](https://huggingface.co/datasets/HeyDunaX/tay-vietnamese-nmt/tree/2b04e139b670d8ad62693d1fbdb943940e4acc05)
153
+ * Size: 20,554 training samples
154
+ * Columns: <code>sentence1</code> and <code>sentence2</code>
155
+ * Approximate statistics based on the first 1000 samples:
156
+ | | sentence1 | sentence2 |
157
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
158
+ | type | string | string |
159
+ | details | <ul><li>min: 3 tokens</li><li>mean: 6.77 tokens</li><li>max: 21 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 5.85 tokens</li><li>max: 17 tokens</li></ul> |
160
+ * Samples:
161
+ | sentence1 | sentence2 |
162
+ |:--------------------------|:------------------------|
163
+ | <code>me</code> | <code>bà cô</code> |
164
+ | <code>noọng ấc cải</code> | <code>em ngực bự</code> |
165
+ | <code>noọng</code> | <code>em gái</code> |
166
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
167
+ ```json
168
+ {
169
+ "scale": 20.0,
170
+ "similarity_fct": "cos_sim",
171
+ "gather_across_devices": false
172
+ }
173
+ ```
174
+
175
+ ### Evaluation Dataset
176
+
177
+ #### tay-vietnamese-nmt
178
+
179
+ * Dataset: [tay-vietnamese-nmt](https://huggingface.co/datasets/HeyDunaX/tay-vietnamese-nmt) at [2b04e13](https://huggingface.co/datasets/HeyDunaX/tay-vietnamese-nmt/tree/2b04e139b670d8ad62693d1fbdb943940e4acc05)
180
+ * Size: 2,295 evaluation samples
181
+ * Columns: <code>sentence1</code> and <code>sentence2</code>
182
+ * Approximate statistics based on the first 1000 samples:
183
+ | | sentence1 | sentence2 |
184
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
185
+ | type | string | string |
186
+ | details | <ul><li>min: 3 tokens</li><li>mean: 7.24 tokens</li><li>max: 26 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 6.02 tokens</li><li>max: 22 tokens</li></ul> |
187
+ * Samples:
188
+ | sentence1 | sentence2 |
189
+ |:-------------------------------------|:--------------------------------------------|
190
+ | <code>Hết fiệc ác</code> | <code>làm việc khoẻ</code> |
191
+ | <code>slấc ác</code> | <code>giặc độc ác</code> |
192
+ | <code>ái chin mác rèo năm mạy</code> | <code>Muốn ăn quả thì phải trồng cây</code> |
193
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
194
+ ```json
195
+ {
196
+ "scale": 20.0,
197
+ "similarity_fct": "cos_sim",
198
+ "gather_across_devices": false
199
+ }
200
+ ```
201
+
202
+ ### Training Hyperparameters
203
+ #### Non-Default Hyperparameters
204
+
205
+ - `eval_strategy`: epoch
206
+ - `gradient_accumulation_steps`: 4
207
+ - `learning_rate`: 1e-05
208
+ - `num_train_epochs`: 10
209
+ - `warmup_ratio`: 0.1
210
+ - `warmup_steps`: 0.1
211
+ - `fp16`: True
212
+ - `load_best_model_at_end`: True
213
+
214
+ #### All Hyperparameters
215
+ <details><summary>Click to expand</summary>
216
+
217
+ - `do_predict`: False
218
+ - `eval_strategy`: epoch
219
+ - `prediction_loss_only`: True
220
+ - `per_device_train_batch_size`: 8
221
+ - `per_device_eval_batch_size`: 8
222
+ - `gradient_accumulation_steps`: 4
223
+ - `eval_accumulation_steps`: None
224
+ - `torch_empty_cache_steps`: None
225
+ - `learning_rate`: 1e-05
226
+ - `weight_decay`: 0.0
227
+ - `adam_beta1`: 0.9
228
+ - `adam_beta2`: 0.999
229
+ - `adam_epsilon`: 1e-08
230
+ - `max_grad_norm`: 1.0
231
+ - `num_train_epochs`: 10
232
+ - `max_steps`: -1
233
+ - `lr_scheduler_type`: linear
234
+ - `lr_scheduler_kwargs`: None
235
+ - `warmup_ratio`: 0.1
236
+ - `warmup_steps`: 0.1
237
+ - `log_level`: passive
238
+ - `log_level_replica`: warning
239
+ - `log_on_each_node`: True
240
+ - `logging_nan_inf_filter`: True
241
+ - `enable_jit_checkpoint`: False
242
+ - `save_on_each_node`: False
243
+ - `save_only_model`: False
244
+ - `restore_callback_states_from_checkpoint`: False
245
+ - `use_cpu`: False
246
+ - `seed`: 42
247
+ - `data_seed`: None
248
+ - `bf16`: False
249
+ - `fp16`: True
250
+ - `bf16_full_eval`: False
251
+ - `fp16_full_eval`: False
252
+ - `tf32`: None
253
+ - `local_rank`: -1
254
+ - `ddp_backend`: None
255
+ - `debug`: []
256
+ - `dataloader_drop_last`: False
257
+ - `dataloader_num_workers`: 0
258
+ - `dataloader_prefetch_factor`: None
259
+ - `disable_tqdm`: False
260
+ - `remove_unused_columns`: True
261
+ - `label_names`: None
262
+ - `load_best_model_at_end`: True
263
+ - `ignore_data_skip`: False
264
+ - `fsdp`: []
265
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
266
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
267
+ - `parallelism_config`: None
268
+ - `deepspeed`: None
269
+ - `label_smoothing_factor`: 0.0
270
+ - `optim`: adamw_torch_fused
271
+ - `optim_args`: None
272
+ - `group_by_length`: False
273
+ - `length_column_name`: length
274
+ - `project`: huggingface
275
+ - `trackio_space_id`: trackio
276
+ - `ddp_find_unused_parameters`: None
277
+ - `ddp_bucket_cap_mb`: None
278
+ - `ddp_broadcast_buffers`: False
279
+ - `dataloader_pin_memory`: True
280
+ - `dataloader_persistent_workers`: False
281
+ - `skip_memory_metrics`: True
282
+ - `push_to_hub`: False
283
+ - `resume_from_checkpoint`: None
284
+ - `hub_model_id`: None
285
+ - `hub_strategy`: every_save
286
+ - `hub_private_repo`: None
287
+ - `hub_always_push`: False
288
+ - `hub_revision`: None
289
+ - `gradient_checkpointing`: False
290
+ - `gradient_checkpointing_kwargs`: None
291
+ - `include_for_metrics`: []
292
+ - `eval_do_concat_batches`: True
293
+ - `auto_find_batch_size`: False
294
+ - `full_determinism`: False
295
+ - `ddp_timeout`: 1800
296
+ - `torch_compile`: False
297
+ - `torch_compile_backend`: None
298
+ - `torch_compile_mode`: None
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
+ - `use_cache`: False
309
+ - `prompts`: None
310
+ - `batch_sampler`: batch_sampler
311
+ - `multi_dataset_batch_sampler`: proportional
312
+ - `router_mapping`: {}
313
+ - `learning_rate_mapping`: {}
314
+
315
+ </details>
316
+
317
+ ### Training Logs
318
+ | Epoch | Step | Training Loss | Validation Loss |
319
+ |:------:|:----:|:-------------:|:---------------:|
320
+ | 0.1556 | 100 | 1.7414 | - |
321
+ | 0.3113 | 200 | 1.3566 | - |
322
+ | 0.4669 | 300 | 1.1332 | - |
323
+ | 0.6226 | 400 | 1.0198 | - |
324
+ | 0.7782 | 500 | 0.8943 | - |
325
+ | 0.9339 | 600 | 0.7909 | - |
326
+ | 1.0 | 643 | - | 0.7135 |
327
+ | 1.0887 | 700 | 0.7070 | - |
328
+ | 1.2444 | 800 | 0.6029 | - |
329
+ | 1.4 | 900 | 0.6095 | - |
330
+ | 1.5556 | 1000 | 0.5436 | - |
331
+ | 1.7113 | 1100 | 0.5534 | - |
332
+ | 1.8669 | 1200 | 0.5363 | - |
333
+ | 2.0 | 1286 | - | 0.5121 |
334
+ | 2.0218 | 1300 | 0.4886 | - |
335
+ | 2.1774 | 1400 | 0.3853 | - |
336
+ | 2.3331 | 1500 | 0.3940 | - |
337
+ | 2.4887 | 1600 | 0.3859 | - |
338
+ | 2.6444 | 1700 | 0.4035 | - |
339
+ | 2.8 | 1800 | 0.3686 | - |
340
+ | 2.9556 | 1900 | 0.3662 | - |
341
+ | 3.0 | 1929 | - | 0.4505 |
342
+ | 3.1105 | 2000 | 0.3276 | - |
343
+ | 3.2661 | 2100 | 0.2877 | - |
344
+ | 3.4218 | 2200 | 0.2991 | - |
345
+ | 3.5774 | 2300 | 0.2898 | - |
346
+ | 3.7331 | 2400 | 0.2704 | - |
347
+ | 3.8887 | 2500 | 0.2807 | - |
348
+ | 4.0 | 2572 | - | 0.4247 |
349
+ | 4.0436 | 2600 | 0.2879 | - |
350
+ | 4.1992 | 2700 | 0.2300 | - |
351
+ | 4.3549 | 2800 | 0.2233 | - |
352
+ | 4.5105 | 2900 | 0.2169 | - |
353
+ | 4.6661 | 3000 | 0.2273 | - |
354
+ | 4.8218 | 3100 | 0.2149 | - |
355
+ | 4.9774 | 3200 | 0.2277 | - |
356
+ | 5.0 | 3215 | - | 0.4163 |
357
+ | 5.1323 | 3300 | 0.1973 | - |
358
+ | 5.2879 | 3400 | 0.1856 | - |
359
+ | 5.4436 | 3500 | 0.1686 | - |
360
+ | 5.5992 | 3600 | 0.1797 | - |
361
+ | 5.7549 | 3700 | 0.1830 | - |
362
+ | 5.9105 | 3800 | 0.1701 | - |
363
+ | 6.0 | 3858 | - | 0.4066 |
364
+ | 6.0654 | 3900 | 0.1620 | - |
365
+ | 6.2210 | 4000 | 0.1453 | - |
366
+ | 6.3767 | 4100 | 0.1593 | - |
367
+ | 6.5323 | 4200 | 0.1481 | - |
368
+ | 6.6879 | 4300 | 0.1506 | - |
369
+ | 6.8436 | 4400 | 0.1534 | - |
370
+ | 6.9992 | 4500 | 0.1554 | - |
371
+ | 7.0 | 4501 | - | 0.3907 |
372
+ | 7.1541 | 4600 | 0.1284 | - |
373
+ | 7.3097 | 4700 | 0.1266 | - |
374
+ | 7.4654 | 4800 | 0.1392 | - |
375
+ | 7.6210 | 4900 | 0.1292 | - |
376
+ | 7.7767 | 5000 | 0.1309 | - |
377
+ | 7.9323 | 5100 | 0.1318 | - |
378
+ | 8.0 | 5144 | - | 0.3922 |
379
+ | 8.0872 | 5200 | 0.1263 | - |
380
+ | 8.2428 | 5300 | 0.1136 | - |
381
+ | 8.3984 | 5400 | 0.1161 | - |
382
+ | 8.5541 | 5500 | 0.1137 | - |
383
+ | 8.7097 | 5600 | 0.1231 | - |
384
+ | 8.8654 | 5700 | 0.1187 | - |
385
+ | 9.0 | 5787 | - | 0.3875 |
386
+ | 9.0202 | 5800 | 0.1182 | - |
387
+ | 9.1759 | 5900 | 0.1059 | - |
388
+ | 9.3315 | 6000 | 0.1062 | - |
389
+ | 9.4872 | 6100 | 0.1044 | - |
390
+ | 9.6428 | 6200 | 0.0992 | - |
391
+ | 9.7984 | 6300 | 0.1057 | - |
392
+ | 9.9541 | 6400 | 0.1048 | - |
393
+ | 10.0 | 6430 | - | 0.3878 |
394
+
395
+
396
+ ### Framework Versions
397
+ - Python: 3.12.12
398
+ - Sentence Transformers: 5.2.2
399
+ - Transformers: 5.0.0
400
+ - PyTorch: 2.9.0+cu126
401
+ - Accelerate: 1.12.0
402
+ - Datasets: 4.0.0
403
+ - Tokenizers: 0.22.2
404
+
405
+ ## Citation
406
+
407
+ ### BibTeX
408
+
409
+ #### Sentence Transformers
410
+ ```bibtex
411
+ @inproceedings{reimers-2019-sentence-bert,
412
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
413
+ author = "Reimers, Nils and Gurevych, Iryna",
414
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
415
+ month = "11",
416
+ year = "2019",
417
+ publisher = "Association for Computational Linguistics",
418
+ url = "https://arxiv.org/abs/1908.10084",
419
+ }
420
+ ```
421
+
422
+ #### MultipleNegativesRankingLoss
423
+ ```bibtex
424
+ @misc{henderson2017efficient,
425
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
426
+ 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},
427
+ year={2017},
428
+ eprint={1705.00652},
429
+ archivePrefix={arXiv},
430
+ primaryClass={cs.CL}
431
+ }
432
+ ```
433
+
434
+ <!--
435
+ ## Glossary
436
+
437
+ *Clearly define terms in order to be accessible across audiences.*
438
+ -->
439
+
440
+ <!--
441
+ ## Model Card Authors
442
+
443
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
444
+ -->
445
+
446
+ <!--
447
+ ## Model Card Contact
448
+
449
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
450
+ -->
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "XLMRobertaModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4096,
16
+ "is_decoder": false,
17
+ "layer_norm_eps": 1e-05,
18
+ "max_position_embeddings": 8194,
19
+ "model_type": "xlm-roberta",
20
+ "num_attention_heads": 16,
21
+ "num_hidden_layers": 24,
22
+ "output_past": true,
23
+ "pad_token_id": 1,
24
+ "position_embedding_type": "absolute",
25
+ "tie_word_embeddings": true,
26
+ "transformers_version": "5.0.0",
27
+ "type_vocab_size": 1,
28
+ "use_cache": true,
29
+ "vocab_size": 250002
30
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.2.2",
4
+ "transformers": "5.0.0",
5
+ "pytorch": "2.9.0+cu126"
6
+ },
7
+ "prompts": {
8
+ "query": "",
9
+ "document": ""
10
+ },
11
+ "default_prompt_name": null,
12
+ "model_type": "SentenceTransformer",
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:7796a2a71dd43d0034d3b4a1b0ce68f2e85c6c43c1d607a57c515e83131ac452
3
+ size 2271064408
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": 8192,
3
+ "do_lower_case": false
4
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc552f2faa9ccaf0be4136806b77d442c6f81061a20ce3c569927d3908599284
3
+ size 16781485
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": true,
6
+ "cls_token": "<s>",
7
+ "eos_token": "</s>",
8
+ "is_local": true,
9
+ "mask_token": "<mask>",
10
+ "model_max_length": 8192,
11
+ "model_specific_special_tokens": {},
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "sp_model_kwargs": {},
15
+ "tokenizer_class": "XLMRobertaTokenizer",
16
+ "unk_token": "<unk>"
17
+ }