Add new SentenceTransformer model
Browse files- README.md +98 -105
- config_sentence_transformers.json +1 -1
README.md
CHANGED
|
@@ -7,7 +7,7 @@ tags:
|
|
| 7 |
- generated_from_trainer
|
| 8 |
- dataset_size:90000
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
-
base_model:
|
| 11 |
widget:
|
| 12 |
- source_sentence: who is the publisher of the norton anthology american literature
|
| 13 |
sentences:
|
|
@@ -154,7 +154,7 @@ metrics:
|
|
| 154 |
- cosine_mrr@10
|
| 155 |
- cosine_map@100
|
| 156 |
model-index:
|
| 157 |
-
- name: SentenceTransformer based on
|
| 158 |
results:
|
| 159 |
- task:
|
| 160 |
type: information-retrieval
|
|
@@ -164,49 +164,49 @@ model-index:
|
|
| 164 |
type: NanoMSMARCO
|
| 165 |
metrics:
|
| 166 |
- type: cosine_accuracy@1
|
| 167 |
-
value: 0.
|
| 168 |
name: Cosine Accuracy@1
|
| 169 |
- type: cosine_accuracy@3
|
| 170 |
-
value: 0.
|
| 171 |
name: Cosine Accuracy@3
|
| 172 |
- type: cosine_accuracy@5
|
| 173 |
-
value: 0.
|
| 174 |
name: Cosine Accuracy@5
|
| 175 |
- type: cosine_accuracy@10
|
| 176 |
-
value: 0.
|
| 177 |
name: Cosine Accuracy@10
|
| 178 |
- type: cosine_precision@1
|
| 179 |
-
value: 0.
|
| 180 |
name: Cosine Precision@1
|
| 181 |
- type: cosine_precision@3
|
| 182 |
-
value: 0.
|
| 183 |
name: Cosine Precision@3
|
| 184 |
- type: cosine_precision@5
|
| 185 |
-
value: 0.
|
| 186 |
name: Cosine Precision@5
|
| 187 |
- type: cosine_precision@10
|
| 188 |
-
value: 0.
|
| 189 |
name: Cosine Precision@10
|
| 190 |
- type: cosine_recall@1
|
| 191 |
-
value: 0.
|
| 192 |
name: Cosine Recall@1
|
| 193 |
- type: cosine_recall@3
|
| 194 |
-
value: 0.
|
| 195 |
name: Cosine Recall@3
|
| 196 |
- type: cosine_recall@5
|
| 197 |
-
value: 0.
|
| 198 |
name: Cosine Recall@5
|
| 199 |
- type: cosine_recall@10
|
| 200 |
-
value: 0.
|
| 201 |
name: Cosine Recall@10
|
| 202 |
- type: cosine_ndcg@10
|
| 203 |
-
value: 0.
|
| 204 |
name: Cosine Ndcg@10
|
| 205 |
- type: cosine_mrr@10
|
| 206 |
-
value: 0.
|
| 207 |
name: Cosine Mrr@10
|
| 208 |
- type: cosine_map@100
|
| 209 |
-
value: 0.
|
| 210 |
name: Cosine Map@100
|
| 211 |
- task:
|
| 212 |
type: information-retrieval
|
|
@@ -216,49 +216,49 @@ model-index:
|
|
| 216 |
type: NanoNQ
|
| 217 |
metrics:
|
| 218 |
- type: cosine_accuracy@1
|
| 219 |
-
value: 0.
|
| 220 |
name: Cosine Accuracy@1
|
| 221 |
- type: cosine_accuracy@3
|
| 222 |
-
value: 0.
|
| 223 |
name: Cosine Accuracy@3
|
| 224 |
- type: cosine_accuracy@5
|
| 225 |
-
value: 0.
|
| 226 |
name: Cosine Accuracy@5
|
| 227 |
- type: cosine_accuracy@10
|
| 228 |
-
value: 0.
|
| 229 |
name: Cosine Accuracy@10
|
| 230 |
- type: cosine_precision@1
|
| 231 |
-
value: 0.
|
| 232 |
name: Cosine Precision@1
|
| 233 |
- type: cosine_precision@3
|
| 234 |
-
value: 0.
|
| 235 |
name: Cosine Precision@3
|
| 236 |
- type: cosine_precision@5
|
| 237 |
-
value: 0.
|
| 238 |
name: Cosine Precision@5
|
| 239 |
- type: cosine_precision@10
|
| 240 |
-
value: 0.
|
| 241 |
name: Cosine Precision@10
|
| 242 |
- type: cosine_recall@1
|
| 243 |
-
value: 0.
|
| 244 |
name: Cosine Recall@1
|
| 245 |
- type: cosine_recall@3
|
| 246 |
-
value: 0.
|
| 247 |
name: Cosine Recall@3
|
| 248 |
- type: cosine_recall@5
|
| 249 |
-
value: 0.
|
| 250 |
name: Cosine Recall@5
|
| 251 |
- type: cosine_recall@10
|
| 252 |
-
value: 0.
|
| 253 |
name: Cosine Recall@10
|
| 254 |
- type: cosine_ndcg@10
|
| 255 |
-
value: 0.
|
| 256 |
name: Cosine Ndcg@10
|
| 257 |
- type: cosine_mrr@10
|
| 258 |
-
value: 0.
|
| 259 |
name: Cosine Mrr@10
|
| 260 |
- type: cosine_map@100
|
| 261 |
-
value: 0.
|
| 262 |
name: Cosine Map@100
|
| 263 |
- task:
|
| 264 |
type: nano-beir
|
|
@@ -268,61 +268,61 @@ model-index:
|
|
| 268 |
type: NanoBEIR_mean
|
| 269 |
metrics:
|
| 270 |
- type: cosine_accuracy@1
|
| 271 |
-
value: 0.
|
| 272 |
name: Cosine Accuracy@1
|
| 273 |
- type: cosine_accuracy@3
|
| 274 |
-
value: 0.
|
| 275 |
name: Cosine Accuracy@3
|
| 276 |
- type: cosine_accuracy@5
|
| 277 |
-
value: 0.
|
| 278 |
name: Cosine Accuracy@5
|
| 279 |
- type: cosine_accuracy@10
|
| 280 |
-
value: 0.
|
| 281 |
name: Cosine Accuracy@10
|
| 282 |
- type: cosine_precision@1
|
| 283 |
-
value: 0.
|
| 284 |
name: Cosine Precision@1
|
| 285 |
- type: cosine_precision@3
|
| 286 |
-
value: 0.
|
| 287 |
name: Cosine Precision@3
|
| 288 |
- type: cosine_precision@5
|
| 289 |
-
value: 0.
|
| 290 |
name: Cosine Precision@5
|
| 291 |
- type: cosine_precision@10
|
| 292 |
-
value: 0.
|
| 293 |
name: Cosine Precision@10
|
| 294 |
- type: cosine_recall@1
|
| 295 |
-
value: 0.
|
| 296 |
name: Cosine Recall@1
|
| 297 |
- type: cosine_recall@3
|
| 298 |
-
value: 0.
|
| 299 |
name: Cosine Recall@3
|
| 300 |
- type: cosine_recall@5
|
| 301 |
-
value: 0.
|
| 302 |
name: Cosine Recall@5
|
| 303 |
- type: cosine_recall@10
|
| 304 |
-
value: 0.
|
| 305 |
name: Cosine Recall@10
|
| 306 |
- type: cosine_ndcg@10
|
| 307 |
-
value: 0.
|
| 308 |
name: Cosine Ndcg@10
|
| 309 |
- type: cosine_mrr@10
|
| 310 |
-
value: 0.
|
| 311 |
name: Cosine Mrr@10
|
| 312 |
- type: cosine_map@100
|
| 313 |
-
value: 0.
|
| 314 |
name: Cosine Map@100
|
| 315 |
---
|
| 316 |
|
| 317 |
-
# SentenceTransformer based on
|
| 318 |
|
| 319 |
-
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [
|
| 320 |
|
| 321 |
## Model Details
|
| 322 |
|
| 323 |
### Model Description
|
| 324 |
- **Model Type:** Sentence Transformer
|
| 325 |
-
- **Base model:** [
|
| 326 |
- **Maximum Sequence Length:** 128 tokens
|
| 327 |
- **Output Dimensionality:** 384 dimensions
|
| 328 |
- **Similarity Function:** Cosine Similarity
|
|
@@ -375,9 +375,9 @@ print(embeddings.shape)
|
|
| 375 |
# Get the similarity scores for the embeddings
|
| 376 |
similarities = model.similarity(embeddings, embeddings)
|
| 377 |
print(similarities)
|
| 378 |
-
# tensor([[
|
| 379 |
-
# [
|
| 380 |
-
# [
|
| 381 |
```
|
| 382 |
|
| 383 |
<!--
|
|
@@ -415,21 +415,21 @@ You can finetune this model on your own dataset.
|
|
| 415 |
|
| 416 |
| Metric | NanoMSMARCO | NanoNQ |
|
| 417 |
|:--------------------|:------------|:-----------|
|
| 418 |
-
| cosine_accuracy@1 | 0.
|
| 419 |
-
| cosine_accuracy@3 | 0.
|
| 420 |
-
| cosine_accuracy@5 | 0.
|
| 421 |
-
| cosine_accuracy@10 | 0.
|
| 422 |
-
| cosine_precision@1 | 0.
|
| 423 |
-
| cosine_precision@3 | 0.
|
| 424 |
-
| cosine_precision@5 | 0.
|
| 425 |
-
| cosine_precision@10 | 0.
|
| 426 |
-
| cosine_recall@1 | 0.
|
| 427 |
-
| cosine_recall@3 | 0.
|
| 428 |
-
| cosine_recall@5 | 0.
|
| 429 |
-
| cosine_recall@10 | 0.
|
| 430 |
-
| **cosine_ndcg@10** | **0.
|
| 431 |
-
| cosine_mrr@10 | 0.
|
| 432 |
-
| cosine_map@100 | 0.
|
| 433 |
|
| 434 |
#### Nano BEIR
|
| 435 |
|
|
@@ -447,21 +447,21 @@ You can finetune this model on your own dataset.
|
|
| 447 |
|
| 448 |
| Metric | Value |
|
| 449 |
|:--------------------|:-----------|
|
| 450 |
-
| cosine_accuracy@1 | 0.
|
| 451 |
-
| cosine_accuracy@3 | 0.
|
| 452 |
-
| cosine_accuracy@5 | 0.
|
| 453 |
-
| cosine_accuracy@10 | 0.
|
| 454 |
-
| cosine_precision@1 | 0.
|
| 455 |
-
| cosine_precision@3 | 0.
|
| 456 |
-
| cosine_precision@5 | 0.
|
| 457 |
-
| cosine_precision@10 | 0.
|
| 458 |
-
| cosine_recall@1 | 0.
|
| 459 |
-
| cosine_recall@3 | 0.
|
| 460 |
-
| cosine_recall@5 | 0.
|
| 461 |
-
| cosine_recall@10 | 0.
|
| 462 |
-
| **cosine_ndcg@10** | **0.
|
| 463 |
-
| cosine_mrr@10 | 0.
|
| 464 |
-
| cosine_map@100 | 0.
|
| 465 |
|
| 466 |
<!--
|
| 467 |
## Bias, Risks and Limitations
|
|
@@ -497,7 +497,7 @@ You can finetune this model on your own dataset.
|
|
| 497 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 498 |
```json
|
| 499 |
{
|
| 500 |
-
"scale":
|
| 501 |
"similarity_fct": "cos_sim",
|
| 502 |
"gather_across_devices": false
|
| 503 |
}
|
|
@@ -523,7 +523,7 @@ You can finetune this model on your own dataset.
|
|
| 523 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 524 |
```json
|
| 525 |
{
|
| 526 |
-
"scale":
|
| 527 |
"similarity_fct": "cos_sim",
|
| 528 |
"gather_across_devices": false
|
| 529 |
}
|
|
@@ -535,9 +535,9 @@ You can finetune this model on your own dataset.
|
|
| 535 |
- `eval_strategy`: steps
|
| 536 |
- `per_device_train_batch_size`: 128
|
| 537 |
- `per_device_eval_batch_size`: 128
|
| 538 |
-
- `learning_rate`:
|
| 539 |
-
- `weight_decay`: 0.
|
| 540 |
-
- `max_steps`:
|
| 541 |
- `warmup_ratio`: 0.1
|
| 542 |
- `fp16`: True
|
| 543 |
- `dataloader_drop_last`: True
|
|
@@ -564,14 +564,14 @@ You can finetune this model on your own dataset.
|
|
| 564 |
- `gradient_accumulation_steps`: 1
|
| 565 |
- `eval_accumulation_steps`: None
|
| 566 |
- `torch_empty_cache_steps`: None
|
| 567 |
-
- `learning_rate`:
|
| 568 |
-
- `weight_decay`: 0.
|
| 569 |
- `adam_beta1`: 0.9
|
| 570 |
- `adam_beta2`: 0.999
|
| 571 |
- `adam_epsilon`: 1e-08
|
| 572 |
- `max_grad_norm`: 1.0
|
| 573 |
- `num_train_epochs`: 3.0
|
| 574 |
-
- `max_steps`:
|
| 575 |
- `lr_scheduler_type`: linear
|
| 576 |
- `lr_scheduler_kwargs`: {}
|
| 577 |
- `warmup_ratio`: 0.1
|
|
@@ -678,20 +678,13 @@ You can finetune this model on your own dataset.
|
|
| 678 |
### Training Logs
|
| 679 |
| Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_cosine_ndcg@10 | NanoNQ_cosine_ndcg@10 | NanoBEIR_mean_cosine_ndcg@10 |
|
| 680 |
|:------:|:----:|:-------------:|:---------------:|:--------------------------:|:---------------------:|:----------------------------:|
|
| 681 |
-
| 0 | 0 | - |
|
| 682 |
-
| 0.3556 | 250 |
|
| 683 |
-
| 0.7112 | 500 |
|
| 684 |
-
| 1.0669 | 750 |
|
| 685 |
-
| 1.4225 | 1000 |
|
| 686 |
-
| 1.7781 | 1250 |
|
| 687 |
-
| 2.1337 | 1500 |
|
| 688 |
-
| 2.4893 | 1750 | 2.9363 | 2.9311 | 0.3729 | 0.4068 | 0.3898 |
|
| 689 |
-
| 2.8450 | 2000 | 2.9287 | 2.9274 | 0.3728 | 0.3778 | 0.3753 |
|
| 690 |
-
| 3.2006 | 2250 | 2.907 | 2.9254 | 0.3770 | 0.3713 | 0.3742 |
|
| 691 |
-
| 3.5562 | 2500 | 2.8979 | 2.9242 | 0.3606 | 0.3884 | 0.3745 |
|
| 692 |
-
| 3.9118 | 2750 | 2.8931 | 2.9215 | 0.3446 | 0.3955 | 0.3700 |
|
| 693 |
-
| 4.2674 | 3000 | 2.883 | 2.9207 | 0.3511 | 0.3777 | 0.3644 |
|
| 694 |
-
| 4.6230 | 3250 | 2.8762 | 2.9201 | 0.3452 | 0.3854 | 0.3653 |
|
| 695 |
|
| 696 |
|
| 697 |
### Framework Versions
|
|
|
|
| 7 |
- generated_from_trainer
|
| 8 |
- dataset_size:90000
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
+
base_model: sentence-transformers/all-MiniLM-L6-v2
|
| 11 |
widget:
|
| 12 |
- source_sentence: who is the publisher of the norton anthology american literature
|
| 13 |
sentences:
|
|
|
|
| 154 |
- cosine_mrr@10
|
| 155 |
- cosine_map@100
|
| 156 |
model-index:
|
| 157 |
+
- name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
|
| 158 |
results:
|
| 159 |
- task:
|
| 160 |
type: information-retrieval
|
|
|
|
| 164 |
type: NanoMSMARCO
|
| 165 |
metrics:
|
| 166 |
- type: cosine_accuracy@1
|
| 167 |
+
value: 0.24
|
| 168 |
name: Cosine Accuracy@1
|
| 169 |
- type: cosine_accuracy@3
|
| 170 |
+
value: 0.52
|
| 171 |
name: Cosine Accuracy@3
|
| 172 |
- type: cosine_accuracy@5
|
| 173 |
+
value: 0.64
|
| 174 |
name: Cosine Accuracy@5
|
| 175 |
- type: cosine_accuracy@10
|
| 176 |
+
value: 0.76
|
| 177 |
name: Cosine Accuracy@10
|
| 178 |
- type: cosine_precision@1
|
| 179 |
+
value: 0.24
|
| 180 |
name: Cosine Precision@1
|
| 181 |
- type: cosine_precision@3
|
| 182 |
+
value: 0.1733333333333333
|
| 183 |
name: Cosine Precision@3
|
| 184 |
- type: cosine_precision@5
|
| 185 |
+
value: 0.128
|
| 186 |
name: Cosine Precision@5
|
| 187 |
- type: cosine_precision@10
|
| 188 |
+
value: 0.07600000000000001
|
| 189 |
name: Cosine Precision@10
|
| 190 |
- type: cosine_recall@1
|
| 191 |
+
value: 0.24
|
| 192 |
name: Cosine Recall@1
|
| 193 |
- type: cosine_recall@3
|
| 194 |
+
value: 0.52
|
| 195 |
name: Cosine Recall@3
|
| 196 |
- type: cosine_recall@5
|
| 197 |
+
value: 0.64
|
| 198 |
name: Cosine Recall@5
|
| 199 |
- type: cosine_recall@10
|
| 200 |
+
value: 0.76
|
| 201 |
name: Cosine Recall@10
|
| 202 |
- type: cosine_ndcg@10
|
| 203 |
+
value: 0.49143458252672184
|
| 204 |
name: Cosine Ndcg@10
|
| 205 |
- type: cosine_mrr@10
|
| 206 |
+
value: 0.4057380952380952
|
| 207 |
name: Cosine Mrr@10
|
| 208 |
- type: cosine_map@100
|
| 209 |
+
value: 0.4167225925544634
|
| 210 |
name: Cosine Map@100
|
| 211 |
- task:
|
| 212 |
type: information-retrieval
|
|
|
|
| 216 |
type: NanoNQ
|
| 217 |
metrics:
|
| 218 |
- type: cosine_accuracy@1
|
| 219 |
+
value: 0.46
|
| 220 |
name: Cosine Accuracy@1
|
| 221 |
- type: cosine_accuracy@3
|
| 222 |
+
value: 0.62
|
| 223 |
name: Cosine Accuracy@3
|
| 224 |
- type: cosine_accuracy@5
|
| 225 |
+
value: 0.66
|
| 226 |
name: Cosine Accuracy@5
|
| 227 |
- type: cosine_accuracy@10
|
| 228 |
+
value: 0.7
|
| 229 |
name: Cosine Accuracy@10
|
| 230 |
- type: cosine_precision@1
|
| 231 |
+
value: 0.46
|
| 232 |
name: Cosine Precision@1
|
| 233 |
- type: cosine_precision@3
|
| 234 |
+
value: 0.20666666666666664
|
| 235 |
name: Cosine Precision@3
|
| 236 |
- type: cosine_precision@5
|
| 237 |
+
value: 0.136
|
| 238 |
name: Cosine Precision@5
|
| 239 |
- type: cosine_precision@10
|
| 240 |
+
value: 0.07600000000000001
|
| 241 |
name: Cosine Precision@10
|
| 242 |
- type: cosine_recall@1
|
| 243 |
+
value: 0.45
|
| 244 |
name: Cosine Recall@1
|
| 245 |
- type: cosine_recall@3
|
| 246 |
+
value: 0.58
|
| 247 |
name: Cosine Recall@3
|
| 248 |
- type: cosine_recall@5
|
| 249 |
+
value: 0.63
|
| 250 |
name: Cosine Recall@5
|
| 251 |
- type: cosine_recall@10
|
| 252 |
+
value: 0.69
|
| 253 |
name: Cosine Recall@10
|
| 254 |
- type: cosine_ndcg@10
|
| 255 |
+
value: 0.5748041984771892
|
| 256 |
name: Cosine Ndcg@10
|
| 257 |
- type: cosine_mrr@10
|
| 258 |
+
value: 0.5456666666666667
|
| 259 |
name: Cosine Mrr@10
|
| 260 |
- type: cosine_map@100
|
| 261 |
+
value: 0.5421576333440519
|
| 262 |
name: Cosine Map@100
|
| 263 |
- task:
|
| 264 |
type: nano-beir
|
|
|
|
| 268 |
type: NanoBEIR_mean
|
| 269 |
metrics:
|
| 270 |
- type: cosine_accuracy@1
|
| 271 |
+
value: 0.35
|
| 272 |
name: Cosine Accuracy@1
|
| 273 |
- type: cosine_accuracy@3
|
| 274 |
+
value: 0.5700000000000001
|
| 275 |
name: Cosine Accuracy@3
|
| 276 |
- type: cosine_accuracy@5
|
| 277 |
+
value: 0.65
|
| 278 |
name: Cosine Accuracy@5
|
| 279 |
- type: cosine_accuracy@10
|
| 280 |
+
value: 0.73
|
| 281 |
name: Cosine Accuracy@10
|
| 282 |
- type: cosine_precision@1
|
| 283 |
+
value: 0.35
|
| 284 |
name: Cosine Precision@1
|
| 285 |
- type: cosine_precision@3
|
| 286 |
+
value: 0.18999999999999997
|
| 287 |
name: Cosine Precision@3
|
| 288 |
- type: cosine_precision@5
|
| 289 |
+
value: 0.132
|
| 290 |
name: Cosine Precision@5
|
| 291 |
- type: cosine_precision@10
|
| 292 |
+
value: 0.07600000000000001
|
| 293 |
name: Cosine Precision@10
|
| 294 |
- type: cosine_recall@1
|
| 295 |
+
value: 0.345
|
| 296 |
name: Cosine Recall@1
|
| 297 |
- type: cosine_recall@3
|
| 298 |
+
value: 0.55
|
| 299 |
name: Cosine Recall@3
|
| 300 |
- type: cosine_recall@5
|
| 301 |
+
value: 0.635
|
| 302 |
name: Cosine Recall@5
|
| 303 |
- type: cosine_recall@10
|
| 304 |
+
value: 0.725
|
| 305 |
name: Cosine Recall@10
|
| 306 |
- type: cosine_ndcg@10
|
| 307 |
+
value: 0.5331193905019556
|
| 308 |
name: Cosine Ndcg@10
|
| 309 |
- type: cosine_mrr@10
|
| 310 |
+
value: 0.47570238095238093
|
| 311 |
name: Cosine Mrr@10
|
| 312 |
- type: cosine_map@100
|
| 313 |
+
value: 0.47944011294925765
|
| 314 |
name: Cosine Map@100
|
| 315 |
---
|
| 316 |
|
| 317 |
+
# SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
|
| 318 |
|
| 319 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
| 320 |
|
| 321 |
## Model Details
|
| 322 |
|
| 323 |
### Model Description
|
| 324 |
- **Model Type:** Sentence Transformer
|
| 325 |
+
- **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
|
| 326 |
- **Maximum Sequence Length:** 128 tokens
|
| 327 |
- **Output Dimensionality:** 384 dimensions
|
| 328 |
- **Similarity Function:** Cosine Similarity
|
|
|
|
| 375 |
# Get the similarity scores for the embeddings
|
| 376 |
similarities = model.similarity(embeddings, embeddings)
|
| 377 |
print(similarities)
|
| 378 |
+
# tensor([[1.0000, 0.7393, 0.1251],
|
| 379 |
+
# [0.7393, 1.0000, 0.1255],
|
| 380 |
+
# [0.1251, 0.1255, 1.0000]])
|
| 381 |
```
|
| 382 |
|
| 383 |
<!--
|
|
|
|
| 415 |
|
| 416 |
| Metric | NanoMSMARCO | NanoNQ |
|
| 417 |
|:--------------------|:------------|:-----------|
|
| 418 |
+
| cosine_accuracy@1 | 0.24 | 0.46 |
|
| 419 |
+
| cosine_accuracy@3 | 0.52 | 0.62 |
|
| 420 |
+
| cosine_accuracy@5 | 0.64 | 0.66 |
|
| 421 |
+
| cosine_accuracy@10 | 0.76 | 0.7 |
|
| 422 |
+
| cosine_precision@1 | 0.24 | 0.46 |
|
| 423 |
+
| cosine_precision@3 | 0.1733 | 0.2067 |
|
| 424 |
+
| cosine_precision@5 | 0.128 | 0.136 |
|
| 425 |
+
| cosine_precision@10 | 0.076 | 0.076 |
|
| 426 |
+
| cosine_recall@1 | 0.24 | 0.45 |
|
| 427 |
+
| cosine_recall@3 | 0.52 | 0.58 |
|
| 428 |
+
| cosine_recall@5 | 0.64 | 0.63 |
|
| 429 |
+
| cosine_recall@10 | 0.76 | 0.69 |
|
| 430 |
+
| **cosine_ndcg@10** | **0.4914** | **0.5748** |
|
| 431 |
+
| cosine_mrr@10 | 0.4057 | 0.5457 |
|
| 432 |
+
| cosine_map@100 | 0.4167 | 0.5422 |
|
| 433 |
|
| 434 |
#### Nano BEIR
|
| 435 |
|
|
|
|
| 447 |
|
| 448 |
| Metric | Value |
|
| 449 |
|:--------------------|:-----------|
|
| 450 |
+
| cosine_accuracy@1 | 0.35 |
|
| 451 |
+
| cosine_accuracy@3 | 0.57 |
|
| 452 |
+
| cosine_accuracy@5 | 0.65 |
|
| 453 |
+
| cosine_accuracy@10 | 0.73 |
|
| 454 |
+
| cosine_precision@1 | 0.35 |
|
| 455 |
+
| cosine_precision@3 | 0.19 |
|
| 456 |
+
| cosine_precision@5 | 0.132 |
|
| 457 |
+
| cosine_precision@10 | 0.076 |
|
| 458 |
+
| cosine_recall@1 | 0.345 |
|
| 459 |
+
| cosine_recall@3 | 0.55 |
|
| 460 |
+
| cosine_recall@5 | 0.635 |
|
| 461 |
+
| cosine_recall@10 | 0.725 |
|
| 462 |
+
| **cosine_ndcg@10** | **0.5331** |
|
| 463 |
+
| cosine_mrr@10 | 0.4757 |
|
| 464 |
+
| cosine_map@100 | 0.4794 |
|
| 465 |
|
| 466 |
<!--
|
| 467 |
## Bias, Risks and Limitations
|
|
|
|
| 497 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 498 |
```json
|
| 499 |
{
|
| 500 |
+
"scale": 20.0,
|
| 501 |
"similarity_fct": "cos_sim",
|
| 502 |
"gather_across_devices": false
|
| 503 |
}
|
|
|
|
| 523 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 524 |
```json
|
| 525 |
{
|
| 526 |
+
"scale": 20.0,
|
| 527 |
"similarity_fct": "cos_sim",
|
| 528 |
"gather_across_devices": false
|
| 529 |
}
|
|
|
|
| 535 |
- `eval_strategy`: steps
|
| 536 |
- `per_device_train_batch_size`: 128
|
| 537 |
- `per_device_eval_batch_size`: 128
|
| 538 |
+
- `learning_rate`: 0.0001
|
| 539 |
+
- `weight_decay`: 0.001
|
| 540 |
+
- `max_steps`: 1687
|
| 541 |
- `warmup_ratio`: 0.1
|
| 542 |
- `fp16`: True
|
| 543 |
- `dataloader_drop_last`: True
|
|
|
|
| 564 |
- `gradient_accumulation_steps`: 1
|
| 565 |
- `eval_accumulation_steps`: None
|
| 566 |
- `torch_empty_cache_steps`: None
|
| 567 |
+
- `learning_rate`: 0.0001
|
| 568 |
+
- `weight_decay`: 0.001
|
| 569 |
- `adam_beta1`: 0.9
|
| 570 |
- `adam_beta2`: 0.999
|
| 571 |
- `adam_epsilon`: 1e-08
|
| 572 |
- `max_grad_norm`: 1.0
|
| 573 |
- `num_train_epochs`: 3.0
|
| 574 |
+
- `max_steps`: 1687
|
| 575 |
- `lr_scheduler_type`: linear
|
| 576 |
- `lr_scheduler_kwargs`: {}
|
| 577 |
- `warmup_ratio`: 0.1
|
|
|
|
| 678 |
### Training Logs
|
| 679 |
| Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_cosine_ndcg@10 | NanoNQ_cosine_ndcg@10 | NanoBEIR_mean_cosine_ndcg@10 |
|
| 680 |
|:------:|:----:|:-------------:|:---------------:|:--------------------------:|:---------------------:|:----------------------------:|
|
| 681 |
+
| 0 | 0 | - | 0.0803 | 0.5540 | 0.5931 | 0.5735 |
|
| 682 |
+
| 0.3556 | 250 | 0.0897 | 0.0764 | 0.5354 | 0.5945 | 0.5650 |
|
| 683 |
+
| 0.7112 | 500 | 0.0917 | 0.0749 | 0.5252 | 0.5638 | 0.5445 |
|
| 684 |
+
| 1.0669 | 750 | 0.0823 | 0.0653 | 0.5267 | 0.5904 | 0.5586 |
|
| 685 |
+
| 1.4225 | 1000 | 0.0459 | 0.0630 | 0.5236 | 0.5689 | 0.5462 |
|
| 686 |
+
| 1.7781 | 1250 | 0.0429 | 0.0613 | 0.5312 | 0.5676 | 0.5494 |
|
| 687 |
+
| 2.1337 | 1500 | 0.0393 | 0.0600 | 0.4914 | 0.5748 | 0.5331 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 688 |
|
| 689 |
|
| 690 |
### Framework Versions
|
config_sentence_transformers.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 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": ""
|
|
|
|
| 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": ""
|