Feature Extraction
sentence-transformers
Safetensors
French
deberta-v2
sparse-encoder
sparse
csr
Generated from Trainer
dataset_size:12227
loss:SpladeLoss
loss:SparseCosineSimilarityLoss
loss:FlopsLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use CATIE-AQ/SPLADE_camemberta2.0_STS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use CATIE-AQ/SPLADE_camemberta2.0_STS with sentence-transformers:
from sentence_transformers import SparseEncoder model = SparseEncoder("CATIE-AQ/SPLADE_camemberta2.0_STS") queries = ["Which planet is known as the Red Planet?"] documents = [ "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.", ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) - Notebooks
- Google Colab
- Kaggle
Loïck commited on
Training complete
Browse files- 1_Pooling/config.json +10 -0
- 2_SparseAutoEncoder/config.json +8 -0
- 2_SparseAutoEncoder/model.safetensors +3 -0
- README.md +476 -0
- config.json +41 -0
- config_sentence_transformers.json +14 -0
- model.safetensors +3 -0
- modules.json +20 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- vocab.txt +0 -0
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"word_embedding_dimension": 768,
|
| 3 |
+
"pooling_mode_cls_token": false,
|
| 4 |
+
"pooling_mode_mean_tokens": true,
|
| 5 |
+
"pooling_mode_max_tokens": false,
|
| 6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
| 7 |
+
"pooling_mode_weightedmean_tokens": false,
|
| 8 |
+
"pooling_mode_lasttoken": false,
|
| 9 |
+
"include_prompt": true
|
| 10 |
+
}
|
2_SparseAutoEncoder/config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input_dim": 768,
|
| 3 |
+
"hidden_dim": 3072,
|
| 4 |
+
"k": 256,
|
| 5 |
+
"k_aux": 512,
|
| 6 |
+
"normalize": false,
|
| 7 |
+
"dead_threshold": 30
|
| 8 |
+
}
|
2_SparseAutoEncoder/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bba1bdcb1a9e708177a51781cb2736052e7470b4d57a18a08c63f9a795d5ce21
|
| 3 |
+
size 9477512
|
README.md
ADDED
|
@@ -0,0 +1,476 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- fr
|
| 4 |
+
tags:
|
| 5 |
+
- sentence-transformers
|
| 6 |
+
- sparse-encoder
|
| 7 |
+
- sparse
|
| 8 |
+
- csr
|
| 9 |
+
- generated_from_trainer
|
| 10 |
+
- dataset_size:12227
|
| 11 |
+
- loss:SpladeLoss
|
| 12 |
+
- loss:SparseCosineSimilarityLoss
|
| 13 |
+
- loss:FlopsLoss
|
| 14 |
+
base_model: almanach/camembertav2-base
|
| 15 |
+
widget:
|
| 16 |
+
- text: Une femme, un petit garçon et un petit bébé se tiennent devant une statue
|
| 17 |
+
de vache.
|
| 18 |
+
- text: En anglais, l'utilisation la plus courante de do est certainement Do-Support.
|
| 19 |
+
- text: Je ne pense pas que la charge de la preuve repose sur des versions positives
|
| 20 |
+
ou négatives.
|
| 21 |
+
- text: Cinq lévriers courent sur une piste de sable.
|
| 22 |
+
- text: J'envisage de dépenser les 48 dollars par mois pour le système GTD (Getting
|
| 23 |
+
things done) annoncé par David Allen.
|
| 24 |
+
datasets:
|
| 25 |
+
- CATIE-AQ/frenchSTS
|
| 26 |
+
pipeline_tag: feature-extraction
|
| 27 |
+
library_name: sentence-transformers
|
| 28 |
+
metrics:
|
| 29 |
+
- pearson_cosine
|
| 30 |
+
- spearman_cosine
|
| 31 |
+
- active_dims
|
| 32 |
+
- sparsity_ratio
|
| 33 |
+
model-index:
|
| 34 |
+
- name: CSR Sparse Encoder
|
| 35 |
+
results:
|
| 36 |
+
- task:
|
| 37 |
+
type: semantic-similarity
|
| 38 |
+
name: Semantic Similarity
|
| 39 |
+
dataset:
|
| 40 |
+
name: sts dev
|
| 41 |
+
type: sts-dev
|
| 42 |
+
metrics:
|
| 43 |
+
- type: pearson_cosine
|
| 44 |
+
value: 0.6745695406442325
|
| 45 |
+
name: Pearson Cosine
|
| 46 |
+
- type: spearman_cosine
|
| 47 |
+
value: 0.6621142935428015
|
| 48 |
+
name: Spearman Cosine
|
| 49 |
+
- type: active_dims
|
| 50 |
+
value: 225.67513275146484
|
| 51 |
+
name: Active Dims
|
| 52 |
+
- type: sparsity_ratio
|
| 53 |
+
value: 0.9265380427241325
|
| 54 |
+
name: Sparsity Ratio
|
| 55 |
+
- task:
|
| 56 |
+
type: semantic-similarity
|
| 57 |
+
name: Semantic Similarity
|
| 58 |
+
dataset:
|
| 59 |
+
name: sts test
|
| 60 |
+
type: sts-test
|
| 61 |
+
metrics:
|
| 62 |
+
- type: pearson_cosine
|
| 63 |
+
value: 0.5301152557566052
|
| 64 |
+
name: Pearson Cosine
|
| 65 |
+
- type: spearman_cosine
|
| 66 |
+
value: 0.5181380633561732
|
| 67 |
+
name: Spearman Cosine
|
| 68 |
+
- type: active_dims
|
| 69 |
+
value: 214.35201263427734
|
| 70 |
+
name: Active Dims
|
| 71 |
+
- type: sparsity_ratio
|
| 72 |
+
value: 0.9302239542206128
|
| 73 |
+
name: Sparsity Ratio
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
# CSR Sparse Encoder
|
| 77 |
+
|
| 78 |
+
This is a [CSR Sparse Encoder](https://www.sbert.net/docs/sparse_encoder/usage/usage.html) model finetuned from [almanach/camembertav2-base](https://huggingface.co/almanach/camembertav2-base) on the [french_sts](https://huggingface.co/datasets/CATIE-AQ/frenchSTS) dataset using the [sentence-transformers](https://www.SBERT.net) library. It maps sentences & paragraphs to a 3072-dimensional sparse vector space with 256 maximum active dimensions and can be used for semantic search and sparse retrieval.
|
| 79 |
+
## Model Details
|
| 80 |
+
|
| 81 |
+
### Model Description
|
| 82 |
+
- **Model Type:** CSR Sparse Encoder
|
| 83 |
+
- **Base model:** [almanach/camembertav2-base](https://huggingface.co/almanach/camembertav2-base) <!-- at revision 54cc91d6ac45a540c7e0faeb677f4dd8201d3d61 -->
|
| 84 |
+
- **Maximum Sequence Length:** 1024 tokens
|
| 85 |
+
- **Output Dimensionality:** 3072 dimensions (trained with 256 maximum active dimensions)
|
| 86 |
+
- **Similarity Function:** Cosine Similarity
|
| 87 |
+
- **Training Dataset:**
|
| 88 |
+
- [french_sts](https://huggingface.co/datasets/CATIE-AQ/frenchSTS)
|
| 89 |
+
- **Language:** fr
|
| 90 |
+
<!-- - **License:** Unknown -->
|
| 91 |
+
|
| 92 |
+
### Model Sources
|
| 93 |
+
|
| 94 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 95 |
+
- **Documentation:** [Sparse Encoder Documentation](https://www.sbert.net/docs/sparse_encoder/usage/usage.html)
|
| 96 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 97 |
+
- **Hugging Face:** [Sparse Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=sparse-encoder)
|
| 98 |
+
|
| 99 |
+
### Full Model Architecture
|
| 100 |
+
|
| 101 |
+
```
|
| 102 |
+
SparseEncoder(
|
| 103 |
+
(0): Transformer({'max_seq_length': 1024, 'do_lower_case': False, 'architecture': 'DebertaV2Model'})
|
| 104 |
+
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
| 105 |
+
(2): SparseAutoEncoder({'input_dim': 768, 'hidden_dim': 3072, 'k': 256, 'k_aux': 512, 'normalize': False, 'dead_threshold': 30})
|
| 106 |
+
)
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
## Usage
|
| 110 |
+
|
| 111 |
+
### Direct Usage (Sentence Transformers)
|
| 112 |
+
|
| 113 |
+
First install the Sentence Transformers library:
|
| 114 |
+
|
| 115 |
+
```bash
|
| 116 |
+
pip install -U sentence-transformers
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
Then you can load this model and run inference.
|
| 120 |
+
```python
|
| 121 |
+
from sentence_transformers import SparseEncoder
|
| 122 |
+
|
| 123 |
+
# Download from the 🤗 Hub
|
| 124 |
+
model = SparseEncoder("bourdoiscatie/SPLADE_camemberta2_STS")
|
| 125 |
+
# Run inference
|
| 126 |
+
sentences = [
|
| 127 |
+
"Oui, je peux vous dire d'après mon expérience personnelle qu'ils ont certainement sifflé.",
|
| 128 |
+
"Il est vrai que les bombes de la Seconde Guerre mondiale faisaient un bruit de sifflet lorsqu'elles tombaient.",
|
| 129 |
+
"J'envisage de dépenser les 48 dollars par mois pour le système GTD (Getting things done) annoncé par David Allen.",
|
| 130 |
+
]
|
| 131 |
+
embeddings = model.encode(sentences)
|
| 132 |
+
print(embeddings.shape)
|
| 133 |
+
# [3, 3072]
|
| 134 |
+
|
| 135 |
+
# Get the similarity scores for the embeddings
|
| 136 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 137 |
+
print(similarities)
|
| 138 |
+
# tensor([[1.0000, 0.4727, 0.5871],
|
| 139 |
+
# [0.4727, 1.0000, 0.3605],
|
| 140 |
+
# [0.5871, 0.3605, 1.0000]])
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
<!--
|
| 144 |
+
### Direct Usage (Transformers)
|
| 145 |
+
|
| 146 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 147 |
+
|
| 148 |
+
</details>
|
| 149 |
+
-->
|
| 150 |
+
|
| 151 |
+
<!--
|
| 152 |
+
### Downstream Usage (Sentence Transformers)
|
| 153 |
+
|
| 154 |
+
You can finetune this model on your own dataset.
|
| 155 |
+
|
| 156 |
+
<details><summary>Click to expand</summary>
|
| 157 |
+
|
| 158 |
+
</details>
|
| 159 |
+
-->
|
| 160 |
+
|
| 161 |
+
<!--
|
| 162 |
+
### Out-of-Scope Use
|
| 163 |
+
|
| 164 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 165 |
+
-->
|
| 166 |
+
|
| 167 |
+
## Evaluation
|
| 168 |
+
|
| 169 |
+
### Metrics
|
| 170 |
+
|
| 171 |
+
#### Semantic Similarity
|
| 172 |
+
|
| 173 |
+
* Datasets: `sts-dev` and `sts-test`
|
| 174 |
+
* Evaluated with [<code>SparseEmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sparse_encoder/evaluation.html#sentence_transformers.sparse_encoder.evaluation.SparseEmbeddingSimilarityEvaluator)
|
| 175 |
+
|
| 176 |
+
| Metric | sts-dev | sts-test |
|
| 177 |
+
|:--------------------|:-----------|:-----------|
|
| 178 |
+
| pearson_cosine | 0.6746 | 0.5301 |
|
| 179 |
+
| **spearman_cosine** | **0.6621** | **0.5181** |
|
| 180 |
+
| active_dims | 225.6751 | 214.352 |
|
| 181 |
+
| sparsity_ratio | 0.9265 | 0.9302 |
|
| 182 |
+
|
| 183 |
+
<!--
|
| 184 |
+
## Bias, Risks and Limitations
|
| 185 |
+
|
| 186 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 187 |
+
-->
|
| 188 |
+
|
| 189 |
+
<!--
|
| 190 |
+
### Recommendations
|
| 191 |
+
|
| 192 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 193 |
+
-->
|
| 194 |
+
|
| 195 |
+
## Training Details
|
| 196 |
+
|
| 197 |
+
### Training Dataset
|
| 198 |
+
|
| 199 |
+
#### french_sts
|
| 200 |
+
|
| 201 |
+
* Dataset: [french_sts](https://huggingface.co/datasets/CATIE-AQ/frenchSTS) at [47128cc](https://huggingface.co/datasets/CATIE-AQ/frenchSTS/tree/47128cc18c893e5b93679037cdca303849e05309)
|
| 202 |
+
* Size: 12,227 training samples
|
| 203 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
|
| 204 |
+
* Approximate statistics based on the first 1000 samples:
|
| 205 |
+
| | sentence1 | sentence2 | score |
|
| 206 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 207 |
+
| type | string | string | float |
|
| 208 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 11.57 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 11.62 tokens</li><li>max: 35 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.44</li><li>max: 1.0</li></ul> |
|
| 209 |
+
* Samples:
|
| 210 |
+
| sentence1 | sentence2 | score |
|
| 211 |
+
|:----------------------------------------------------|:----------------------------------------------------|:---------------------------------|
|
| 212 |
+
| <code>Un avion est en train de décoller.</code> | <code>Un avion est en train de décoller.</code> | <code>1.0</code> |
|
| 213 |
+
| <code>Un homme est en train de fumer.</code> | <code>Un homme fait du patinage.</code> | <code>0.10000000149011612</code> |
|
| 214 |
+
| <code>Une personne jette un chat au plafond.</code> | <code>Une personne jette un chat au plafond.</code> | <code>1.0</code> |
|
| 215 |
+
* Loss: [<code>SpladeLoss</code>](https://sbert.net/docs/package_reference/sparse_encoder/losses.html#spladeloss) with these parameters:
|
| 216 |
+
```json
|
| 217 |
+
{
|
| 218 |
+
"loss": "SparseCosineSimilarityLoss(loss_fct='torch.nn.modules.loss.MSELoss')",
|
| 219 |
+
"document_regularizer_weight": 0.003
|
| 220 |
+
}
|
| 221 |
+
```
|
| 222 |
+
|
| 223 |
+
### Evaluation Dataset
|
| 224 |
+
|
| 225 |
+
#### french_sts
|
| 226 |
+
|
| 227 |
+
* Dataset: [french_sts](https://huggingface.co/datasets/CATIE-AQ/frenchSTS) at [47128cc](https://huggingface.co/datasets/CATIE-AQ/frenchSTS/tree/47128cc18c893e5b93679037cdca303849e05309)
|
| 228 |
+
* Size: 3,526 evaluation samples
|
| 229 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
|
| 230 |
+
* Approximate statistics based on the first 1000 samples:
|
| 231 |
+
| | sentence1 | sentence2 | score |
|
| 232 |
+
|:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 233 |
+
| type | string | string | float |
|
| 234 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 18.54 tokens</li><li>max: 48 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 18.5 tokens</li><li>max: 52 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.43</li><li>max: 1.0</li></ul> |
|
| 235 |
+
* Samples:
|
| 236 |
+
| sentence1 | sentence2 | score |
|
| 237 |
+
|:-------------------------------------------------------------------------|:----------------------------------------------------------------------------|:-------------------------------|
|
| 238 |
+
| <code>Un homme avec un casque de sécurité est en train de danser.</code> | <code>Un homme portant un casque de sécurité est en train de danser.</code> | <code>1.0</code> |
|
| 239 |
+
| <code>Un jeune enfant monte à cheval.</code> | <code>Un enfant monte à cheval.</code> | <code>0.949999988079071</code> |
|
| 240 |
+
| <code>Un homme donne une souris à un serpent.</code> | <code>L'homme donne une souris au serpent.</code> | <code>1.0</code> |
|
| 241 |
+
* Loss: [<code>SpladeLoss</code>](https://sbert.net/docs/package_reference/sparse_encoder/losses.html#spladeloss) with these parameters:
|
| 242 |
+
```json
|
| 243 |
+
{
|
| 244 |
+
"loss": "SparseCosineSimilarityLoss(loss_fct='torch.nn.modules.loss.MSELoss')",
|
| 245 |
+
"document_regularizer_weight": 0.003
|
| 246 |
+
}
|
| 247 |
+
```
|
| 248 |
+
|
| 249 |
+
### Training Hyperparameters
|
| 250 |
+
#### Non-Default Hyperparameters
|
| 251 |
+
|
| 252 |
+
- `eval_strategy`: epoch
|
| 253 |
+
- `per_device_train_batch_size`: 16
|
| 254 |
+
- `per_device_eval_batch_size`: 16
|
| 255 |
+
- `bf16`: True
|
| 256 |
+
|
| 257 |
+
#### All Hyperparameters
|
| 258 |
+
<details><summary>Click to expand</summary>
|
| 259 |
+
|
| 260 |
+
- `overwrite_output_dir`: False
|
| 261 |
+
- `do_predict`: False
|
| 262 |
+
- `eval_strategy`: epoch
|
| 263 |
+
- `prediction_loss_only`: True
|
| 264 |
+
- `per_device_train_batch_size`: 16
|
| 265 |
+
- `per_device_eval_batch_size`: 16
|
| 266 |
+
- `per_gpu_train_batch_size`: None
|
| 267 |
+
- `per_gpu_eval_batch_size`: None
|
| 268 |
+
- `gradient_accumulation_steps`: 1
|
| 269 |
+
- `eval_accumulation_steps`: None
|
| 270 |
+
- `torch_empty_cache_steps`: None
|
| 271 |
+
- `learning_rate`: 5e-05
|
| 272 |
+
- `weight_decay`: 0.0
|
| 273 |
+
- `adam_beta1`: 0.9
|
| 274 |
+
- `adam_beta2`: 0.999
|
| 275 |
+
- `adam_epsilon`: 1e-08
|
| 276 |
+
- `max_grad_norm`: 1.0
|
| 277 |
+
- `num_train_epochs`: 3
|
| 278 |
+
- `max_steps`: -1
|
| 279 |
+
- `lr_scheduler_type`: linear
|
| 280 |
+
- `lr_scheduler_kwargs`: {}
|
| 281 |
+
- `warmup_ratio`: 0.0
|
| 282 |
+
- `warmup_steps`: 0
|
| 283 |
+
- `log_level`: passive
|
| 284 |
+
- `log_level_replica`: warning
|
| 285 |
+
- `log_on_each_node`: True
|
| 286 |
+
- `logging_nan_inf_filter`: True
|
| 287 |
+
- `save_safetensors`: True
|
| 288 |
+
- `save_on_each_node`: False
|
| 289 |
+
- `save_only_model`: False
|
| 290 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 291 |
+
- `no_cuda`: False
|
| 292 |
+
- `use_cpu`: False
|
| 293 |
+
- `use_mps_device`: False
|
| 294 |
+
- `seed`: 42
|
| 295 |
+
- `data_seed`: None
|
| 296 |
+
- `jit_mode_eval`: False
|
| 297 |
+
- `use_ipex`: False
|
| 298 |
+
- `bf16`: True
|
| 299 |
+
- `fp16`: False
|
| 300 |
+
- `fp16_opt_level`: O1
|
| 301 |
+
- `half_precision_backend`: auto
|
| 302 |
+
- `bf16_full_eval`: False
|
| 303 |
+
- `fp16_full_eval`: False
|
| 304 |
+
- `tf32`: None
|
| 305 |
+
- `local_rank`: 0
|
| 306 |
+
- `ddp_backend`: None
|
| 307 |
+
- `tpu_num_cores`: None
|
| 308 |
+
- `tpu_metrics_debug`: False
|
| 309 |
+
- `debug`: []
|
| 310 |
+
- `dataloader_drop_last`: False
|
| 311 |
+
- `dataloader_num_workers`: 0
|
| 312 |
+
- `dataloader_prefetch_factor`: None
|
| 313 |
+
- `past_index`: -1
|
| 314 |
+
- `disable_tqdm`: False
|
| 315 |
+
- `remove_unused_columns`: True
|
| 316 |
+
- `label_names`: None
|
| 317 |
+
- `load_best_model_at_end`: False
|
| 318 |
+
- `ignore_data_skip`: False
|
| 319 |
+
- `fsdp`: []
|
| 320 |
+
- `fsdp_min_num_params`: 0
|
| 321 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 322 |
+
- `tp_size`: 0
|
| 323 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 324 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 325 |
+
- `deepspeed`: None
|
| 326 |
+
- `label_smoothing_factor`: 0.0
|
| 327 |
+
- `optim`: adamw_torch
|
| 328 |
+
- `optim_args`: None
|
| 329 |
+
- `adafactor`: False
|
| 330 |
+
- `group_by_length`: False
|
| 331 |
+
- `length_column_name`: length
|
| 332 |
+
- `ddp_find_unused_parameters`: None
|
| 333 |
+
- `ddp_bucket_cap_mb`: None
|
| 334 |
+
- `ddp_broadcast_buffers`: False
|
| 335 |
+
- `dataloader_pin_memory`: True
|
| 336 |
+
- `dataloader_persistent_workers`: False
|
| 337 |
+
- `skip_memory_metrics`: True
|
| 338 |
+
- `use_legacy_prediction_loop`: False
|
| 339 |
+
- `push_to_hub`: False
|
| 340 |
+
- `resume_from_checkpoint`: None
|
| 341 |
+
- `hub_model_id`: None
|
| 342 |
+
- `hub_strategy`: every_save
|
| 343 |
+
- `hub_private_repo`: None
|
| 344 |
+
- `hub_always_push`: False
|
| 345 |
+
- `gradient_checkpointing`: False
|
| 346 |
+
- `gradient_checkpointing_kwargs`: None
|
| 347 |
+
- `include_inputs_for_metrics`: False
|
| 348 |
+
- `include_for_metrics`: []
|
| 349 |
+
- `eval_do_concat_batches`: True
|
| 350 |
+
- `fp16_backend`: auto
|
| 351 |
+
- `push_to_hub_model_id`: None
|
| 352 |
+
- `push_to_hub_organization`: None
|
| 353 |
+
- `mp_parameters`:
|
| 354 |
+
- `auto_find_batch_size`: False
|
| 355 |
+
- `full_determinism`: False
|
| 356 |
+
- `torchdynamo`: None
|
| 357 |
+
- `ray_scope`: last
|
| 358 |
+
- `ddp_timeout`: 1800
|
| 359 |
+
- `torch_compile`: False
|
| 360 |
+
- `torch_compile_backend`: None
|
| 361 |
+
- `torch_compile_mode`: None
|
| 362 |
+
- `include_tokens_per_second`: False
|
| 363 |
+
- `include_num_input_tokens_seen`: False
|
| 364 |
+
- `neftune_noise_alpha`: None
|
| 365 |
+
- `optim_target_modules`: None
|
| 366 |
+
- `batch_eval_metrics`: False
|
| 367 |
+
- `eval_on_start`: False
|
| 368 |
+
- `use_liger_kernel`: False
|
| 369 |
+
- `eval_use_gather_object`: False
|
| 370 |
+
- `average_tokens_across_devices`: False
|
| 371 |
+
- `prompts`: None
|
| 372 |
+
- `batch_sampler`: batch_sampler
|
| 373 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 374 |
+
- `router_mapping`: {}
|
| 375 |
+
- `learning_rate_mapping`: {}
|
| 376 |
+
|
| 377 |
+
</details>
|
| 378 |
+
|
| 379 |
+
### Training Logs
|
| 380 |
+
| Epoch | Step | Training Loss | Validation Loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
|
| 381 |
+
|:------:|:----:|:-------------:|:---------------:|:-----------------------:|:------------------------:|
|
| 382 |
+
| -1 | -1 | - | - | 0.3749 | - |
|
| 383 |
+
| 0.1307 | 100 | 0.0697 | - | - | - |
|
| 384 |
+
| 0.2614 | 200 | 0.0598 | - | - | - |
|
| 385 |
+
| 0.3922 | 300 | 0.0563 | - | - | - |
|
| 386 |
+
| 0.5229 | 400 | 0.0539 | - | - | - |
|
| 387 |
+
| 0.6536 | 500 | 0.0518 | - | - | - |
|
| 388 |
+
| 0.7843 | 600 | 0.0474 | - | - | - |
|
| 389 |
+
| 0.9150 | 700 | 0.0468 | - | - | - |
|
| 390 |
+
| 1.0 | 765 | - | 0.0469 | 0.6043 | - |
|
| 391 |
+
| 1.0458 | 800 | 0.0444 | - | - | - |
|
| 392 |
+
| 1.1765 | 900 | 0.0382 | - | - | - |
|
| 393 |
+
| 1.3072 | 1000 | 0.0363 | - | - | - |
|
| 394 |
+
| 1.4379 | 1100 | 0.0346 | - | - | - |
|
| 395 |
+
| 1.5686 | 1200 | 0.0332 | - | - | - |
|
| 396 |
+
| 1.6993 | 1300 | 0.0338 | - | - | - |
|
| 397 |
+
| 1.8301 | 1400 | 0.0319 | - | - | - |
|
| 398 |
+
| 1.9608 | 1500 | 0.0316 | - | - | - |
|
| 399 |
+
| 2.0 | 1530 | - | 0.0429 | 0.6519 | - |
|
| 400 |
+
| 2.0915 | 1600 | 0.0246 | - | - | - |
|
| 401 |
+
| 2.2222 | 1700 | 0.0211 | - | - | - |
|
| 402 |
+
| 2.3529 | 1800 | 0.0202 | - | - | - |
|
| 403 |
+
| 2.4837 | 1900 | 0.0205 | - | - | - |
|
| 404 |
+
| 2.6144 | 2000 | 0.0201 | - | - | - |
|
| 405 |
+
| 2.7451 | 2100 | 0.0199 | - | - | - |
|
| 406 |
+
| 2.8758 | 2200 | 0.0203 | - | - | - |
|
| 407 |
+
| 3.0 | 2295 | - | 0.0411 | 0.6621 | - |
|
| 408 |
+
| -1 | -1 | - | - | - | 0.5181 |
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
### Framework Versions
|
| 412 |
+
- Python: 3.12.3
|
| 413 |
+
- Sentence Transformers: 5.0.0
|
| 414 |
+
- Transformers: 4.51.3
|
| 415 |
+
- PyTorch: 2.6.0+cu124
|
| 416 |
+
- Accelerate: 1.6.0
|
| 417 |
+
- Datasets: 2.16.0
|
| 418 |
+
- Tokenizers: 0.21.0
|
| 419 |
+
|
| 420 |
+
## Citation
|
| 421 |
+
|
| 422 |
+
### BibTeX
|
| 423 |
+
|
| 424 |
+
#### Sentence Transformers
|
| 425 |
+
```bibtex
|
| 426 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 427 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 428 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 429 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 430 |
+
month = "11",
|
| 431 |
+
year = "2019",
|
| 432 |
+
publisher = "Association for Computational Linguistics",
|
| 433 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 434 |
+
}
|
| 435 |
+
```
|
| 436 |
+
|
| 437 |
+
#### SpladeLoss
|
| 438 |
+
```bibtex
|
| 439 |
+
@misc{formal2022distillationhardnegativesampling,
|
| 440 |
+
title={From Distillation to Hard Negative Sampling: Making Sparse Neural IR Models More Effective},
|
| 441 |
+
author={Thibault Formal and Carlos Lassance and Benjamin Piwowarski and Stéphane Clinchant},
|
| 442 |
+
year={2022},
|
| 443 |
+
eprint={2205.04733},
|
| 444 |
+
archivePrefix={arXiv},
|
| 445 |
+
primaryClass={cs.IR},
|
| 446 |
+
url={https://arxiv.org/abs/2205.04733},
|
| 447 |
+
}
|
| 448 |
+
```
|
| 449 |
+
|
| 450 |
+
#### FlopsLoss
|
| 451 |
+
```bibtex
|
| 452 |
+
@article{paria2020minimizing,
|
| 453 |
+
title={Minimizing flops to learn efficient sparse representations},
|
| 454 |
+
author={Paria, Biswajit and Yeh, Chih-Kuan and Yen, Ian EH and Xu, Ning and Ravikumar, Pradeep and P{'o}czos, Barnab{'a}s},
|
| 455 |
+
journal={arXiv preprint arXiv:2004.05665},
|
| 456 |
+
year={2020}
|
| 457 |
+
}
|
| 458 |
+
```
|
| 459 |
+
|
| 460 |
+
<!--
|
| 461 |
+
## Glossary
|
| 462 |
+
|
| 463 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 464 |
+
-->
|
| 465 |
+
|
| 466 |
+
<!--
|
| 467 |
+
## Model Card Authors
|
| 468 |
+
|
| 469 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 470 |
+
-->
|
| 471 |
+
|
| 472 |
+
<!--
|
| 473 |
+
## Model Card Contact
|
| 474 |
+
|
| 475 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 476 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"DebertaV2Model"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 1,
|
| 7 |
+
"conv_act": "gelu",
|
| 8 |
+
"conv_kernel_size": 0,
|
| 9 |
+
"embedding_size": 768,
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 3072,
|
| 16 |
+
"layer_norm_eps": 1e-07,
|
| 17 |
+
"legacy": true,
|
| 18 |
+
"max_position_embeddings": 1024,
|
| 19 |
+
"max_relative_positions": -1,
|
| 20 |
+
"model_name": "camembertav2-base",
|
| 21 |
+
"model_type": "deberta-v2",
|
| 22 |
+
"norm_rel_ebd": "layer_norm",
|
| 23 |
+
"num_attention_heads": 12,
|
| 24 |
+
"num_hidden_layers": 12,
|
| 25 |
+
"pad_token_id": 0,
|
| 26 |
+
"pooler_dropout": 0,
|
| 27 |
+
"pooler_hidden_act": "gelu",
|
| 28 |
+
"pooler_hidden_size": 768,
|
| 29 |
+
"pos_att_type": [
|
| 30 |
+
"p2c",
|
| 31 |
+
"c2p"
|
| 32 |
+
],
|
| 33 |
+
"position_biased_input": false,
|
| 34 |
+
"position_buckets": 256,
|
| 35 |
+
"relative_attention": true,
|
| 36 |
+
"share_att_key": true,
|
| 37 |
+
"torch_dtype": "float32",
|
| 38 |
+
"transformers_version": "4.51.3",
|
| 39 |
+
"type_vocab_size": 0,
|
| 40 |
+
"vocab_size": 32768
|
| 41 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "SparseEncoder",
|
| 3 |
+
"__version__": {
|
| 4 |
+
"sentence_transformers": "5.0.0",
|
| 5 |
+
"transformers": "4.51.3",
|
| 6 |
+
"pytorch": "2.6.0+cu124"
|
| 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:f123c5d0b954e5b3bf46804acb57dc5a03fb2285c2508cffe004f943024d0cfc
|
| 3 |
+
size 442488936
|
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_SparseAutoEncoder",
|
| 18 |
+
"type": "sentence_transformers.sparse_encoder.models.SparseAutoEncoder"
|
| 19 |
+
}
|
| 20 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_seq_length": 1024,
|
| 3 |
+
"do_lower_case": false
|
| 4 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "[CLS]",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"cls_token": {
|
| 10 |
+
"content": "[CLS]",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"eos_token": {
|
| 17 |
+
"content": "[SEP]",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"mask_token": {
|
| 24 |
+
"content": "[MASK]",
|
| 25 |
+
"lstrip": false,
|
| 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": "[SEP]",
|
| 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
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "[PAD]",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": "[CLS]",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": "[SEP]",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": "[UNK]",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"4": {
|
| 37 |
+
"content": "[MASK]",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
"bos_token": "[CLS]",
|
| 46 |
+
"clean_up_tokenization_spaces": true,
|
| 47 |
+
"cls_token": "[CLS]",
|
| 48 |
+
"eos_token": "[SEP]",
|
| 49 |
+
"errors": "replace",
|
| 50 |
+
"extra_special_tokens": {},
|
| 51 |
+
"mask_token": "[MASK]",
|
| 52 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 53 |
+
"pad_token": "[PAD]",
|
| 54 |
+
"sep_token": "[SEP]",
|
| 55 |
+
"tokenizer_class": "RobertaTokenizer",
|
| 56 |
+
"trim_offsets": true,
|
| 57 |
+
"unk_token": "[UNK]"
|
| 58 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|