Add new SentenceTransformer model.
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +10 -0
- README.md +568 -0
- config.json +28 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +3 -0
- tokenizer_config.json +55 -0
.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": 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,568 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: BAAI/bge-m3
|
| 3 |
+
datasets: []
|
| 4 |
+
language: []
|
| 5 |
+
library_name: sentence-transformers
|
| 6 |
+
metrics:
|
| 7 |
+
- pearson_cosine
|
| 8 |
+
- spearman_cosine
|
| 9 |
+
- pearson_manhattan
|
| 10 |
+
- spearman_manhattan
|
| 11 |
+
- pearson_euclidean
|
| 12 |
+
- spearman_euclidean
|
| 13 |
+
- pearson_dot
|
| 14 |
+
- spearman_dot
|
| 15 |
+
- pearson_max
|
| 16 |
+
- spearman_max
|
| 17 |
+
pipeline_tag: sentence-similarity
|
| 18 |
+
tags:
|
| 19 |
+
- sentence-transformers
|
| 20 |
+
- sentence-similarity
|
| 21 |
+
- feature-extraction
|
| 22 |
+
- generated_from_trainer
|
| 23 |
+
- dataset_size:4532
|
| 24 |
+
- loss:CoSENTLoss
|
| 25 |
+
widget:
|
| 26 |
+
- source_sentence: портативный проектор umiio a 008
|
| 27 |
+
sentences:
|
| 28 |
+
- портативный проектор philips a 008
|
| 29 |
+
- logitech c270i iptv
|
| 30 |
+
- детский электромобиль sundays land rover jj012
|
| 31 |
+
- source_sentence: запчасти для швейных машин bernette
|
| 32 |
+
sentences:
|
| 33 |
+
- мфу samsung m428fdw
|
| 34 |
+
- запасные части для швейной машины bernette
|
| 35 |
+
- steelseries apex pro mini wireless
|
| 36 |
+
- source_sentence: сушильная машина maunfeld mfdm1410wh06
|
| 37 |
+
sentences:
|
| 38 |
+
- кухонные уголки
|
| 39 |
+
- сушильная машина simens mfdm1410wh06
|
| 40 |
+
- сетевой удлинитель евро eu-4 multi-protection 4usb qy-923 2500w
|
| 41 |
+
- source_sentence: монитор acer k242hql
|
| 42 |
+
sentences:
|
| 43 |
+
- multiflashlight armytek zippy green
|
| 44 |
+
- роутер mi router 4c r4cm dvb4231gl
|
| 45 |
+
- монитор acer k224hql
|
| 46 |
+
- source_sentence: набор моя первая кухня
|
| 47 |
+
sentences:
|
| 48 |
+
- кухонные наборы
|
| 49 |
+
- ea sports fc 23 ps4
|
| 50 |
+
- da vinci белая
|
| 51 |
+
model-index:
|
| 52 |
+
- name: SentenceTransformer based on BAAI/bge-m3
|
| 53 |
+
results:
|
| 54 |
+
- task:
|
| 55 |
+
type: semantic-similarity
|
| 56 |
+
name: Semantic Similarity
|
| 57 |
+
dataset:
|
| 58 |
+
name: sts dev
|
| 59 |
+
type: sts-dev
|
| 60 |
+
metrics:
|
| 61 |
+
- type: pearson_cosine
|
| 62 |
+
value: 0.9701810342203735
|
| 63 |
+
name: Pearson Cosine
|
| 64 |
+
- type: spearman_cosine
|
| 65 |
+
value: 0.9168792089469636
|
| 66 |
+
name: Spearman Cosine
|
| 67 |
+
- type: pearson_manhattan
|
| 68 |
+
value: 0.9695654298959763
|
| 69 |
+
name: Pearson Manhattan
|
| 70 |
+
- type: spearman_manhattan
|
| 71 |
+
value: 0.9165761310923896
|
| 72 |
+
name: Spearman Manhattan
|
| 73 |
+
- type: pearson_euclidean
|
| 74 |
+
value: 0.9696385323216731
|
| 75 |
+
name: Pearson Euclidean
|
| 76 |
+
- type: spearman_euclidean
|
| 77 |
+
value: 0.9166348972420479
|
| 78 |
+
name: Spearman Euclidean
|
| 79 |
+
- type: pearson_dot
|
| 80 |
+
value: 0.9631206697635591
|
| 81 |
+
name: Pearson Dot
|
| 82 |
+
- type: spearman_dot
|
| 83 |
+
value: 0.9173046326579305
|
| 84 |
+
name: Spearman Dot
|
| 85 |
+
- type: pearson_max
|
| 86 |
+
value: 0.9701810342203735
|
| 87 |
+
name: Pearson Max
|
| 88 |
+
- type: spearman_max
|
| 89 |
+
value: 0.9173046326579305
|
| 90 |
+
name: Spearman Max
|
| 91 |
+
---
|
| 92 |
+
|
| 93 |
+
# SentenceTransformer based on BAAI/bge-m3
|
| 94 |
+
|
| 95 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-m3](https://huggingface.co/BAAI/bge-m3). 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.
|
| 96 |
+
|
| 97 |
+
## Model Details
|
| 98 |
+
|
| 99 |
+
### Model Description
|
| 100 |
+
- **Model Type:** Sentence Transformer
|
| 101 |
+
- **Base model:** [BAAI/bge-m3](https://huggingface.co/BAAI/bge-m3) <!-- at revision babcf60cae0a1f438d7ade582983d4ba462303c2 -->
|
| 102 |
+
- **Maximum Sequence Length:** 8192 tokens
|
| 103 |
+
- **Output Dimensionality:** 1024 tokens
|
| 104 |
+
- **Similarity Function:** Cosine Similarity
|
| 105 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 106 |
+
<!-- - **Language:** Unknown -->
|
| 107 |
+
<!-- - **License:** Unknown -->
|
| 108 |
+
|
| 109 |
+
### Model Sources
|
| 110 |
+
|
| 111 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 112 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 113 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 114 |
+
|
| 115 |
+
### Full Model Architecture
|
| 116 |
+
|
| 117 |
+
```
|
| 118 |
+
SentenceTransformer(
|
| 119 |
+
(0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
|
| 120 |
+
(1): Pooling({'word_embedding_dimension': 1024, '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})
|
| 121 |
+
)
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
## Usage
|
| 125 |
+
|
| 126 |
+
### Direct Usage (Sentence Transformers)
|
| 127 |
+
|
| 128 |
+
First install the Sentence Transformers library:
|
| 129 |
+
|
| 130 |
+
```bash
|
| 131 |
+
pip install -U sentence-transformers
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
Then you can load this model and run inference.
|
| 135 |
+
```python
|
| 136 |
+
from sentence_transformers import SentenceTransformer
|
| 137 |
+
|
| 138 |
+
# Download from the 🤗 Hub
|
| 139 |
+
model = SentenceTransformer("seregadgl101/test_bge_2_10ep")
|
| 140 |
+
# Run inference
|
| 141 |
+
sentences = [
|
| 142 |
+
'набор моя первая кухня',
|
| 143 |
+
'кухонные наборы',
|
| 144 |
+
'ea sports fc 23 ps4',
|
| 145 |
+
]
|
| 146 |
+
embeddings = model.encode(sentences)
|
| 147 |
+
print(embeddings.shape)
|
| 148 |
+
# [3, 1024]
|
| 149 |
+
|
| 150 |
+
# Get the similarity scores for the embeddings
|
| 151 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 152 |
+
print(similarities.shape)
|
| 153 |
+
# [3, 3]
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
<!--
|
| 157 |
+
### Direct Usage (Transformers)
|
| 158 |
+
|
| 159 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 160 |
+
|
| 161 |
+
</details>
|
| 162 |
+
-->
|
| 163 |
+
|
| 164 |
+
<!--
|
| 165 |
+
### Downstream Usage (Sentence Transformers)
|
| 166 |
+
|
| 167 |
+
You can finetune this model on your own dataset.
|
| 168 |
+
|
| 169 |
+
<details><summary>Click to expand</summary>
|
| 170 |
+
|
| 171 |
+
</details>
|
| 172 |
+
-->
|
| 173 |
+
|
| 174 |
+
<!--
|
| 175 |
+
### Out-of-Scope Use
|
| 176 |
+
|
| 177 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 178 |
+
-->
|
| 179 |
+
|
| 180 |
+
## Evaluation
|
| 181 |
+
|
| 182 |
+
### Metrics
|
| 183 |
+
|
| 184 |
+
#### Semantic Similarity
|
| 185 |
+
* Dataset: `sts-dev`
|
| 186 |
+
* Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
|
| 187 |
+
|
| 188 |
+
| Metric | Value |
|
| 189 |
+
|:--------------------|:-----------|
|
| 190 |
+
| pearson_cosine | 0.9702 |
|
| 191 |
+
| **spearman_cosine** | **0.9169** |
|
| 192 |
+
| pearson_manhattan | 0.9696 |
|
| 193 |
+
| spearman_manhattan | 0.9166 |
|
| 194 |
+
| pearson_euclidean | 0.9696 |
|
| 195 |
+
| spearman_euclidean | 0.9166 |
|
| 196 |
+
| pearson_dot | 0.9631 |
|
| 197 |
+
| spearman_dot | 0.9173 |
|
| 198 |
+
| pearson_max | 0.9702 |
|
| 199 |
+
| spearman_max | 0.9173 |
|
| 200 |
+
|
| 201 |
+
<!--
|
| 202 |
+
## Bias, Risks and Limitations
|
| 203 |
+
|
| 204 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 205 |
+
-->
|
| 206 |
+
|
| 207 |
+
<!--
|
| 208 |
+
### Recommendations
|
| 209 |
+
|
| 210 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 211 |
+
-->
|
| 212 |
+
|
| 213 |
+
## Training Details
|
| 214 |
+
|
| 215 |
+
### Training Dataset
|
| 216 |
+
|
| 217 |
+
#### Unnamed Dataset
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
* Size: 4,532 training samples
|
| 221 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
|
| 222 |
+
* Approximate statistics based on the first 1000 samples:
|
| 223 |
+
| | sentence1 | sentence2 | score |
|
| 224 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------|
|
| 225 |
+
| type | string | string | float |
|
| 226 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 14.45 tokens</li><li>max: 48 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 13.09 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.6</li><li>max: 1.0</li></ul> |
|
| 227 |
+
* Samples:
|
| 228 |
+
| sentence1 | sentence2 | score |
|
| 229 |
+
|:-------------------------------------------------------------|:-------------------------------------------------------------|:-----------------|
|
| 230 |
+
| <code>батут evo jump internal 12ft</code> | <code>батут evo jump internal 12ft</code> | <code>1.0</code> |
|
| 231 |
+
| <code>наручные часы orient casual</code> | <code>наручные часы orient</code> | <code>1.0</code> |
|
| 232 |
+
| <code>электрический духовой шкаф weissgauff eov 19 mw</code> | <code>электрический духовой шкаф weissgauff eov 19 mx</code> | <code>0.4</code> |
|
| 233 |
+
* Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
|
| 234 |
+
```json
|
| 235 |
+
{
|
| 236 |
+
"scale": 20.0,
|
| 237 |
+
"similarity_fct": "pairwise_cos_sim"
|
| 238 |
+
}
|
| 239 |
+
```
|
| 240 |
+
|
| 241 |
+
### Evaluation Dataset
|
| 242 |
+
|
| 243 |
+
#### Unnamed Dataset
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
* Size: 504 evaluation samples
|
| 247 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
|
| 248 |
+
* Approximate statistics based on the first 1000 samples:
|
| 249 |
+
| | sentence1 | sentence2 | score |
|
| 250 |
+
|:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 251 |
+
| type | string | string | float |
|
| 252 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 14.93 tokens</li><li>max: 48 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 13.1 tokens</li><li>max: 40 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.59</li><li>max: 1.0</li></ul> |
|
| 253 |
+
* Samples:
|
| 254 |
+
| sentence1 | sentence2 | score |
|
| 255 |
+
|:------------------------------------------------------------------------------|:--------------------------------------------------------|:-----------------|
|
| 256 |
+
| <code>потолочный светильник yeelight smart led ceiling light c2001s500</code> | <code>yeelight smart led ceiling light c2001s500</code> | <code>1.0</code> |
|
| 257 |
+
| <code>канцелярские принадлежности</code> | <code>канцелярские принадлежности разные</code> | <code>0.4</code> |
|
| 258 |
+
| <code>usb-магнитола acv avs-1718g</code> | <code>автомагнитола acv avs-1718g</code> | <code>1.0</code> |
|
| 259 |
+
* Loss: [<code>CoSENTLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
|
| 260 |
+
```json
|
| 261 |
+
{
|
| 262 |
+
"scale": 20.0,
|
| 263 |
+
"similarity_fct": "pairwise_cos_sim"
|
| 264 |
+
}
|
| 265 |
+
```
|
| 266 |
+
|
| 267 |
+
### Training Hyperparameters
|
| 268 |
+
#### Non-Default Hyperparameters
|
| 269 |
+
|
| 270 |
+
- `eval_strategy`: steps
|
| 271 |
+
- `learning_rate`: 2e-05
|
| 272 |
+
- `num_train_epochs`: 10
|
| 273 |
+
- `warmup_ratio`: 0.1
|
| 274 |
+
- `save_only_model`: True
|
| 275 |
+
- `seed`: 33
|
| 276 |
+
- `fp16`: True
|
| 277 |
+
- `load_best_model_at_end`: True
|
| 278 |
+
|
| 279 |
+
#### All Hyperparameters
|
| 280 |
+
<details><summary>Click to expand</summary>
|
| 281 |
+
|
| 282 |
+
- `overwrite_output_dir`: False
|
| 283 |
+
- `do_predict`: False
|
| 284 |
+
- `eval_strategy`: steps
|
| 285 |
+
- `prediction_loss_only`: True
|
| 286 |
+
- `per_device_train_batch_size`: 8
|
| 287 |
+
- `per_device_eval_batch_size`: 8
|
| 288 |
+
- `per_gpu_train_batch_size`: None
|
| 289 |
+
- `per_gpu_eval_batch_size`: None
|
| 290 |
+
- `gradient_accumulation_steps`: 1
|
| 291 |
+
- `eval_accumulation_steps`: None
|
| 292 |
+
- `learning_rate`: 2e-05
|
| 293 |
+
- `weight_decay`: 0.0
|
| 294 |
+
- `adam_beta1`: 0.9
|
| 295 |
+
- `adam_beta2`: 0.999
|
| 296 |
+
- `adam_epsilon`: 1e-08
|
| 297 |
+
- `max_grad_norm`: 1.0
|
| 298 |
+
- `num_train_epochs`: 10
|
| 299 |
+
- `max_steps`: -1
|
| 300 |
+
- `lr_scheduler_type`: linear
|
| 301 |
+
- `lr_scheduler_kwargs`: {}
|
| 302 |
+
- `warmup_ratio`: 0.1
|
| 303 |
+
- `warmup_steps`: 0
|
| 304 |
+
- `log_level`: passive
|
| 305 |
+
- `log_level_replica`: warning
|
| 306 |
+
- `log_on_each_node`: True
|
| 307 |
+
- `logging_nan_inf_filter`: True
|
| 308 |
+
- `save_safetensors`: True
|
| 309 |
+
- `save_on_each_node`: False
|
| 310 |
+
- `save_only_model`: True
|
| 311 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 312 |
+
- `no_cuda`: False
|
| 313 |
+
- `use_cpu`: False
|
| 314 |
+
- `use_mps_device`: False
|
| 315 |
+
- `seed`: 33
|
| 316 |
+
- `data_seed`: None
|
| 317 |
+
- `jit_mode_eval`: False
|
| 318 |
+
- `use_ipex`: False
|
| 319 |
+
- `bf16`: False
|
| 320 |
+
- `fp16`: True
|
| 321 |
+
- `fp16_opt_level`: O1
|
| 322 |
+
- `half_precision_backend`: auto
|
| 323 |
+
- `bf16_full_eval`: False
|
| 324 |
+
- `fp16_full_eval`: False
|
| 325 |
+
- `tf32`: None
|
| 326 |
+
- `local_rank`: 0
|
| 327 |
+
- `ddp_backend`: None
|
| 328 |
+
- `tpu_num_cores`: None
|
| 329 |
+
- `tpu_metrics_debug`: False
|
| 330 |
+
- `debug`: []
|
| 331 |
+
- `dataloader_drop_last`: False
|
| 332 |
+
- `dataloader_num_workers`: 0
|
| 333 |
+
- `dataloader_prefetch_factor`: None
|
| 334 |
+
- `past_index`: -1
|
| 335 |
+
- `disable_tqdm`: False
|
| 336 |
+
- `remove_unused_columns`: True
|
| 337 |
+
- `label_names`: None
|
| 338 |
+
- `load_best_model_at_end`: True
|
| 339 |
+
- `ignore_data_skip`: False
|
| 340 |
+
- `fsdp`: []
|
| 341 |
+
- `fsdp_min_num_params`: 0
|
| 342 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 343 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 344 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 345 |
+
- `deepspeed`: None
|
| 346 |
+
- `label_smoothing_factor`: 0.0
|
| 347 |
+
- `optim`: adamw_torch
|
| 348 |
+
- `optim_args`: None
|
| 349 |
+
- `adafactor`: False
|
| 350 |
+
- `group_by_length`: False
|
| 351 |
+
- `length_column_name`: length
|
| 352 |
+
- `ddp_find_unused_parameters`: None
|
| 353 |
+
- `ddp_bucket_cap_mb`: None
|
| 354 |
+
- `ddp_broadcast_buffers`: False
|
| 355 |
+
- `dataloader_pin_memory`: True
|
| 356 |
+
- `dataloader_persistent_workers`: False
|
| 357 |
+
- `skip_memory_metrics`: True
|
| 358 |
+
- `use_legacy_prediction_loop`: False
|
| 359 |
+
- `push_to_hub`: False
|
| 360 |
+
- `resume_from_checkpoint`: None
|
| 361 |
+
- `hub_model_id`: None
|
| 362 |
+
- `hub_strategy`: every_save
|
| 363 |
+
- `hub_private_repo`: False
|
| 364 |
+
- `hub_always_push`: False
|
| 365 |
+
- `gradient_checkpointing`: False
|
| 366 |
+
- `gradient_checkpointing_kwargs`: None
|
| 367 |
+
- `include_inputs_for_metrics`: False
|
| 368 |
+
- `eval_do_concat_batches`: True
|
| 369 |
+
- `fp16_backend`: auto
|
| 370 |
+
- `push_to_hub_model_id`: None
|
| 371 |
+
- `push_to_hub_organization`: None
|
| 372 |
+
- `mp_parameters`:
|
| 373 |
+
- `auto_find_batch_size`: False
|
| 374 |
+
- `full_determinism`: False
|
| 375 |
+
- `torchdynamo`: None
|
| 376 |
+
- `ray_scope`: last
|
| 377 |
+
- `ddp_timeout`: 1800
|
| 378 |
+
- `torch_compile`: False
|
| 379 |
+
- `torch_compile_backend`: None
|
| 380 |
+
- `torch_compile_mode`: None
|
| 381 |
+
- `dispatch_batches`: None
|
| 382 |
+
- `split_batches`: None
|
| 383 |
+
- `include_tokens_per_second`: False
|
| 384 |
+
- `include_num_input_tokens_seen`: False
|
| 385 |
+
- `neftune_noise_alpha`: None
|
| 386 |
+
- `optim_target_modules`: None
|
| 387 |
+
- `batch_eval_metrics`: False
|
| 388 |
+
- `batch_sampler`: batch_sampler
|
| 389 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 390 |
+
|
| 391 |
+
</details>
|
| 392 |
+
|
| 393 |
+
### Training Logs
|
| 394 |
+
<details><summary>Click to expand</summary>
|
| 395 |
+
|
| 396 |
+
| Epoch | Step | Training Loss | loss | sts-dev_spearman_cosine |
|
| 397 |
+
|:----------:|:--------:|:-------------:|:----------:|:-----------------------:|
|
| 398 |
+
| 0.0882 | 50 | - | 2.7444 | 0.4991 |
|
| 399 |
+
| 0.1764 | 100 | - | 2.5535 | 0.6093 |
|
| 400 |
+
| 0.2646 | 150 | - | 2.3365 | 0.6761 |
|
| 401 |
+
| 0.3527 | 200 | - | 2.1920 | 0.7247 |
|
| 402 |
+
| 0.4409 | 250 | - | 2.2210 | 0.7446 |
|
| 403 |
+
| 0.5291 | 300 | - | 2.1432 | 0.7610 |
|
| 404 |
+
| 0.6173 | 350 | - | 2.2488 | 0.7769 |
|
| 405 |
+
| 0.7055 | 400 | - | 2.3736 | 0.7749 |
|
| 406 |
+
| 0.7937 | 450 | - | 2.0688 | 0.7946 |
|
| 407 |
+
| 0.8818 | 500 | 2.3647 | 2.5331 | 0.7879 |
|
| 408 |
+
| 0.9700 | 550 | - | 2.1087 | 0.7742 |
|
| 409 |
+
| 1.0582 | 600 | - | 2.1302 | 0.8068 |
|
| 410 |
+
| 1.1464 | 650 | - | 2.2669 | 0.8114 |
|
| 411 |
+
| 1.2346 | 700 | - | 2.0269 | 0.8039 |
|
| 412 |
+
| 1.3228 | 750 | - | 2.2095 | 0.8138 |
|
| 413 |
+
| 1.4109 | 800 | - | 2.5288 | 0.8190 |
|
| 414 |
+
| 1.4991 | 850 | - | 2.3442 | 0.8222 |
|
| 415 |
+
| 1.5873 | 900 | - | 2.3759 | 0.8289 |
|
| 416 |
+
| 1.6755 | 950 | - | 2.1893 | 0.8280 |
|
| 417 |
+
| 1.7637 | 1000 | 2.0682 | 2.0056 | 0.8426 |
|
| 418 |
+
| 1.8519 | 1050 | - | 2.0832 | 0.8527 |
|
| 419 |
+
| 1.9400 | 1100 | - | 2.0336 | 0.8515 |
|
| 420 |
+
| 2.0282 | 1150 | - | 2.0571 | 0.8591 |
|
| 421 |
+
| 2.1164 | 1200 | - | 2.1516 | 0.8565 |
|
| 422 |
+
| 2.2046 | 1250 | - | 2.2035 | 0.8602 |
|
| 423 |
+
| 2.2928 | 1300 | - | 2.5294 | 0.8513 |
|
| 424 |
+
| 2.3810 | 1350 | - | 2.4177 | 0.8647 |
|
| 425 |
+
| 2.4691 | 1400 | - | 2.1630 | 0.8709 |
|
| 426 |
+
| 2.5573 | 1450 | - | 2.1279 | 0.8661 |
|
| 427 |
+
| 2.6455 | 1500 | 1.678 | 2.1639 | 0.8744 |
|
| 428 |
+
| 2.7337 | 1550 | - | 2.2592 | 0.8799 |
|
| 429 |
+
| 2.8219 | 1600 | - | 2.2288 | 0.8822 |
|
| 430 |
+
| 2.9101 | 1650 | - | 2.2427 | 0.8831 |
|
| 431 |
+
| 2.9982 | 1700 | - | 2.4380 | 0.8776 |
|
| 432 |
+
| 3.0864 | 1750 | - | 2.1689 | 0.8826 |
|
| 433 |
+
| 3.1746 | 1800 | - | 1.8099 | 0.8868 |
|
| 434 |
+
| 3.2628 | 1850 | - | 2.0881 | 0.8832 |
|
| 435 |
+
| 3.3510 | 1900 | - | 2.0785 | 0.8892 |
|
| 436 |
+
| 3.4392 | 1950 | - | 2.2512 | 0.8865 |
|
| 437 |
+
| 3.5273 | 2000 | 1.2168 | 2.1249 | 0.8927 |
|
| 438 |
+
| 3.6155 | 2050 | - | 2.1179 | 0.8950 |
|
| 439 |
+
| 3.7037 | 2100 | - | 2.1932 | 0.8973 |
|
| 440 |
+
| 3.7919 | 2150 | - | 2.2628 | 0.8967 |
|
| 441 |
+
| 3.8801 | 2200 | - | 2.0764 | 0.8972 |
|
| 442 |
+
| 3.9683 | 2250 | - | 1.9575 | 0.9012 |
|
| 443 |
+
| 4.0564 | 2300 | - | 2.3302 | 0.8985 |
|
| 444 |
+
| 4.1446 | 2350 | - | 2.3008 | 0.8980 |
|
| 445 |
+
| 4.2328 | 2400 | - | 2.2886 | 0.8968 |
|
| 446 |
+
| 4.3210 | 2450 | - | 2.1694 | 0.8973 |
|
| 447 |
+
| 4.4092 | 2500 | 1.0851 | 2.1102 | 0.9010 |
|
| 448 |
+
| 4.4974 | 2550 | - | 2.2596 | 0.9021 |
|
| 449 |
+
| 4.5855 | 2600 | - | 2.1944 | 0.9019 |
|
| 450 |
+
| 4.6737 | 2650 | - | 2.0728 | 0.9029 |
|
| 451 |
+
| 4.7619 | 2700 | - | 2.4573 | 0.9031 |
|
| 452 |
+
| 4.8501 | 2750 | - | 2.2306 | 0.9057 |
|
| 453 |
+
| 4.9383 | 2800 | - | 2.2637 | 0.9068 |
|
| 454 |
+
| 5.0265 | 2850 | - | 2.5110 | 0.9068 |
|
| 455 |
+
| 5.1146 | 2900 | - | 2.6613 | 0.9042 |
|
| 456 |
+
| 5.2028 | 2950 | - | 2.4713 | 0.9070 |
|
| 457 |
+
| 5.2910 | 3000 | 0.8143 | 2.3709 | 0.9082 |
|
| 458 |
+
| 5.3792 | 3050 | - | 2.6083 | 0.9058 |
|
| 459 |
+
| 5.4674 | 3100 | - | 2.5377 | 0.9044 |
|
| 460 |
+
| 5.5556 | 3150 | - | 2.3146 | 0.9071 |
|
| 461 |
+
| 5.6437 | 3200 | - | 2.2603 | 0.9085 |
|
| 462 |
+
| 5.7319 | 3250 | - | 2.5842 | 0.9068 |
|
| 463 |
+
| 5.8201 | 3300 | - | 2.6045 | 0.9093 |
|
| 464 |
+
| 5.9083 | 3350 | - | 2.6207 | 0.9103 |
|
| 465 |
+
| 5.9965 | 3400 | - | 2.5992 | 0.9098 |
|
| 466 |
+
| 6.0847 | 3450 | - | 2.7799 | 0.9090 |
|
| 467 |
+
| 6.1728 | 3500 | 0.5704 | 2.7198 | 0.9098 |
|
| 468 |
+
| 6.2610 | 3550 | - | 2.9783 | 0.9089 |
|
| 469 |
+
| 6.3492 | 3600 | - | 2.4165 | 0.9120 |
|
| 470 |
+
| 6.4374 | 3650 | - | 2.4488 | 0.9122 |
|
| 471 |
+
| 6.5256 | 3700 | - | 2.6764 | 0.9113 |
|
| 472 |
+
| 6.6138 | 3750 | - | 2.5327 | 0.9130 |
|
| 473 |
+
| 6.7019 | 3800 | - | 2.5875 | 0.9129 |
|
| 474 |
+
| 6.7901 | 3850 | - | 2.7036 | 0.9130 |
|
| 475 |
+
| 6.8783 | 3900 | - | 2.7566 | 0.9120 |
|
| 476 |
+
| 6.9665 | 3950 | - | 2.5488 | 0.9127 |
|
| 477 |
+
| 7.0547 | 4000 | 0.4287 | 2.8512 | 0.9127 |
|
| 478 |
+
| 7.1429 | 4050 | - | 2.7361 | 0.9128 |
|
| 479 |
+
| 7.2310 | 4100 | - | 2.7434 | 0.9135 |
|
| 480 |
+
| 7.3192 | 4150 | - | 2.9410 | 0.9129 |
|
| 481 |
+
| 7.4074 | 4200 | - | 2.9452 | 0.9126 |
|
| 482 |
+
| 7.4956 | 4250 | - | 2.8665 | 0.9140 |
|
| 483 |
+
| 7.5838 | 4300 | - | 2.8215 | 0.9145 |
|
| 484 |
+
| 7.6720 | 4350 | - | 2.6978 | 0.9147 |
|
| 485 |
+
| 7.7601 | 4400 | - | 2.8445 | 0.9143 |
|
| 486 |
+
| 7.8483 | 4450 | - | 2.6041 | 0.9155 |
|
| 487 |
+
| 7.9365 | 4500 | 0.3099 | 2.7219 | 0.9155 |
|
| 488 |
+
| 8.0247 | 4550 | - | 2.7180 | 0.9160 |
|
| 489 |
+
| 8.1129 | 4600 | - | 2.6906 | 0.9160 |
|
| 490 |
+
| 8.2011 | 4650 | - | 2.8628 | 0.9156 |
|
| 491 |
+
| 8.2892 | 4700 | - | 2.7820 | 0.9158 |
|
| 492 |
+
| 8.3774 | 4750 | - | 2.8457 | 0.9157 |
|
| 493 |
+
| 8.4656 | 4800 | - | 2.7286 | 0.9160 |
|
| 494 |
+
| 8.5538 | 4850 | - | 2.7131 | 0.9164 |
|
| 495 |
+
| 8.6420 | 4900 | - | 2.8368 | 0.9165 |
|
| 496 |
+
| 8.7302 | 4950 | - | 2.8033 | 0.9167 |
|
| 497 |
+
| 8.8183 | 5000 | 0.2342 | 2.7307 | 0.9169 |
|
| 498 |
+
| 8.9065 | 5050 | - | 2.8483 | 0.9167 |
|
| 499 |
+
| 8.9947 | 5100 | - | 2.9736 | 0.9167 |
|
| 500 |
+
| 9.0829 | 5150 | - | 2.9151 | 0.9168 |
|
| 501 |
+
| 9.1711 | 5200 | - | 2.9375 | 0.9167 |
|
| 502 |
+
| 9.2593 | 5250 | - | 2.9968 | 0.9168 |
|
| 503 |
+
| 9.3474 | 5300 | - | 3.0024 | 0.9167 |
|
| 504 |
+
| 9.4356 | 5350 | - | 2.9444 | 0.9167 |
|
| 505 |
+
| 9.5238 | 5400 | - | 2.9477 | 0.9167 |
|
| 506 |
+
| 9.6120 | 5450 | - | 2.9205 | 0.9168 |
|
| 507 |
+
| **9.7002** | **5500** | **0.1639** | **2.9286** | **0.9167** |
|
| 508 |
+
| 9.7884 | 5550 | - | 2.9421 | 0.9168 |
|
| 509 |
+
| 9.8765 | 5600 | - | 2.9733 | 0.9168 |
|
| 510 |
+
| 9.9647 | 5650 | - | 2.9777 | 0.9169 |
|
| 511 |
+
|
| 512 |
+
* The bold row denotes the saved checkpoint.
|
| 513 |
+
</details>
|
| 514 |
+
|
| 515 |
+
### Framework Versions
|
| 516 |
+
- Python: 3.10.12
|
| 517 |
+
- Sentence Transformers: 3.0.1
|
| 518 |
+
- Transformers: 4.41.2
|
| 519 |
+
- PyTorch: 2.1.2+cu121
|
| 520 |
+
- Accelerate: 0.31.0
|
| 521 |
+
- Datasets: 2.20.0
|
| 522 |
+
- Tokenizers: 0.19.1
|
| 523 |
+
|
| 524 |
+
## Citation
|
| 525 |
+
|
| 526 |
+
### BibTeX
|
| 527 |
+
|
| 528 |
+
#### Sentence Transformers
|
| 529 |
+
```bibtex
|
| 530 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 531 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 532 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 533 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 534 |
+
month = "11",
|
| 535 |
+
year = "2019",
|
| 536 |
+
publisher = "Association for Computational Linguistics",
|
| 537 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 538 |
+
}
|
| 539 |
+
```
|
| 540 |
+
|
| 541 |
+
#### CoSENTLoss
|
| 542 |
+
```bibtex
|
| 543 |
+
@online{kexuefm-8847,
|
| 544 |
+
title={CoSENT: A more efficient sentence vector scheme than Sentence-BERT},
|
| 545 |
+
author={Su Jianlin},
|
| 546 |
+
year={2022},
|
| 547 |
+
month={Jan},
|
| 548 |
+
url={https://kexue.fm/archives/8847},
|
| 549 |
+
}
|
| 550 |
+
```
|
| 551 |
+
|
| 552 |
+
<!--
|
| 553 |
+
## Glossary
|
| 554 |
+
|
| 555 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 556 |
+
-->
|
| 557 |
+
|
| 558 |
+
<!--
|
| 559 |
+
## Model Card Authors
|
| 560 |
+
|
| 561 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 562 |
+
-->
|
| 563 |
+
|
| 564 |
+
<!--
|
| 565 |
+
## Model Card Contact
|
| 566 |
+
|
| 567 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 568 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "BAAI/bge-m3",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"XLMRobertaModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 1024,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 4096,
|
| 15 |
+
"layer_norm_eps": 1e-05,
|
| 16 |
+
"max_position_embeddings": 8194,
|
| 17 |
+
"model_type": "xlm-roberta",
|
| 18 |
+
"num_attention_heads": 16,
|
| 19 |
+
"num_hidden_layers": 24,
|
| 20 |
+
"output_past": true,
|
| 21 |
+
"pad_token_id": 1,
|
| 22 |
+
"position_embedding_type": "absolute",
|
| 23 |
+
"torch_dtype": "float32",
|
| 24 |
+
"transformers_version": "4.41.2",
|
| 25 |
+
"type_vocab_size": 1,
|
| 26 |
+
"use_cache": true,
|
| 27 |
+
"vocab_size": 250002
|
| 28 |
+
}
|
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+cu121"
|
| 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:82bf9212d7d34ec08c83017a489bb2f232e897ae88642b4154bcfd3170c462d3
|
| 3 |
+
size 2271064456
|
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": 8192,
|
| 3 |
+
"do_lower_case": false
|
| 4 |
+
}
|
sentencepiece.bpe.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
| 3 |
+
size 5069051
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"cls_token": {
|
| 10 |
+
"content": "<s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"eos_token": {
|
| 17 |
+
"content": "</s>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"mask_token": {
|
| 24 |
+
"content": "<mask>",
|
| 25 |
+
"lstrip": true,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"pad_token": {
|
| 31 |
+
"content": "<pad>",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
},
|
| 37 |
+
"sep_token": {
|
| 38 |
+
"content": "</s>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false
|
| 43 |
+
},
|
| 44 |
+
"unk_token": {
|
| 45 |
+
"content": "<unk>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false
|
| 50 |
+
}
|
| 51 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4f7e21bec3fb0044ca0bb2d50eb5d4d8c596273c422baef84466d2c73748b9c
|
| 3 |
+
size 17083053
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "<s>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<pad>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "</s>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "<unk>",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"250001": {
|
| 36 |
+
"content": "<mask>",
|
| 37 |
+
"lstrip": true,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"bos_token": "<s>",
|
| 45 |
+
"clean_up_tokenization_spaces": true,
|
| 46 |
+
"cls_token": "<s>",
|
| 47 |
+
"eos_token": "</s>",
|
| 48 |
+
"mask_token": "<mask>",
|
| 49 |
+
"model_max_length": 8192,
|
| 50 |
+
"pad_token": "<pad>",
|
| 51 |
+
"sep_token": "</s>",
|
| 52 |
+
"sp_model_kwargs": {},
|
| 53 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 54 |
+
"unk_token": "<unk>"
|
| 55 |
+
}
|