Training in progress, step 1053
Browse files- README.md +66 -82
- eval/Information-Retrieval_evaluation_val_results.csv +4 -0
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -9,36 +9,32 @@ tags:
|
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
base_model: prajjwal1/bert-small
|
| 11 |
widget:
|
| 12 |
-
- source_sentence: How
|
| 13 |
-
country.?
|
| 14 |
sentences:
|
| 15 |
-
- How
|
| 16 |
-
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
- source_sentence: Why do we need Java programming?
|
| 20 |
sentences:
|
| 21 |
-
-
|
| 22 |
-
- Why are
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
- source_sentence: How can I get a job in Dubai if I am living in U.S?
|
| 27 |
sentences:
|
| 28 |
-
-
|
| 29 |
-
|
| 30 |
-
-
|
| 31 |
-
|
| 32 |
-
- source_sentence: What is the myth behind Mona Lisa smile?
|
| 33 |
sentences:
|
| 34 |
-
-
|
| 35 |
-
- How
|
| 36 |
-
-
|
| 37 |
-
- source_sentence:
|
| 38 |
sentences:
|
| 39 |
-
-
|
| 40 |
-
-
|
| 41 |
-
-
|
| 42 |
pipeline_tag: sentence-similarity
|
| 43 |
library_name: sentence-transformers
|
| 44 |
---
|
|
@@ -89,12 +85,12 @@ Then you can load this model and run inference.
|
|
| 89 |
from sentence_transformers import SentenceTransformer
|
| 90 |
|
| 91 |
# Download from the 🤗 Hub
|
| 92 |
-
model = SentenceTransformer("
|
| 93 |
# Run inference
|
| 94 |
sentences = [
|
| 95 |
-
'
|
| 96 |
-
'
|
| 97 |
-
'
|
| 98 |
]
|
| 99 |
embeddings = model.encode(sentences)
|
| 100 |
print(embeddings.shape)
|
|
@@ -103,9 +99,9 @@ print(embeddings.shape)
|
|
| 103 |
# Get the similarity scores for the embeddings
|
| 104 |
similarities = model.similarity(embeddings, embeddings)
|
| 105 |
print(similarities)
|
| 106 |
-
# tensor([[1.0000,
|
| 107 |
-
# [
|
| 108 |
-
# [0.
|
| 109 |
```
|
| 110 |
|
| 111 |
<!--
|
|
@@ -151,18 +147,18 @@ You can finetune this model on your own dataset.
|
|
| 151 |
#### Unnamed Dataset
|
| 152 |
|
| 153 |
* Size: 100,000 training samples
|
| 154 |
-
* Columns: <code>
|
| 155 |
* Approximate statistics based on the first 1000 samples:
|
| 156 |
-
| |
|
| 157 |
-
|
| 158 |
-
| type | string | string
|
| 159 |
-
| details | <ul><li>min:
|
| 160 |
* Samples:
|
| 161 |
-
|
|
| 162 |
-
|
| 163 |
-
| <code>
|
| 164 |
-
| <code>
|
| 165 |
-
| <code>
|
| 166 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 167 |
```json
|
| 168 |
{
|
|
@@ -175,20 +171,10 @@ You can finetune this model on your own dataset.
|
|
| 175 |
### Training Hyperparameters
|
| 176 |
#### Non-Default Hyperparameters
|
| 177 |
|
| 178 |
-
- `per_device_train_batch_size`:
|
| 179 |
-
- `per_device_eval_batch_size`:
|
| 180 |
-
- `learning_rate`: 2e-05
|
| 181 |
-
- `weight_decay`: 0.001
|
| 182 |
-
- `max_steps`: 1170
|
| 183 |
-
- `warmup_ratio`: 0.1
|
| 184 |
- `fp16`: True
|
| 185 |
-
- `
|
| 186 |
-
- `dataloader_num_workers`: 1
|
| 187 |
-
- `dataloader_prefetch_factor`: 1
|
| 188 |
-
- `optim`: adamw_torch
|
| 189 |
-
- `ddp_find_unused_parameters`: False
|
| 190 |
-
- `push_to_hub`: True
|
| 191 |
-
- `hub_model_id`: redis/model-a-baseline
|
| 192 |
|
| 193 |
#### All Hyperparameters
|
| 194 |
<details><summary>Click to expand</summary>
|
|
@@ -197,24 +183,24 @@ You can finetune this model on your own dataset.
|
|
| 197 |
- `do_predict`: False
|
| 198 |
- `eval_strategy`: no
|
| 199 |
- `prediction_loss_only`: True
|
| 200 |
-
- `per_device_train_batch_size`:
|
| 201 |
-
- `per_device_eval_batch_size`:
|
| 202 |
- `per_gpu_train_batch_size`: None
|
| 203 |
- `per_gpu_eval_batch_size`: None
|
| 204 |
- `gradient_accumulation_steps`: 1
|
| 205 |
- `eval_accumulation_steps`: None
|
| 206 |
- `torch_empty_cache_steps`: None
|
| 207 |
-
- `learning_rate`:
|
| 208 |
-
- `weight_decay`: 0.
|
| 209 |
- `adam_beta1`: 0.9
|
| 210 |
- `adam_beta2`: 0.999
|
| 211 |
- `adam_epsilon`: 1e-08
|
| 212 |
-
- `max_grad_norm`: 1
|
| 213 |
-
- `num_train_epochs`: 3
|
| 214 |
-
- `max_steps`:
|
| 215 |
- `lr_scheduler_type`: linear
|
| 216 |
- `lr_scheduler_kwargs`: {}
|
| 217 |
-
- `warmup_ratio`: 0.
|
| 218 |
- `warmup_steps`: 0
|
| 219 |
- `log_level`: passive
|
| 220 |
- `log_level_replica`: warning
|
|
@@ -242,9 +228,9 @@ You can finetune this model on your own dataset.
|
|
| 242 |
- `tpu_num_cores`: None
|
| 243 |
- `tpu_metrics_debug`: False
|
| 244 |
- `debug`: []
|
| 245 |
-
- `dataloader_drop_last`:
|
| 246 |
-
- `dataloader_num_workers`:
|
| 247 |
-
- `dataloader_prefetch_factor`:
|
| 248 |
- `past_index`: -1
|
| 249 |
- `disable_tqdm`: False
|
| 250 |
- `remove_unused_columns`: True
|
|
@@ -259,23 +245,23 @@ You can finetune this model on your own dataset.
|
|
| 259 |
- `parallelism_config`: None
|
| 260 |
- `deepspeed`: None
|
| 261 |
- `label_smoothing_factor`: 0.0
|
| 262 |
-
- `optim`:
|
| 263 |
- `optim_args`: None
|
| 264 |
- `adafactor`: False
|
| 265 |
- `group_by_length`: False
|
| 266 |
- `length_column_name`: length
|
| 267 |
- `project`: huggingface
|
| 268 |
- `trackio_space_id`: trackio
|
| 269 |
-
- `ddp_find_unused_parameters`:
|
| 270 |
- `ddp_bucket_cap_mb`: None
|
| 271 |
- `ddp_broadcast_buffers`: False
|
| 272 |
- `dataloader_pin_memory`: True
|
| 273 |
- `dataloader_persistent_workers`: False
|
| 274 |
- `skip_memory_metrics`: True
|
| 275 |
- `use_legacy_prediction_loop`: False
|
| 276 |
-
- `push_to_hub`:
|
| 277 |
- `resume_from_checkpoint`: None
|
| 278 |
-
- `hub_model_id`:
|
| 279 |
- `hub_strategy`: every_save
|
| 280 |
- `hub_private_repo`: None
|
| 281 |
- `hub_always_push`: False
|
|
@@ -309,7 +295,7 @@ You can finetune this model on your own dataset.
|
|
| 309 |
- `average_tokens_across_devices`: True
|
| 310 |
- `prompts`: None
|
| 311 |
- `batch_sampler`: batch_sampler
|
| 312 |
-
- `multi_dataset_batch_sampler`:
|
| 313 |
- `router_mapping`: {}
|
| 314 |
- `learning_rate_mapping`: {}
|
| 315 |
|
|
@@ -318,17 +304,15 @@ You can finetune this model on your own dataset.
|
|
| 318 |
### Training Logs
|
| 319 |
| Epoch | Step | Training Loss |
|
| 320 |
|:------:|:----:|:-------------:|
|
| 321 |
-
| 0.
|
| 322 |
-
| 0.
|
| 323 |
-
| 0.
|
| 324 |
-
| 1.
|
| 325 |
-
| 1.
|
| 326 |
-
| 1.
|
| 327 |
-
|
|
| 328 |
-
| 2.
|
| 329 |
-
| 2.
|
| 330 |
-
| 2.5641 | 1000 | 0.081 |
|
| 331 |
-
| 2.8205 | 1100 | 0.0803 |
|
| 332 |
|
| 333 |
|
| 334 |
### Framework Versions
|
|
|
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
base_model: prajjwal1/bert-small
|
| 11 |
widget:
|
| 12 |
+
- source_sentence: How do I polish my English skills?
|
|
|
|
| 13 |
sentences:
|
| 14 |
+
- How can we polish English skills?
|
| 15 |
+
- Why should I move to Israel as a Jew?
|
| 16 |
+
- What are vitamins responsible for?
|
| 17 |
+
- source_sentence: Can I use the Kozuka Gothic Pro font as a font-face on my web site?
|
|
|
|
| 18 |
sentences:
|
| 19 |
+
- Can I use the Kozuka Gothic Pro font as a font-face on my web site?
|
| 20 |
+
- Why are Google, Facebook, YouTube and other social networking sites banned in
|
| 21 |
+
China?
|
| 22 |
+
- What font is used in Bloomberg Terminal?
|
| 23 |
+
- source_sentence: Is Quora the best Q&A site?
|
|
|
|
| 24 |
sentences:
|
| 25 |
+
- What was the best Quora question ever?
|
| 26 |
+
- Is Quora the best inquiry site?
|
| 27 |
+
- Where do I buy Oway hair products online?
|
| 28 |
+
- source_sentence: How can I customize my walking speed on Google Maps?
|
|
|
|
| 29 |
sentences:
|
| 30 |
+
- How do I bring back Google maps icon in my home screen?
|
| 31 |
+
- How many pages are there in all the Harry Potter books combined?
|
| 32 |
+
- How can I customize my walking speed on Google Maps?
|
| 33 |
+
- source_sentence: DId something exist before the Big Bang?
|
| 34 |
sentences:
|
| 35 |
+
- How can I improve my memory problem?
|
| 36 |
+
- Where can I buy Fairy Tail Manga?
|
| 37 |
+
- Is there a scientific name for what existed before the Big Bang?
|
| 38 |
pipeline_tag: sentence-similarity
|
| 39 |
library_name: sentence-transformers
|
| 40 |
---
|
|
|
|
| 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 |
+
'DId something exist before the Big Bang?',
|
| 92 |
+
'Is there a scientific name for what existed before the Big Bang?',
|
| 93 |
+
'Where can I buy Fairy Tail Manga?',
|
| 94 |
]
|
| 95 |
embeddings = model.encode(sentences)
|
| 96 |
print(embeddings.shape)
|
|
|
|
| 99 |
# Get the similarity scores for the embeddings
|
| 100 |
similarities = model.similarity(embeddings, embeddings)
|
| 101 |
print(similarities)
|
| 102 |
+
# tensor([[ 1.0000, 0.7596, -0.0398],
|
| 103 |
+
# [ 0.7596, 1.0000, -0.0308],
|
| 104 |
+
# [-0.0398, -0.0308, 1.0000]])
|
| 105 |
```
|
| 106 |
|
| 107 |
<!--
|
|
|
|
| 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: 3 tokens</li><li>mean: 15.53 tokens</li><li>max: 59 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 15.5 tokens</li><li>max: 59 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 16.87 tokens</li><li>max: 128 tokens</li></ul> |
|
| 156 |
* Samples:
|
| 157 |
+
| sentence_0 | sentence_1 | sentence_2 |
|
| 158 |
+
|:----------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:-----------------------------------------------------------------------|
|
| 159 |
+
| <code>Is there visitor entry facility in Jaipur airport. How much is the ticket?</code> | <code>Is there visitor entry facility in Jaipur airport. How much is the ticket?</code> | <code>How much is the airport tax in bogota?</code> |
|
| 160 |
+
| <code>Which concept is more important: good planning or hard work?</code> | <code>Which concept is more important: good planning or hard work?</code> | <code>What is important in life: luck or hard work?</code> |
|
| 161 |
+
| <code>What is the most efficient way to make money?</code> | <code>How can I make my money make money?</code> | <code>What can one learn about Quantum Mechanics in 10 minutes?</code> |
|
| 162 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 163 |
```json
|
| 164 |
{
|
|
|
|
| 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>
|
|
|
|
| 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
|
|
|
|
| 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
|
|
|
|
| 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 |
|
|
|
|
| 304 |
### Training Logs
|
| 305 |
| Epoch | Step | Training Loss |
|
| 306 |
|:------:|:----:|:-------------:|
|
| 307 |
+
| 0.3199 | 500 | 0.2284 |
|
| 308 |
+
| 0.6398 | 1000 | 0.0571 |
|
| 309 |
+
| 0.9597 | 1500 | 0.0486 |
|
| 310 |
+
| 1.2796 | 2000 | 0.0378 |
|
| 311 |
+
| 1.5995 | 2500 | 0.0367 |
|
| 312 |
+
| 1.9194 | 3000 | 0.0338 |
|
| 313 |
+
| 2.2393 | 3500 | 0.0327 |
|
| 314 |
+
| 2.5592 | 4000 | 0.0285 |
|
| 315 |
+
| 2.8791 | 4500 | 0.0285 |
|
|
|
|
|
|
|
| 316 |
|
| 317 |
|
| 318 |
### Framework Versions
|
eval/Information-Retrieval_evaluation_val_results.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
epoch,steps,cosine-Accuracy@1,cosine-Accuracy@3,cosine-Accuracy@5,cosine-Precision@1,cosine-Recall@1,cosine-Precision@3,cosine-Recall@3,cosine-Precision@5,cosine-Recall@5,cosine-MRR@1,cosine-MRR@5,cosine-MRR@10,cosine-NDCG@10,cosine-MAP@100
|
| 2 |
+
0,0,0.8306,0.8812,0.903,0.8306,0.8306,0.29373333333333335,0.8812,0.1806,0.903,0.8306,0.8580933333333336,0.8615153968253979,0.8775189066928426,0.8635987322727473
|
| 3 |
+
1.4245014245014245,500,0.915,0.9666,0.9802,0.915,0.915,0.3222,0.9666,0.19603999999999996,0.9802,0.915,0.9408566666666663,0.9426431746031747,0.9549755895413731,0.9431098688909989
|
| 4 |
+
2.849002849002849,1000,0.9156,0.9674,0.9828,0.9156,0.9156,0.3224666666666667,0.9674,0.19655999999999996,0.9828,0.9156,0.9418899999999998,0.9433757142857143,0.9557389379924726,0.9437967311048533
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 114011616
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b986ac552b8fb651ee67e22350469cef660aab73bf414354e3ee5dde34f7ecd3
|
| 3 |
size 114011616
|
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:0e262ca922da3c62d4668d20589d461720a24a67b410afffa0ff380d6ccee45d
|
| 3 |
size 6161
|