Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +10 -0
- README.md +567 -0
- config.json +27 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +20 -0
- optimizer.pt +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +51 -0
- tokenizer.json +3 -0
- tokenizer_config.json +56 -0
- trainer_state.json +285 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"word_embedding_dimension": 768,
|
| 3 |
+
"pooling_mode_cls_token": false,
|
| 4 |
+
"pooling_mode_mean_tokens": true,
|
| 5 |
+
"pooling_mode_max_tokens": false,
|
| 6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
| 7 |
+
"pooling_mode_weightedmean_tokens": false,
|
| 8 |
+
"pooling_mode_lasttoken": false,
|
| 9 |
+
"include_prompt": true
|
| 10 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,567 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:98660
|
| 8 |
+
- loss:MultipleNegativesRankingLoss
|
| 9 |
+
base_model: intfloat/multilingual-e5-base
|
| 10 |
+
widget:
|
| 11 |
+
- source_sentence: 'Instruct: Given a dialogue context, retrieve relevant followup
|
| 12 |
+
phrase that align with the context
|
| 13 |
+
|
| 14 |
+
Dialogue Context: bot_0: Do you like gaming. I am a big fan.
|
| 15 |
+
|
| 16 |
+
bot_1: My kids play games but I don''t play much. I love to watch movies!.
|
| 17 |
+
|
| 18 |
+
bot_0: Oh really what is their favorite game?
|
| 19 |
+
|
| 20 |
+
bot_1: I think it''s called fortnite. I sometimes watch while cooking healthy
|
| 21 |
+
meals. What''s yours?
|
| 22 |
+
|
| 23 |
+
bot_0: The best game I like to play is alistar.
|
| 24 |
+
|
| 25 |
+
bot_1: Never heard of it. Old timer here! Just turned 30. What other things do
|
| 26 |
+
you like?'
|
| 27 |
+
sentences:
|
| 28 |
+
- 'Followup phrase: I usually only eat them when my kids want them, it''s not something
|
| 29 |
+
that I''ll make for myself. What''s your favorite dip for chicken nuggets?'
|
| 30 |
+
- 'Followup phrase: My big doberman lays on me all the time and ripped mine off'
|
| 31 |
+
- 'Followup phrase: Yeah, he also got me into cars.'
|
| 32 |
+
- source_sentence: 'Instruct: Given a dialogue context, retrieve relevant followup
|
| 33 |
+
phrase that align with the context
|
| 34 |
+
|
| 35 |
+
Dialogue Context: bot_0: Just sitting down to dinner after work. Steak!
|
| 36 |
+
|
| 37 |
+
bot_1: Listening to my beethoven favorite, moonlight sonata..
|
| 38 |
+
|
| 39 |
+
bot_0: Nice! I listen to music at work a lot. What do you do?
|
| 40 |
+
|
| 41 |
+
bot_1: I practice shooting with both of my handgunds and watch british tv. You?
|
| 42 |
+
|
| 43 |
+
bot_0: Sales. The playlist of black sabbath usually pumps me up to sell! Lol.
|
| 44 |
+
|
| 45 |
+
bot_1: My grandma from italy came to visit, and iron man is her favorite song!
|
| 46 |
+
|
| 47 |
+
bot_0: Your grandma rocks! Love italy, hope to visit but need to pay off some
|
| 48 |
+
debt first.
|
| 49 |
+
|
| 50 |
+
bot_1: I understand that. I want to travel in general but I can''t at the moment..
|
| 51 |
+
|
| 52 |
+
bot_0: Hopefully you will! I’m so focused on my career, travel is a low priority
|
| 53 |
+
at this point.
|
| 54 |
+
|
| 55 |
+
bot_1: Same for me! I barely paid off my volkswagen beetle.
|
| 56 |
+
|
| 57 |
+
bot_0: Love that car. What color?'
|
| 58 |
+
sentences:
|
| 59 |
+
- 'Followup phrase: I hope so. I just try to keep positive, eat healthy and drink
|
| 60 |
+
lots of water.'
|
| 61 |
+
- 'Followup phrase: I just made a seafood chowder lately! It tastes great. What''s
|
| 62 |
+
your favourite dish to cook at your restuarant?'
|
| 63 |
+
- 'Followup phrase: Do you speak any other languages? I enjoy learning them.'
|
| 64 |
+
- source_sentence: 'Instruct: Given a dialogue context, retrieve relevant followup
|
| 65 |
+
phrase that align with the context
|
| 66 |
+
|
| 67 |
+
Dialogue Context: bot_0: Hello how are you doing today?
|
| 68 |
+
|
| 69 |
+
bot_1: Very well thank you. How are you?
|
| 70 |
+
|
| 71 |
+
bot_0: Going to head out soon to play some baseball. I really like the game.'
|
| 72 |
+
sentences:
|
| 73 |
+
- 'Followup phrase: It teaches discipline too. I''m an er nurse so I don''t see
|
| 74 |
+
my son that much'
|
| 75 |
+
- 'Followup phrase: I take a boat to work! What about you?'
|
| 76 |
+
- 'Followup phrase: Yes 3 but they live out of state.. You?'
|
| 77 |
+
- source_sentence: 'Instruct: Given a dialogue context, retrieve relevant followup
|
| 78 |
+
phrase that align with the context
|
| 79 |
+
|
| 80 |
+
Dialogue Context: bot_0: Hello, I am in college for marketing. What do you do?
|
| 81 |
+
|
| 82 |
+
bot_1: Hi. Right now an entrepreneur, freelance. I was an accountant before.
|
| 83 |
+
|
| 84 |
+
bot_0: Cool, did you not like being an accountant?
|
| 85 |
+
|
| 86 |
+
bot_1: Not really, I am ready for a new life, new career. Do you have a job?
|
| 87 |
+
|
| 88 |
+
bot_0: No, but I am hoping to design ads one day!'
|
| 89 |
+
sentences:
|
| 90 |
+
- 'Followup phrase: Nice. Any pets? I have a dog, he is my best friend..'
|
| 91 |
+
- 'Followup phrase: Yes! I like to have a little "me" time in the morning to play
|
| 92 |
+
games before I have to get up for work. It''s so relaxing. When do you usually
|
| 93 |
+
play games?'
|
| 94 |
+
- 'Followup phrase: I am a full time student but I work construction in the summer
|
| 95 |
+
months for'
|
| 96 |
+
- source_sentence: 'Instruct: Given a dialogue context, retrieve relevant followup
|
| 97 |
+
phrase that align with the context
|
| 98 |
+
|
| 99 |
+
Dialogue Context: bot_0: Hello, I just got back from class. What are you doing?
|
| 100 |
+
|
| 101 |
+
bot_1: I just got done working out at the gym.
|
| 102 |
+
|
| 103 |
+
bot_0: Cool, what is your favorite exercise?
|
| 104 |
+
|
| 105 |
+
bot_1: Do you have your own vehicle?
|
| 106 |
+
|
| 107 |
+
bot_0: No, I am a student. I walk everywhere or I take the bus.
|
| 108 |
+
|
| 109 |
+
bot_1: Oh wow, that must get tiring. Do you have a significant other?
|
| 110 |
+
|
| 111 |
+
bot_0: It''s not, I even have energy to play baseball. I do not, I am single.
|
| 112 |
+
|
| 113 |
+
bot_1: Thats awesome that you have the energy. My significant other is a lawyer.
|
| 114 |
+
We''re married..
|
| 115 |
+
|
| 116 |
+
bot_0: Awe, I hope to have a job designing ads one day.
|
| 117 |
+
|
| 118 |
+
bot_1: That sounds neat. Are you a vegetarian?
|
| 119 |
+
|
| 120 |
+
bot_0: No, but have thought about it!'
|
| 121 |
+
sentences:
|
| 122 |
+
- 'Followup phrase: I do not. My husband wants a boy, he is in the army.'
|
| 123 |
+
- 'Followup phrase: I am amazing, except I found out I am allergic to fish!'
|
| 124 |
+
- 'Followup phrase: Yeah they can be, single with no kids, which is great!! Living
|
| 125 |
+
off the land'
|
| 126 |
+
pipeline_tag: sentence-similarity
|
| 127 |
+
library_name: sentence-transformers
|
| 128 |
+
metrics:
|
| 129 |
+
- cosine_accuracy
|
| 130 |
+
- cosine_accuracy_threshold
|
| 131 |
+
- cosine_f1
|
| 132 |
+
- cosine_f1_threshold
|
| 133 |
+
- cosine_precision
|
| 134 |
+
- cosine_recall
|
| 135 |
+
- cosine_ap
|
| 136 |
+
- cosine_mcc
|
| 137 |
+
model-index:
|
| 138 |
+
- name: SentenceTransformer based on intfloat/multilingual-e5-base
|
| 139 |
+
results:
|
| 140 |
+
- task:
|
| 141 |
+
type: binary-classification
|
| 142 |
+
name: Binary Classification
|
| 143 |
+
dataset:
|
| 144 |
+
name: Unknown
|
| 145 |
+
type: unknown
|
| 146 |
+
metrics:
|
| 147 |
+
- type: cosine_accuracy
|
| 148 |
+
value: 0.9324928469241774
|
| 149 |
+
name: Cosine Accuracy
|
| 150 |
+
- type: cosine_accuracy_threshold
|
| 151 |
+
value: 0.6963315010070801
|
| 152 |
+
name: Cosine Accuracy Threshold
|
| 153 |
+
- type: cosine_f1
|
| 154 |
+
value: 0.7932711614832003
|
| 155 |
+
name: Cosine F1
|
| 156 |
+
- type: cosine_f1_threshold
|
| 157 |
+
value: 0.6896486282348633
|
| 158 |
+
name: Cosine F1 Threshold
|
| 159 |
+
- type: cosine_precision
|
| 160 |
+
value: 0.791752026365013
|
| 161 |
+
name: Cosine Precision
|
| 162 |
+
- type: cosine_recall
|
| 163 |
+
value: 0.7947961373390557
|
| 164 |
+
name: Cosine Recall
|
| 165 |
+
- type: cosine_ap
|
| 166 |
+
value: 0.8751572160892609
|
| 167 |
+
name: Cosine Ap
|
| 168 |
+
- type: cosine_mcc
|
| 169 |
+
value: 0.7518321554060445
|
| 170 |
+
name: Cosine Mcc
|
| 171 |
+
---
|
| 172 |
+
|
| 173 |
+
# SentenceTransformer based on intfloat/multilingual-e5-base
|
| 174 |
+
|
| 175 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
| 176 |
+
|
| 177 |
+
## Model Details
|
| 178 |
+
|
| 179 |
+
### Model Description
|
| 180 |
+
- **Model Type:** Sentence Transformer
|
| 181 |
+
- **Base model:** [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) <!-- at revision 835193815a3936a24a0ee7dc9e3d48c1fbb19c55 -->
|
| 182 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 183 |
+
- **Output Dimensionality:** 768 dimensions
|
| 184 |
+
- **Similarity Function:** Cosine Similarity
|
| 185 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 186 |
+
<!-- - **Language:** Unknown -->
|
| 187 |
+
<!-- - **License:** Unknown -->
|
| 188 |
+
|
| 189 |
+
### Model Sources
|
| 190 |
+
|
| 191 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 192 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 193 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 194 |
+
|
| 195 |
+
### Full Model Architecture
|
| 196 |
+
|
| 197 |
+
```
|
| 198 |
+
SentenceTransformer(
|
| 199 |
+
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
|
| 200 |
+
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
| 201 |
+
(2): Normalize()
|
| 202 |
+
)
|
| 203 |
+
```
|
| 204 |
+
|
| 205 |
+
## Usage
|
| 206 |
+
|
| 207 |
+
### Direct Usage (Sentence Transformers)
|
| 208 |
+
|
| 209 |
+
First install the Sentence Transformers library:
|
| 210 |
+
|
| 211 |
+
```bash
|
| 212 |
+
pip install -U sentence-transformers
|
| 213 |
+
```
|
| 214 |
+
|
| 215 |
+
Then you can load this model and run inference.
|
| 216 |
+
```python
|
| 217 |
+
from sentence_transformers import SentenceTransformer
|
| 218 |
+
|
| 219 |
+
# Download from the 🤗 Hub
|
| 220 |
+
model = SentenceTransformer("sentence_transformers_model_id")
|
| 221 |
+
# Run inference
|
| 222 |
+
sentences = [
|
| 223 |
+
"Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context\nDialogue Context: bot_0: Hello, I just got back from class. What are you doing?\nbot_1: I just got done working out at the gym.\nbot_0: Cool, what is your favorite exercise?\nbot_1: Do you have your own vehicle?\nbot_0: No, I am a student. I walk everywhere or I take the bus.\nbot_1: Oh wow, that must get tiring. Do you have a significant other?\nbot_0: It's not, I even have energy to play baseball. I do not, I am single.\nbot_1: Thats awesome that you have the energy. My significant other is a lawyer. We're married..\nbot_0: Awe, I hope to have a job designing ads one day.\nbot_1: That sounds neat. Are you a vegetarian?\nbot_0: No, but have thought about it!",
|
| 224 |
+
'Followup phrase: I do not. My husband wants a boy, he is in the army.',
|
| 225 |
+
'Followup phrase: I am amazing, except I found out I am allergic to fish!',
|
| 226 |
+
]
|
| 227 |
+
embeddings = model.encode(sentences)
|
| 228 |
+
print(embeddings.shape)
|
| 229 |
+
# [3, 768]
|
| 230 |
+
|
| 231 |
+
# Get the similarity scores for the embeddings
|
| 232 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 233 |
+
print(similarities.shape)
|
| 234 |
+
# [3, 3]
|
| 235 |
+
```
|
| 236 |
+
|
| 237 |
+
<!--
|
| 238 |
+
### Direct Usage (Transformers)
|
| 239 |
+
|
| 240 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 241 |
+
|
| 242 |
+
</details>
|
| 243 |
+
-->
|
| 244 |
+
|
| 245 |
+
<!--
|
| 246 |
+
### Downstream Usage (Sentence Transformers)
|
| 247 |
+
|
| 248 |
+
You can finetune this model on your own dataset.
|
| 249 |
+
|
| 250 |
+
<details><summary>Click to expand</summary>
|
| 251 |
+
|
| 252 |
+
</details>
|
| 253 |
+
-->
|
| 254 |
+
|
| 255 |
+
<!--
|
| 256 |
+
### Out-of-Scope Use
|
| 257 |
+
|
| 258 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 259 |
+
-->
|
| 260 |
+
|
| 261 |
+
## Evaluation
|
| 262 |
+
|
| 263 |
+
### Metrics
|
| 264 |
+
|
| 265 |
+
#### Binary Classification
|
| 266 |
+
|
| 267 |
+
* Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
|
| 268 |
+
|
| 269 |
+
| Metric | Value |
|
| 270 |
+
|:--------------------------|:-----------|
|
| 271 |
+
| cosine_accuracy | 0.9325 |
|
| 272 |
+
| cosine_accuracy_threshold | 0.6963 |
|
| 273 |
+
| cosine_f1 | 0.7933 |
|
| 274 |
+
| cosine_f1_threshold | 0.6896 |
|
| 275 |
+
| cosine_precision | 0.7918 |
|
| 276 |
+
| cosine_recall | 0.7948 |
|
| 277 |
+
| **cosine_ap** | **0.8752** |
|
| 278 |
+
| cosine_mcc | 0.7518 |
|
| 279 |
+
|
| 280 |
+
<!--
|
| 281 |
+
## Bias, Risks and Limitations
|
| 282 |
+
|
| 283 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 284 |
+
-->
|
| 285 |
+
|
| 286 |
+
<!--
|
| 287 |
+
### Recommendations
|
| 288 |
+
|
| 289 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 290 |
+
-->
|
| 291 |
+
|
| 292 |
+
## Training Details
|
| 293 |
+
|
| 294 |
+
### Training Dataset
|
| 295 |
+
|
| 296 |
+
#### Unnamed Dataset
|
| 297 |
+
|
| 298 |
+
* Size: 98,660 training samples
|
| 299 |
+
* Columns: <code>sentence1</code> and <code>sentence2</code>
|
| 300 |
+
* Approximate statistics based on the first 1000 samples:
|
| 301 |
+
| | sentence1 | sentence2 |
|
| 302 |
+
|:--------|:-------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
|
| 303 |
+
| type | string | string |
|
| 304 |
+
| details | <ul><li>min: 35 tokens</li><li>mean: 144.27 tokens</li><li>max: 319 tokens</li></ul> | <ul><li>min: 10 tokens</li><li>mean: 22.54 tokens</li><li>max: 41 tokens</li></ul> |
|
| 305 |
+
* Samples:
|
| 306 |
+
| sentence1 | sentence2 |
|
| 307 |
+
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 308 |
+
| <code>Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context<br>Dialogue Context: bot_0: What kind of car do you own? I have a jeep.</code> | <code>Followup phrase: I don't own my own car! I actually really enjoying walking and running, but then again, I live in a small town and semi-close to work.</code> |
|
| 309 |
+
| <code>Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context<br>Dialogue Context: bot_0: What kind of car do you own? I have a jeep.<br>bot_1: I don't own my own car! I actually really enjoying walking and running, but then again, I live in a small town and semi-close to work.</code> | <code>Followup phrase: Ah I see! I like going to the gym to work out.</code> |
|
| 310 |
+
| <code>Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context<br>Dialogue Context: bot_0: What kind of car do you own? I have a jeep.<br>bot_1: I don't own my own car! I actually really enjoying walking and running, but then again, I live in a small town and semi-close to work.<br>bot_0: Ah I see! I like going to the gym to work out.</code> | <code>Followup phrase: I'm a computer programmer. What do you do for work.</code> |
|
| 311 |
+
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 312 |
+
```json
|
| 313 |
+
{
|
| 314 |
+
"scale": 100,
|
| 315 |
+
"similarity_fct": "cos_sim"
|
| 316 |
+
}
|
| 317 |
+
```
|
| 318 |
+
|
| 319 |
+
### Evaluation Dataset
|
| 320 |
+
|
| 321 |
+
#### Unnamed Dataset
|
| 322 |
+
|
| 323 |
+
* Size: 67,104 evaluation samples
|
| 324 |
+
* Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>label</code>
|
| 325 |
+
* Approximate statistics based on the first 1000 samples:
|
| 326 |
+
| | sentence1 | sentence2 | label |
|
| 327 |
+
|:--------|:-------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:------------------------------------------------|
|
| 328 |
+
| type | string | string | int |
|
| 329 |
+
| details | <ul><li>min: 38 tokens</li><li>mean: 137.57 tokens</li><li>max: 290 tokens</li></ul> | <ul><li>min: 11 tokens</li><li>mean: 31.57 tokens</li><li>max: 106 tokens</li></ul> | <ul><li>0: ~83.30%</li><li>1: ~16.70%</li></ul> |
|
| 330 |
+
* Samples:
|
| 331 |
+
| sentence1 | sentence2 | label |
|
| 332 |
+
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------|
|
| 333 |
+
| <code>Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context<br>Dialogue Context: bot_0: Do you like music?</code> | <code>Followup phrase: Yes, you could say it is a great source of joy for me.</code> | <code>1</code> |
|
| 334 |
+
| <code>Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context<br>Dialogue Context: bot_0: Do you like music?</code> | <code>Followup phrase: That sounds amazing! But I was thinking of going to mexico this summer and was going to ask if you were going to be there? Would your timeshare be available?</code> | <code>0</code> |
|
| 335 |
+
| <code>Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context<br>Dialogue Context: bot_0: Do you like music?</code> | <code>Followup phrase: Mostly just authentic mexican food, with lots of spice. </code> | <code>0</code> |
|
| 336 |
+
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 337 |
+
```json
|
| 338 |
+
{
|
| 339 |
+
"scale": 100,
|
| 340 |
+
"similarity_fct": "cos_sim"
|
| 341 |
+
}
|
| 342 |
+
```
|
| 343 |
+
|
| 344 |
+
### Training Hyperparameters
|
| 345 |
+
#### Non-Default Hyperparameters
|
| 346 |
+
|
| 347 |
+
- `eval_strategy`: epoch
|
| 348 |
+
- `per_device_train_batch_size`: 100
|
| 349 |
+
- `per_device_eval_batch_size`: 100
|
| 350 |
+
- `weight_decay`: 0.01
|
| 351 |
+
- `num_train_epochs`: 5
|
| 352 |
+
- `bf16`: True
|
| 353 |
+
- `load_best_model_at_end`: True
|
| 354 |
+
- `prompts`: {'sentence1': 'Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context\nDialogue Context: ', 'sentence2': 'Followup phrase: '}
|
| 355 |
+
- `batch_sampler`: no_duplicates
|
| 356 |
+
|
| 357 |
+
#### All Hyperparameters
|
| 358 |
+
<details><summary>Click to expand</summary>
|
| 359 |
+
|
| 360 |
+
- `overwrite_output_dir`: False
|
| 361 |
+
- `do_predict`: False
|
| 362 |
+
- `eval_strategy`: epoch
|
| 363 |
+
- `prediction_loss_only`: True
|
| 364 |
+
- `per_device_train_batch_size`: 100
|
| 365 |
+
- `per_device_eval_batch_size`: 100
|
| 366 |
+
- `per_gpu_train_batch_size`: None
|
| 367 |
+
- `per_gpu_eval_batch_size`: None
|
| 368 |
+
- `gradient_accumulation_steps`: 1
|
| 369 |
+
- `eval_accumulation_steps`: None
|
| 370 |
+
- `torch_empty_cache_steps`: None
|
| 371 |
+
- `learning_rate`: 5e-05
|
| 372 |
+
- `weight_decay`: 0.01
|
| 373 |
+
- `adam_beta1`: 0.9
|
| 374 |
+
- `adam_beta2`: 0.999
|
| 375 |
+
- `adam_epsilon`: 1e-08
|
| 376 |
+
- `max_grad_norm`: 1.0
|
| 377 |
+
- `num_train_epochs`: 5
|
| 378 |
+
- `max_steps`: -1
|
| 379 |
+
- `lr_scheduler_type`: linear
|
| 380 |
+
- `lr_scheduler_kwargs`: {}
|
| 381 |
+
- `warmup_ratio`: 0.0
|
| 382 |
+
- `warmup_steps`: 0
|
| 383 |
+
- `log_level`: passive
|
| 384 |
+
- `log_level_replica`: warning
|
| 385 |
+
- `log_on_each_node`: True
|
| 386 |
+
- `logging_nan_inf_filter`: True
|
| 387 |
+
- `save_safetensors`: True
|
| 388 |
+
- `save_on_each_node`: False
|
| 389 |
+
- `save_only_model`: False
|
| 390 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 391 |
+
- `no_cuda`: False
|
| 392 |
+
- `use_cpu`: False
|
| 393 |
+
- `use_mps_device`: False
|
| 394 |
+
- `seed`: 42
|
| 395 |
+
- `data_seed`: None
|
| 396 |
+
- `jit_mode_eval`: False
|
| 397 |
+
- `use_ipex`: False
|
| 398 |
+
- `bf16`: True
|
| 399 |
+
- `fp16`: False
|
| 400 |
+
- `fp16_opt_level`: O1
|
| 401 |
+
- `half_precision_backend`: auto
|
| 402 |
+
- `bf16_full_eval`: False
|
| 403 |
+
- `fp16_full_eval`: False
|
| 404 |
+
- `tf32`: None
|
| 405 |
+
- `local_rank`: 0
|
| 406 |
+
- `ddp_backend`: None
|
| 407 |
+
- `tpu_num_cores`: None
|
| 408 |
+
- `tpu_metrics_debug`: False
|
| 409 |
+
- `debug`: []
|
| 410 |
+
- `dataloader_drop_last`: False
|
| 411 |
+
- `dataloader_num_workers`: 0
|
| 412 |
+
- `dataloader_prefetch_factor`: None
|
| 413 |
+
- `past_index`: -1
|
| 414 |
+
- `disable_tqdm`: False
|
| 415 |
+
- `remove_unused_columns`: True
|
| 416 |
+
- `label_names`: None
|
| 417 |
+
- `load_best_model_at_end`: True
|
| 418 |
+
- `ignore_data_skip`: False
|
| 419 |
+
- `fsdp`: []
|
| 420 |
+
- `fsdp_min_num_params`: 0
|
| 421 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 422 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 423 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 424 |
+
- `deepspeed`: None
|
| 425 |
+
- `label_smoothing_factor`: 0.0
|
| 426 |
+
- `optim`: adamw_torch
|
| 427 |
+
- `optim_args`: None
|
| 428 |
+
- `adafactor`: False
|
| 429 |
+
- `group_by_length`: False
|
| 430 |
+
- `length_column_name`: length
|
| 431 |
+
- `ddp_find_unused_parameters`: None
|
| 432 |
+
- `ddp_bucket_cap_mb`: None
|
| 433 |
+
- `ddp_broadcast_buffers`: False
|
| 434 |
+
- `dataloader_pin_memory`: True
|
| 435 |
+
- `dataloader_persistent_workers`: False
|
| 436 |
+
- `skip_memory_metrics`: True
|
| 437 |
+
- `use_legacy_prediction_loop`: False
|
| 438 |
+
- `push_to_hub`: False
|
| 439 |
+
- `resume_from_checkpoint`: None
|
| 440 |
+
- `hub_model_id`: None
|
| 441 |
+
- `hub_strategy`: every_save
|
| 442 |
+
- `hub_private_repo`: None
|
| 443 |
+
- `hub_always_push`: False
|
| 444 |
+
- `gradient_checkpointing`: False
|
| 445 |
+
- `gradient_checkpointing_kwargs`: None
|
| 446 |
+
- `include_inputs_for_metrics`: False
|
| 447 |
+
- `include_for_metrics`: []
|
| 448 |
+
- `eval_do_concat_batches`: True
|
| 449 |
+
- `fp16_backend`: auto
|
| 450 |
+
- `push_to_hub_model_id`: None
|
| 451 |
+
- `push_to_hub_organization`: None
|
| 452 |
+
- `mp_parameters`:
|
| 453 |
+
- `auto_find_batch_size`: False
|
| 454 |
+
- `full_determinism`: False
|
| 455 |
+
- `torchdynamo`: None
|
| 456 |
+
- `ray_scope`: last
|
| 457 |
+
- `ddp_timeout`: 1800
|
| 458 |
+
- `torch_compile`: False
|
| 459 |
+
- `torch_compile_backend`: None
|
| 460 |
+
- `torch_compile_mode`: None
|
| 461 |
+
- `include_tokens_per_second`: False
|
| 462 |
+
- `include_num_input_tokens_seen`: False
|
| 463 |
+
- `neftune_noise_alpha`: None
|
| 464 |
+
- `optim_target_modules`: None
|
| 465 |
+
- `batch_eval_metrics`: False
|
| 466 |
+
- `eval_on_start`: False
|
| 467 |
+
- `use_liger_kernel`: False
|
| 468 |
+
- `eval_use_gather_object`: False
|
| 469 |
+
- `average_tokens_across_devices`: False
|
| 470 |
+
- `prompts`: {'sentence1': 'Instruct: Given a dialogue context, retrieve relevant followup phrase that align with the context\nDialogue Context: ', 'sentence2': 'Followup phrase: '}
|
| 471 |
+
- `batch_sampler`: no_duplicates
|
| 472 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 473 |
+
|
| 474 |
+
</details>
|
| 475 |
+
|
| 476 |
+
### Training Logs
|
| 477 |
+
| Epoch | Step | Training Loss | Validation Loss | cosine_ap |
|
| 478 |
+
|:------:|:----:|:-------------:|:---------------:|:---------:|
|
| 479 |
+
| 0.1013 | 100 | 1.8292 | - | - |
|
| 480 |
+
| 0.2026 | 200 | 1.4433 | - | - |
|
| 481 |
+
| 0.3040 | 300 | 1.2605 | - | - |
|
| 482 |
+
| 0.4053 | 400 | 1.1947 | - | - |
|
| 483 |
+
| 0.5066 | 500 | 1.1714 | - | - |
|
| 484 |
+
| 0.6079 | 600 | 1.1106 | - | - |
|
| 485 |
+
| 0.7092 | 700 | 1.0978 | - | - |
|
| 486 |
+
| 0.8105 | 800 | 1.0527 | - | - |
|
| 487 |
+
| 0.9119 | 900 | 1.0524 | - | - |
|
| 488 |
+
| 1.0 | 987 | - | 8.1109 | 0.8790 |
|
| 489 |
+
| 1.0132 | 1000 | 1.0068 | - | - |
|
| 490 |
+
| 1.1145 | 1100 | 0.949 | - | - |
|
| 491 |
+
| 1.2158 | 1200 | 0.9519 | - | - |
|
| 492 |
+
| 1.3171 | 1300 | 0.9364 | - | - |
|
| 493 |
+
| 1.4184 | 1400 | 0.9253 | - | - |
|
| 494 |
+
| 1.5198 | 1500 | 0.9724 | - | - |
|
| 495 |
+
| 1.6211 | 1600 | 0.9227 | - | - |
|
| 496 |
+
| 1.7224 | 1700 | 0.9169 | - | - |
|
| 497 |
+
| 1.8237 | 1800 | 0.9146 | - | - |
|
| 498 |
+
| 1.9250 | 1900 | 0.9029 | - | - |
|
| 499 |
+
| 2.0 | 1974 | - | 8.4529 | 0.8727 |
|
| 500 |
+
| 2.0263 | 2000 | 0.9073 | - | - |
|
| 501 |
+
| 2.1277 | 2100 | 0.8685 | - | - |
|
| 502 |
+
| 2.2290 | 2200 | 0.8413 | - | - |
|
| 503 |
+
| 2.3303 | 2300 | 0.8763 | - | - |
|
| 504 |
+
| 2.4316 | 2400 | 0.8524 | - | - |
|
| 505 |
+
| 2.5329 | 2500 | 0.8729 | - | - |
|
| 506 |
+
| 2.6342 | 2600 | 0.856 | - | - |
|
| 507 |
+
| 2.7356 | 2700 | 0.8652 | - | - |
|
| 508 |
+
| 2.8369 | 2800 | 0.8768 | - | - |
|
| 509 |
+
| 2.9382 | 2900 | 0.8477 | - | - |
|
| 510 |
+
| 3.0 | 2961 | - | 8.7662 | 0.8752 |
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
### Framework Versions
|
| 514 |
+
- Python: 3.10.18
|
| 515 |
+
- Sentence Transformers: 4.1.0
|
| 516 |
+
- Transformers: 4.52.4
|
| 517 |
+
- PyTorch: 2.7.1+cu128
|
| 518 |
+
- Accelerate: 1.7.0
|
| 519 |
+
- Datasets: 3.6.0
|
| 520 |
+
- Tokenizers: 0.21.1
|
| 521 |
+
|
| 522 |
+
## Citation
|
| 523 |
+
|
| 524 |
+
### BibTeX
|
| 525 |
+
|
| 526 |
+
#### Sentence Transformers
|
| 527 |
+
```bibtex
|
| 528 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 529 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 530 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 531 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 532 |
+
month = "11",
|
| 533 |
+
year = "2019",
|
| 534 |
+
publisher = "Association for Computational Linguistics",
|
| 535 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 536 |
+
}
|
| 537 |
+
```
|
| 538 |
+
|
| 539 |
+
#### MultipleNegativesRankingLoss
|
| 540 |
+
```bibtex
|
| 541 |
+
@misc{henderson2017efficient,
|
| 542 |
+
title={Efficient Natural Language Response Suggestion for Smart Reply},
|
| 543 |
+
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
|
| 544 |
+
year={2017},
|
| 545 |
+
eprint={1705.00652},
|
| 546 |
+
archivePrefix={arXiv},
|
| 547 |
+
primaryClass={cs.CL}
|
| 548 |
+
}
|
| 549 |
+
```
|
| 550 |
+
|
| 551 |
+
<!--
|
| 552 |
+
## Glossary
|
| 553 |
+
|
| 554 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 555 |
+
-->
|
| 556 |
+
|
| 557 |
+
<!--
|
| 558 |
+
## Model Card Authors
|
| 559 |
+
|
| 560 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 561 |
+
-->
|
| 562 |
+
|
| 563 |
+
<!--
|
| 564 |
+
## Model Card Contact
|
| 565 |
+
|
| 566 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 567 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"XLMRobertaModel"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"classifier_dropout": null,
|
| 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": "xlm-roberta",
|
| 17 |
+
"num_attention_heads": 12,
|
| 18 |
+
"num_hidden_layers": 12,
|
| 19 |
+
"output_past": true,
|
| 20 |
+
"pad_token_id": 1,
|
| 21 |
+
"position_embedding_type": "absolute",
|
| 22 |
+
"torch_dtype": "bfloat16",
|
| 23 |
+
"transformers_version": "4.52.4",
|
| 24 |
+
"type_vocab_size": 1,
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"vocab_size": 250002
|
| 27 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "4.1.0",
|
| 4 |
+
"transformers": "4.52.4",
|
| 5 |
+
"pytorch": "2.7.1+cu128"
|
| 6 |
+
},
|
| 7 |
+
"prompts": {},
|
| 8 |
+
"default_prompt_name": null,
|
| 9 |
+
"similarity_fn_name": "cosine"
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:192a6ea6e8b5fca5bfefc85485059ef8c7e8e01527e7a7b7a8895cbba747d8d0
|
| 3 |
+
size 556109872
|
modules.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"idx": 0,
|
| 4 |
+
"name": "0",
|
| 5 |
+
"path": "",
|
| 6 |
+
"type": "sentence_transformers.models.Transformer"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"idx": 1,
|
| 10 |
+
"name": "1",
|
| 11 |
+
"path": "1_Pooling",
|
| 12 |
+
"type": "sentence_transformers.models.Pooling"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"idx": 2,
|
| 16 |
+
"name": "2",
|
| 17 |
+
"path": "2_Normalize",
|
| 18 |
+
"type": "sentence_transformers.models.Normalize"
|
| 19 |
+
}
|
| 20 |
+
]
|
optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:278e9c23212b37442b7764e68c0b2abc70b5cbcc4ba82966ce07d5bd0ff12e22
|
| 3 |
+
size 1109977547
|
rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dacb1cbdf82d93fdaf9bcb6f81233ffa5d92a38358aff49bc545ce85d7b87ac9
|
| 3 |
+
size 14645
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c54094e98adc8c1d754f1d2ddf68e540133856fc7ae96da2d0bd44b127e48fa8
|
| 3 |
+
size 1465
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_seq_length": 512,
|
| 3 |
+
"do_lower_case": false
|
| 4 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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,
|
| 42 |
+
"single_word": false
|
| 43 |
+
},
|
| 44 |
+
"unk_token": {
|
| 45 |
+
"content": "<unk>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false
|
| 50 |
+
}
|
| 51 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f64cd282203706c03b339e2b5dcc41cf53dc15a5d17aa401d4ff094cc5b28cc2
|
| 3 |
+
size 17082986
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"250001": {
|
| 36 |
+
"content": "<mask>",
|
| 37 |
+
"lstrip": true,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"bos_token": "<s>",
|
| 45 |
+
"clean_up_tokenization_spaces": true,
|
| 46 |
+
"cls_token": "<s>",
|
| 47 |
+
"eos_token": "</s>",
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 987,
|
| 3 |
+
"best_metric": 8.11091423034668,
|
| 4 |
+
"best_model_checkpoint": "printing_press/dialogue-context-learning/notebooks/results/intfloat/multilingual-e5-base/checkpoint-987",
|
| 5 |
+
"epoch": 3.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 2961,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.10131712259371833,
|
| 14 |
+
"grad_norm": 17.75,
|
| 15 |
+
"learning_rate": 4.8996960486322194e-05,
|
| 16 |
+
"loss": 1.8292,
|
| 17 |
+
"step": 100
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.20263424518743667,
|
| 21 |
+
"grad_norm": 14.0625,
|
| 22 |
+
"learning_rate": 4.798378926038501e-05,
|
| 23 |
+
"loss": 1.4433,
|
| 24 |
+
"step": 200
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.303951367781155,
|
| 28 |
+
"grad_norm": 17.125,
|
| 29 |
+
"learning_rate": 4.6970618034447823e-05,
|
| 30 |
+
"loss": 1.2605,
|
| 31 |
+
"step": 300
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.40526849037487334,
|
| 35 |
+
"grad_norm": 17.0,
|
| 36 |
+
"learning_rate": 4.595744680851064e-05,
|
| 37 |
+
"loss": 1.1947,
|
| 38 |
+
"step": 400
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.5065856129685917,
|
| 42 |
+
"grad_norm": 13.0625,
|
| 43 |
+
"learning_rate": 4.494427558257346e-05,
|
| 44 |
+
"loss": 1.1714,
|
| 45 |
+
"step": 500
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.60790273556231,
|
| 49 |
+
"grad_norm": 13.125,
|
| 50 |
+
"learning_rate": 4.393110435663627e-05,
|
| 51 |
+
"loss": 1.1106,
|
| 52 |
+
"step": 600
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.7092198581560284,
|
| 56 |
+
"grad_norm": 12.75,
|
| 57 |
+
"learning_rate": 4.291793313069909e-05,
|
| 58 |
+
"loss": 1.0978,
|
| 59 |
+
"step": 700
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.8105369807497467,
|
| 63 |
+
"grad_norm": 15.6875,
|
| 64 |
+
"learning_rate": 4.190476190476191e-05,
|
| 65 |
+
"loss": 1.0527,
|
| 66 |
+
"step": 800
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.9118541033434651,
|
| 70 |
+
"grad_norm": 13.1875,
|
| 71 |
+
"learning_rate": 4.0891590678824726e-05,
|
| 72 |
+
"loss": 1.0524,
|
| 73 |
+
"step": 900
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 1.0,
|
| 77 |
+
"eval_cosine_accuracy": 0.9332975679542204,
|
| 78 |
+
"eval_cosine_accuracy_threshold": 0.7227392196655273,
|
| 79 |
+
"eval_cosine_ap": 0.8790038770944348,
|
| 80 |
+
"eval_cosine_f1": 0.7938560293443375,
|
| 81 |
+
"eval_cosine_f1_threshold": 0.721563458442688,
|
| 82 |
+
"eval_cosine_mcc": 0.7542385158462755,
|
| 83 |
+
"eval_cosine_precision": 0.8146997929606625,
|
| 84 |
+
"eval_cosine_recall": 0.774052217453505,
|
| 85 |
+
"eval_loss": 8.11091423034668,
|
| 86 |
+
"eval_runtime": 108.5283,
|
| 87 |
+
"eval_samples_per_second": 618.309,
|
| 88 |
+
"eval_steps_per_second": 6.192,
|
| 89 |
+
"step": 987
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"epoch": 1.0131712259371835,
|
| 93 |
+
"grad_norm": 14.3125,
|
| 94 |
+
"learning_rate": 3.987841945288754e-05,
|
| 95 |
+
"loss": 1.0068,
|
| 96 |
+
"step": 1000
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"epoch": 1.1144883485309016,
|
| 100 |
+
"grad_norm": 11.875,
|
| 101 |
+
"learning_rate": 3.8865248226950355e-05,
|
| 102 |
+
"loss": 0.949,
|
| 103 |
+
"step": 1100
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"epoch": 1.21580547112462,
|
| 107 |
+
"grad_norm": 14.625,
|
| 108 |
+
"learning_rate": 3.7852077001013173e-05,
|
| 109 |
+
"loss": 0.9519,
|
| 110 |
+
"step": 1200
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"epoch": 1.3171225937183384,
|
| 114 |
+
"grad_norm": 12.9375,
|
| 115 |
+
"learning_rate": 3.6838905775075985e-05,
|
| 116 |
+
"loss": 0.9364,
|
| 117 |
+
"step": 1300
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"epoch": 1.4184397163120568,
|
| 121 |
+
"grad_norm": 14.0,
|
| 122 |
+
"learning_rate": 3.58257345491388e-05,
|
| 123 |
+
"loss": 0.9253,
|
| 124 |
+
"step": 1400
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"epoch": 1.5197568389057752,
|
| 128 |
+
"grad_norm": 14.125,
|
| 129 |
+
"learning_rate": 3.481256332320163e-05,
|
| 130 |
+
"loss": 0.9724,
|
| 131 |
+
"step": 1500
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 1.6210739614994933,
|
| 135 |
+
"grad_norm": 14.4375,
|
| 136 |
+
"learning_rate": 3.379939209726444e-05,
|
| 137 |
+
"loss": 0.9227,
|
| 138 |
+
"step": 1600
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"epoch": 1.7223910840932117,
|
| 142 |
+
"grad_norm": 14.125,
|
| 143 |
+
"learning_rate": 3.278622087132726e-05,
|
| 144 |
+
"loss": 0.9169,
|
| 145 |
+
"step": 1700
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"epoch": 1.8237082066869301,
|
| 149 |
+
"grad_norm": 13.75,
|
| 150 |
+
"learning_rate": 3.1773049645390076e-05,
|
| 151 |
+
"loss": 0.9146,
|
| 152 |
+
"step": 1800
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"epoch": 1.9250253292806483,
|
| 156 |
+
"grad_norm": 13.75,
|
| 157 |
+
"learning_rate": 3.075987841945289e-05,
|
| 158 |
+
"loss": 0.9029,
|
| 159 |
+
"step": 1900
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"epoch": 2.0,
|
| 163 |
+
"eval_cosine_accuracy": 0.9311665474487363,
|
| 164 |
+
"eval_cosine_accuracy_threshold": 0.7132378816604614,
|
| 165 |
+
"eval_cosine_ap": 0.872736314842169,
|
| 166 |
+
"eval_cosine_f1": 0.7911621741051702,
|
| 167 |
+
"eval_cosine_f1_threshold": 0.7051230669021606,
|
| 168 |
+
"eval_cosine_mcc": 0.7488855960607996,
|
| 169 |
+
"eval_cosine_precision": 0.7821072863882579,
|
| 170 |
+
"eval_cosine_recall": 0.8004291845493562,
|
| 171 |
+
"eval_loss": 8.452939987182617,
|
| 172 |
+
"eval_runtime": 108.4938,
|
| 173 |
+
"eval_samples_per_second": 618.505,
|
| 174 |
+
"eval_steps_per_second": 6.194,
|
| 175 |
+
"step": 1974
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"epoch": 2.026342451874367,
|
| 179 |
+
"grad_norm": 14.3125,
|
| 180 |
+
"learning_rate": 2.9746707193515705e-05,
|
| 181 |
+
"loss": 0.9073,
|
| 182 |
+
"step": 2000
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"epoch": 2.127659574468085,
|
| 186 |
+
"grad_norm": 11.625,
|
| 187 |
+
"learning_rate": 2.8733535967578523e-05,
|
| 188 |
+
"loss": 0.8685,
|
| 189 |
+
"step": 2100
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"epoch": 2.2289766970618032,
|
| 193 |
+
"grad_norm": 16.25,
|
| 194 |
+
"learning_rate": 2.772036474164134e-05,
|
| 195 |
+
"loss": 0.8413,
|
| 196 |
+
"step": 2200
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"epoch": 2.330293819655522,
|
| 200 |
+
"grad_norm": 12.1875,
|
| 201 |
+
"learning_rate": 2.6707193515704153e-05,
|
| 202 |
+
"loss": 0.8763,
|
| 203 |
+
"step": 2300
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"epoch": 2.43161094224924,
|
| 207 |
+
"grad_norm": 12.0,
|
| 208 |
+
"learning_rate": 2.569402228976697e-05,
|
| 209 |
+
"loss": 0.8524,
|
| 210 |
+
"step": 2400
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"epoch": 2.5329280648429586,
|
| 214 |
+
"grad_norm": 12.5,
|
| 215 |
+
"learning_rate": 2.468085106382979e-05,
|
| 216 |
+
"loss": 0.8729,
|
| 217 |
+
"step": 2500
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"epoch": 2.634245187436677,
|
| 221 |
+
"grad_norm": 11.625,
|
| 222 |
+
"learning_rate": 2.3667679837892608e-05,
|
| 223 |
+
"loss": 0.856,
|
| 224 |
+
"step": 2600
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"epoch": 2.735562310030395,
|
| 228 |
+
"grad_norm": 13.3125,
|
| 229 |
+
"learning_rate": 2.2654508611955422e-05,
|
| 230 |
+
"loss": 0.8652,
|
| 231 |
+
"step": 2700
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"epoch": 2.8368794326241136,
|
| 235 |
+
"grad_norm": 13.3125,
|
| 236 |
+
"learning_rate": 2.1641337386018237e-05,
|
| 237 |
+
"loss": 0.8768,
|
| 238 |
+
"step": 2800
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"epoch": 2.9381965552178317,
|
| 242 |
+
"grad_norm": 13.5625,
|
| 243 |
+
"learning_rate": 2.0628166160081055e-05,
|
| 244 |
+
"loss": 0.8477,
|
| 245 |
+
"step": 2900
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"epoch": 3.0,
|
| 249 |
+
"eval_cosine_accuracy": 0.9324928469241774,
|
| 250 |
+
"eval_cosine_accuracy_threshold": 0.6963315010070801,
|
| 251 |
+
"eval_cosine_ap": 0.8751572160892609,
|
| 252 |
+
"eval_cosine_f1": 0.7932711614832003,
|
| 253 |
+
"eval_cosine_f1_threshold": 0.6896486282348633,
|
| 254 |
+
"eval_cosine_mcc": 0.7518321554060445,
|
| 255 |
+
"eval_cosine_precision": 0.791752026365013,
|
| 256 |
+
"eval_cosine_recall": 0.7947961373390557,
|
| 257 |
+
"eval_loss": 8.766173362731934,
|
| 258 |
+
"eval_runtime": 109.0776,
|
| 259 |
+
"eval_samples_per_second": 615.195,
|
| 260 |
+
"eval_steps_per_second": 6.161,
|
| 261 |
+
"step": 2961
|
| 262 |
+
}
|
| 263 |
+
],
|
| 264 |
+
"logging_steps": 100,
|
| 265 |
+
"max_steps": 4935,
|
| 266 |
+
"num_input_tokens_seen": 0,
|
| 267 |
+
"num_train_epochs": 5,
|
| 268 |
+
"save_steps": 500,
|
| 269 |
+
"stateful_callbacks": {
|
| 270 |
+
"TrainerControl": {
|
| 271 |
+
"args": {
|
| 272 |
+
"should_epoch_stop": false,
|
| 273 |
+
"should_evaluate": false,
|
| 274 |
+
"should_log": false,
|
| 275 |
+
"should_save": true,
|
| 276 |
+
"should_training_stop": false
|
| 277 |
+
},
|
| 278 |
+
"attributes": {}
|
| 279 |
+
}
|
| 280 |
+
},
|
| 281 |
+
"total_flos": 0.0,
|
| 282 |
+
"train_batch_size": 100,
|
| 283 |
+
"trial_name": null,
|
| 284 |
+
"trial_params": null
|
| 285 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89f8a8756fb0e7a67bafa8aa85b53eadf7dec573a6db3c64dd8b76cf8ca93fb2
|
| 3 |
+
size 6289
|