Mead0w1ark commited on
Commit
b711fac
·
verified ·
1 Parent(s): 1a5d8bd

Upload fine-tuned multilingual-e5-small for HS code classification

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": 384,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:9829
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: intfloat/multilingual-e5-small
11
+ widget:
12
+ - source_sentence: 'query: DAIRY PRODUCE; CHEESE (NOT GRATED, POWDERED OR PROCESSED),
13
+ N.E.C. IN HEADING NO. 0406 POWDERED IN VACUUM PACKS 14290 PCS'
14
+ sentences:
15
+ - 'passage: Tôm đông lạnh, sơ chế, bỏ đầu bỏ vỏ, để xuất khẩu theo điều kiện thương
16
+ mại tiêu chuẩn, điều kiện giao hàng FOB'
17
+ - 'passage: Phô mai loại khác, để thông quan và khai báo nhập khẩu, kèm hóa đơn
18
+ thương mại và phiếu đóng gói'
19
+ - 'passage: Organic fresh tomatoes, hydroponic, for bulk procurement program, palletized
20
+ for container shipment'
21
+ - source_sentence: 'query: Tôm thẻ chân trắng đông lạnh xuất khẩu'
22
+ sentences:
23
+ - 'passage: Red Delicious apples, fresh, for export'
24
+ - 'passage: Cá nước ngọt đông lạnh, đóng thùng'
25
+ - 'passage: กุ้งแช่แข็ง IQF ส่งออก สำหรับการขนส่งข้ามพรมแดน เงื่อนไขการขนส่ง CIF'
26
+ - source_sentence: 'query: 新鲜脐橙 加州进口,用于国际批发分销,托盘装集装箱运输'
27
+ sentences:
28
+ - 'passage: VEGETABLES; TOMATOES, FRESH OR CHILLED SIZE 72MM IN REEFER CONTAINER'
29
+ - 'passage: CONVENTIONAL FRUIT, EDIBLE; ORANGES, FRESH OR DRIED IN BULK BAGS, for
30
+ industrial procurement contract, shipping term FOB'
31
+ - 'passage: Thịt bò đông lạnh không xương, Halal'
32
+ - source_sentence: 'query: MEAT; OF BOVINE ANIMALS, BONELESS CUTS, FRESH OR CHILLED
33
+ IN CONTAINER, for cross-border shipment, shipping term FOB'
34
+ sentences:
35
+ - 'passage: Fresh plum tomatoes for Italian cooking, for bulk procurement program,
36
+ palletized for container shipment'
37
+ - 'passage: Boneless beef sirloin, fresh, not frozen, for bonded warehouse delivery,
38
+ palletized for container shipment'
39
+ - 'passage: ORGANIC VEGETABLES, ALLIACEOUS; ONIONS AND SHALLOTS, FRESH OR CHILLED
40
+ WHITE ONION VARIETY IN CARTONS'
41
+ - source_sentence: 'query: CRUSTACEANS; FROZEN, SHRIMPS AND PRAWNS, EXCLUDING COLD-WATER
42
+ VARIETIES, IN SHELL OR NOT, SMOKED, COOKED OR NOT BEFORE OR DURING SMOKING; IN
43
+ SHELL, COOKED BY STEAMING OR BY BOILING IN WATER 21/25 COUNT IN SACKS 8576.9 KG'
44
+ sentences:
45
+ - 'passage: กุ้งแช่แข็ง IQF ส่งออก สำหรับการขนส่งข้ามพรมแดน เงื่อนไขการขนส่ง CIF'
46
+ - 'passage: DAIRY PRODUCE; MILK AND CREAM, CONCENTRATED OR CONTAINING ADDED SUGAR
47
+ OR OTHER SWEETENING MATTER, IN POWDER, GRANULES OR OTHER SOLID FORMS, OF A FAT
48
+ CONTENT NOT EXCEEDING 1.5% (BY WEIGHT) FAT CONTENT 3.5% IN VACUUM PACKS'
49
+ - 'passage: CRUSTACEANS; FROZEN, SHRIMPS AND PRAWNS, EXCLUDING COLD-WATER VARIETIES,
50
+ IN SHELL OR NOT, SMOKED, COOKED OR NOT BEFORE OR DURING SMOKING; IN SHELL, COOKED
51
+ BY STEAMING OR BY BOILING IN WATER'
52
+ pipeline_tag: sentence-similarity
53
+ library_name: sentence-transformers
54
+ ---
55
+
56
+ # SentenceTransformer based on intfloat/multilingual-e5-small
57
+
58
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small). 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.
59
+
60
+ ## Model Details
61
+
62
+ ### Model Description
63
+ - **Model Type:** Sentence Transformer
64
+ - **Base model:** [intfloat/multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small) <!-- at revision c007d7ef6fd86656326059b28395a7a03a7c5846 -->
65
+ - **Maximum Sequence Length:** 512 tokens
66
+ - **Output Dimensionality:** 384 dimensions
67
+ - **Similarity Function:** Cosine Similarity
68
+ <!-- - **Training Dataset:** Unknown -->
69
+ <!-- - **Language:** Unknown -->
70
+ <!-- - **License:** Unknown -->
71
+
72
+ ### Model Sources
73
+
74
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
75
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
76
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
77
+
78
+ ### Full Model Architecture
79
+
80
+ ```
81
+ SentenceTransformer(
82
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
83
+ (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})
84
+ (2): Normalize()
85
+ )
86
+ ```
87
+
88
+ ## Usage
89
+
90
+ ### Direct Usage (Sentence Transformers)
91
+
92
+ First install the Sentence Transformers library:
93
+
94
+ ```bash
95
+ pip install -U sentence-transformers
96
+ ```
97
+
98
+ Then you can load this model and run inference.
99
+ ```python
100
+ from sentence_transformers import SentenceTransformer
101
+
102
+ # Download from the 🤗 Hub
103
+ model = SentenceTransformer("sentence_transformers_model_id")
104
+ # Run inference
105
+ sentences = [
106
+ 'query: CRUSTACEANS; FROZEN, SHRIMPS AND PRAWNS, EXCLUDING COLD-WATER VARIETIES, IN SHELL OR NOT, SMOKED, COOKED OR NOT BEFORE OR DURING SMOKING; IN SHELL, COOKED BY STEAMING OR BY BOILING IN WATER 21/25 COUNT IN SACKS 8576.9 KG',
107
+ 'passage: CRUSTACEANS; FROZEN, SHRIMPS AND PRAWNS, EXCLUDING COLD-WATER VARIETIES, IN SHELL OR NOT, SMOKED, COOKED OR NOT BEFORE OR DURING SMOKING; IN SHELL, COOKED BY STEAMING OR BY BOILING IN WATER',
108
+ 'passage: กุ้งแช่แข็ง IQF ส่งออก สำหรับการขนส่งข้ามพรมแดน เงื่อนไขการขนส่ง CIF',
109
+ ]
110
+ embeddings = model.encode(sentences)
111
+ print(embeddings.shape)
112
+ # [3, 384]
113
+
114
+ # Get the similarity scores for the embeddings
115
+ similarities = model.similarity(embeddings, embeddings)
116
+ print(similarities)
117
+ # tensor([[1.0000, 0.9576, 0.7030],
118
+ # [0.9576, 1.0000, 0.6773],
119
+ # [0.7030, 0.6773, 1.0000]])
120
+ ```
121
+
122
+ <!--
123
+ ### Direct Usage (Transformers)
124
+
125
+ <details><summary>Click to see the direct usage in Transformers</summary>
126
+
127
+ </details>
128
+ -->
129
+
130
+ <!--
131
+ ### Downstream Usage (Sentence Transformers)
132
+
133
+ You can finetune this model on your own dataset.
134
+
135
+ <details><summary>Click to expand</summary>
136
+
137
+ </details>
138
+ -->
139
+
140
+ <!--
141
+ ### Out-of-Scope Use
142
+
143
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
144
+ -->
145
+
146
+ <!--
147
+ ## Bias, Risks and Limitations
148
+
149
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
150
+ -->
151
+
152
+ <!--
153
+ ### Recommendations
154
+
155
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
156
+ -->
157
+
158
+ ## Training Details
159
+
160
+ ### Training Dataset
161
+
162
+ #### Unnamed Dataset
163
+
164
+ * Size: 9,829 training samples
165
+ * Columns: <code>anchor</code> and <code>positive</code>
166
+ * Approximate statistics based on the first 1000 samples:
167
+ | | anchor | positive |
168
+ |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
169
+ | type | string | string |
170
+ | details | <ul><li>min: 9 tokens</li><li>mean: 36.3 tokens</li><li>max: 114 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 34.27 tokens</li><li>max: 113 tokens</li></ul> |
171
+ * Samples:
172
+ | anchor | positive |
173
+ |:---------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
174
+ | <code>query: Chilled beef tenderloin, boneless, vacuum packed</code> | <code>passage: Thịt bò không xương tươi cho nhà hàng, cho hợp đồng mua sắm công nghiệp, hàng lô hỗn hợp</code> |
175
+ | <code>query: 优质鲜牛肉 无骨 出口级别</code> | <code>passage: 优质鲜牛肉 无骨 出口级别,用于国际批发分销,装20尺集装箱</code> |
176
+ | <code>query: 冷却去骨黄牛肉 真空包装</code> | <code>passage: FROZEN MEAT; OF BOVINE ANIMALS, BONELESS CUTS, FRESH OR CHILLED SKIN-ON IN TINS 15204.2 KG, for industrial procurement contract, shipping term CIF</code> |
177
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
178
+ ```json
179
+ {
180
+ "scale": 20.0,
181
+ "similarity_fct": "cos_sim",
182
+ "gather_across_devices": false
183
+ }
184
+ ```
185
+
186
+ ### Training Hyperparameters
187
+ #### Non-Default Hyperparameters
188
+
189
+ - `per_device_train_batch_size`: 4
190
+ - `num_train_epochs`: 2
191
+ - `learning_rate`: 2e-05
192
+ - `warmup_steps`: 0.1
193
+ - `gradient_accumulation_steps`: 16
194
+ - `warmup_ratio`: 0.1
195
+
196
+ #### All Hyperparameters
197
+ <details><summary>Click to expand</summary>
198
+
199
+ - `per_device_train_batch_size`: 4
200
+ - `num_train_epochs`: 2
201
+ - `max_steps`: -1
202
+ - `learning_rate`: 2e-05
203
+ - `lr_scheduler_type`: linear
204
+ - `lr_scheduler_kwargs`: None
205
+ - `warmup_steps`: 0.1
206
+ - `optim`: adamw_torch_fused
207
+ - `optim_args`: None
208
+ - `weight_decay`: 0.0
209
+ - `adam_beta1`: 0.9
210
+ - `adam_beta2`: 0.999
211
+ - `adam_epsilon`: 1e-08
212
+ - `optim_target_modules`: None
213
+ - `gradient_accumulation_steps`: 16
214
+ - `average_tokens_across_devices`: True
215
+ - `max_grad_norm`: 1.0
216
+ - `label_smoothing_factor`: 0.0
217
+ - `bf16`: False
218
+ - `fp16`: False
219
+ - `bf16_full_eval`: False
220
+ - `fp16_full_eval`: False
221
+ - `tf32`: None
222
+ - `gradient_checkpointing`: False
223
+ - `gradient_checkpointing_kwargs`: None
224
+ - `torch_compile`: False
225
+ - `torch_compile_backend`: None
226
+ - `torch_compile_mode`: None
227
+ - `use_liger_kernel`: False
228
+ - `liger_kernel_config`: None
229
+ - `use_cache`: False
230
+ - `neftune_noise_alpha`: None
231
+ - `torch_empty_cache_steps`: None
232
+ - `auto_find_batch_size`: False
233
+ - `log_on_each_node`: True
234
+ - `logging_nan_inf_filter`: True
235
+ - `include_num_input_tokens_seen`: no
236
+ - `log_level`: passive
237
+ - `log_level_replica`: warning
238
+ - `disable_tqdm`: False
239
+ - `project`: huggingface
240
+ - `trackio_space_id`: trackio
241
+ - `eval_strategy`: no
242
+ - `per_device_eval_batch_size`: 8
243
+ - `prediction_loss_only`: True
244
+ - `eval_on_start`: False
245
+ - `eval_do_concat_batches`: True
246
+ - `eval_use_gather_object`: False
247
+ - `eval_accumulation_steps`: None
248
+ - `include_for_metrics`: []
249
+ - `batch_eval_metrics`: False
250
+ - `save_only_model`: False
251
+ - `save_on_each_node`: False
252
+ - `enable_jit_checkpoint`: False
253
+ - `push_to_hub`: False
254
+ - `hub_private_repo`: None
255
+ - `hub_model_id`: None
256
+ - `hub_strategy`: every_save
257
+ - `hub_always_push`: False
258
+ - `hub_revision`: None
259
+ - `load_best_model_at_end`: False
260
+ - `ignore_data_skip`: False
261
+ - `restore_callback_states_from_checkpoint`: False
262
+ - `full_determinism`: False
263
+ - `seed`: 42
264
+ - `data_seed`: None
265
+ - `use_cpu`: 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
+ - `dataloader_drop_last`: False
269
+ - `dataloader_num_workers`: 0
270
+ - `dataloader_pin_memory`: True
271
+ - `dataloader_persistent_workers`: False
272
+ - `dataloader_prefetch_factor`: None
273
+ - `remove_unused_columns`: True
274
+ - `label_names`: None
275
+ - `train_sampling_strategy`: random
276
+ - `length_column_name`: length
277
+ - `ddp_find_unused_parameters`: None
278
+ - `ddp_bucket_cap_mb`: None
279
+ - `ddp_broadcast_buffers`: False
280
+ - `ddp_backend`: None
281
+ - `ddp_timeout`: 1800
282
+ - `fsdp`: []
283
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
284
+ - `deepspeed`: None
285
+ - `debug`: []
286
+ - `skip_memory_metrics`: True
287
+ - `do_predict`: False
288
+ - `resume_from_checkpoint`: None
289
+ - `warmup_ratio`: 0.1
290
+ - `local_rank`: -1
291
+ - `prompts`: None
292
+ - `batch_sampler`: batch_sampler
293
+ - `multi_dataset_batch_sampler`: proportional
294
+ - `router_mapping`: {}
295
+ - `learning_rate_mapping`: {}
296
+
297
+ </details>
298
+
299
+ ### Training Logs
300
+ | Epoch | Step | Training Loss |
301
+ |:------:|:----:|:-------------:|
302
+ | 0.0651 | 10 | 0.9040 |
303
+ | 0.1302 | 20 | 0.7323 |
304
+ | 0.1953 | 30 | 0.4439 |
305
+ | 0.2604 | 40 | 0.2618 |
306
+ | 0.3255 | 50 | 0.2630 |
307
+ | 0.3906 | 60 | 0.2398 |
308
+ | 0.4557 | 70 | 0.1878 |
309
+ | 0.5207 | 80 | 0.2271 |
310
+ | 0.5858 | 90 | 0.2237 |
311
+ | 0.6509 | 100 | 0.2180 |
312
+ | 0.7160 | 110 | 0.2125 |
313
+ | 0.7811 | 120 | 0.2067 |
314
+ | 0.8462 | 130 | 0.1925 |
315
+ | 0.9113 | 140 | 0.1952 |
316
+ | 0.9764 | 150 | 0.1932 |
317
+ | 1.0391 | 160 | 0.1368 |
318
+ | 1.1041 | 170 | 0.1737 |
319
+ | 1.1692 | 180 | 0.1815 |
320
+ | 1.2343 | 190 | 0.1724 |
321
+ | 1.2994 | 200 | 0.1525 |
322
+ | 1.3645 | 210 | 0.1699 |
323
+ | 1.4296 | 220 | 0.1592 |
324
+ | 1.4947 | 230 | 0.1661 |
325
+ | 1.5598 | 240 | 0.1606 |
326
+ | 1.6249 | 250 | 0.1218 |
327
+ | 1.6900 | 260 | 0.1586 |
328
+ | 1.7551 | 270 | 0.1517 |
329
+ | 1.8202 | 280 | 0.1458 |
330
+ | 1.8853 | 290 | 0.1550 |
331
+ | 1.9504 | 300 | 0.1352 |
332
+
333
+
334
+ ### Framework Versions
335
+ - Python: 3.14.3
336
+ - Sentence Transformers: 5.2.3
337
+ - Transformers: 5.2.0
338
+ - PyTorch: 2.10.0
339
+ - Accelerate: 1.12.0
340
+ - Datasets: 4.5.0
341
+ - Tokenizers: 0.22.2
342
+
343
+ ## Citation
344
+
345
+ ### BibTeX
346
+
347
+ #### Sentence Transformers
348
+ ```bibtex
349
+ @inproceedings{reimers-2019-sentence-bert,
350
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
351
+ author = "Reimers, Nils and Gurevych, Iryna",
352
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
353
+ month = "11",
354
+ year = "2019",
355
+ publisher = "Association for Computational Linguistics",
356
+ url = "https://arxiv.org/abs/1908.10084",
357
+ }
358
+ ```
359
+
360
+ #### MultipleNegativesRankingLoss
361
+ ```bibtex
362
+ @misc{henderson2017efficient,
363
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
364
+ 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},
365
+ year={2017},
366
+ eprint={1705.00652},
367
+ archivePrefix={arXiv},
368
+ primaryClass={cs.CL}
369
+ }
370
+ ```
371
+
372
+ <!--
373
+ ## Glossary
374
+
375
+ *Clearly define terms in order to be accessible across audiences.*
376
+ -->
377
+
378
+ <!--
379
+ ## Model Card Authors
380
+
381
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
382
+ -->
383
+
384
+ <!--
385
+ ## Model Card Contact
386
+
387
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
388
+ -->
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 384,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 1536,
16
+ "is_decoder": false,
17
+ "layer_norm_eps": 1e-12,
18
+ "max_position_embeddings": 512,
19
+ "model_type": "bert",
20
+ "num_attention_heads": 12,
21
+ "num_hidden_layers": 12,
22
+ "pad_token_id": 0,
23
+ "position_embedding_type": "absolute",
24
+ "tie_word_embeddings": true,
25
+ "tokenizer_class": "XLMRobertaTokenizer",
26
+ "transformers_version": "5.2.0",
27
+ "type_vocab_size": 2,
28
+ "use_cache": true,
29
+ "vocab_size": 250037
30
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.2.3",
5
+ "transformers": "5.2.0",
6
+ "pytorch": "2.10.0"
7
+ },
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:6065b335bec1546c010f6615af545f442614f46841947c827c2f557cb0a6243f
3
+ size 470637392
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": 512,
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:ef04f2b385d1514f500e779207ace0f53e30895ce37563179e29f4022d28ca38
3
+ size 17083053
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 512,
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "TokenizersBackend",
14
+ "unk_token": "<unk>"
15
+ }