Text Ranking
sentence-transformers
Safetensors
xlm-roberta
cross-encoder
reranker
Generated from Trainer
dataset_size:2400
loss:BinaryCrossEntropyLoss
text-embeddings-inference
Instructions to use shurpy/Ru-Eng-adfilter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use shurpy/Ru-Eng-adfilter with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("shurpy/Ru-Eng-adfilter") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +313 -3
- config.json +36 -0
- model.safetensors +3 -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
|
README.md
CHANGED
|
@@ -1,3 +1,313 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- cross-encoder
|
| 5 |
+
- reranker
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:2400
|
| 8 |
+
- loss:BinaryCrossEntropyLoss
|
| 9 |
+
base_model: cross-encoder/mmarco-mMiniLMv2-L12-H384-v1
|
| 10 |
+
pipeline_tag: text-ranking
|
| 11 |
+
library_name: sentence-transformers
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# CrossEncoder based on cross-encoder/mmarco-mMiniLMv2-L12-H384-v1
|
| 15 |
+
|
| 16 |
+
This is a [Cross Encoder](https://www.sbert.net/docs/cross_encoder/usage/usage.html) model finetuned from [cross-encoder/mmarco-mMiniLMv2-L12-H384-v1](https://huggingface.co/cross-encoder/mmarco-mMiniLMv2-L12-H384-v1) using the [sentence-transformers](https://www.SBERT.net) library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
|
| 17 |
+
|
| 18 |
+
## Model Details
|
| 19 |
+
|
| 20 |
+
### Model Description
|
| 21 |
+
- **Model Type:** Cross Encoder
|
| 22 |
+
- **Base model:** [cross-encoder/mmarco-mMiniLMv2-L12-H384-v1](https://huggingface.co/cross-encoder/mmarco-mMiniLMv2-L12-H384-v1) <!-- at revision 1427fd652930e4ba29e8149678df786c240d8825 -->
|
| 23 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 24 |
+
- **Number of Output Labels:** 1 label
|
| 25 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 26 |
+
<!-- - **Language:** Unknown -->
|
| 27 |
+
<!-- - **License:** Unknown -->
|
| 28 |
+
|
| 29 |
+
### Model Sources
|
| 30 |
+
|
| 31 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 32 |
+
- **Documentation:** [Cross Encoder Documentation](https://www.sbert.net/docs/cross_encoder/usage/usage.html)
|
| 33 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 34 |
+
- **Hugging Face:** [Cross Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=cross-encoder)
|
| 35 |
+
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
### Direct Usage (Sentence Transformers)
|
| 39 |
+
|
| 40 |
+
First install the Sentence Transformers library:
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
pip install -U sentence-transformers
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
Then you can load this model and run inference.
|
| 47 |
+
```python
|
| 48 |
+
from sentence_transformers import CrossEncoder
|
| 49 |
+
|
| 50 |
+
# Download from the 🤗 Hub
|
| 51 |
+
model = CrossEncoder("cross_encoder_model_id")
|
| 52 |
+
# Get scores for pairs of texts
|
| 53 |
+
pairs = [
|
| 54 |
+
['Is there an advertisement in this post?', 'Exclusive sale on premium gadgets, shop now!'],
|
| 55 |
+
['Is there an advertisement in this post?', 'Chat with our AI bot 24/7 — instant responses guaranteed.'],
|
| 56 |
+
['Is there an advertisement in this post?', 'Happy birthday! Wishing you a great year ahead.'],
|
| 57 |
+
['Is there an advertisement in this post?', 'Поздравляю с днём рождения!'],
|
| 58 |
+
['Is there an advertisement in this post?', 'Meet your new virtual companion, always available!'],
|
| 59 |
+
]
|
| 60 |
+
scores = model.predict(pairs)
|
| 61 |
+
print(scores.shape)
|
| 62 |
+
# (5,)
|
| 63 |
+
|
| 64 |
+
# Or rank different texts based on similarity to a single text
|
| 65 |
+
ranks = model.rank(
|
| 66 |
+
'Is there an advertisement in this post?',
|
| 67 |
+
[
|
| 68 |
+
'Exclusive sale on premium gadgets, shop now!',
|
| 69 |
+
'Chat with our AI bot 24/7 — instant responses guaranteed.',
|
| 70 |
+
'Happy birthday! Wishing you a great year ahead.',
|
| 71 |
+
'Поздравляю с днём рождения!',
|
| 72 |
+
'Meet your new virtual companion, always available!',
|
| 73 |
+
]
|
| 74 |
+
)
|
| 75 |
+
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
<!--
|
| 79 |
+
### Direct Usage (Transformers)
|
| 80 |
+
|
| 81 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 82 |
+
|
| 83 |
+
</details>
|
| 84 |
+
-->
|
| 85 |
+
|
| 86 |
+
<!--
|
| 87 |
+
### Downstream Usage (Sentence Transformers)
|
| 88 |
+
|
| 89 |
+
You can finetune this model on your own dataset.
|
| 90 |
+
|
| 91 |
+
<details><summary>Click to expand</summary>
|
| 92 |
+
|
| 93 |
+
</details>
|
| 94 |
+
-->
|
| 95 |
+
|
| 96 |
+
<!--
|
| 97 |
+
### Out-of-Scope Use
|
| 98 |
+
|
| 99 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 100 |
+
-->
|
| 101 |
+
|
| 102 |
+
<!--
|
| 103 |
+
## Bias, Risks and Limitations
|
| 104 |
+
|
| 105 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 106 |
+
-->
|
| 107 |
+
|
| 108 |
+
<!--
|
| 109 |
+
### Recommendations
|
| 110 |
+
|
| 111 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 112 |
+
-->
|
| 113 |
+
|
| 114 |
+
## Training Details
|
| 115 |
+
|
| 116 |
+
### Training Dataset
|
| 117 |
+
|
| 118 |
+
#### Unnamed Dataset
|
| 119 |
+
|
| 120 |
+
* Size: 2,400 training samples
|
| 121 |
+
* Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
|
| 122 |
+
* Approximate statistics based on the first 1000 samples:
|
| 123 |
+
| | sentence_0 | sentence_1 | label |
|
| 124 |
+
|:--------|:----------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 125 |
+
| type | string | string | float |
|
| 126 |
+
| details | <ul><li>min: 39 characters</li><li>mean: 39.0 characters</li><li>max: 39 characters</li></ul> | <ul><li>min: 27 characters</li><li>mean: 46.98 characters</li><li>max: 64 characters</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.47</li><li>max: 1.0</li></ul> |
|
| 127 |
+
* Samples:
|
| 128 |
+
| sentence_0 | sentence_1 | label |
|
| 129 |
+
|:-----------------------------------------------------|:-----------------------------------------------------------------------|:-----------------|
|
| 130 |
+
| <code>Is there an advertisement in this post?</code> | <code>Exclusive sale on premium gadgets, shop now!</code> | <code>1.0</code> |
|
| 131 |
+
| <code>Is there an advertisement in this post?</code> | <code>Chat with our AI bot 24/7 — instant responses guaranteed.</code> | <code>1.0</code> |
|
| 132 |
+
| <code>Is there an advertisement in this post?</code> | <code>Happy birthday! Wishing you a great year ahead.</code> | <code>0.0</code> |
|
| 133 |
+
* Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
|
| 134 |
+
```json
|
| 135 |
+
{
|
| 136 |
+
"activation_fn": "torch.nn.modules.linear.Identity",
|
| 137 |
+
"pos_weight": null
|
| 138 |
+
}
|
| 139 |
+
```
|
| 140 |
+
|
| 141 |
+
### Training Hyperparameters
|
| 142 |
+
#### Non-Default Hyperparameters
|
| 143 |
+
|
| 144 |
+
- `per_device_train_batch_size`: 16
|
| 145 |
+
- `per_device_eval_batch_size`: 16
|
| 146 |
+
- `fp16`: True
|
| 147 |
+
|
| 148 |
+
#### All Hyperparameters
|
| 149 |
+
<details><summary>Click to expand</summary>
|
| 150 |
+
|
| 151 |
+
- `overwrite_output_dir`: False
|
| 152 |
+
- `do_predict`: False
|
| 153 |
+
- `eval_strategy`: no
|
| 154 |
+
- `prediction_loss_only`: True
|
| 155 |
+
- `per_device_train_batch_size`: 16
|
| 156 |
+
- `per_device_eval_batch_size`: 16
|
| 157 |
+
- `per_gpu_train_batch_size`: None
|
| 158 |
+
- `per_gpu_eval_batch_size`: None
|
| 159 |
+
- `gradient_accumulation_steps`: 1
|
| 160 |
+
- `eval_accumulation_steps`: None
|
| 161 |
+
- `torch_empty_cache_steps`: None
|
| 162 |
+
- `learning_rate`: 5e-05
|
| 163 |
+
- `weight_decay`: 0.0
|
| 164 |
+
- `adam_beta1`: 0.9
|
| 165 |
+
- `adam_beta2`: 0.999
|
| 166 |
+
- `adam_epsilon`: 1e-08
|
| 167 |
+
- `max_grad_norm`: 1
|
| 168 |
+
- `num_train_epochs`: 3
|
| 169 |
+
- `max_steps`: -1
|
| 170 |
+
- `lr_scheduler_type`: linear
|
| 171 |
+
- `lr_scheduler_kwargs`: {}
|
| 172 |
+
- `warmup_ratio`: 0.0
|
| 173 |
+
- `warmup_steps`: 0
|
| 174 |
+
- `log_level`: passive
|
| 175 |
+
- `log_level_replica`: warning
|
| 176 |
+
- `log_on_each_node`: True
|
| 177 |
+
- `logging_nan_inf_filter`: True
|
| 178 |
+
- `save_safetensors`: True
|
| 179 |
+
- `save_on_each_node`: False
|
| 180 |
+
- `save_only_model`: False
|
| 181 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 182 |
+
- `no_cuda`: False
|
| 183 |
+
- `use_cpu`: False
|
| 184 |
+
- `use_mps_device`: False
|
| 185 |
+
- `seed`: 42
|
| 186 |
+
- `data_seed`: None
|
| 187 |
+
- `jit_mode_eval`: False
|
| 188 |
+
- `bf16`: False
|
| 189 |
+
- `fp16`: True
|
| 190 |
+
- `fp16_opt_level`: O1
|
| 191 |
+
- `half_precision_backend`: auto
|
| 192 |
+
- `bf16_full_eval`: False
|
| 193 |
+
- `fp16_full_eval`: False
|
| 194 |
+
- `tf32`: None
|
| 195 |
+
- `local_rank`: 0
|
| 196 |
+
- `ddp_backend`: None
|
| 197 |
+
- `tpu_num_cores`: None
|
| 198 |
+
- `tpu_metrics_debug`: False
|
| 199 |
+
- `debug`: []
|
| 200 |
+
- `dataloader_drop_last`: False
|
| 201 |
+
- `dataloader_num_workers`: 0
|
| 202 |
+
- `dataloader_prefetch_factor`: None
|
| 203 |
+
- `past_index`: -1
|
| 204 |
+
- `disable_tqdm`: False
|
| 205 |
+
- `remove_unused_columns`: True
|
| 206 |
+
- `label_names`: None
|
| 207 |
+
- `load_best_model_at_end`: False
|
| 208 |
+
- `ignore_data_skip`: False
|
| 209 |
+
- `fsdp`: []
|
| 210 |
+
- `fsdp_min_num_params`: 0
|
| 211 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 212 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 213 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 214 |
+
- `parallelism_config`: None
|
| 215 |
+
- `deepspeed`: None
|
| 216 |
+
- `label_smoothing_factor`: 0.0
|
| 217 |
+
- `optim`: adamw_torch_fused
|
| 218 |
+
- `optim_args`: None
|
| 219 |
+
- `adafactor`: False
|
| 220 |
+
- `group_by_length`: False
|
| 221 |
+
- `length_column_name`: length
|
| 222 |
+
- `ddp_find_unused_parameters`: None
|
| 223 |
+
- `ddp_bucket_cap_mb`: None
|
| 224 |
+
- `ddp_broadcast_buffers`: False
|
| 225 |
+
- `dataloader_pin_memory`: True
|
| 226 |
+
- `dataloader_persistent_workers`: False
|
| 227 |
+
- `skip_memory_metrics`: True
|
| 228 |
+
- `use_legacy_prediction_loop`: False
|
| 229 |
+
- `push_to_hub`: False
|
| 230 |
+
- `resume_from_checkpoint`: None
|
| 231 |
+
- `hub_model_id`: None
|
| 232 |
+
- `hub_strategy`: every_save
|
| 233 |
+
- `hub_private_repo`: None
|
| 234 |
+
- `hub_always_push`: False
|
| 235 |
+
- `hub_revision`: None
|
| 236 |
+
- `gradient_checkpointing`: False
|
| 237 |
+
- `gradient_checkpointing_kwargs`: None
|
| 238 |
+
- `include_inputs_for_metrics`: False
|
| 239 |
+
- `include_for_metrics`: []
|
| 240 |
+
- `eval_do_concat_batches`: True
|
| 241 |
+
- `fp16_backend`: auto
|
| 242 |
+
- `push_to_hub_model_id`: None
|
| 243 |
+
- `push_to_hub_organization`: None
|
| 244 |
+
- `mp_parameters`:
|
| 245 |
+
- `auto_find_batch_size`: False
|
| 246 |
+
- `full_determinism`: False
|
| 247 |
+
- `torchdynamo`: None
|
| 248 |
+
- `ray_scope`: last
|
| 249 |
+
- `ddp_timeout`: 1800
|
| 250 |
+
- `torch_compile`: False
|
| 251 |
+
- `torch_compile_backend`: None
|
| 252 |
+
- `torch_compile_mode`: None
|
| 253 |
+
- `include_tokens_per_second`: False
|
| 254 |
+
- `include_num_input_tokens_seen`: no
|
| 255 |
+
- `neftune_noise_alpha`: None
|
| 256 |
+
- `optim_target_modules`: None
|
| 257 |
+
- `batch_eval_metrics`: False
|
| 258 |
+
- `eval_on_start`: False
|
| 259 |
+
- `use_liger_kernel`: False
|
| 260 |
+
- `liger_kernel_config`: None
|
| 261 |
+
- `eval_use_gather_object`: False
|
| 262 |
+
- `average_tokens_across_devices`: False
|
| 263 |
+
- `prompts`: None
|
| 264 |
+
- `batch_sampler`: batch_sampler
|
| 265 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 266 |
+
- `router_mapping`: {}
|
| 267 |
+
- `learning_rate_mapping`: {}
|
| 268 |
+
|
| 269 |
+
</details>
|
| 270 |
+
|
| 271 |
+
### Framework Versions
|
| 272 |
+
- Python: 3.10.12
|
| 273 |
+
- Sentence Transformers: 5.1.1
|
| 274 |
+
- Transformers: 4.57.0.dev0
|
| 275 |
+
- PyTorch: 2.8.0+cu128
|
| 276 |
+
- Accelerate: 1.11.0.dev0
|
| 277 |
+
- Datasets: 3.5.0
|
| 278 |
+
- Tokenizers: 0.22.0
|
| 279 |
+
|
| 280 |
+
## Citation
|
| 281 |
+
|
| 282 |
+
### BibTeX
|
| 283 |
+
|
| 284 |
+
#### Sentence Transformers
|
| 285 |
+
```bibtex
|
| 286 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 287 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 288 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 289 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 290 |
+
month = "11",
|
| 291 |
+
year = "2019",
|
| 292 |
+
publisher = "Association for Computational Linguistics",
|
| 293 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 294 |
+
}
|
| 295 |
+
```
|
| 296 |
+
|
| 297 |
+
<!--
|
| 298 |
+
## Glossary
|
| 299 |
+
|
| 300 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 301 |
+
-->
|
| 302 |
+
|
| 303 |
+
<!--
|
| 304 |
+
## Model Card Authors
|
| 305 |
+
|
| 306 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 307 |
+
-->
|
| 308 |
+
|
| 309 |
+
<!--
|
| 310 |
+
## Model Card Contact
|
| 311 |
+
|
| 312 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 313 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"XLMRobertaForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 384,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "LABEL_0"
|
| 15 |
+
},
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 1536,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"LABEL_0": 0
|
| 20 |
+
},
|
| 21 |
+
"layer_norm_eps": 1e-05,
|
| 22 |
+
"max_position_embeddings": 514,
|
| 23 |
+
"model_type": "xlm-roberta",
|
| 24 |
+
"num_attention_heads": 12,
|
| 25 |
+
"num_hidden_layers": 12,
|
| 26 |
+
"pad_token_id": 1,
|
| 27 |
+
"position_embedding_type": "absolute",
|
| 28 |
+
"sentence_transformers": {
|
| 29 |
+
"activation_fn": "torch.nn.modules.linear.Identity",
|
| 30 |
+
"version": "5.1.1"
|
| 31 |
+
},
|
| 32 |
+
"transformers_version": "4.57.0.dev0",
|
| 33 |
+
"type_vocab_size": 1,
|
| 34 |
+
"use_cache": true,
|
| 35 |
+
"vocab_size": 250002
|
| 36 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed6d5d03da38f35c9d209317669f0816a6782e9d2a352b779cde290546a8b8e8
|
| 3 |
+
size 470588492
|
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:883b037111086fd4dfebbbc9b7cee11e1517b5e0c0514879478661440f137085
|
| 3 |
+
size 17082987
|
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": false,
|
| 46 |
+
"cls_token": "<s>",
|
| 47 |
+
"eos_token": "</s>",
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "<mask>",
|
| 50 |
+
"model_max_length": 512,
|
| 51 |
+
"pad_token": "<pad>",
|
| 52 |
+
"sep_token": "</s>",
|
| 53 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 54 |
+
"unk_token": "<unk>"
|
| 55 |
+
}
|