Sentence Similarity
sentence-transformers
Safetensors
camembert
feature-extraction
Generated from Trainer
dataset_size:800
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use mnaguib/sentence-camembert-large-finetuned-clister with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mnaguib/sentence-camembert-large-finetuned-clister with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mnaguib/sentence-camembert-large-finetuned-clister") sentences = [ "Le toucher rectal est normal.", "Devant la réticence initiale, une symptomatologie délirante est suspectée, mais elle ne sera jamais verbalisée par la patiente.", "Le toucher vaginal était normal.", "Sur le plan biologique , ce patient présente à l'admission :" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Add new SentenceTransformer model
Browse files- 1_Pooling/config.json +10 -0
- README.md +379 -0
- config.json +29 -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 +55 -0
- tokenizer.json +0 -0
- tokenizer_config.json +83 -0
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,379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:600
|
| 8 |
+
- loss:CosineSimilarityLoss
|
| 9 |
+
base_model: dangvantuan/sentence-camembert-large
|
| 10 |
+
widget:
|
| 11 |
+
- source_sentence: Lors de l’exploration, est trouvée une masse kystique développée
|
| 12 |
+
aux dépens de la surrénale.
|
| 13 |
+
sentences:
|
| 14 |
+
- Une fibroscopie digestive avait objectivé des varices oesophagiennes stade II.
|
| 15 |
+
- Il n’y avait pas de foyer tumoral (Figure 5).
|
| 16 |
+
- La paroi a été refermée sur un drainage type Mickulicz.
|
| 17 |
+
- source_sentence: Les suites post-opératoires étaient simples.
|
| 18 |
+
sentences:
|
| 19 |
+
- Elle ne présente aucun autre antécédent médical pertinent.
|
| 20 |
+
- Les suites opératoires étaient simple.
|
| 21 |
+
- Le bilan d’extension comprenait une tomodensitométrie (TDM) thoraco-abdomino-pelvienne.
|
| 22 |
+
- source_sentence: La T.D.M (Figure 2) montrait une tumeur surrénalienne surrénalien
|
| 23 |
+
bilatérale de densité hétérogène.
|
| 24 |
+
sentences:
|
| 25 |
+
- L’évolution était favorable avec un recul de 12 mois.
|
| 26 |
+
- L’exploration découvrait une tumeur surrénalienne sphérique de la taille d’une
|
| 27 |
+
mandarine.
|
| 28 |
+
- Une mise à plat avec ligature de l’artère hypogastrique a été réalisée.
|
| 29 |
+
- source_sentence: La patiente ne fume pas, ne prend pas d’alcool et ne souffre d’aucune
|
| 30 |
+
allergie médicamenteuse.
|
| 31 |
+
sentences:
|
| 32 |
+
- La patiente ne fume pas, ne prend que très rarement de l’alcool et n’a pas d’allergie
|
| 33 |
+
aux médicaments.
|
| 34 |
+
- Le reste de l’examen somatique était sans particularité.
|
| 35 |
+
- Celle-ci semblait occuper grossièrement la forme des cavités rénales (Figure 1).
|
| 36 |
+
- source_sentence: Le bilan étiologique, comprenant le dosage des acides à chaînes
|
| 37 |
+
très longues, des arylsulfatases A, B et C, des hexoaminidases, de la galactosidase
|
| 38 |
+
et de l’acide lactique sérique, était négatif.
|
| 39 |
+
sentences:
|
| 40 |
+
- L’examen clinique trouvait un nodule sous-cutané, solide, mobile, sur la face
|
| 41 |
+
dorsale du fourreau du pénis d’environ 1,5 cm de diamètre.
|
| 42 |
+
- L’examen clinique révélait une déformation et une augmentation du volume du genou
|
| 43 |
+
droit, un globe vésical et une fuite d’urine à la palpation de la région hypogastrique.
|
| 44 |
+
- Une cystoprostatectomie totale avec dérivation selon Bricker est réalisée.
|
| 45 |
+
pipeline_tag: sentence-similarity
|
| 46 |
+
library_name: sentence-transformers
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
# SentenceTransformer based on dangvantuan/sentence-camembert-large
|
| 50 |
+
|
| 51 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [dangvantuan/sentence-camembert-large](https://huggingface.co/dangvantuan/sentence-camembert-large). 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.
|
| 52 |
+
|
| 53 |
+
## Model Details
|
| 54 |
+
|
| 55 |
+
### Model Description
|
| 56 |
+
- **Model Type:** Sentence Transformer
|
| 57 |
+
- **Base model:** [dangvantuan/sentence-camembert-large](https://huggingface.co/dangvantuan/sentence-camembert-large) <!-- at revision 1f111fd01a1c8595a4e8478775d740ab03279507 -->
|
| 58 |
+
- **Maximum Sequence Length:** 514 tokens
|
| 59 |
+
- **Output Dimensionality:** 1024 dimensions
|
| 60 |
+
- **Similarity Function:** Cosine Similarity
|
| 61 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 62 |
+
<!-- - **Language:** Unknown -->
|
| 63 |
+
<!-- - **License:** Unknown -->
|
| 64 |
+
|
| 65 |
+
### Model Sources
|
| 66 |
+
|
| 67 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 68 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 69 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 70 |
+
|
| 71 |
+
### Full Model Architecture
|
| 72 |
+
|
| 73 |
+
```
|
| 74 |
+
SentenceTransformer(
|
| 75 |
+
(0): Transformer({'max_seq_length': 514, 'do_lower_case': False}) with Transformer model: CamembertModel
|
| 76 |
+
(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})
|
| 77 |
+
)
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
## Usage
|
| 81 |
+
|
| 82 |
+
### Direct Usage (Sentence Transformers)
|
| 83 |
+
|
| 84 |
+
First install the Sentence Transformers library:
|
| 85 |
+
|
| 86 |
+
```bash
|
| 87 |
+
pip install -U sentence-transformers
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
Then you can load this model and run inference.
|
| 91 |
+
```python
|
| 92 |
+
from sentence_transformers import SentenceTransformer
|
| 93 |
+
|
| 94 |
+
# Download from the 🤗 Hub
|
| 95 |
+
model = SentenceTransformer("mnaguib/sentence-camembert-large-finetuned-clister")
|
| 96 |
+
# Run inference
|
| 97 |
+
sentences = [
|
| 98 |
+
'Le bilan étiologique, comprenant le dosage des acides à chaînes très longues, des arylsulfatases A, B et C, des hexoaminidases, de la galactosidase et de l’acide lactique sérique, était négatif.',
|
| 99 |
+
'L’examen clinique trouvait un nodule sous-cutané, solide, mobile, sur la face dorsale du fourreau du pénis d’environ 1,5 cm de diamètre.',
|
| 100 |
+
'Une cystoprostatectomie totale avec dérivation selon Bricker est réalisée.',
|
| 101 |
+
]
|
| 102 |
+
embeddings = model.encode(sentences)
|
| 103 |
+
print(embeddings.shape)
|
| 104 |
+
# [3, 1024]
|
| 105 |
+
|
| 106 |
+
# Get the similarity scores for the embeddings
|
| 107 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 108 |
+
print(similarities.shape)
|
| 109 |
+
# [3, 3]
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
<!--
|
| 113 |
+
### Direct Usage (Transformers)
|
| 114 |
+
|
| 115 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 116 |
+
|
| 117 |
+
</details>
|
| 118 |
+
-->
|
| 119 |
+
|
| 120 |
+
<!--
|
| 121 |
+
### Downstream Usage (Sentence Transformers)
|
| 122 |
+
|
| 123 |
+
You can finetune this model on your own dataset.
|
| 124 |
+
|
| 125 |
+
<details><summary>Click to expand</summary>
|
| 126 |
+
|
| 127 |
+
</details>
|
| 128 |
+
-->
|
| 129 |
+
|
| 130 |
+
<!--
|
| 131 |
+
### Out-of-Scope Use
|
| 132 |
+
|
| 133 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 134 |
+
-->
|
| 135 |
+
|
| 136 |
+
<!--
|
| 137 |
+
## Bias, Risks and Limitations
|
| 138 |
+
|
| 139 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 140 |
+
-->
|
| 141 |
+
|
| 142 |
+
<!--
|
| 143 |
+
### Recommendations
|
| 144 |
+
|
| 145 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 146 |
+
-->
|
| 147 |
+
|
| 148 |
+
## Training Details
|
| 149 |
+
|
| 150 |
+
### Training Dataset
|
| 151 |
+
|
| 152 |
+
#### Unnamed Dataset
|
| 153 |
+
|
| 154 |
+
* Size: 600 training samples
|
| 155 |
+
* Columns: <code>id_1</code>, <code>id_2</code>, and <code>label</code>
|
| 156 |
+
* Approximate statistics based on the first 600 samples:
|
| 157 |
+
| | id_1 | id_2 | label |
|
| 158 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 159 |
+
| type | string | string | float |
|
| 160 |
+
| details | <ul><li>min: 8 tokens</li><li>mean: 23.23 tokens</li><li>max: 85 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 23.08 tokens</li><li>max: 90 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 2.25</li><li>max: 5.0</li></ul> |
|
| 161 |
+
* Samples:
|
| 162 |
+
| id_1 | id_2 | label |
|
| 163 |
+
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
|
| 164 |
+
| <code>L'UIV a objectivé un retard de sécrétion avec importante dilatation pyélo-calicielle et de l'uretère lombaire en amont d'un énorme calcul de l'uretère iliaque et pelvien droit (Figure 2).</code> | <code>L'UIV a montré une importante dilatation urétéro-pyélo-calicielle en amont d'un énorme calcul de l'uretère gauche, le coté droit était sans anomalies (Figure 6).</code> | <code>3.0</code> |
|
| 165 |
+
| <code>1 Diminution méthadone à 80 mg TID.</code> | <code>7 Diminution méthadone à 20 mg TID</code> | <code>3.0</code> |
|
| 166 |
+
| <code>L’examen clinique à l’entrée trouvait au toucher rectal une grosse vésicule séminale droite.</code> | <code>L'examen clinique trouvait au toucher rectal un plancher vésical fixé à gauche.</code> | <code>3.0</code> |
|
| 167 |
+
* Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
|
| 168 |
+
```json
|
| 169 |
+
{
|
| 170 |
+
"loss_fct": "torch.nn.modules.loss.MSELoss"
|
| 171 |
+
}
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
### Evaluation Dataset
|
| 175 |
+
|
| 176 |
+
#### Unnamed Dataset
|
| 177 |
+
|
| 178 |
+
* Size: 200 evaluation samples
|
| 179 |
+
* Columns: <code>id_1</code>, <code>id_2</code>, and <code>label</code>
|
| 180 |
+
* Approximate statistics based on the first 200 samples:
|
| 181 |
+
| | id_1 | id_2 | label |
|
| 182 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 183 |
+
| type | string | string | float |
|
| 184 |
+
| details | <ul><li>min: 8 tokens</li><li>mean: 22.58 tokens</li><li>max: 97 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 21.83 tokens</li><li>max: 81 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 2.21</li><li>max: 5.0</li></ul> |
|
| 185 |
+
* Samples:
|
| 186 |
+
| id_1 | id_2 | label |
|
| 187 |
+
|:-------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:-----------------|
|
| 188 |
+
| <code>Le taux de PSA était de 218 ng/ml (normale ≤ 4ng/ml).</code> | <code>Le taux de PSA post-irradiation était de 1.8ng/ml et était resté stable pendant 5 ans.</code> | <code>1.0</code> |
|
| 189 |
+
| <code>Morphine 1 à 2 mg IV</code> | <code>Morphine perfusion IV x x x x x</code> | <code>2.0</code> |
|
| 190 |
+
| <code>Le reste de l’examen était sans particularité.</code> | <code>Le reste de l’examen est sans particularité.</code> | <code>5.0</code> |
|
| 191 |
+
* Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
|
| 192 |
+
```json
|
| 193 |
+
{
|
| 194 |
+
"loss_fct": "torch.nn.modules.loss.MSELoss"
|
| 195 |
+
}
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
### Training Hyperparameters
|
| 199 |
+
#### Non-Default Hyperparameters
|
| 200 |
+
|
| 201 |
+
- `eval_strategy`: steps
|
| 202 |
+
- `per_device_train_batch_size`: 16
|
| 203 |
+
- `per_device_eval_batch_size`: 16
|
| 204 |
+
- `learning_rate`: 2e-05
|
| 205 |
+
- `num_train_epochs`: 5
|
| 206 |
+
- `warmup_ratio`: 0.1
|
| 207 |
+
- `fp16`: True
|
| 208 |
+
- `batch_sampler`: no_duplicates
|
| 209 |
+
|
| 210 |
+
#### All Hyperparameters
|
| 211 |
+
<details><summary>Click to expand</summary>
|
| 212 |
+
|
| 213 |
+
- `overwrite_output_dir`: False
|
| 214 |
+
- `do_predict`: False
|
| 215 |
+
- `eval_strategy`: steps
|
| 216 |
+
- `prediction_loss_only`: True
|
| 217 |
+
- `per_device_train_batch_size`: 16
|
| 218 |
+
- `per_device_eval_batch_size`: 16
|
| 219 |
+
- `per_gpu_train_batch_size`: None
|
| 220 |
+
- `per_gpu_eval_batch_size`: None
|
| 221 |
+
- `gradient_accumulation_steps`: 1
|
| 222 |
+
- `eval_accumulation_steps`: None
|
| 223 |
+
- `torch_empty_cache_steps`: None
|
| 224 |
+
- `learning_rate`: 2e-05
|
| 225 |
+
- `weight_decay`: 0.0
|
| 226 |
+
- `adam_beta1`: 0.9
|
| 227 |
+
- `adam_beta2`: 0.999
|
| 228 |
+
- `adam_epsilon`: 1e-08
|
| 229 |
+
- `max_grad_norm`: 1.0
|
| 230 |
+
- `num_train_epochs`: 5
|
| 231 |
+
- `max_steps`: -1
|
| 232 |
+
- `lr_scheduler_type`: linear
|
| 233 |
+
- `lr_scheduler_kwargs`: {}
|
| 234 |
+
- `warmup_ratio`: 0.1
|
| 235 |
+
- `warmup_steps`: 0
|
| 236 |
+
- `log_level`: passive
|
| 237 |
+
- `log_level_replica`: warning
|
| 238 |
+
- `log_on_each_node`: True
|
| 239 |
+
- `logging_nan_inf_filter`: True
|
| 240 |
+
- `save_safetensors`: True
|
| 241 |
+
- `save_on_each_node`: False
|
| 242 |
+
- `save_only_model`: False
|
| 243 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 244 |
+
- `no_cuda`: False
|
| 245 |
+
- `use_cpu`: False
|
| 246 |
+
- `use_mps_device`: False
|
| 247 |
+
- `seed`: 42
|
| 248 |
+
- `data_seed`: None
|
| 249 |
+
- `jit_mode_eval`: False
|
| 250 |
+
- `use_ipex`: False
|
| 251 |
+
- `bf16`: False
|
| 252 |
+
- `fp16`: True
|
| 253 |
+
- `fp16_opt_level`: O1
|
| 254 |
+
- `half_precision_backend`: auto
|
| 255 |
+
- `bf16_full_eval`: False
|
| 256 |
+
- `fp16_full_eval`: False
|
| 257 |
+
- `tf32`: None
|
| 258 |
+
- `local_rank`: 0
|
| 259 |
+
- `ddp_backend`: None
|
| 260 |
+
- `tpu_num_cores`: None
|
| 261 |
+
- `tpu_metrics_debug`: False
|
| 262 |
+
- `debug`: []
|
| 263 |
+
- `dataloader_drop_last`: False
|
| 264 |
+
- `dataloader_num_workers`: 0
|
| 265 |
+
- `dataloader_prefetch_factor`: None
|
| 266 |
+
- `past_index`: -1
|
| 267 |
+
- `disable_tqdm`: False
|
| 268 |
+
- `remove_unused_columns`: True
|
| 269 |
+
- `label_names`: None
|
| 270 |
+
- `load_best_model_at_end`: False
|
| 271 |
+
- `ignore_data_skip`: False
|
| 272 |
+
- `fsdp`: []
|
| 273 |
+
- `fsdp_min_num_params`: 0
|
| 274 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 275 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 276 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 277 |
+
- `deepspeed`: None
|
| 278 |
+
- `label_smoothing_factor`: 0.0
|
| 279 |
+
- `optim`: adamw_torch
|
| 280 |
+
- `optim_args`: None
|
| 281 |
+
- `adafactor`: False
|
| 282 |
+
- `group_by_length`: False
|
| 283 |
+
- `length_column_name`: length
|
| 284 |
+
- `ddp_find_unused_parameters`: None
|
| 285 |
+
- `ddp_bucket_cap_mb`: None
|
| 286 |
+
- `ddp_broadcast_buffers`: False
|
| 287 |
+
- `dataloader_pin_memory`: True
|
| 288 |
+
- `dataloader_persistent_workers`: False
|
| 289 |
+
- `skip_memory_metrics`: True
|
| 290 |
+
- `use_legacy_prediction_loop`: False
|
| 291 |
+
- `push_to_hub`: False
|
| 292 |
+
- `resume_from_checkpoint`: None
|
| 293 |
+
- `hub_model_id`: None
|
| 294 |
+
- `hub_strategy`: every_save
|
| 295 |
+
- `hub_private_repo`: None
|
| 296 |
+
- `hub_always_push`: False
|
| 297 |
+
- `gradient_checkpointing`: False
|
| 298 |
+
- `gradient_checkpointing_kwargs`: None
|
| 299 |
+
- `include_inputs_for_metrics`: False
|
| 300 |
+
- `include_for_metrics`: []
|
| 301 |
+
- `eval_do_concat_batches`: True
|
| 302 |
+
- `fp16_backend`: auto
|
| 303 |
+
- `push_to_hub_model_id`: None
|
| 304 |
+
- `push_to_hub_organization`: None
|
| 305 |
+
- `mp_parameters`:
|
| 306 |
+
- `auto_find_batch_size`: False
|
| 307 |
+
- `full_determinism`: False
|
| 308 |
+
- `torchdynamo`: None
|
| 309 |
+
- `ray_scope`: last
|
| 310 |
+
- `ddp_timeout`: 1800
|
| 311 |
+
- `torch_compile`: False
|
| 312 |
+
- `torch_compile_backend`: None
|
| 313 |
+
- `torch_compile_mode`: None
|
| 314 |
+
- `dispatch_batches`: None
|
| 315 |
+
- `split_batches`: None
|
| 316 |
+
- `include_tokens_per_second`: False
|
| 317 |
+
- `include_num_input_tokens_seen`: False
|
| 318 |
+
- `neftune_noise_alpha`: None
|
| 319 |
+
- `optim_target_modules`: None
|
| 320 |
+
- `batch_eval_metrics`: False
|
| 321 |
+
- `eval_on_start`: False
|
| 322 |
+
- `use_liger_kernel`: False
|
| 323 |
+
- `eval_use_gather_object`: False
|
| 324 |
+
- `average_tokens_across_devices`: False
|
| 325 |
+
- `prompts`: None
|
| 326 |
+
- `batch_sampler`: no_duplicates
|
| 327 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 328 |
+
|
| 329 |
+
</details>
|
| 330 |
+
|
| 331 |
+
### Training Logs
|
| 332 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
| 333 |
+
|:------:|:----:|:-------------:|:---------------:|
|
| 334 |
+
| 2.6316 | 100 | 5.1271 | 4.4980 |
|
| 335 |
+
|
| 336 |
+
|
| 337 |
+
### Framework Versions
|
| 338 |
+
- Python: 3.12.8
|
| 339 |
+
- Sentence Transformers: 3.4.1
|
| 340 |
+
- Transformers: 4.47.1
|
| 341 |
+
- PyTorch: 2.5.1+cu124
|
| 342 |
+
- Accelerate: 1.4.0
|
| 343 |
+
- Datasets: 3.2.0
|
| 344 |
+
- Tokenizers: 0.21.0
|
| 345 |
+
|
| 346 |
+
## Citation
|
| 347 |
+
|
| 348 |
+
### BibTeX
|
| 349 |
+
|
| 350 |
+
#### Sentence Transformers
|
| 351 |
+
```bibtex
|
| 352 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 353 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 354 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 355 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 356 |
+
month = "11",
|
| 357 |
+
year = "2019",
|
| 358 |
+
publisher = "Association for Computational Linguistics",
|
| 359 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 360 |
+
}
|
| 361 |
+
```
|
| 362 |
+
|
| 363 |
+
<!--
|
| 364 |
+
## Glossary
|
| 365 |
+
|
| 366 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 367 |
+
-->
|
| 368 |
+
|
| 369 |
+
<!--
|
| 370 |
+
## Model Card Authors
|
| 371 |
+
|
| 372 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 373 |
+
-->
|
| 374 |
+
|
| 375 |
+
<!--
|
| 376 |
+
## Model Card Contact
|
| 377 |
+
|
| 378 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 379 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "models/trial1/final",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"CamembertModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"gradient_checkpointing": false,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 1024,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 4096,
|
| 16 |
+
"layer_norm_eps": 1e-05,
|
| 17 |
+
"max_position_embeddings": 514,
|
| 18 |
+
"model_type": "camembert",
|
| 19 |
+
"num_attention_heads": 16,
|
| 20 |
+
"num_hidden_layers": 24,
|
| 21 |
+
"output_past": true,
|
| 22 |
+
"pad_token_id": 1,
|
| 23 |
+
"position_embedding_type": "absolute",
|
| 24 |
+
"torch_dtype": "float32",
|
| 25 |
+
"transformers_version": "4.47.1",
|
| 26 |
+
"type_vocab_size": 1,
|
| 27 |
+
"use_cache": true,
|
| 28 |
+
"vocab_size": 32005
|
| 29 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "3.4.1",
|
| 4 |
+
"transformers": "4.47.1",
|
| 5 |
+
"pytorch": "2.5.1+cu124"
|
| 6 |
+
},
|
| 7 |
+
"prompts": {},
|
| 8 |
+
"default_prompt_name": null,
|
| 9 |
+
"similarity_fn_name": "cosine"
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ea520d9a9dba4ea2fc6db2a43601051bad09b65794da8d722911a0b8b7dee26
|
| 3 |
+
size 1346690896
|
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": 514,
|
| 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:f98f266fdc548c94216aaadc13ffaaafacf0c8793303e2195322d954549ea261
|
| 3 |
+
size 808767
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<s>NOTUSED",
|
| 4 |
+
"</s>NOTUSED"
|
| 5 |
+
],
|
| 6 |
+
"bos_token": {
|
| 7 |
+
"content": "<s>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false
|
| 12 |
+
},
|
| 13 |
+
"cls_token": {
|
| 14 |
+
"content": "<s>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false
|
| 19 |
+
},
|
| 20 |
+
"eos_token": {
|
| 21 |
+
"content": "</s>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false
|
| 26 |
+
},
|
| 27 |
+
"mask_token": {
|
| 28 |
+
"content": "<mask>",
|
| 29 |
+
"lstrip": true,
|
| 30 |
+
"normalized": true,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false
|
| 33 |
+
},
|
| 34 |
+
"pad_token": {
|
| 35 |
+
"content": "<pad>",
|
| 36 |
+
"lstrip": false,
|
| 37 |
+
"normalized": false,
|
| 38 |
+
"rstrip": false,
|
| 39 |
+
"single_word": false
|
| 40 |
+
},
|
| 41 |
+
"sep_token": {
|
| 42 |
+
"content": "</s>",
|
| 43 |
+
"lstrip": false,
|
| 44 |
+
"normalized": false,
|
| 45 |
+
"rstrip": false,
|
| 46 |
+
"single_word": false
|
| 47 |
+
},
|
| 48 |
+
"unk_token": {
|
| 49 |
+
"content": "<unk>",
|
| 50 |
+
"lstrip": false,
|
| 51 |
+
"normalized": false,
|
| 52 |
+
"rstrip": false,
|
| 53 |
+
"single_word": false
|
| 54 |
+
}
|
| 55 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"3": {
|
| 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": true,
|
| 55 |
+
"rstrip": false,
|
| 56 |
+
"single_word": false,
|
| 57 |
+
"special": true
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"additional_special_tokens": [
|
| 61 |
+
"<s>NOTUSED",
|
| 62 |
+
"</s>NOTUSED"
|
| 63 |
+
],
|
| 64 |
+
"bos_token": "<s>",
|
| 65 |
+
"clean_up_tokenization_spaces": false,
|
| 66 |
+
"cls_token": "<s>",
|
| 67 |
+
"eos_token": "</s>",
|
| 68 |
+
"extra_special_tokens": {},
|
| 69 |
+
"mask_token": "<mask>",
|
| 70 |
+
"max_length": 514,
|
| 71 |
+
"model_max_length": 514,
|
| 72 |
+
"pad_to_multiple_of": null,
|
| 73 |
+
"pad_token": "<pad>",
|
| 74 |
+
"pad_token_type_id": 0,
|
| 75 |
+
"padding_side": "right",
|
| 76 |
+
"sep_token": "</s>",
|
| 77 |
+
"sp_model_kwargs": {},
|
| 78 |
+
"stride": 0,
|
| 79 |
+
"tokenizer_class": "CamembertTokenizer",
|
| 80 |
+
"truncation_side": "right",
|
| 81 |
+
"truncation_strategy": "longest_first",
|
| 82 |
+
"unk_token": "<unk>"
|
| 83 |
+
}
|