Feature Extraction
sentence-transformers
Safetensors
French
camembert
sparse-encoder
sparse
splade
Generated from Trainer
dataset_size:12227
loss:SpladeLoss
loss:SparseCosineSimilarityLoss
loss:FlopsLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use CATIE-AQ/SPLADE_camembert-base_STS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use CATIE-AQ/SPLADE_camembert-base_STS with sentence-transformers:
from sentence_transformers import SparseEncoder model = SparseEncoder("CATIE-AQ/SPLADE_camembert-base_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_SpladePooling/config.json +5 -0
- README.md +475 -0
- added_tokens.json +3 -0
- config.json +27 -0
- config_sentence_transformers.json +14 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +20 -0
- tokenizer.json +0 -0
- tokenizer_config.json +84 -0
1_SpladePooling/config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pooling_strategy": "max",
|
| 3 |
+
"activation_function": "relu",
|
| 4 |
+
"word_embedding_dimension": 32005
|
| 5 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- fr
|
| 4 |
+
tags:
|
| 5 |
+
- sentence-transformers
|
| 6 |
+
- sparse-encoder
|
| 7 |
+
- sparse
|
| 8 |
+
- splade
|
| 9 |
+
- generated_from_trainer
|
| 10 |
+
- dataset_size:12227
|
| 11 |
+
- loss:SpladeLoss
|
| 12 |
+
- loss:SparseCosineSimilarityLoss
|
| 13 |
+
- loss:FlopsLoss
|
| 14 |
+
base_model: almanach/camembert-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: SPLADE 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.7166059199244785
|
| 45 |
+
name: Pearson Cosine
|
| 46 |
+
- type: spearman_cosine
|
| 47 |
+
value: 0.7146842827516018
|
| 48 |
+
name: Spearman Cosine
|
| 49 |
+
- type: active_dims
|
| 50 |
+
value: 28.99517822265625
|
| 51 |
+
name: Active Dims
|
| 52 |
+
- type: sparsity_ratio
|
| 53 |
+
value: 0.9990940422364425
|
| 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.7246353992756095
|
| 64 |
+
name: Pearson Cosine
|
| 65 |
+
- type: spearman_cosine
|
| 66 |
+
value: 0.6623284205337301
|
| 67 |
+
name: Spearman Cosine
|
| 68 |
+
- type: active_dims
|
| 69 |
+
value: 56.890235900878906
|
| 70 |
+
name: Active Dims
|
| 71 |
+
- type: sparsity_ratio
|
| 72 |
+
value: 0.9982224578690555
|
| 73 |
+
name: Sparsity Ratio
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
# SPLADE Sparse Encoder
|
| 77 |
+
|
| 78 |
+
This is a [SPLADE Sparse Encoder](https://www.sbert.net/docs/sparse_encoder/usage/usage.html) model finetuned from [almanach/camembert-base](https://huggingface.co/almanach/camembert-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 32005-dimensional sparse vector space and can be used for semantic search and sparse retrieval.
|
| 79 |
+
## Model Details
|
| 80 |
+
|
| 81 |
+
### Model Description
|
| 82 |
+
- **Model Type:** SPLADE Sparse Encoder
|
| 83 |
+
- **Base model:** [almanach/camembert-base](https://huggingface.co/almanach/camembert-base) <!-- at revision a75967561c78f2aa81cc41045378d3b4ee25af9e -->
|
| 84 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 85 |
+
- **Output Dimensionality:** 32005 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): MLMTransformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'CamembertForMaskedLM'})
|
| 104 |
+
(1): SpladePooling({'pooling_strategy': 'max', 'activation_function': 'relu', 'word_embedding_dimension': 32005})
|
| 105 |
+
)
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
## Usage
|
| 109 |
+
|
| 110 |
+
### Direct Usage (Sentence Transformers)
|
| 111 |
+
|
| 112 |
+
First install the Sentence Transformers library:
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
pip install -U sentence-transformers
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
Then you can load this model and run inference.
|
| 119 |
+
```python
|
| 120 |
+
from sentence_transformers import SparseEncoder
|
| 121 |
+
|
| 122 |
+
# Download from the 🤗 Hub
|
| 123 |
+
model = SparseEncoder("bourdoiscatie/sparse_encoder_test_STS_approach")
|
| 124 |
+
# Run inference
|
| 125 |
+
sentences = [
|
| 126 |
+
"Oui, je peux vous dire d'après mon expérience personnelle qu'ils ont certainement sifflé.",
|
| 127 |
+
"Il est vrai que les bombes de la Seconde Guerre mondiale faisaient un bruit de sifflet lorsqu'elles tombaient.",
|
| 128 |
+
"J'envisage de dépenser les 48 dollars par mois pour le système GTD (Getting things done) annoncé par David Allen.",
|
| 129 |
+
]
|
| 130 |
+
embeddings = model.encode(sentences)
|
| 131 |
+
print(embeddings.shape)
|
| 132 |
+
# [3, 32005]
|
| 133 |
+
|
| 134 |
+
# Get the similarity scores for the embeddings
|
| 135 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 136 |
+
print(similarities)
|
| 137 |
+
# tensor([[1.0000, 0.1034, 0.1443],
|
| 138 |
+
# [0.1034, 1.0000, 0.0588],
|
| 139 |
+
# [0.1443, 0.0588, 1.0000]])
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
<!--
|
| 143 |
+
### Direct Usage (Transformers)
|
| 144 |
+
|
| 145 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 146 |
+
|
| 147 |
+
</details>
|
| 148 |
+
-->
|
| 149 |
+
|
| 150 |
+
<!--
|
| 151 |
+
### Downstream Usage (Sentence Transformers)
|
| 152 |
+
|
| 153 |
+
You can finetune this model on your own dataset.
|
| 154 |
+
|
| 155 |
+
<details><summary>Click to expand</summary>
|
| 156 |
+
|
| 157 |
+
</details>
|
| 158 |
+
-->
|
| 159 |
+
|
| 160 |
+
<!--
|
| 161 |
+
### Out-of-Scope Use
|
| 162 |
+
|
| 163 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 164 |
+
-->
|
| 165 |
+
|
| 166 |
+
## Evaluation
|
| 167 |
+
|
| 168 |
+
### Metrics
|
| 169 |
+
|
| 170 |
+
#### Semantic Similarity
|
| 171 |
+
|
| 172 |
+
* Datasets: `sts-dev` and `sts-test`
|
| 173 |
+
* Evaluated with [<code>SparseEmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sparse_encoder/evaluation.html#sentence_transformers.sparse_encoder.evaluation.SparseEmbeddingSimilarityEvaluator)
|
| 174 |
+
|
| 175 |
+
| Metric | sts-dev | sts-test |
|
| 176 |
+
|:--------------------|:-----------|:-----------|
|
| 177 |
+
| pearson_cosine | 0.7166 | 0.7246 |
|
| 178 |
+
| **spearman_cosine** | **0.7147** | **0.6623** |
|
| 179 |
+
| active_dims | 28.9952 | 56.8902 |
|
| 180 |
+
| sparsity_ratio | 0.9991 | 0.9982 |
|
| 181 |
+
|
| 182 |
+
<!--
|
| 183 |
+
## Bias, Risks and Limitations
|
| 184 |
+
|
| 185 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 186 |
+
-->
|
| 187 |
+
|
| 188 |
+
<!--
|
| 189 |
+
### Recommendations
|
| 190 |
+
|
| 191 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 192 |
+
-->
|
| 193 |
+
|
| 194 |
+
## Training Details
|
| 195 |
+
|
| 196 |
+
### Training Dataset
|
| 197 |
+
|
| 198 |
+
#### french_sts
|
| 199 |
+
|
| 200 |
+
* Dataset: [french_sts](https://huggingface.co/datasets/CATIE-AQ/frenchSTS) at [47128cc](https://huggingface.co/datasets/CATIE-AQ/frenchSTS/tree/47128cc18c893e5b93679037cdca303849e05309)
|
| 201 |
+
* Size: 12,227 training samples
|
| 202 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
|
| 203 |
+
* Approximate statistics based on the first 1000 samples:
|
| 204 |
+
| | sentence1 | sentence2 | score |
|
| 205 |
+
|:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 206 |
+
| type | string | string | float |
|
| 207 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 11.68 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 11.7 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> |
|
| 208 |
+
* Samples:
|
| 209 |
+
| sentence1 | sentence2 | score |
|
| 210 |
+
|:----------------------------------------------------|:----------------------------------------------------|:---------------------------------|
|
| 211 |
+
| <code>Un avion est en train de décoller.</code> | <code>Un avion est en train de décoller.</code> | <code>1.0</code> |
|
| 212 |
+
| <code>Un homme est en train de fumer.</code> | <code>Un homme fait du patinage.</code> | <code>0.10000000149011612</code> |
|
| 213 |
+
| <code>Une personne jette un chat au plafond.</code> | <code>Une personne jette un chat au plafond.</code> | <code>1.0</code> |
|
| 214 |
+
* Loss: [<code>SpladeLoss</code>](https://sbert.net/docs/package_reference/sparse_encoder/losses.html#spladeloss) with these parameters:
|
| 215 |
+
```json
|
| 216 |
+
{
|
| 217 |
+
"loss": "SparseCosineSimilarityLoss(loss_fct='torch.nn.modules.loss.MSELoss')",
|
| 218 |
+
"document_regularizer_weight": 0.003
|
| 219 |
+
}
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
### Evaluation Dataset
|
| 223 |
+
|
| 224 |
+
#### french_sts
|
| 225 |
+
|
| 226 |
+
* Dataset: [french_sts](https://huggingface.co/datasets/CATIE-AQ/frenchSTS) at [47128cc](https://huggingface.co/datasets/CATIE-AQ/frenchSTS/tree/47128cc18c893e5b93679037cdca303849e05309)
|
| 227 |
+
* Size: 3,526 evaluation samples
|
| 228 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
|
| 229 |
+
* Approximate statistics based on the first 1000 samples:
|
| 230 |
+
| | sentence1 | sentence2 | score |
|
| 231 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 232 |
+
| type | string | string | float |
|
| 233 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 19.04 tokens</li><li>max: 52 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 18.97 tokens</li><li>max: 56 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.43</li><li>max: 1.0</li></ul> |
|
| 234 |
+
* Samples:
|
| 235 |
+
| sentence1 | sentence2 | score |
|
| 236 |
+
|:-------------------------------------------------------------------------|:----------------------------------------------------------------------------|:-------------------------------|
|
| 237 |
+
| <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> |
|
| 238 |
+
| <code>Un jeune enfant monte à cheval.</code> | <code>Un enfant monte à cheval.</code> | <code>0.949999988079071</code> |
|
| 239 |
+
| <code>Un homme donne une souris à un serpent.</code> | <code>L'homme donne une souris au serpent.</code> | <code>1.0</code> |
|
| 240 |
+
* Loss: [<code>SpladeLoss</code>](https://sbert.net/docs/package_reference/sparse_encoder/losses.html#spladeloss) with these parameters:
|
| 241 |
+
```json
|
| 242 |
+
{
|
| 243 |
+
"loss": "SparseCosineSimilarityLoss(loss_fct='torch.nn.modules.loss.MSELoss')",
|
| 244 |
+
"document_regularizer_weight": 0.003
|
| 245 |
+
}
|
| 246 |
+
```
|
| 247 |
+
|
| 248 |
+
### Training Hyperparameters
|
| 249 |
+
#### Non-Default Hyperparameters
|
| 250 |
+
|
| 251 |
+
- `eval_strategy`: epoch
|
| 252 |
+
- `per_device_train_batch_size`: 16
|
| 253 |
+
- `per_device_eval_batch_size`: 16
|
| 254 |
+
- `bf16`: True
|
| 255 |
+
|
| 256 |
+
#### All Hyperparameters
|
| 257 |
+
<details><summary>Click to expand</summary>
|
| 258 |
+
|
| 259 |
+
- `overwrite_output_dir`: False
|
| 260 |
+
- `do_predict`: False
|
| 261 |
+
- `eval_strategy`: epoch
|
| 262 |
+
- `prediction_loss_only`: True
|
| 263 |
+
- `per_device_train_batch_size`: 16
|
| 264 |
+
- `per_device_eval_batch_size`: 16
|
| 265 |
+
- `per_gpu_train_batch_size`: None
|
| 266 |
+
- `per_gpu_eval_batch_size`: None
|
| 267 |
+
- `gradient_accumulation_steps`: 1
|
| 268 |
+
- `eval_accumulation_steps`: None
|
| 269 |
+
- `torch_empty_cache_steps`: None
|
| 270 |
+
- `learning_rate`: 5e-05
|
| 271 |
+
- `weight_decay`: 0.0
|
| 272 |
+
- `adam_beta1`: 0.9
|
| 273 |
+
- `adam_beta2`: 0.999
|
| 274 |
+
- `adam_epsilon`: 1e-08
|
| 275 |
+
- `max_grad_norm`: 1.0
|
| 276 |
+
- `num_train_epochs`: 3
|
| 277 |
+
- `max_steps`: -1
|
| 278 |
+
- `lr_scheduler_type`: linear
|
| 279 |
+
- `lr_scheduler_kwargs`: {}
|
| 280 |
+
- `warmup_ratio`: 0.0
|
| 281 |
+
- `warmup_steps`: 0
|
| 282 |
+
- `log_level`: passive
|
| 283 |
+
- `log_level_replica`: warning
|
| 284 |
+
- `log_on_each_node`: True
|
| 285 |
+
- `logging_nan_inf_filter`: True
|
| 286 |
+
- `save_safetensors`: True
|
| 287 |
+
- `save_on_each_node`: False
|
| 288 |
+
- `save_only_model`: False
|
| 289 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 290 |
+
- `no_cuda`: False
|
| 291 |
+
- `use_cpu`: False
|
| 292 |
+
- `use_mps_device`: False
|
| 293 |
+
- `seed`: 42
|
| 294 |
+
- `data_seed`: None
|
| 295 |
+
- `jit_mode_eval`: False
|
| 296 |
+
- `use_ipex`: False
|
| 297 |
+
- `bf16`: True
|
| 298 |
+
- `fp16`: False
|
| 299 |
+
- `fp16_opt_level`: O1
|
| 300 |
+
- `half_precision_backend`: auto
|
| 301 |
+
- `bf16_full_eval`: False
|
| 302 |
+
- `fp16_full_eval`: False
|
| 303 |
+
- `tf32`: None
|
| 304 |
+
- `local_rank`: 0
|
| 305 |
+
- `ddp_backend`: None
|
| 306 |
+
- `tpu_num_cores`: None
|
| 307 |
+
- `tpu_metrics_debug`: False
|
| 308 |
+
- `debug`: []
|
| 309 |
+
- `dataloader_drop_last`: False
|
| 310 |
+
- `dataloader_num_workers`: 0
|
| 311 |
+
- `dataloader_prefetch_factor`: None
|
| 312 |
+
- `past_index`: -1
|
| 313 |
+
- `disable_tqdm`: False
|
| 314 |
+
- `remove_unused_columns`: True
|
| 315 |
+
- `label_names`: None
|
| 316 |
+
- `load_best_model_at_end`: False
|
| 317 |
+
- `ignore_data_skip`: False
|
| 318 |
+
- `fsdp`: []
|
| 319 |
+
- `fsdp_min_num_params`: 0
|
| 320 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 321 |
+
- `tp_size`: 0
|
| 322 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 323 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 324 |
+
- `deepspeed`: None
|
| 325 |
+
- `label_smoothing_factor`: 0.0
|
| 326 |
+
- `optim`: adamw_torch
|
| 327 |
+
- `optim_args`: None
|
| 328 |
+
- `adafactor`: False
|
| 329 |
+
- `group_by_length`: False
|
| 330 |
+
- `length_column_name`: length
|
| 331 |
+
- `ddp_find_unused_parameters`: None
|
| 332 |
+
- `ddp_bucket_cap_mb`: None
|
| 333 |
+
- `ddp_broadcast_buffers`: False
|
| 334 |
+
- `dataloader_pin_memory`: True
|
| 335 |
+
- `dataloader_persistent_workers`: False
|
| 336 |
+
- `skip_memory_metrics`: True
|
| 337 |
+
- `use_legacy_prediction_loop`: False
|
| 338 |
+
- `push_to_hub`: False
|
| 339 |
+
- `resume_from_checkpoint`: None
|
| 340 |
+
- `hub_model_id`: None
|
| 341 |
+
- `hub_strategy`: every_save
|
| 342 |
+
- `hub_private_repo`: None
|
| 343 |
+
- `hub_always_push`: False
|
| 344 |
+
- `gradient_checkpointing`: False
|
| 345 |
+
- `gradient_checkpointing_kwargs`: None
|
| 346 |
+
- `include_inputs_for_metrics`: False
|
| 347 |
+
- `include_for_metrics`: []
|
| 348 |
+
- `eval_do_concat_batches`: True
|
| 349 |
+
- `fp16_backend`: auto
|
| 350 |
+
- `push_to_hub_model_id`: None
|
| 351 |
+
- `push_to_hub_organization`: None
|
| 352 |
+
- `mp_parameters`:
|
| 353 |
+
- `auto_find_batch_size`: False
|
| 354 |
+
- `full_determinism`: False
|
| 355 |
+
- `torchdynamo`: None
|
| 356 |
+
- `ray_scope`: last
|
| 357 |
+
- `ddp_timeout`: 1800
|
| 358 |
+
- `torch_compile`: False
|
| 359 |
+
- `torch_compile_backend`: None
|
| 360 |
+
- `torch_compile_mode`: None
|
| 361 |
+
- `include_tokens_per_second`: False
|
| 362 |
+
- `include_num_input_tokens_seen`: False
|
| 363 |
+
- `neftune_noise_alpha`: None
|
| 364 |
+
- `optim_target_modules`: None
|
| 365 |
+
- `batch_eval_metrics`: False
|
| 366 |
+
- `eval_on_start`: False
|
| 367 |
+
- `use_liger_kernel`: False
|
| 368 |
+
- `eval_use_gather_object`: False
|
| 369 |
+
- `average_tokens_across_devices`: False
|
| 370 |
+
- `prompts`: None
|
| 371 |
+
- `batch_sampler`: batch_sampler
|
| 372 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 373 |
+
- `router_mapping`: {}
|
| 374 |
+
- `learning_rate_mapping`: {}
|
| 375 |
+
|
| 376 |
+
</details>
|
| 377 |
+
|
| 378 |
+
### Training Logs
|
| 379 |
+
| Epoch | Step | Training Loss | Validation Loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
|
| 380 |
+
|:------:|:----:|:-------------:|:---------------:|:-----------------------:|:------------------------:|
|
| 381 |
+
| -1 | -1 | - | - | 0.4596 | - |
|
| 382 |
+
| 0.1307 | 100 | 0.051 | - | - | - |
|
| 383 |
+
| 0.2614 | 200 | 0.034 | - | - | - |
|
| 384 |
+
| 0.3922 | 300 | 0.0337 | - | - | - |
|
| 385 |
+
| 0.5229 | 400 | 0.0318 | - | - | - |
|
| 386 |
+
| 0.6536 | 500 | 0.0324 | - | - | - |
|
| 387 |
+
| 0.7843 | 600 | 0.0317 | - | - | - |
|
| 388 |
+
| 0.9150 | 700 | 0.0318 | - | - | - |
|
| 389 |
+
| 1.0 | 765 | - | 0.0521 | 0.6820 | - |
|
| 390 |
+
| 1.0458 | 800 | 0.0321 | - | - | - |
|
| 391 |
+
| 1.1765 | 900 | 0.025 | - | - | - |
|
| 392 |
+
| 1.3072 | 1000 | 0.0265 | - | - | - |
|
| 393 |
+
| 1.4379 | 1100 | 0.0231 | - | - | - |
|
| 394 |
+
| 1.5686 | 1200 | 0.0226 | - | - | - |
|
| 395 |
+
| 1.6993 | 1300 | 0.0246 | - | - | - |
|
| 396 |
+
| 1.8301 | 1400 | 0.0227 | - | - | - |
|
| 397 |
+
| 1.9608 | 1500 | 0.0233 | - | - | - |
|
| 398 |
+
| 2.0 | 1530 | - | 0.0420 | 0.7144 | - |
|
| 399 |
+
| 2.0915 | 1600 | 0.0188 | - | - | - |
|
| 400 |
+
| 2.2222 | 1700 | 0.0166 | - | - | - |
|
| 401 |
+
| 2.3529 | 1800 | 0.0168 | - | - | - |
|
| 402 |
+
| 2.4837 | 1900 | 0.0176 | - | - | - |
|
| 403 |
+
| 2.6144 | 2000 | 0.0168 | - | - | - |
|
| 404 |
+
| 2.7451 | 2100 | 0.0162 | - | - | - |
|
| 405 |
+
| 2.8758 | 2200 | 0.0153 | - | - | - |
|
| 406 |
+
| 3.0 | 2295 | - | 0.0447 | 0.7147 | - |
|
| 407 |
+
| -1 | -1 | - | - | - | 0.6623 |
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
### Framework Versions
|
| 411 |
+
- Python: 3.12.3
|
| 412 |
+
- Sentence Transformers: 5.0.0
|
| 413 |
+
- Transformers: 4.51.3
|
| 414 |
+
- PyTorch: 2.6.0+cu124
|
| 415 |
+
- Accelerate: 1.6.0
|
| 416 |
+
- Datasets: 2.16.0
|
| 417 |
+
- Tokenizers: 0.21.0
|
| 418 |
+
|
| 419 |
+
## Citation
|
| 420 |
+
|
| 421 |
+
### BibTeX
|
| 422 |
+
|
| 423 |
+
#### Sentence Transformers
|
| 424 |
+
```bibtex
|
| 425 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 426 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 427 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 428 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 429 |
+
month = "11",
|
| 430 |
+
year = "2019",
|
| 431 |
+
publisher = "Association for Computational Linguistics",
|
| 432 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 433 |
+
}
|
| 434 |
+
```
|
| 435 |
+
|
| 436 |
+
#### SpladeLoss
|
| 437 |
+
```bibtex
|
| 438 |
+
@misc{formal2022distillationhardnegativesampling,
|
| 439 |
+
title={From Distillation to Hard Negative Sampling: Making Sparse Neural IR Models More Effective},
|
| 440 |
+
author={Thibault Formal and Carlos Lassance and Benjamin Piwowarski and Stéphane Clinchant},
|
| 441 |
+
year={2022},
|
| 442 |
+
eprint={2205.04733},
|
| 443 |
+
archivePrefix={arXiv},
|
| 444 |
+
primaryClass={cs.IR},
|
| 445 |
+
url={https://arxiv.org/abs/2205.04733},
|
| 446 |
+
}
|
| 447 |
+
```
|
| 448 |
+
|
| 449 |
+
#### FlopsLoss
|
| 450 |
+
```bibtex
|
| 451 |
+
@article{paria2020minimizing,
|
| 452 |
+
title={Minimizing flops to learn efficient sparse representations},
|
| 453 |
+
author={Paria, Biswajit and Yeh, Chih-Kuan and Yen, Ian EH and Xu, Ning and Ravikumar, Pradeep and P{'o}czos, Barnab{'a}s},
|
| 454 |
+
journal={arXiv preprint arXiv:2004.05665},
|
| 455 |
+
year={2020}
|
| 456 |
+
}
|
| 457 |
+
```
|
| 458 |
+
|
| 459 |
+
<!--
|
| 460 |
+
## Glossary
|
| 461 |
+
|
| 462 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 463 |
+
-->
|
| 464 |
+
|
| 465 |
+
<!--
|
| 466 |
+
## Model Card Authors
|
| 467 |
+
|
| 468 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 469 |
+
-->
|
| 470 |
+
|
| 471 |
+
<!--
|
| 472 |
+
## Model Card Contact
|
| 473 |
+
|
| 474 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 475 |
+
-->
|
added_tokens.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<unk>NOTUSED": 32005
|
| 3 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"CamembertForMaskedLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 5,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"eos_token_id": 6,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 3072,
|
| 14 |
+
"layer_norm_eps": 1e-05,
|
| 15 |
+
"max_position_embeddings": 514,
|
| 16 |
+
"model_type": "camembert",
|
| 17 |
+
"num_attention_heads": 12,
|
| 18 |
+
"num_hidden_layers": 12,
|
| 19 |
+
"output_past": true,
|
| 20 |
+
"pad_token_id": 1,
|
| 21 |
+
"position_embedding_type": "absolute",
|
| 22 |
+
"torch_dtype": "float32",
|
| 23 |
+
"transformers_version": "4.51.3",
|
| 24 |
+
"type_vocab_size": 1,
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"vocab_size": 32005
|
| 27 |
+
}
|
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:efe651b8344407270f183f7873e2d9102960cb4487ac2a1de0aa457e86e65ba1
|
| 3 |
+
size 442646188
|
modules.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"idx": 0,
|
| 4 |
+
"name": "0",
|
| 5 |
+
"path": "",
|
| 6 |
+
"type": "sentence_transformers.sparse_encoder.models.MLMTransformer"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"idx": 1,
|
| 10 |
+
"name": "1",
|
| 11 |
+
"path": "1_SpladePooling",
|
| 12 |
+
"type": "sentence_transformers.sparse_encoder.models.SpladePooling"
|
| 13 |
+
}
|
| 14 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_seq_length": 512,
|
| 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:988bc5a00281c6d210a5d34bd143d0363741a432fefe741bf71e61b1869d4314
|
| 3 |
+
size 810912
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<s>NOTUSED",
|
| 4 |
+
"</s>NOTUSED",
|
| 5 |
+
"<unk>NOTUSED"
|
| 6 |
+
],
|
| 7 |
+
"bos_token": "<s>",
|
| 8 |
+
"cls_token": "<s>",
|
| 9 |
+
"eos_token": "</s>",
|
| 10 |
+
"mask_token": {
|
| 11 |
+
"content": "<mask>",
|
| 12 |
+
"lstrip": true,
|
| 13 |
+
"normalized": false,
|
| 14 |
+
"rstrip": false,
|
| 15 |
+
"single_word": false
|
| 16 |
+
},
|
| 17 |
+
"pad_token": "<pad>",
|
| 18 |
+
"sep_token": "</s>",
|
| 19 |
+
"unk_token": "<unk>"
|
| 20 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "<s>NOTUSED",
|
| 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>NOTUSED",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"4": {
|
| 28 |
+
"content": "<unk>",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"5": {
|
| 36 |
+
"content": "<s>",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
},
|
| 43 |
+
"6": {
|
| 44 |
+
"content": "</s>",
|
| 45 |
+
"lstrip": false,
|
| 46 |
+
"normalized": false,
|
| 47 |
+
"rstrip": false,
|
| 48 |
+
"single_word": false,
|
| 49 |
+
"special": true
|
| 50 |
+
},
|
| 51 |
+
"32004": {
|
| 52 |
+
"content": "<mask>",
|
| 53 |
+
"lstrip": true,
|
| 54 |
+
"normalized": false,
|
| 55 |
+
"rstrip": false,
|
| 56 |
+
"single_word": false,
|
| 57 |
+
"special": true
|
| 58 |
+
},
|
| 59 |
+
"32005": {
|
| 60 |
+
"content": "<unk>NOTUSED",
|
| 61 |
+
"lstrip": false,
|
| 62 |
+
"normalized": false,
|
| 63 |
+
"rstrip": false,
|
| 64 |
+
"single_word": false,
|
| 65 |
+
"special": true
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"additional_special_tokens": [
|
| 69 |
+
"<s>NOTUSED",
|
| 70 |
+
"</s>NOTUSED",
|
| 71 |
+
"<unk>NOTUSED"
|
| 72 |
+
],
|
| 73 |
+
"bos_token": "<s>",
|
| 74 |
+
"clean_up_tokenization_spaces": false,
|
| 75 |
+
"cls_token": "<s>",
|
| 76 |
+
"eos_token": "</s>",
|
| 77 |
+
"extra_special_tokens": {},
|
| 78 |
+
"mask_token": "<mask>",
|
| 79 |
+
"model_max_length": 512,
|
| 80 |
+
"pad_token": "<pad>",
|
| 81 |
+
"sep_token": "</s>",
|
| 82 |
+
"tokenizer_class": "CamembertTokenizer",
|
| 83 |
+
"unk_token": "<unk>"
|
| 84 |
+
}
|