Add new SentenceTransformer model
Browse files
README.md
CHANGED
|
@@ -5,38 +5,109 @@ tags:
|
|
| 5 |
- feature-extraction
|
| 6 |
- dense
|
| 7 |
- generated_from_trainer
|
| 8 |
-
- dataset_size:
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
base_model: prajjwal1/bert-small
|
| 11 |
widget:
|
| 12 |
-
- source_sentence: How do I
|
| 13 |
sentences:
|
| 14 |
-
- How
|
| 15 |
-
-
|
| 16 |
-
- What
|
| 17 |
-
- source_sentence:
|
| 18 |
sentences:
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
- source_sentence:
|
| 24 |
sentences:
|
| 25 |
-
- What
|
| 26 |
-
-
|
| 27 |
-
-
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
sentences:
|
| 30 |
-
-
|
| 31 |
-
- How
|
| 32 |
-
-
|
| 33 |
-
- source_sentence:
|
|
|
|
| 34 |
sentences:
|
| 35 |
-
-
|
| 36 |
-
-
|
| 37 |
-
-
|
|
|
|
| 38 |
pipeline_tag: sentence-similarity
|
| 39 |
library_name: sentence-transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
---
|
| 41 |
|
| 42 |
# SentenceTransformer based on prajjwal1/bert-small
|
|
@@ -85,12 +156,12 @@ Then you can load this model and run inference.
|
|
| 85 |
from sentence_transformers import SentenceTransformer
|
| 86 |
|
| 87 |
# Download from the 🤗 Hub
|
| 88 |
-
model = SentenceTransformer("
|
| 89 |
# Run inference
|
| 90 |
sentences = [
|
| 91 |
-
'
|
| 92 |
-
'
|
| 93 |
-
'
|
| 94 |
]
|
| 95 |
embeddings = model.encode(sentences)
|
| 96 |
print(embeddings.shape)
|
|
@@ -99,9 +170,9 @@ print(embeddings.shape)
|
|
| 99 |
# Get the similarity scores for the embeddings
|
| 100 |
similarities = model.similarity(embeddings, embeddings)
|
| 101 |
print(similarities)
|
| 102 |
-
# tensor([[
|
| 103 |
-
# [
|
| 104 |
-
# [
|
| 105 |
```
|
| 106 |
|
| 107 |
<!--
|
|
@@ -128,6 +199,32 @@ You can finetune this model on your own dataset.
|
|
| 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,19 +243,45 @@ You can finetune this model on your own dataset.
|
|
| 146 |
|
| 147 |
#### Unnamed Dataset
|
| 148 |
|
| 149 |
-
* Size:
|
| 150 |
-
* Columns: <code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
* Approximate statistics based on the first 1000 samples:
|
| 152 |
-
| |
|
| 153 |
-
|
| 154 |
-
| type | string | string
|
| 155 |
-
| details | <ul><li>min:
|
| 156 |
* Samples:
|
| 157 |
-
|
|
| 158 |
-
|
| 159 |
-
| <code>
|
| 160 |
-
| <code>
|
| 161 |
-
| <code>
|
| 162 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 163 |
```json
|
| 164 |
{
|
|
@@ -171,36 +294,49 @@ You can finetune this model on your own dataset.
|
|
| 171 |
### Training Hyperparameters
|
| 172 |
#### Non-Default Hyperparameters
|
| 173 |
|
| 174 |
-
- `
|
| 175 |
-
- `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
- `fp16`: True
|
| 177 |
-
- `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
#### All Hyperparameters
|
| 180 |
<details><summary>Click to expand</summary>
|
| 181 |
|
| 182 |
- `overwrite_output_dir`: False
|
| 183 |
- `do_predict`: False
|
| 184 |
-
- `eval_strategy`:
|
| 185 |
- `prediction_loss_only`: True
|
| 186 |
-
- `per_device_train_batch_size`:
|
| 187 |
-
- `per_device_eval_batch_size`:
|
| 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`:
|
| 194 |
-
- `weight_decay`: 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`:
|
| 201 |
- `lr_scheduler_type`: linear
|
| 202 |
- `lr_scheduler_kwargs`: {}
|
| 203 |
-
- `warmup_ratio`: 0.
|
| 204 |
- `warmup_steps`: 0
|
| 205 |
- `log_level`: passive
|
| 206 |
- `log_level_replica`: warning
|
|
@@ -228,14 +364,14 @@ You can finetune this model on your own dataset.
|
|
| 228 |
- `tpu_num_cores`: None
|
| 229 |
- `tpu_metrics_debug`: False
|
| 230 |
- `debug`: []
|
| 231 |
-
- `dataloader_drop_last`:
|
| 232 |
-
- `dataloader_num_workers`:
|
| 233 |
-
- `dataloader_prefetch_factor`:
|
| 234 |
- `past_index`: -1
|
| 235 |
- `disable_tqdm`: False
|
| 236 |
- `remove_unused_columns`: True
|
| 237 |
- `label_names`: None
|
| 238 |
-
- `load_best_model_at_end`:
|
| 239 |
- `ignore_data_skip`: False
|
| 240 |
- `fsdp`: []
|
| 241 |
- `fsdp_min_num_params`: 0
|
|
@@ -245,23 +381,23 @@ You can finetune this model on your own dataset.
|
|
| 245 |
- `parallelism_config`: None
|
| 246 |
- `deepspeed`: None
|
| 247 |
- `label_smoothing_factor`: 0.0
|
| 248 |
-
- `optim`:
|
| 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`:
|
| 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`:
|
| 263 |
- `resume_from_checkpoint`: None
|
| 264 |
-
- `hub_model_id`:
|
| 265 |
- `hub_strategy`: every_save
|
| 266 |
- `hub_private_repo`: None
|
| 267 |
- `hub_always_push`: False
|
|
@@ -288,31 +424,58 @@ You can finetune this model on your own dataset.
|
|
| 288 |
- `neftune_noise_alpha`: None
|
| 289 |
- `optim_target_modules`: None
|
| 290 |
- `batch_eval_metrics`: False
|
| 291 |
-
- `eval_on_start`:
|
| 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`:
|
| 299 |
- `router_mapping`: {}
|
| 300 |
- `learning_rate_mapping`: {}
|
| 301 |
|
| 302 |
</details>
|
| 303 |
|
| 304 |
### Training Logs
|
| 305 |
-
| Epoch | Step | Training Loss |
|
| 306 |
-
|
| 307 |
-
| 0
|
| 308 |
-
| 0.
|
| 309 |
-
| 0.
|
| 310 |
-
|
|
| 311 |
-
| 1.
|
| 312 |
-
| 1.
|
| 313 |
-
|
|
| 314 |
-
|
|
| 315 |
-
| 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
|
| 317 |
|
| 318 |
### Framework Versions
|
|
|
|
| 5 |
- feature-extraction
|
| 6 |
- dense
|
| 7 |
- generated_from_trainer
|
| 8 |
+
- dataset_size:90000
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
base_model: prajjwal1/bert-small
|
| 11 |
widget:
|
| 12 |
+
- source_sentence: How do I cope with my depression to keep my girlfriend?
|
| 13 |
sentences:
|
| 14 |
+
- How do you cope with depression?
|
| 15 |
+
- How do I cope with my depression to keep my girlfriend?
|
| 16 |
+
- What does science say about crop circles?
|
| 17 |
+
- source_sentence: Which is the best college for MBA in Delhi?
|
| 18 |
sentences:
|
| 19 |
+
- Will time travel be possible in future?
|
| 20 |
+
- What will be the picture quality if a Standard STB is Connected to a Full HD 40"
|
| 21 |
+
Led TV?
|
| 22 |
+
- Which is the best college to do an MBA in Delhi?
|
| 23 |
+
- source_sentence: What is poison mailbox?
|
| 24 |
sentences:
|
| 25 |
+
- What are examples of homonyms with meanings and sentences?
|
| 26 |
+
- What is poison mailbox?
|
| 27 |
+
- I was born on 29 may 1994 in pakistan city lahore my name is Ali Fraz Virk what
|
| 28 |
+
is my horoscope in details plz?
|
| 29 |
+
- source_sentence: What are the differences between eccentric and concentric contraction?
|
| 30 |
+
What are some examples?
|
| 31 |
sentences:
|
| 32 |
+
- Why is it when I pass my crush he always looks down at his phone?
|
| 33 |
+
- How widely accepted are credit cards at small businesses and restaurants in Bahrain?
|
| 34 |
+
- What are the differences between a concentric and eccentric movement?
|
| 35 |
+
- source_sentence: I've got an online coupon for Domino's pizza through the freecharge
|
| 36 |
+
app. Is it necessary to use that coupon only when I order online?
|
| 37 |
sentences:
|
| 38 |
+
- Who played the character of 'Russ' in friends?
|
| 39 |
+
- How do you use Dominos India WalkIn coupon code?
|
| 40 |
+
- I've got an online coupon for Domino's pizza through the freecharge app. Is it
|
| 41 |
+
necessary to use that coupon only when I order online?
|
| 42 |
pipeline_tag: sentence-similarity
|
| 43 |
library_name: sentence-transformers
|
| 44 |
+
metrics:
|
| 45 |
+
- cosine_accuracy@1
|
| 46 |
+
- cosine_accuracy@3
|
| 47 |
+
- cosine_accuracy@5
|
| 48 |
+
- cosine_precision@1
|
| 49 |
+
- cosine_precision@3
|
| 50 |
+
- cosine_precision@5
|
| 51 |
+
- cosine_recall@1
|
| 52 |
+
- cosine_recall@3
|
| 53 |
+
- cosine_recall@5
|
| 54 |
+
- cosine_ndcg@10
|
| 55 |
+
- cosine_mrr@1
|
| 56 |
+
- cosine_mrr@5
|
| 57 |
+
- cosine_mrr@10
|
| 58 |
+
- cosine_map@100
|
| 59 |
+
model-index:
|
| 60 |
+
- name: SentenceTransformer based on prajjwal1/bert-small
|
| 61 |
+
results:
|
| 62 |
+
- task:
|
| 63 |
+
type: information-retrieval
|
| 64 |
+
name: Information Retrieval
|
| 65 |
+
dataset:
|
| 66 |
+
name: val
|
| 67 |
+
type: val
|
| 68 |
+
metrics:
|
| 69 |
+
- type: cosine_accuracy@1
|
| 70 |
+
value: 0.9184
|
| 71 |
+
name: Cosine Accuracy@1
|
| 72 |
+
- type: cosine_accuracy@3
|
| 73 |
+
value: 0.97
|
| 74 |
+
name: Cosine Accuracy@3
|
| 75 |
+
- type: cosine_accuracy@5
|
| 76 |
+
value: 0.9852
|
| 77 |
+
name: Cosine Accuracy@5
|
| 78 |
+
- type: cosine_precision@1
|
| 79 |
+
value: 0.9184
|
| 80 |
+
name: Cosine Precision@1
|
| 81 |
+
- type: cosine_precision@3
|
| 82 |
+
value: 0.3233333333333333
|
| 83 |
+
name: Cosine Precision@3
|
| 84 |
+
- type: cosine_precision@5
|
| 85 |
+
value: 0.19703999999999997
|
| 86 |
+
name: Cosine Precision@5
|
| 87 |
+
- type: cosine_recall@1
|
| 88 |
+
value: 0.9184
|
| 89 |
+
name: Cosine Recall@1
|
| 90 |
+
- type: cosine_recall@3
|
| 91 |
+
value: 0.97
|
| 92 |
+
name: Cosine Recall@3
|
| 93 |
+
- type: cosine_recall@5
|
| 94 |
+
value: 0.9852
|
| 95 |
+
name: Cosine Recall@5
|
| 96 |
+
- type: cosine_ndcg@10
|
| 97 |
+
value: 0.9585962869405669
|
| 98 |
+
name: Cosine Ndcg@10
|
| 99 |
+
- type: cosine_mrr@1
|
| 100 |
+
value: 0.9184
|
| 101 |
+
name: Cosine Mrr@1
|
| 102 |
+
- type: cosine_mrr@5
|
| 103 |
+
value: 0.9451033333333331
|
| 104 |
+
name: Cosine Mrr@5
|
| 105 |
+
- type: cosine_mrr@10
|
| 106 |
+
value: 0.9465657142857136
|
| 107 |
+
name: Cosine Mrr@10
|
| 108 |
+
- type: cosine_map@100
|
| 109 |
+
value: 0.9469212791024237
|
| 110 |
+
name: Cosine Map@100
|
| 111 |
---
|
| 112 |
|
| 113 |
# SentenceTransformer based on prajjwal1/bert-small
|
|
|
|
| 156 |
from sentence_transformers import SentenceTransformer
|
| 157 |
|
| 158 |
# Download from the 🤗 Hub
|
| 159 |
+
model = SentenceTransformer("redis/model-a-baseline")
|
| 160 |
# Run inference
|
| 161 |
sentences = [
|
| 162 |
+
"I've got an online coupon for Domino's pizza through the freecharge app. Is it necessary to use that coupon only when I order online?",
|
| 163 |
+
"I've got an online coupon for Domino's pizza through the freecharge app. Is it necessary to use that coupon only when I order online?",
|
| 164 |
+
'How do you use Dominos India WalkIn coupon code?',
|
| 165 |
]
|
| 166 |
embeddings = model.encode(sentences)
|
| 167 |
print(embeddings.shape)
|
|
|
|
| 170 |
# Get the similarity scores for the embeddings
|
| 171 |
similarities = model.similarity(embeddings, embeddings)
|
| 172 |
print(similarities)
|
| 173 |
+
# tensor([[1.0000, 1.0000, 0.3427],
|
| 174 |
+
# [1.0000, 1.0000, 0.3427],
|
| 175 |
+
# [0.3427, 0.3427, 1.0001]])
|
| 176 |
```
|
| 177 |
|
| 178 |
<!--
|
|
|
|
| 199 |
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 200 |
-->
|
| 201 |
|
| 202 |
+
## Evaluation
|
| 203 |
+
|
| 204 |
+
### Metrics
|
| 205 |
+
|
| 206 |
+
#### Information Retrieval
|
| 207 |
+
|
| 208 |
+
* Dataset: `val`
|
| 209 |
+
* Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
|
| 210 |
+
|
| 211 |
+
| Metric | Value |
|
| 212 |
+
|:-------------------|:-----------|
|
| 213 |
+
| cosine_accuracy@1 | 0.9184 |
|
| 214 |
+
| cosine_accuracy@3 | 0.97 |
|
| 215 |
+
| cosine_accuracy@5 | 0.9852 |
|
| 216 |
+
| cosine_precision@1 | 0.9184 |
|
| 217 |
+
| cosine_precision@3 | 0.3233 |
|
| 218 |
+
| cosine_precision@5 | 0.197 |
|
| 219 |
+
| cosine_recall@1 | 0.9184 |
|
| 220 |
+
| cosine_recall@3 | 0.97 |
|
| 221 |
+
| cosine_recall@5 | 0.9852 |
|
| 222 |
+
| **cosine_ndcg@10** | **0.9586** |
|
| 223 |
+
| cosine_mrr@1 | 0.9184 |
|
| 224 |
+
| cosine_mrr@5 | 0.9451 |
|
| 225 |
+
| cosine_mrr@10 | 0.9466 |
|
| 226 |
+
| cosine_map@100 | 0.9469 |
|
| 227 |
+
|
| 228 |
<!--
|
| 229 |
## Bias, Risks and Limitations
|
| 230 |
|
|
|
|
| 243 |
|
| 244 |
#### Unnamed Dataset
|
| 245 |
|
| 246 |
+
* Size: 90,000 training samples
|
| 247 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 248 |
+
* Approximate statistics based on the first 1000 samples:
|
| 249 |
+
| | anchor | positive | negative |
|
| 250 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
|
| 251 |
+
| type | string | string | string |
|
| 252 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 15.63 tokens</li><li>max: 75 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.77 tokens</li><li>max: 75 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 16.5 tokens</li><li>max: 67 tokens</li></ul> |
|
| 253 |
+
* Samples:
|
| 254 |
+
| anchor | positive | negative |
|
| 255 |
+
|:---------------------------------------------------------|:---------------------------------------------------------|:----------------------------------------------------------------------------|
|
| 256 |
+
| <code>How long did it take to develop Pokémon GO?</code> | <code>How long did it take to develop Pokémon GO?</code> | <code>Can I take more than one gym in Pokémon GO?</code> |
|
| 257 |
+
| <code>How bad is 6/18 eyesight?</code> | <code>How bad is 6/18 eyesight?</code> | <code>How was bad eyesight dealt with in ancient and medieval times?</code> |
|
| 258 |
+
| <code>How can I do learn speaking English easily?</code> | <code>How can I learn speaking English easily?</code> | <code>How do you hack an Instagram account?</code> |
|
| 259 |
+
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 260 |
+
```json
|
| 261 |
+
{
|
| 262 |
+
"scale": 20.0,
|
| 263 |
+
"similarity_fct": "cos_sim",
|
| 264 |
+
"gather_across_devices": false
|
| 265 |
+
}
|
| 266 |
+
```
|
| 267 |
+
|
| 268 |
+
### Evaluation Dataset
|
| 269 |
+
|
| 270 |
+
#### Unnamed Dataset
|
| 271 |
+
|
| 272 |
+
* Size: 5,000 evaluation samples
|
| 273 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 274 |
* Approximate statistics based on the first 1000 samples:
|
| 275 |
+
| | anchor | positive | negative |
|
| 276 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 277 |
+
| type | string | string | string |
|
| 278 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 15.65 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.69 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 16.77 tokens</li><li>max: 67 tokens</li></ul> |
|
| 279 |
* Samples:
|
| 280 |
+
| anchor | positive | negative |
|
| 281 |
+
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------|
|
| 282 |
+
| <code>What's it like working in IT for Goldman Sachs?</code> | <code>What's it like working in IT for Goldman Sachs?</code> | <code>What is the work done at Goldman Sachs?</code> |
|
| 283 |
+
| <code>Will time travel be possible in future?</code> | <code>Is time travel still theorized as being possible?</code> | <code>What are the things that would make you fail a Canadian immigration medical exam?</code> |
|
| 284 |
+
| <code>For creating a software based service for SME’s, we need to tie up with a bank. Need the best way to contact the right person in big banks like HDFC.</code> | <code>For creating a software based service for SME’s, we need to tie up with a bank. Need the best way to contact the right person in big banks like HDFC.</code> | <code>What does it feel like to be eaten alive by a Pachycephalosaurus?</code> |
|
| 285 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 286 |
```json
|
| 287 |
{
|
|
|
|
| 294 |
### Training Hyperparameters
|
| 295 |
#### Non-Default Hyperparameters
|
| 296 |
|
| 297 |
+
- `eval_strategy`: steps
|
| 298 |
+
- `per_device_train_batch_size`: 256
|
| 299 |
+
- `per_device_eval_batch_size`: 256
|
| 300 |
+
- `learning_rate`: 2e-05
|
| 301 |
+
- `weight_decay`: 0.001
|
| 302 |
+
- `max_steps`: 3510
|
| 303 |
+
- `warmup_ratio`: 0.1
|
| 304 |
- `fp16`: True
|
| 305 |
+
- `dataloader_drop_last`: True
|
| 306 |
+
- `dataloader_num_workers`: 1
|
| 307 |
+
- `dataloader_prefetch_factor`: 1
|
| 308 |
+
- `load_best_model_at_end`: True
|
| 309 |
+
- `optim`: adamw_torch
|
| 310 |
+
- `ddp_find_unused_parameters`: False
|
| 311 |
+
- `push_to_hub`: True
|
| 312 |
+
- `hub_model_id`: redis/model-a-baseline
|
| 313 |
+
- `eval_on_start`: True
|
| 314 |
|
| 315 |
#### All Hyperparameters
|
| 316 |
<details><summary>Click to expand</summary>
|
| 317 |
|
| 318 |
- `overwrite_output_dir`: False
|
| 319 |
- `do_predict`: False
|
| 320 |
+
- `eval_strategy`: steps
|
| 321 |
- `prediction_loss_only`: True
|
| 322 |
+
- `per_device_train_batch_size`: 256
|
| 323 |
+
- `per_device_eval_batch_size`: 256
|
| 324 |
- `per_gpu_train_batch_size`: None
|
| 325 |
- `per_gpu_eval_batch_size`: None
|
| 326 |
- `gradient_accumulation_steps`: 1
|
| 327 |
- `eval_accumulation_steps`: None
|
| 328 |
- `torch_empty_cache_steps`: None
|
| 329 |
+
- `learning_rate`: 2e-05
|
| 330 |
+
- `weight_decay`: 0.001
|
| 331 |
- `adam_beta1`: 0.9
|
| 332 |
- `adam_beta2`: 0.999
|
| 333 |
- `adam_epsilon`: 1e-08
|
| 334 |
+
- `max_grad_norm`: 1.0
|
| 335 |
+
- `num_train_epochs`: 3.0
|
| 336 |
+
- `max_steps`: 3510
|
| 337 |
- `lr_scheduler_type`: linear
|
| 338 |
- `lr_scheduler_kwargs`: {}
|
| 339 |
+
- `warmup_ratio`: 0.1
|
| 340 |
- `warmup_steps`: 0
|
| 341 |
- `log_level`: passive
|
| 342 |
- `log_level_replica`: warning
|
|
|
|
| 364 |
- `tpu_num_cores`: None
|
| 365 |
- `tpu_metrics_debug`: False
|
| 366 |
- `debug`: []
|
| 367 |
+
- `dataloader_drop_last`: True
|
| 368 |
+
- `dataloader_num_workers`: 1
|
| 369 |
+
- `dataloader_prefetch_factor`: 1
|
| 370 |
- `past_index`: -1
|
| 371 |
- `disable_tqdm`: False
|
| 372 |
- `remove_unused_columns`: True
|
| 373 |
- `label_names`: None
|
| 374 |
+
- `load_best_model_at_end`: True
|
| 375 |
- `ignore_data_skip`: False
|
| 376 |
- `fsdp`: []
|
| 377 |
- `fsdp_min_num_params`: 0
|
|
|
|
| 381 |
- `parallelism_config`: None
|
| 382 |
- `deepspeed`: None
|
| 383 |
- `label_smoothing_factor`: 0.0
|
| 384 |
+
- `optim`: adamw_torch
|
| 385 |
- `optim_args`: None
|
| 386 |
- `adafactor`: False
|
| 387 |
- `group_by_length`: False
|
| 388 |
- `length_column_name`: length
|
| 389 |
- `project`: huggingface
|
| 390 |
- `trackio_space_id`: trackio
|
| 391 |
+
- `ddp_find_unused_parameters`: False
|
| 392 |
- `ddp_bucket_cap_mb`: None
|
| 393 |
- `ddp_broadcast_buffers`: False
|
| 394 |
- `dataloader_pin_memory`: True
|
| 395 |
- `dataloader_persistent_workers`: False
|
| 396 |
- `skip_memory_metrics`: True
|
| 397 |
- `use_legacy_prediction_loop`: False
|
| 398 |
+
- `push_to_hub`: True
|
| 399 |
- `resume_from_checkpoint`: None
|
| 400 |
+
- `hub_model_id`: redis/model-a-baseline
|
| 401 |
- `hub_strategy`: every_save
|
| 402 |
- `hub_private_repo`: None
|
| 403 |
- `hub_always_push`: False
|
|
|
|
| 424 |
- `neftune_noise_alpha`: None
|
| 425 |
- `optim_target_modules`: None
|
| 426 |
- `batch_eval_metrics`: False
|
| 427 |
+
- `eval_on_start`: True
|
| 428 |
- `use_liger_kernel`: False
|
| 429 |
- `liger_kernel_config`: None
|
| 430 |
- `eval_use_gather_object`: False
|
| 431 |
- `average_tokens_across_devices`: True
|
| 432 |
- `prompts`: None
|
| 433 |
- `batch_sampler`: batch_sampler
|
| 434 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 435 |
- `router_mapping`: {}
|
| 436 |
- `learning_rate_mapping`: {}
|
| 437 |
|
| 438 |
</details>
|
| 439 |
|
| 440 |
### Training Logs
|
| 441 |
+
| Epoch | Step | Training Loss | Validation Loss | val_cosine_ndcg@10 |
|
| 442 |
+
|:------:|:----:|:-------------:|:---------------:|:------------------:|
|
| 443 |
+
| 0 | 0 | - | 1.6082 | 0.8775 |
|
| 444 |
+
| 0.2849 | 100 | 1.2224 | 0.1085 | 0.9385 |
|
| 445 |
+
| 0.5698 | 200 | 0.181 | 0.0711 | 0.9484 |
|
| 446 |
+
| 0.8547 | 300 | 0.1372 | 0.0593 | 0.9521 |
|
| 447 |
+
| 1.1396 | 400 | 0.1161 | 0.0548 | 0.9524 |
|
| 448 |
+
| 1.4245 | 500 | 0.1005 | 0.0516 | 0.9535 |
|
| 449 |
+
| 1.7094 | 600 | 0.1023 | 0.0491 | 0.9545 |
|
| 450 |
+
| 1.9943 | 700 | 0.0885 | 0.0469 | 0.9556 |
|
| 451 |
+
| 2.2792 | 800 | 0.0836 | 0.0453 | 0.9552 |
|
| 452 |
+
| 2.5641 | 900 | 0.0782 | 0.0439 | 0.9562 |
|
| 453 |
+
| 2.8490 | 1000 | 0.0745 | 0.0436 | 0.9572 |
|
| 454 |
+
| 3.1339 | 1100 | 0.0732 | 0.0421 | 0.9570 |
|
| 455 |
+
| 3.4188 | 1200 | 0.0688 | 0.0417 | 0.9577 |
|
| 456 |
+
| 3.7037 | 1300 | 0.0687 | 0.0411 | 0.9576 |
|
| 457 |
+
| 3.9886 | 1400 | 0.07 | 0.0412 | 0.9573 |
|
| 458 |
+
| 4.2735 | 1500 | 0.0635 | 0.0402 | 0.9578 |
|
| 459 |
+
| 4.5584 | 1600 | 0.0638 | 0.0397 | 0.9575 |
|
| 460 |
+
| 4.8433 | 1700 | 0.0613 | 0.0394 | 0.9579 |
|
| 461 |
+
| 5.1282 | 1800 | 0.0625 | 0.0388 | 0.9584 |
|
| 462 |
+
| 5.4131 | 1900 | 0.0585 | 0.0382 | 0.9586 |
|
| 463 |
+
| 5.6980 | 2000 | 0.0594 | 0.0379 | 0.9585 |
|
| 464 |
+
| 5.9829 | 2100 | 0.0566 | 0.0377 | 0.9584 |
|
| 465 |
+
| 6.2678 | 2200 | 0.0545 | 0.0376 | 0.9583 |
|
| 466 |
+
| 6.5527 | 2300 | 0.0535 | 0.0376 | 0.9580 |
|
| 467 |
+
| 6.8376 | 2400 | 0.0573 | 0.0373 | 0.9584 |
|
| 468 |
+
| 7.1225 | 2500 | 0.0528 | 0.0373 | 0.9583 |
|
| 469 |
+
| 7.4074 | 2600 | 0.053 | 0.0371 | 0.9587 |
|
| 470 |
+
| 7.6923 | 2700 | 0.0528 | 0.0368 | 0.9587 |
|
| 471 |
+
| 7.9772 | 2800 | 0.0531 | 0.0366 | 0.9585 |
|
| 472 |
+
| 8.2621 | 2900 | 0.0532 | 0.0365 | 0.9586 |
|
| 473 |
+
| 8.5470 | 3000 | 0.0516 | 0.0365 | 0.9584 |
|
| 474 |
+
| 8.8319 | 3100 | 0.0509 | 0.0364 | 0.9585 |
|
| 475 |
+
| 9.1168 | 3200 | 0.0544 | 0.0363 | 0.9587 |
|
| 476 |
+
| 9.4017 | 3300 | 0.0505 | 0.0364 | 0.9585 |
|
| 477 |
+
| 9.6866 | 3400 | 0.052 | 0.0363 | 0.9587 |
|
| 478 |
+
| 9.9715 | 3500 | 0.0536 | 0.0362 | 0.9586 |
|
| 479 |
|
| 480 |
|
| 481 |
### Framework Versions
|