Training in progress, step 5000
Browse files- 1_Pooling/config.json +3 -3
- Information-Retrieval_evaluation_val_results.csv +1 -0
- README.md +80 -259
- config.json +11 -13
- config_sentence_transformers.json +1 -1
- eval/Information-Retrieval_evaluation_val_results.csv +21 -0
- final_metrics.json +14 -14
- model.safetensors +2 -2
- modules.json +0 -6
- special_tokens_map.json +19 -5
- tokenizer.json +2 -2
- tokenizer_config.json +26 -18
- training_args.bin +1 -1
- vocab.txt +5 -0
1_Pooling/config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"word_embedding_dimension":
|
| 3 |
-
"pooling_mode_cls_token":
|
| 4 |
-
"pooling_mode_mean_tokens":
|
| 5 |
"pooling_mode_max_tokens": false,
|
| 6 |
"pooling_mode_mean_sqrt_len_tokens": false,
|
| 7 |
"pooling_mode_weightedmean_tokens": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"word_embedding_dimension": 512,
|
| 3 |
+
"pooling_mode_cls_token": true,
|
| 4 |
+
"pooling_mode_mean_tokens": false,
|
| 5 |
"pooling_mode_max_tokens": false,
|
| 6 |
"pooling_mode_mean_sqrt_len_tokens": false,
|
| 7 |
"pooling_mode_weightedmean_tokens": false,
|
Information-Retrieval_evaluation_val_results.csv
CHANGED
|
@@ -12,3 +12,4 @@ epoch,steps,cosine-Accuracy@1,cosine-Accuracy@3,cosine-Accuracy@5,cosine-Precisi
|
|
| 12 |
-1,-1,0.83545,0.911175,0.9366,0.83545,0.83545,0.303725,0.911175,0.18732000000000001,0.9366,0.83545,0.8751591666666616,0.8790415476190412,0.8999318372974409,0.8810239994800558
|
| 13 |
-1,-1,0.0,0.0,2.5e-05,0.0,0.0,0.0,0.0,5e-06,2.5e-05,0.0,5e-06,1.697420634920635e-05,4.0643645983386815e-05,5.219463554638405e-05
|
| 14 |
-1,-1,0.828275,0.90535,0.930675,0.828275,0.828275,0.3017833333333333,0.90535,0.186135,0.930675,0.828275,0.8685570833333288,0.8726829662698361,0.8940991092644636,0.8748315667834753
|
|
|
|
|
|
| 12 |
-1,-1,0.83545,0.911175,0.9366,0.83545,0.83545,0.303725,0.911175,0.18732000000000001,0.9366,0.83545,0.8751591666666616,0.8790415476190412,0.8999318372974409,0.8810239994800558
|
| 13 |
-1,-1,0.0,0.0,2.5e-05,0.0,0.0,0.0,0.0,5e-06,2.5e-05,0.0,5e-06,1.697420634920635e-05,4.0643645983386815e-05,5.219463554638405e-05
|
| 14 |
-1,-1,0.828275,0.90535,0.930675,0.828275,0.828275,0.3017833333333333,0.90535,0.186135,0.930675,0.828275,0.8685570833333288,0.8726829662698361,0.8940991092644636,0.8748315667834753
|
| 15 |
+
-1,-1,0.833175,0.90785,0.933075,0.833175,0.833175,0.3026166666666666,0.90785,0.186615,0.933075,0.833175,0.8724479166666644,0.876612886904759,0.8976448899066025,0.8786690345206932
|
README.md
CHANGED
|
@@ -5,123 +5,51 @@ tags:
|
|
| 5 |
- feature-extraction
|
| 6 |
- dense
|
| 7 |
- generated_from_trainer
|
| 8 |
-
- dataset_size:
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
-
base_model:
|
| 11 |
widget:
|
| 12 |
-
- source_sentence:
|
| 13 |
sentences:
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
- What
|
| 17 |
-
- source_sentence:
|
| 18 |
-
been underestimated?
|
| 19 |
sentences:
|
| 20 |
-
- How
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
sentences:
|
| 26 |
-
-
|
| 27 |
-
|
| 28 |
-
-
|
| 29 |
-
|
| 30 |
-
- Are there any platforms that provides end-to-end encryption for file transfer/
|
| 31 |
-
sharing?
|
| 32 |
-
- source_sentence: Why AAP’s MLA Dinesh Mohaniya has been arrested?
|
| 33 |
sentences:
|
| 34 |
-
- What are
|
| 35 |
-
-
|
| 36 |
-
-
|
| 37 |
-
- source_sentence: What is the
|
| 38 |
sentences:
|
| 39 |
-
-
|
| 40 |
-
|
| 41 |
-
- the
|
| 42 |
-
- What is the difference between economic growth and economic development?
|
| 43 |
pipeline_tag: sentence-similarity
|
| 44 |
library_name: sentence-transformers
|
| 45 |
-
metrics:
|
| 46 |
-
- cosine_accuracy@1
|
| 47 |
-
- cosine_accuracy@3
|
| 48 |
-
- cosine_accuracy@5
|
| 49 |
-
- cosine_precision@1
|
| 50 |
-
- cosine_precision@3
|
| 51 |
-
- cosine_precision@5
|
| 52 |
-
- cosine_recall@1
|
| 53 |
-
- cosine_recall@3
|
| 54 |
-
- cosine_recall@5
|
| 55 |
-
- cosine_ndcg@10
|
| 56 |
-
- cosine_mrr@1
|
| 57 |
-
- cosine_mrr@5
|
| 58 |
-
- cosine_mrr@10
|
| 59 |
-
- cosine_map@100
|
| 60 |
-
model-index:
|
| 61 |
-
- name: SentenceTransformer based on sentence-transformers/all-MiniLM-L12-v2
|
| 62 |
-
results:
|
| 63 |
-
- task:
|
| 64 |
-
type: information-retrieval
|
| 65 |
-
name: Information Retrieval
|
| 66 |
-
dataset:
|
| 67 |
-
name: val
|
| 68 |
-
type: val
|
| 69 |
-
metrics:
|
| 70 |
-
- type: cosine_accuracy@1
|
| 71 |
-
value: 0.833175
|
| 72 |
-
name: Cosine Accuracy@1
|
| 73 |
-
- type: cosine_accuracy@3
|
| 74 |
-
value: 0.90785
|
| 75 |
-
name: Cosine Accuracy@3
|
| 76 |
-
- type: cosine_accuracy@5
|
| 77 |
-
value: 0.933075
|
| 78 |
-
name: Cosine Accuracy@5
|
| 79 |
-
- type: cosine_precision@1
|
| 80 |
-
value: 0.833175
|
| 81 |
-
name: Cosine Precision@1
|
| 82 |
-
- type: cosine_precision@3
|
| 83 |
-
value: 0.3026166666666666
|
| 84 |
-
name: Cosine Precision@3
|
| 85 |
-
- type: cosine_precision@5
|
| 86 |
-
value: 0.186615
|
| 87 |
-
name: Cosine Precision@5
|
| 88 |
-
- type: cosine_recall@1
|
| 89 |
-
value: 0.833175
|
| 90 |
-
name: Cosine Recall@1
|
| 91 |
-
- type: cosine_recall@3
|
| 92 |
-
value: 0.90785
|
| 93 |
-
name: Cosine Recall@3
|
| 94 |
-
- type: cosine_recall@5
|
| 95 |
-
value: 0.933075
|
| 96 |
-
name: Cosine Recall@5
|
| 97 |
-
- type: cosine_ndcg@10
|
| 98 |
-
value: 0.8976448899066025
|
| 99 |
-
name: Cosine Ndcg@10
|
| 100 |
-
- type: cosine_mrr@1
|
| 101 |
-
value: 0.833175
|
| 102 |
-
name: Cosine Mrr@1
|
| 103 |
-
- type: cosine_mrr@5
|
| 104 |
-
value: 0.8724479166666644
|
| 105 |
-
name: Cosine Mrr@5
|
| 106 |
-
- type: cosine_mrr@10
|
| 107 |
-
value: 0.876612886904759
|
| 108 |
-
name: Cosine Mrr@10
|
| 109 |
-
- type: cosine_map@100
|
| 110 |
-
value: 0.8786690345206932
|
| 111 |
-
name: Cosine Map@100
|
| 112 |
---
|
| 113 |
|
| 114 |
-
# SentenceTransformer based on
|
| 115 |
|
| 116 |
-
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [
|
| 117 |
|
| 118 |
## Model Details
|
| 119 |
|
| 120 |
### Model Description
|
| 121 |
- **Model Type:** Sentence Transformer
|
| 122 |
-
- **Base model:** [
|
| 123 |
- **Maximum Sequence Length:** 128 tokens
|
| 124 |
-
- **Output Dimensionality:**
|
| 125 |
- **Similarity Function:** Cosine Similarity
|
| 126 |
<!-- - **Training Dataset:** Unknown -->
|
| 127 |
<!-- - **Language:** Unknown -->
|
|
@@ -138,8 +66,7 @@ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [s
|
|
| 138 |
```
|
| 139 |
SentenceTransformer(
|
| 140 |
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': 'BertModel'})
|
| 141 |
-
(1): Pooling({'word_embedding_dimension':
|
| 142 |
-
(2): Normalize()
|
| 143 |
)
|
| 144 |
```
|
| 145 |
|
|
@@ -158,23 +85,23 @@ Then you can load this model and run inference.
|
|
| 158 |
from sentence_transformers import SentenceTransformer
|
| 159 |
|
| 160 |
# Download from the 🤗 Hub
|
| 161 |
-
model = SentenceTransformer("
|
| 162 |
# Run inference
|
| 163 |
sentences = [
|
| 164 |
-
'What is the
|
| 165 |
-
'
|
| 166 |
-
'
|
| 167 |
]
|
| 168 |
embeddings = model.encode(sentences)
|
| 169 |
print(embeddings.shape)
|
| 170 |
-
# [3,
|
| 171 |
|
| 172 |
# Get the similarity scores for the embeddings
|
| 173 |
similarities = model.similarity(embeddings, embeddings)
|
| 174 |
print(similarities)
|
| 175 |
-
# tensor([[
|
| 176 |
-
# [
|
| 177 |
-
# [
|
| 178 |
```
|
| 179 |
|
| 180 |
<!--
|
|
@@ -201,32 +128,6 @@ You can finetune this model on your own dataset.
|
|
| 201 |
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 202 |
-->
|
| 203 |
|
| 204 |
-
## Evaluation
|
| 205 |
-
|
| 206 |
-
### Metrics
|
| 207 |
-
|
| 208 |
-
#### Information Retrieval
|
| 209 |
-
|
| 210 |
-
* Dataset: `val`
|
| 211 |
-
* Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
|
| 212 |
-
|
| 213 |
-
| Metric | Value |
|
| 214 |
-
|:-------------------|:-----------|
|
| 215 |
-
| cosine_accuracy@1 | 0.8332 |
|
| 216 |
-
| cosine_accuracy@3 | 0.9079 |
|
| 217 |
-
| cosine_accuracy@5 | 0.9331 |
|
| 218 |
-
| cosine_precision@1 | 0.8332 |
|
| 219 |
-
| cosine_precision@3 | 0.3026 |
|
| 220 |
-
| cosine_precision@5 | 0.1866 |
|
| 221 |
-
| cosine_recall@1 | 0.8332 |
|
| 222 |
-
| cosine_recall@3 | 0.9079 |
|
| 223 |
-
| cosine_recall@5 | 0.9331 |
|
| 224 |
-
| **cosine_ndcg@10** | **0.8976** |
|
| 225 |
-
| cosine_mrr@1 | 0.8332 |
|
| 226 |
-
| cosine_mrr@5 | 0.8724 |
|
| 227 |
-
| cosine_mrr@10 | 0.8766 |
|
| 228 |
-
| cosine_map@100 | 0.8787 |
|
| 229 |
-
|
| 230 |
<!--
|
| 231 |
## Bias, Risks and Limitations
|
| 232 |
|
|
@@ -245,49 +146,23 @@ You can finetune this model on your own dataset.
|
|
| 245 |
|
| 246 |
#### Unnamed Dataset
|
| 247 |
|
| 248 |
-
* Size:
|
| 249 |
-
* Columns: <code>
|
| 250 |
* Approximate statistics based on the first 1000 samples:
|
| 251 |
-
| |
|
| 252 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 253 |
| type | string | string | string |
|
| 254 |
-
| details | <ul><li>min: 6 tokens</li><li>mean:
|
| 255 |
* Samples:
|
| 256 |
-
|
|
| 257 |
-
|
| 258 |
-
| <code>
|
| 259 |
-
| <code>
|
| 260 |
-
| <code>
|
| 261 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 262 |
```json
|
| 263 |
{
|
| 264 |
-
"scale":
|
| 265 |
-
"similarity_fct": "cos_sim",
|
| 266 |
-
"gather_across_devices": false
|
| 267 |
-
}
|
| 268 |
-
```
|
| 269 |
-
|
| 270 |
-
### Evaluation Dataset
|
| 271 |
-
|
| 272 |
-
#### Unnamed Dataset
|
| 273 |
-
|
| 274 |
-
* Size: 40,000 evaluation samples
|
| 275 |
-
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 276 |
-
* Approximate statistics based on the first 1000 samples:
|
| 277 |
-
| | anchor | positive | negative |
|
| 278 |
-
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 279 |
-
| type | string | string | string |
|
| 280 |
-
| details | <ul><li>min: 6 tokens</li><li>mean: 15.52 tokens</li><li>max: 74 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.51 tokens</li><li>max: 74 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 16.79 tokens</li><li>max: 69 tokens</li></ul> |
|
| 281 |
-
* Samples:
|
| 282 |
-
| anchor | positive | negative |
|
| 283 |
-
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 284 |
-
| <code>Why are all my questions on Quora marked needing improvement?</code> | <code>Why are all my questions immediately being marked as needing improvement?</code> | <code>For a post-graduate student in IIT, is it allowed to take an external scholarship as a top-up to his/her MHRD assistantship?</code> |
|
| 285 |
-
| <code>Can blue butter fly needle with vaccum tube be reused? Is it HIV risk? . Heard the needle is too small to be reused . Had blood draw at clinic?</code> | <code>Can blue butter fly needle with vaccum tube be reused? Is it HIV risk? . Heard the needle is too small to be reused . Had blood draw at clinic?</code> | <code>Can blue butter fly needle with vaccum tube be reused not ? Is it HIV risk ? . Heard the needle is too small to be reused . Had blood draw at clinic ?</code> |
|
| 286 |
-
| <code>Why do people still believe the world is flat?</code> | <code>Why are there still people who believe the world is flat?</code> | <code>I'm not able to buy Udemy course .it is not accepting mine and my friends debit card.my card can be used for Flipkart .how to purchase now?</code> |
|
| 287 |
-
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 288 |
-
```json
|
| 289 |
-
{
|
| 290 |
-
"scale": 7.0,
|
| 291 |
"similarity_fct": "cos_sim",
|
| 292 |
"gather_across_devices": false
|
| 293 |
}
|
|
@@ -296,49 +171,36 @@ You can finetune this model on your own dataset.
|
|
| 296 |
### Training Hyperparameters
|
| 297 |
#### Non-Default Hyperparameters
|
| 298 |
|
| 299 |
-
- `
|
| 300 |
-
- `
|
| 301 |
-
- `per_device_eval_batch_size`: 256
|
| 302 |
-
- `learning_rate`: 2e-05
|
| 303 |
-
- `weight_decay`: 0.0001
|
| 304 |
-
- `max_steps`: 12000
|
| 305 |
-
- `warmup_ratio`: 0.1
|
| 306 |
- `fp16`: True
|
| 307 |
-
- `
|
| 308 |
-
- `dataloader_num_workers`: 1
|
| 309 |
-
- `dataloader_prefetch_factor`: 1
|
| 310 |
-
- `load_best_model_at_end`: True
|
| 311 |
-
- `optim`: adamw_torch
|
| 312 |
-
- `ddp_find_unused_parameters`: False
|
| 313 |
-
- `push_to_hub`: True
|
| 314 |
-
- `hub_model_id`: redis/model-b-structured
|
| 315 |
-
- `eval_on_start`: True
|
| 316 |
|
| 317 |
#### All Hyperparameters
|
| 318 |
<details><summary>Click to expand</summary>
|
| 319 |
|
| 320 |
- `overwrite_output_dir`: False
|
| 321 |
- `do_predict`: False
|
| 322 |
-
- `eval_strategy`:
|
| 323 |
- `prediction_loss_only`: True
|
| 324 |
-
- `per_device_train_batch_size`:
|
| 325 |
-
- `per_device_eval_batch_size`:
|
| 326 |
- `per_gpu_train_batch_size`: None
|
| 327 |
- `per_gpu_eval_batch_size`: None
|
| 328 |
- `gradient_accumulation_steps`: 1
|
| 329 |
- `eval_accumulation_steps`: None
|
| 330 |
- `torch_empty_cache_steps`: None
|
| 331 |
-
- `learning_rate`:
|
| 332 |
-
- `weight_decay`: 0.
|
| 333 |
- `adam_beta1`: 0.9
|
| 334 |
- `adam_beta2`: 0.999
|
| 335 |
- `adam_epsilon`: 1e-08
|
| 336 |
-
- `max_grad_norm`: 1
|
| 337 |
-
- `num_train_epochs`: 3
|
| 338 |
-
- `max_steps`:
|
| 339 |
- `lr_scheduler_type`: linear
|
| 340 |
- `lr_scheduler_kwargs`: {}
|
| 341 |
-
- `warmup_ratio`: 0.
|
| 342 |
- `warmup_steps`: 0
|
| 343 |
- `log_level`: passive
|
| 344 |
- `log_level_replica`: warning
|
|
@@ -366,14 +228,14 @@ You can finetune this model on your own dataset.
|
|
| 366 |
- `tpu_num_cores`: None
|
| 367 |
- `tpu_metrics_debug`: False
|
| 368 |
- `debug`: []
|
| 369 |
-
- `dataloader_drop_last`:
|
| 370 |
-
- `dataloader_num_workers`:
|
| 371 |
-
- `dataloader_prefetch_factor`:
|
| 372 |
- `past_index`: -1
|
| 373 |
- `disable_tqdm`: False
|
| 374 |
- `remove_unused_columns`: True
|
| 375 |
- `label_names`: None
|
| 376 |
-
- `load_best_model_at_end`:
|
| 377 |
- `ignore_data_skip`: False
|
| 378 |
- `fsdp`: []
|
| 379 |
- `fsdp_min_num_params`: 0
|
|
@@ -383,23 +245,23 @@ You can finetune this model on your own dataset.
|
|
| 383 |
- `parallelism_config`: None
|
| 384 |
- `deepspeed`: None
|
| 385 |
- `label_smoothing_factor`: 0.0
|
| 386 |
-
- `optim`:
|
| 387 |
- `optim_args`: None
|
| 388 |
- `adafactor`: False
|
| 389 |
- `group_by_length`: False
|
| 390 |
- `length_column_name`: length
|
| 391 |
- `project`: huggingface
|
| 392 |
- `trackio_space_id`: trackio
|
| 393 |
-
- `ddp_find_unused_parameters`:
|
| 394 |
- `ddp_bucket_cap_mb`: None
|
| 395 |
- `ddp_broadcast_buffers`: False
|
| 396 |
- `dataloader_pin_memory`: True
|
| 397 |
- `dataloader_persistent_workers`: False
|
| 398 |
- `skip_memory_metrics`: True
|
| 399 |
- `use_legacy_prediction_loop`: False
|
| 400 |
-
- `push_to_hub`:
|
| 401 |
- `resume_from_checkpoint`: None
|
| 402 |
-
- `hub_model_id`:
|
| 403 |
- `hub_strategy`: every_save
|
| 404 |
- `hub_private_repo`: None
|
| 405 |
- `hub_always_push`: False
|
|
@@ -426,73 +288,32 @@ You can finetune this model on your own dataset.
|
|
| 426 |
- `neftune_noise_alpha`: None
|
| 427 |
- `optim_target_modules`: None
|
| 428 |
- `batch_eval_metrics`: False
|
| 429 |
-
- `eval_on_start`:
|
| 430 |
- `use_liger_kernel`: False
|
| 431 |
- `liger_kernel_config`: None
|
| 432 |
- `eval_use_gather_object`: False
|
| 433 |
- `average_tokens_across_devices`: True
|
| 434 |
- `prompts`: None
|
| 435 |
- `batch_sampler`: batch_sampler
|
| 436 |
-
- `multi_dataset_batch_sampler`:
|
| 437 |
- `router_mapping`: {}
|
| 438 |
- `learning_rate_mapping`: {}
|
| 439 |
|
| 440 |
</details>
|
| 441 |
|
| 442 |
### Training Logs
|
| 443 |
-
| Epoch
|
| 444 |
-
|
| 445 |
-
| 0
|
| 446 |
-
| 0.
|
| 447 |
-
| 0.
|
| 448 |
-
|
|
| 449 |
-
|
|
| 450 |
-
|
|
| 451 |
-
|
|
| 452 |
-
|
|
| 453 |
-
|
|
| 454 |
-
|
| 455 |
-
| 0.8967 | 2500 | 0.6786 | 0.5687 | 0.8945 |
|
| 456 |
-
| 0.9864 | 2750 | 0.6745 | 0.5649 | 0.8947 |
|
| 457 |
-
| 1.0760 | 3000 | 0.6652 | 0.5617 | 0.8948 |
|
| 458 |
-
| 1.1657 | 3250 | 0.6596 | 0.5581 | 0.8949 |
|
| 459 |
-
| 1.2554 | 3500 | 0.6544 | 0.5566 | 0.8955 |
|
| 460 |
-
| 1.3451 | 3750 | 0.6523 | 0.5556 | 0.8952 |
|
| 461 |
-
| 1.4347 | 4000 | 0.6492 | 0.5533 | 0.8955 |
|
| 462 |
-
| 1.5244 | 4250 | 0.6446 | 0.5513 | 0.8957 |
|
| 463 |
-
| 1.6141 | 4500 | 0.6408 | 0.5477 | 0.8961 |
|
| 464 |
-
| 1.7037 | 4750 | 0.6391 | 0.5477 | 0.8963 |
|
| 465 |
-
| 1.7934 | 5000 | 0.6374 | 0.5468 | 0.8960 |
|
| 466 |
-
| 1.8831 | 5250 | 0.6348 | 0.5446 | 0.8962 |
|
| 467 |
-
| 1.9727 | 5500 | 0.6318 | 0.5431 | 0.8966 |
|
| 468 |
-
| 2.0624 | 5750 | 0.627 | 0.5423 | 0.8967 |
|
| 469 |
-
| 2.1521 | 6000 | 0.6249 | 0.5404 | 0.8966 |
|
| 470 |
-
| 2.2418 | 6250 | 0.6264 | 0.5397 | 0.8965 |
|
| 471 |
-
| 2.3314 | 6500 | 0.6225 | 0.5399 | 0.8967 |
|
| 472 |
-
| 2.4211 | 6750 | 0.6212 | 0.5397 | 0.8966 |
|
| 473 |
-
| 2.5108 | 7000 | 0.6196 | 0.5371 | 0.8971 |
|
| 474 |
-
| 2.6004 | 7250 | 0.6156 | 0.5366 | 0.8967 |
|
| 475 |
-
| 2.6901 | 7500 | 0.6171 | 0.5358 | 0.8971 |
|
| 476 |
-
| 2.7798 | 7750 | 0.6158 | 0.5353 | 0.8972 |
|
| 477 |
-
| 2.8694 | 8000 | 0.6162 | 0.5350 | 0.8974 |
|
| 478 |
-
| 2.9591 | 8250 | 0.6135 | 0.5342 | 0.8972 |
|
| 479 |
-
| 3.0488 | 8500 | 0.6107 | 0.5330 | 0.8973 |
|
| 480 |
-
| 3.1385 | 8750 | 0.6094 | 0.5331 | 0.8974 |
|
| 481 |
-
| 3.2281 | 9000 | 0.6104 | 0.5323 | 0.8974 |
|
| 482 |
-
| 3.3178 | 9250 | 0.6092 | 0.5324 | 0.8973 |
|
| 483 |
-
| 3.4075 | 9500 | 0.6078 | 0.5312 | 0.8975 |
|
| 484 |
-
| 3.4971 | 9750 | 0.6094 | 0.5310 | 0.8975 |
|
| 485 |
-
| 3.5868 | 10000 | 0.6061 | 0.5307 | 0.8973 |
|
| 486 |
-
| 3.6765 | 10250 | 0.6052 | 0.5299 | 0.8974 |
|
| 487 |
-
| 3.7661 | 10500 | 0.6057 | 0.5302 | 0.8975 |
|
| 488 |
-
| 3.8558 | 10750 | 0.6057 | 0.5300 | 0.8975 |
|
| 489 |
-
| 3.9455 | 11000 | 0.6054 | 0.5298 | 0.8976 |
|
| 490 |
-
| 4.0352 | 11250 | 0.6043 | 0.5297 | 0.8975 |
|
| 491 |
-
| 4.1248 | 11500 | 0.6019 | 0.5294 | 0.8976 |
|
| 492 |
-
| 4.2145 | 11750 | 0.6033 | 0.5294 | 0.8977 |
|
| 493 |
-
| **4.3042** | **12000** | **0.6045** | **0.5294** | **0.8976** |
|
| 494 |
-
|
| 495 |
-
* The bold row denotes the saved checkpoint.
|
| 496 |
|
| 497 |
### Framework Versions
|
| 498 |
- Python: 3.10.18
|
|
|
|
| 5 |
- feature-extraction
|
| 6 |
- dense
|
| 7 |
- generated_from_trainer
|
| 8 |
+
- dataset_size:100000
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
+
base_model: prajjwal1/bert-small
|
| 11 |
widget:
|
| 12 |
+
- source_sentence: How do I calculate IQ?
|
| 13 |
sentences:
|
| 14 |
+
- What is the easiest way to know my IQ?
|
| 15 |
+
- How do I calculate not IQ ?
|
| 16 |
+
- What are some creative and innovative business ideas with less investment in India?
|
| 17 |
+
- source_sentence: How can I learn martial arts in my home?
|
|
|
|
| 18 |
sentences:
|
| 19 |
+
- How can I learn martial arts by myself?
|
| 20 |
+
- What are the advantages and disadvantages of investing in gold?
|
| 21 |
+
- Can people see that I have looked at their pictures on instagram if I am not following
|
| 22 |
+
them?
|
| 23 |
+
- source_sentence: When Enterprise picks you up do you have to take them back?
|
| 24 |
sentences:
|
| 25 |
+
- Are there any software Training institute in Tuticorin?
|
| 26 |
+
- When Enterprise picks you up do you have to take them back?
|
| 27 |
+
- When Enterprise picks you up do them have to take youback?
|
| 28 |
+
- source_sentence: What are some non-capital goods?
|
|
|
|
|
|
|
|
|
|
| 29 |
sentences:
|
| 30 |
+
- What are capital goods?
|
| 31 |
+
- How is the value of [math]\pi[/math] calculated?
|
| 32 |
+
- What are some non-capital goods?
|
| 33 |
+
- source_sentence: What is the QuickBooks technical support phone number in New York?
|
| 34 |
sentences:
|
| 35 |
+
- What caused the Great Depression?
|
| 36 |
+
- Can I apply for PR in Canada?
|
| 37 |
+
- Which is the best QuickBooks Hosting Support Number in New York?
|
|
|
|
| 38 |
pipeline_tag: sentence-similarity
|
| 39 |
library_name: sentence-transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
---
|
| 41 |
|
| 42 |
+
# SentenceTransformer based on prajjwal1/bert-small
|
| 43 |
|
| 44 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [prajjwal1/bert-small](https://huggingface.co/prajjwal1/bert-small). It maps sentences & paragraphs to a 512-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
| 45 |
|
| 46 |
## Model Details
|
| 47 |
|
| 48 |
### Model Description
|
| 49 |
- **Model Type:** Sentence Transformer
|
| 50 |
+
- **Base model:** [prajjwal1/bert-small](https://huggingface.co/prajjwal1/bert-small) <!-- at revision 0ec5f86f27c1a77d704439db5e01c307ea11b9d4 -->
|
| 51 |
- **Maximum Sequence Length:** 128 tokens
|
| 52 |
+
- **Output Dimensionality:** 512 dimensions
|
| 53 |
- **Similarity Function:** Cosine Similarity
|
| 54 |
<!-- - **Training Dataset:** Unknown -->
|
| 55 |
<!-- - **Language:** Unknown -->
|
|
|
|
| 66 |
```
|
| 67 |
SentenceTransformer(
|
| 68 |
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': 'BertModel'})
|
| 69 |
+
(1): Pooling({'word_embedding_dimension': 512, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
|
|
|
| 70 |
)
|
| 71 |
```
|
| 72 |
|
|
|
|
| 85 |
from sentence_transformers import SentenceTransformer
|
| 86 |
|
| 87 |
# Download from the 🤗 Hub
|
| 88 |
+
model = SentenceTransformer("sentence_transformers_model_id")
|
| 89 |
# Run inference
|
| 90 |
sentences = [
|
| 91 |
+
'What is the QuickBooks technical support phone number in New York?',
|
| 92 |
+
'Which is the best QuickBooks Hosting Support Number in New York?',
|
| 93 |
+
'Can I apply for PR in Canada?',
|
| 94 |
]
|
| 95 |
embeddings = model.encode(sentences)
|
| 96 |
print(embeddings.shape)
|
| 97 |
+
# [3, 512]
|
| 98 |
|
| 99 |
# Get the similarity scores for the embeddings
|
| 100 |
similarities = model.similarity(embeddings, embeddings)
|
| 101 |
print(similarities)
|
| 102 |
+
# tensor([[1.0000, 0.8563, 0.0594],
|
| 103 |
+
# [0.8563, 1.0000, 0.1245],
|
| 104 |
+
# [0.0594, 0.1245, 1.0000]])
|
| 105 |
```
|
| 106 |
|
| 107 |
<!--
|
|
|
|
| 128 |
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 129 |
-->
|
| 130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
<!--
|
| 132 |
## Bias, Risks and Limitations
|
| 133 |
|
|
|
|
| 146 |
|
| 147 |
#### Unnamed Dataset
|
| 148 |
|
| 149 |
+
* Size: 100,000 training samples
|
| 150 |
+
* Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>sentence_2</code>
|
| 151 |
* Approximate statistics based on the first 1000 samples:
|
| 152 |
+
| | sentence_0 | sentence_1 | sentence_2 |
|
| 153 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 154 |
| type | string | string | string |
|
| 155 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 15.79 tokens</li><li>max: 66 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.68 tokens</li><li>max: 66 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 16.37 tokens</li><li>max: 67 tokens</li></ul> |
|
| 156 |
* Samples:
|
| 157 |
+
| sentence_0 | sentence_1 | sentence_2 |
|
| 158 |
+
|:-----------------------------------------------------------------|:-----------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 159 |
+
| <code>Is masturbating bad for boys?</code> | <code>Is masturbating bad for boys?</code> | <code>How harmful or unhealthy is masturbation?</code> |
|
| 160 |
+
| <code>Does a train engine move in reverse?</code> | <code>Does a train engine move in reverse?</code> | <code>Time moves forward, not in reverse. Doesn't that make time a vector?</code> |
|
| 161 |
+
| <code>What is the most badass thing anyone has ever done?</code> | <code>What is the most badass thing anyone has ever done?</code> | <code>anyone is the most badass thing Whathas ever done?</code> |
|
| 162 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 163 |
```json
|
| 164 |
{
|
| 165 |
+
"scale": 20.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
"similarity_fct": "cos_sim",
|
| 167 |
"gather_across_devices": false
|
| 168 |
}
|
|
|
|
| 171 |
### Training Hyperparameters
|
| 172 |
#### Non-Default Hyperparameters
|
| 173 |
|
| 174 |
+
- `per_device_train_batch_size`: 64
|
| 175 |
+
- `per_device_eval_batch_size`: 64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
- `fp16`: True
|
| 177 |
+
- `multi_dataset_batch_sampler`: round_robin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
#### All Hyperparameters
|
| 180 |
<details><summary>Click to expand</summary>
|
| 181 |
|
| 182 |
- `overwrite_output_dir`: False
|
| 183 |
- `do_predict`: False
|
| 184 |
+
- `eval_strategy`: no
|
| 185 |
- `prediction_loss_only`: True
|
| 186 |
+
- `per_device_train_batch_size`: 64
|
| 187 |
+
- `per_device_eval_batch_size`: 64
|
| 188 |
- `per_gpu_train_batch_size`: None
|
| 189 |
- `per_gpu_eval_batch_size`: None
|
| 190 |
- `gradient_accumulation_steps`: 1
|
| 191 |
- `eval_accumulation_steps`: None
|
| 192 |
- `torch_empty_cache_steps`: None
|
| 193 |
+
- `learning_rate`: 5e-05
|
| 194 |
+
- `weight_decay`: 0.0
|
| 195 |
- `adam_beta1`: 0.9
|
| 196 |
- `adam_beta2`: 0.999
|
| 197 |
- `adam_epsilon`: 1e-08
|
| 198 |
+
- `max_grad_norm`: 1
|
| 199 |
+
- `num_train_epochs`: 3
|
| 200 |
+
- `max_steps`: -1
|
| 201 |
- `lr_scheduler_type`: linear
|
| 202 |
- `lr_scheduler_kwargs`: {}
|
| 203 |
+
- `warmup_ratio`: 0.0
|
| 204 |
- `warmup_steps`: 0
|
| 205 |
- `log_level`: passive
|
| 206 |
- `log_level_replica`: warning
|
|
|
|
| 228 |
- `tpu_num_cores`: None
|
| 229 |
- `tpu_metrics_debug`: False
|
| 230 |
- `debug`: []
|
| 231 |
+
- `dataloader_drop_last`: False
|
| 232 |
+
- `dataloader_num_workers`: 0
|
| 233 |
+
- `dataloader_prefetch_factor`: None
|
| 234 |
- `past_index`: -1
|
| 235 |
- `disable_tqdm`: False
|
| 236 |
- `remove_unused_columns`: True
|
| 237 |
- `label_names`: None
|
| 238 |
+
- `load_best_model_at_end`: False
|
| 239 |
- `ignore_data_skip`: False
|
| 240 |
- `fsdp`: []
|
| 241 |
- `fsdp_min_num_params`: 0
|
|
|
|
| 245 |
- `parallelism_config`: None
|
| 246 |
- `deepspeed`: None
|
| 247 |
- `label_smoothing_factor`: 0.0
|
| 248 |
+
- `optim`: adamw_torch_fused
|
| 249 |
- `optim_args`: None
|
| 250 |
- `adafactor`: False
|
| 251 |
- `group_by_length`: False
|
| 252 |
- `length_column_name`: length
|
| 253 |
- `project`: huggingface
|
| 254 |
- `trackio_space_id`: trackio
|
| 255 |
+
- `ddp_find_unused_parameters`: None
|
| 256 |
- `ddp_bucket_cap_mb`: None
|
| 257 |
- `ddp_broadcast_buffers`: False
|
| 258 |
- `dataloader_pin_memory`: True
|
| 259 |
- `dataloader_persistent_workers`: False
|
| 260 |
- `skip_memory_metrics`: True
|
| 261 |
- `use_legacy_prediction_loop`: False
|
| 262 |
+
- `push_to_hub`: False
|
| 263 |
- `resume_from_checkpoint`: None
|
| 264 |
+
- `hub_model_id`: None
|
| 265 |
- `hub_strategy`: every_save
|
| 266 |
- `hub_private_repo`: None
|
| 267 |
- `hub_always_push`: False
|
|
|
|
| 288 |
- `neftune_noise_alpha`: None
|
| 289 |
- `optim_target_modules`: None
|
| 290 |
- `batch_eval_metrics`: False
|
| 291 |
+
- `eval_on_start`: False
|
| 292 |
- `use_liger_kernel`: False
|
| 293 |
- `liger_kernel_config`: None
|
| 294 |
- `eval_use_gather_object`: False
|
| 295 |
- `average_tokens_across_devices`: True
|
| 296 |
- `prompts`: None
|
| 297 |
- `batch_sampler`: batch_sampler
|
| 298 |
+
- `multi_dataset_batch_sampler`: round_robin
|
| 299 |
- `router_mapping`: {}
|
| 300 |
- `learning_rate_mapping`: {}
|
| 301 |
|
| 302 |
</details>
|
| 303 |
|
| 304 |
### Training Logs
|
| 305 |
+
| Epoch | Step | Training Loss |
|
| 306 |
+
|:------:|:----:|:-------------:|
|
| 307 |
+
| 0.3199 | 500 | 0.4294 |
|
| 308 |
+
| 0.6398 | 1000 | 0.1268 |
|
| 309 |
+
| 0.9597 | 1500 | 0.1 |
|
| 310 |
+
| 1.2796 | 2000 | 0.0792 |
|
| 311 |
+
| 1.5995 | 2500 | 0.0706 |
|
| 312 |
+
| 1.9194 | 3000 | 0.0687 |
|
| 313 |
+
| 2.2393 | 3500 | 0.0584 |
|
| 314 |
+
| 2.5592 | 4000 | 0.057 |
|
| 315 |
+
| 2.8791 | 4500 | 0.0581 |
|
| 316 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
|
| 318 |
### Framework Versions
|
| 319 |
- Python: 3.10.18
|
config.json
CHANGED
|
@@ -1,25 +1,23 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
-
"
|
| 7 |
"dtype": "float32",
|
| 8 |
-
"
|
| 9 |
"hidden_act": "gelu",
|
| 10 |
"hidden_dropout_prob": 0.1,
|
| 11 |
-
"hidden_size":
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
-
"intermediate_size":
|
| 14 |
-
"layer_norm_eps": 1e-
|
| 15 |
-
"max_position_embeddings":
|
| 16 |
-
"model_type": "
|
| 17 |
"num_attention_heads": 12,
|
| 18 |
"num_hidden_layers": 12,
|
| 19 |
-
"pad_token_id":
|
| 20 |
-
"
|
| 21 |
"transformers_version": "4.57.3",
|
| 22 |
-
"
|
| 23 |
-
"use_cache": true,
|
| 24 |
-
"vocab_size": 30522
|
| 25 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"MPNetModel"
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
"dtype": "float32",
|
| 8 |
+
"eos_token_id": 2,
|
| 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": "mpnet",
|
| 17 |
"num_attention_heads": 12,
|
| 18 |
"num_hidden_layers": 12,
|
| 19 |
+
"pad_token_id": 1,
|
| 20 |
+
"relative_attention_num_buckets": 32,
|
| 21 |
"transformers_version": "4.57.3",
|
| 22 |
+
"vocab_size": 30527
|
|
|
|
|
|
|
| 23 |
}
|
config_sentence_transformers.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"__version__": {
|
| 3 |
"sentence_transformers": "5.2.0",
|
| 4 |
"transformers": "4.57.3",
|
| 5 |
"pytorch": "2.9.1+cu128"
|
| 6 |
},
|
| 7 |
-
"model_type": "SentenceTransformer",
|
| 8 |
"prompts": {
|
| 9 |
"query": "",
|
| 10 |
"document": ""
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_type": "SentenceTransformer",
|
| 3 |
"__version__": {
|
| 4 |
"sentence_transformers": "5.2.0",
|
| 5 |
"transformers": "4.57.3",
|
| 6 |
"pytorch": "2.9.1+cu128"
|
| 7 |
},
|
|
|
|
| 8 |
"prompts": {
|
| 9 |
"query": "",
|
| 10 |
"document": ""
|
eval/Information-Retrieval_evaluation_val_results.csv
CHANGED
|
@@ -777,3 +777,24 @@ epoch,steps,cosine-Accuracy@1,cosine-Accuracy@3,cosine-Accuracy@5,cosine-Precisi
|
|
| 777 |
4.124820659971306,11500,0.832975,0.907825,0.9333,0.832975,0.832975,0.3026083333333333,0.907825,0.18666000000000005,0.9333,0.832975,0.8723804166666645,0.8765045734126956,0.8975652123999085,0.8785589645807509
|
| 778 |
4.214490674318508,11750,0.83315,0.90785,0.9332,0.83315,0.83315,0.3026166666666666,0.90785,0.18664000000000003,0.9332,0.83315,0.8724679166666641,0.8766142063492031,0.897652921263943,0.878664477670976
|
| 779 |
4.30416068866571,12000,0.833175,0.90785,0.933075,0.833175,0.833175,0.3026166666666666,0.90785,0.186615,0.933075,0.833175,0.8724479166666644,0.876612886904759,0.8976448899066025,0.8786690345206932
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 777 |
4.124820659971306,11500,0.832975,0.907825,0.9333,0.832975,0.832975,0.3026083333333333,0.907825,0.18666000000000005,0.9333,0.832975,0.8723804166666645,0.8765045734126956,0.8975652123999085,0.8785589645807509
|
| 778 |
4.214490674318508,11750,0.83315,0.90785,0.9332,0.83315,0.83315,0.3026166666666666,0.90785,0.18664000000000003,0.9332,0.83315,0.8724679166666641,0.8766142063492031,0.897652921263943,0.878664477670976
|
| 779 |
4.30416068866571,12000,0.833175,0.90785,0.933075,0.833175,0.833175,0.3026166666666666,0.90785,0.186615,0.933075,0.833175,0.8724479166666644,0.876612886904759,0.8976448899066025,0.8786690345206932
|
| 780 |
+
0,0,0.768175,0.893425,0.9225,0.768175,0.768175,0.2978083333333333,0.893425,0.1845,0.9225,0.768175,0.8321754166666571,0.8363847519841202,0.8651787436112898,0.838709715053733
|
| 781 |
+
0.04483500717360115,250,0.82765,0.906025,0.930875,0.82765,0.82765,0.3020083333333333,0.906025,0.186175,0.930875,0.82765,0.868539583333329,0.8725805357142814,0.8939423025222802,0.8746545651393303
|
| 782 |
+
0.0896700143472023,500,0.830375,0.90615,0.9312,0.830375,0.830375,0.30204999999999993,0.90615,0.18624000000000004,0.9312,0.830375,0.8702320833333288,0.8742685515872952,0.8952934091476702,0.8763542898942245
|
| 783 |
+
0.13450502152080343,750,0.8322,0.906825,0.932,0.8322,0.8322,0.30227499999999996,0.906825,0.1864,0.932,0.8322,0.8713941666666611,0.8753614583333267,0.8961670177914439,0.8774394226578622
|
| 784 |
+
0.1793400286944046,1000,0.832375,0.906675,0.931925,0.832375,0.832375,0.302225,0.906675,0.18638500000000002,0.931925,0.832375,0.8715633333333297,0.875588214285709,0.8963968912239774,0.8776610751701158
|
| 785 |
+
0.22417503586800575,1250,0.833325,0.907625,0.932275,0.833325,0.833325,0.30254166666666665,0.907625,0.186455,0.932275,0.833325,0.8722958333333292,0.876324503968247,0.8970919023728408,0.8783771474769665
|
| 786 |
+
0.26901004304160686,1500,0.83315,0.90785,0.931825,0.83315,0.83315,0.30261666666666664,0.90785,0.186365,0.931825,0.83315,0.8720741666666627,0.8761482837301535,0.8968831136302299,0.8782338065235146
|
| 787 |
+
0.31384505021520803,1750,0.833125,0.9077,0.931975,0.833125,0.833125,0.3025666666666666,0.9077,0.18639500000000003,0.931975,0.833125,0.8721212499999962,0.8761967063492008,0.8969507516136757,0.8782797193644479
|
| 788 |
+
0.3586800573888092,2000,0.833525,0.907475,0.93225,0.833525,0.833525,0.3024916666666666,0.907475,0.18645,0.93225,0.833525,0.8721949999999957,0.8761980357142802,0.8968619878925894,0.8783116796035642
|
| 789 |
+
0.4035150645624103,2250,0.83365,0.908275,0.932775,0.83365,0.83365,0.3027583333333333,0.908275,0.18655500000000005,0.932775,0.83365,0.872574583333329,0.8765678571428527,0.8972629315606638,0.8786637044220084
|
| 790 |
+
0.4483500717360115,2500,0.833325,0.90865,0.933375,0.833325,0.833325,0.3028833333333333,0.90865,0.18667500000000004,0.933375,0.833325,0.8726774999999954,0.8766294444444397,0.8974063058927897,0.8787165668942624
|
| 791 |
+
0.4931850789096126,2750,0.83395,0.909225,0.9332,0.83395,0.83395,0.30307499999999993,0.909225,0.18664,0.9332,0.83395,0.8730345833333287,0.8771071130952327,0.8979532226371164,0.8791389959975546
|
| 792 |
+
0.5380200860832137,3000,0.8343,0.9085,0.9334,0.8343,0.8343,0.3028333333333333,0.9085,0.18668,0.9334,0.8343,0.8731358333333282,0.877109394841263,0.8978122253619178,0.8791909138926036
|
| 793 |
+
0.582855093256815,3250,0.834475,0.908725,0.933425,0.834475,0.834475,0.3029083333333333,0.908725,0.18668500000000005,0.933425,0.834475,0.8733483333333294,0.8773927380952328,0.898185746255296,0.8794071055747712
|
| 794 |
+
0.6276901004304161,3500,0.8348,0.90915,0.934575,0.8348,0.8348,0.30305,0.90915,0.186915,0.934575,0.8348,0.8738066666666622,0.8777039186507886,0.8984432454522335,0.8797468845226724
|
| 795 |
+
0.6725251076040172,3750,0.834775,0.90955,0.93425,0.834775,0.834775,0.3031833333333333,0.90955,0.18685000000000004,0.93425,0.834775,0.8738545833333288,0.8778242658730111,0.898575343427753,0.8798489932766923
|
| 796 |
+
0.7173601147776184,4000,0.834375,0.909025,0.93465,0.834375,0.834375,0.3030083333333333,0.909025,0.18693,0.93465,0.834375,0.8736395833333293,0.877541329365075,0.8983462327484772,0.8795742165685977
|
| 797 |
+
0.7621951219512195,4250,0.834675,0.9089,0.934275,0.834675,0.834675,0.3029666666666666,0.9089,0.18685500000000008,0.934275,0.834675,0.8736633333333291,0.8776365476190431,0.8984431232955234,0.8796638302611205
|
| 798 |
+
0.8070301291248206,4500,0.8346,0.90935,0.9345,0.8346,0.8346,0.3031166666666666,0.90935,0.1869,0.9345,0.8346,0.8737774999999952,0.8777162400793597,0.8985258842614039,0.8797375973269139
|
| 799 |
+
0.8518651362984218,4750,0.83475,0.90905,0.93435,0.83475,0.83475,0.3030166666666666,0.90905,0.18687000000000004,0.93435,0.83475,0.873825833333329,0.8777601190476148,0.8984916815211705,0.8798133316506274
|
| 800 |
+
0.896700143472023,5000,0.835025,0.909175,0.9345,0.835025,0.835025,0.30305833333333326,0.909175,0.1869,0.9345,0.835025,0.8739791666666628,0.8779108432539642,0.898643365395631,0.8799559806850633
|
final_metrics.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
{
|
| 2 |
-
"val_cosine_accuracy@1": 0.
|
| 3 |
-
"val_cosine_accuracy@3": 0.
|
| 4 |
-
"val_cosine_accuracy@5": 0.
|
| 5 |
-
"val_cosine_precision@1": 0.
|
| 6 |
-
"val_cosine_precision@3": 0.
|
| 7 |
-
"val_cosine_precision@5": 0.
|
| 8 |
-
"val_cosine_recall@1": 0.
|
| 9 |
-
"val_cosine_recall@3": 0.
|
| 10 |
-
"val_cosine_recall@5": 0.
|
| 11 |
-
"val_cosine_ndcg@10": 0.
|
| 12 |
-
"val_cosine_mrr@1": 0.
|
| 13 |
-
"val_cosine_mrr@5": 0.
|
| 14 |
-
"val_cosine_mrr@10": 0.
|
| 15 |
-
"val_cosine_map@100": 0.
|
| 16 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"val_cosine_accuracy@1": 0.833175,
|
| 3 |
+
"val_cosine_accuracy@3": 0.90785,
|
| 4 |
+
"val_cosine_accuracy@5": 0.933075,
|
| 5 |
+
"val_cosine_precision@1": 0.833175,
|
| 6 |
+
"val_cosine_precision@3": 0.3026166666666666,
|
| 7 |
+
"val_cosine_precision@5": 0.186615,
|
| 8 |
+
"val_cosine_recall@1": 0.833175,
|
| 9 |
+
"val_cosine_recall@3": 0.90785,
|
| 10 |
+
"val_cosine_recall@5": 0.933075,
|
| 11 |
+
"val_cosine_ndcg@10": 0.8976448899066025,
|
| 12 |
+
"val_cosine_mrr@1": 0.833175,
|
| 13 |
+
"val_cosine_mrr@5": 0.8724479166666644,
|
| 14 |
+
"val_cosine_mrr@10": 0.876612886904759,
|
| 15 |
+
"val_cosine_map@100": 0.8786690345206932
|
| 16 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d32578e43f741d79db0ddf8f897632635b4ee097c25a40ab477a811806ba90ca
|
| 3 |
+
size 437967672
|
modules.json
CHANGED
|
@@ -10,11 +10,5 @@
|
|
| 10 |
"name": "1",
|
| 11 |
"path": "1_Pooling",
|
| 12 |
"type": "sentence_transformers.models.Pooling"
|
| 13 |
-
},
|
| 14 |
-
{
|
| 15 |
-
"idx": 2,
|
| 16 |
-
"name": "2",
|
| 17 |
-
"path": "2_Normalize",
|
| 18 |
-
"type": "sentence_transformers.models.Normalize"
|
| 19 |
}
|
| 20 |
]
|
|
|
|
| 10 |
"name": "1",
|
| 11 |
"path": "1_Pooling",
|
| 12 |
"type": "sentence_transformers.models.Pooling"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
]
|
special_tokens_map.json
CHANGED
|
@@ -1,27 +1,41 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"cls_token": {
|
| 3 |
-
"content": "
|
| 4 |
"lstrip": false,
|
| 5 |
"normalized": false,
|
| 6 |
"rstrip": false,
|
| 7 |
"single_word": false
|
| 8 |
},
|
| 9 |
-
"
|
| 10 |
-
"content": "
|
| 11 |
"lstrip": false,
|
| 12 |
"normalized": false,
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
"pad_token": {
|
| 17 |
-
"content": "
|
| 18 |
"lstrip": false,
|
| 19 |
"normalized": false,
|
| 20 |
"rstrip": false,
|
| 21 |
"single_word": false
|
| 22 |
},
|
| 23 |
"sep_token": {
|
| 24 |
-
"content": "
|
| 25 |
"lstrip": false,
|
| 26 |
"normalized": false,
|
| 27 |
"rstrip": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
"cls_token": {
|
| 10 |
+
"content": "<s>",
|
| 11 |
"lstrip": false,
|
| 12 |
"normalized": false,
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
+
"eos_token": {
|
| 17 |
+
"content": "</s>",
|
| 18 |
"lstrip": false,
|
| 19 |
"normalized": false,
|
| 20 |
"rstrip": false,
|
| 21 |
"single_word": false
|
| 22 |
},
|
| 23 |
+
"mask_token": {
|
| 24 |
+
"content": "<mask>",
|
| 25 |
+
"lstrip": true,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
"pad_token": {
|
| 31 |
+
"content": "<pad>",
|
| 32 |
"lstrip": false,
|
| 33 |
"normalized": false,
|
| 34 |
"rstrip": false,
|
| 35 |
"single_word": false
|
| 36 |
},
|
| 37 |
"sep_token": {
|
| 38 |
+
"content": "</s>",
|
| 39 |
"lstrip": false,
|
| 40 |
"normalized": false,
|
| 41 |
"rstrip": false,
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:faaa392e91b132ea18a5c356477832565e05553acb30458841dd9710753a3dba
|
| 3 |
+
size 710932
|
tokenizer_config.json
CHANGED
|
@@ -1,64 +1,72 @@
|
|
| 1 |
{
|
| 2 |
"added_tokens_decoder": {
|
| 3 |
"0": {
|
| 4 |
-
"content": "
|
| 5 |
"lstrip": false,
|
| 6 |
"normalized": false,
|
| 7 |
"rstrip": false,
|
| 8 |
"single_word": false,
|
| 9 |
"special": true
|
| 10 |
},
|
| 11 |
-
"
|
| 12 |
-
"content": "
|
| 13 |
"lstrip": false,
|
| 14 |
"normalized": false,
|
| 15 |
"rstrip": false,
|
| 16 |
"single_word": false,
|
| 17 |
"special": true
|
| 18 |
},
|
| 19 |
-
"
|
| 20 |
-
"content": "
|
| 21 |
"lstrip": false,
|
| 22 |
"normalized": false,
|
| 23 |
"rstrip": false,
|
| 24 |
"single_word": false,
|
| 25 |
"special": true
|
| 26 |
},
|
| 27 |
-
"
|
| 28 |
-
"content": "
|
| 29 |
"lstrip": false,
|
| 30 |
-
"normalized":
|
| 31 |
"rstrip": false,
|
| 32 |
"single_word": false,
|
| 33 |
"special": true
|
| 34 |
},
|
| 35 |
-
"
|
| 36 |
-
"content": "[
|
| 37 |
"lstrip": false,
|
| 38 |
"normalized": false,
|
| 39 |
"rstrip": false,
|
| 40 |
"single_word": false,
|
| 41 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
}
|
| 43 |
},
|
|
|
|
| 44 |
"clean_up_tokenization_spaces": false,
|
| 45 |
-
"cls_token": "
|
| 46 |
-
"do_basic_tokenize": true,
|
| 47 |
"do_lower_case": true,
|
|
|
|
| 48 |
"extra_special_tokens": {},
|
| 49 |
-
"mask_token": "
|
| 50 |
"max_length": 128,
|
| 51 |
-
"model_max_length":
|
| 52 |
-
"never_split": null,
|
| 53 |
"pad_to_multiple_of": null,
|
| 54 |
-
"pad_token": "
|
| 55 |
"pad_token_type_id": 0,
|
| 56 |
"padding_side": "right",
|
| 57 |
-
"sep_token": "
|
| 58 |
"stride": 0,
|
| 59 |
"strip_accents": null,
|
| 60 |
"tokenize_chinese_chars": true,
|
| 61 |
-
"tokenizer_class": "
|
| 62 |
"truncation_side": "right",
|
| 63 |
"truncation_strategy": "longest_first",
|
| 64 |
"unk_token": "[UNK]"
|
|
|
|
| 1 |
{
|
| 2 |
"added_tokens_decoder": {
|
| 3 |
"0": {
|
| 4 |
+
"content": "<s>",
|
| 5 |
"lstrip": false,
|
| 6 |
"normalized": false,
|
| 7 |
"rstrip": false,
|
| 8 |
"single_word": false,
|
| 9 |
"special": true
|
| 10 |
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<pad>",
|
| 13 |
"lstrip": false,
|
| 14 |
"normalized": false,
|
| 15 |
"rstrip": false,
|
| 16 |
"single_word": false,
|
| 17 |
"special": true
|
| 18 |
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "</s>",
|
| 21 |
"lstrip": false,
|
| 22 |
"normalized": false,
|
| 23 |
"rstrip": false,
|
| 24 |
"single_word": false,
|
| 25 |
"special": true
|
| 26 |
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "<unk>",
|
| 29 |
"lstrip": false,
|
| 30 |
+
"normalized": true,
|
| 31 |
"rstrip": false,
|
| 32 |
"single_word": false,
|
| 33 |
"special": true
|
| 34 |
},
|
| 35 |
+
"104": {
|
| 36 |
+
"content": "[UNK]",
|
| 37 |
"lstrip": false,
|
| 38 |
"normalized": false,
|
| 39 |
"rstrip": false,
|
| 40 |
"single_word": false,
|
| 41 |
"special": true
|
| 42 |
+
},
|
| 43 |
+
"30526": {
|
| 44 |
+
"content": "<mask>",
|
| 45 |
+
"lstrip": true,
|
| 46 |
+
"normalized": false,
|
| 47 |
+
"rstrip": false,
|
| 48 |
+
"single_word": false,
|
| 49 |
+
"special": true
|
| 50 |
}
|
| 51 |
},
|
| 52 |
+
"bos_token": "<s>",
|
| 53 |
"clean_up_tokenization_spaces": false,
|
| 54 |
+
"cls_token": "<s>",
|
|
|
|
| 55 |
"do_lower_case": true,
|
| 56 |
+
"eos_token": "</s>",
|
| 57 |
"extra_special_tokens": {},
|
| 58 |
+
"mask_token": "<mask>",
|
| 59 |
"max_length": 128,
|
| 60 |
+
"model_max_length": 384,
|
|
|
|
| 61 |
"pad_to_multiple_of": null,
|
| 62 |
+
"pad_token": "<pad>",
|
| 63 |
"pad_token_type_id": 0,
|
| 64 |
"padding_side": "right",
|
| 65 |
+
"sep_token": "</s>",
|
| 66 |
"stride": 0,
|
| 67 |
"strip_accents": null,
|
| 68 |
"tokenize_chinese_chars": true,
|
| 69 |
+
"tokenizer_class": "MPNetTokenizer",
|
| 70 |
"truncation_side": "right",
|
| 71 |
"truncation_strategy": "longest_first",
|
| 72 |
"unk_token": "[UNK]"
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6161
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fcb37e6b968d556eedfc831d961ab7fcaa49504d2631242a44ef780da21af2c5
|
| 3 |
size 6161
|
vocab.txt
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[PAD]
|
| 2 |
[unused0]
|
| 3 |
[unused1]
|
|
@@ -30520,3 +30524,4 @@ necessitated
|
|
| 30520 |
##:
|
| 30521 |
##?
|
| 30522 |
##~
|
|
|
|
|
|
| 1 |
+
<s>
|
| 2 |
+
<pad>
|
| 3 |
+
</s>
|
| 4 |
+
<unk>
|
| 5 |
[PAD]
|
| 6 |
[unused0]
|
| 7 |
[unused1]
|
|
|
|
| 30524 |
##:
|
| 30525 |
##?
|
| 30526 |
##~
|
| 30527 |
+
<mask>
|