Tondji commited on
Commit
ff1d2b5
·
verified ·
1 Parent(s): c3c01ed

Upload folder using huggingface_hub

Browse files
Files changed (49) hide show
  1. mistral7b_kto_w2_delta0.001/README.md +64 -0
  2. mistral7b_kto_w2_delta0.001/adapter_config.json +42 -0
  3. mistral7b_kto_w2_delta0.001/adapter_model.safetensors +3 -0
  4. mistral7b_kto_w2_delta0.001/all_results.json +8 -0
  5. mistral7b_kto_w2_delta0.001/chat_template.jinja +3 -0
  6. mistral7b_kto_w2_delta0.001/checkpoint-196/README.md +208 -0
  7. mistral7b_kto_w2_delta0.001/checkpoint-196/adapter_config.json +42 -0
  8. mistral7b_kto_w2_delta0.001/checkpoint-196/adapter_model.safetensors +3 -0
  9. mistral7b_kto_w2_delta0.001/checkpoint-196/chat_template.jinja +3 -0
  10. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  11. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  12. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
  13. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
  14. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +3 -0
  15. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +3 -0
  16. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +3 -0
  17. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +3 -0
  18. mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/mp_rank_00_model_states.pt +3 -0
  19. mistral7b_kto_w2_delta0.001/checkpoint-196/latest +1 -0
  20. mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_0.pth +3 -0
  21. mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_1.pth +3 -0
  22. mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_2.pth +3 -0
  23. mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_3.pth +3 -0
  24. mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_4.pth +3 -0
  25. mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_5.pth +3 -0
  26. mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_6.pth +3 -0
  27. mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_7.pth +3 -0
  28. mistral7b_kto_w2_delta0.001/checkpoint-196/scheduler.pt +3 -0
  29. mistral7b_kto_w2_delta0.001/checkpoint-196/special_tokens_map.json +24 -0
  30. mistral7b_kto_w2_delta0.001/checkpoint-196/tokenizer.json +0 -0
  31. mistral7b_kto_w2_delta0.001/checkpoint-196/tokenizer.model +3 -0
  32. mistral7b_kto_w2_delta0.001/checkpoint-196/tokenizer_config.json +46 -0
  33. mistral7b_kto_w2_delta0.001/checkpoint-196/trainer_state.json +965 -0
  34. mistral7b_kto_w2_delta0.001/checkpoint-196/training_args.bin +3 -0
  35. mistral7b_kto_w2_delta0.001/checkpoint-196/zero_to_fp32.py +604 -0
  36. mistral7b_kto_w2_delta0.001/special_tokens_map.json +24 -0
  37. mistral7b_kto_w2_delta0.001/stability_metrics.jsonl +38 -0
  38. mistral7b_kto_w2_delta0.001/tokenizer.json +0 -0
  39. mistral7b_kto_w2_delta0.001/tokenizer.model +3 -0
  40. mistral7b_kto_w2_delta0.001/tokenizer_config.json +46 -0
  41. mistral7b_kto_w2_delta0.001/train_results.json +8 -0
  42. mistral7b_kto_w2_delta0.001/trainer_log.jsonl +40 -0
  43. mistral7b_kto_w2_delta0.001/trainer_state.json +974 -0
  44. mistral7b_kto_w2_delta0.001/training_args.bin +3 -0
  45. mistral7b_kto_w2_delta0.001/training_loss.png +0 -0
  46. mistral7b_kto_w2_delta0.001/training_loss_base_kto.png +0 -0
  47. mistral7b_kto_w2_delta0.001/training_rewards_chosen.png +0 -0
  48. mistral7b_kto_w2_delta0.001/training_rewards_margins.png +0 -0
  49. mistral7b_kto_w2_delta0.001/training_rewards_rejected.png +0 -0
mistral7b_kto_w2_delta0.001/README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: other
4
+ base_model: mistralai/Mistral-7B-v0.1
5
+ tags:
6
+ - base_model:adapter:mistralai/Mistral-7B-v0.1
7
+ - llama-factory
8
+ - lora
9
+ - transformers
10
+ pipeline_tag: text-generation
11
+ model-index:
12
+ - name: mistral7b_kto_w2_delta0.001
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # mistral7b_kto_w2_delta0.001
20
+
21
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the shp_kto_train dataset.
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 1e-06
41
+ - train_batch_size: 8
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 8
46
+ - gradient_accumulation_steps: 8
47
+ - total_train_batch_size: 512
48
+ - total_eval_batch_size: 64
49
+ - optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_steps: 100
52
+ - num_epochs: 1.0
53
+
54
+ ### Training results
55
+
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - PEFT 0.17.1
61
+ - Transformers 4.57.1
62
+ - Pytorch 2.10.0+cu128
63
+ - Datasets 4.0.0
64
+ - Tokenizers 0.22.2
mistral7b_kto_w2_delta0.001/adapter_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.0,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "qalora_group_size": 16,
24
+ "r": 8,
25
+ "rank_pattern": {},
26
+ "revision": null,
27
+ "target_modules": [
28
+ "gate_proj",
29
+ "down_proj",
30
+ "up_proj",
31
+ "q_proj",
32
+ "k_proj",
33
+ "o_proj",
34
+ "v_proj"
35
+ ],
36
+ "target_parameters": null,
37
+ "task_type": "CAUSAL_LM",
38
+ "trainable_token_indices": null,
39
+ "use_dora": false,
40
+ "use_qalora": false,
41
+ "use_rslora": false
42
+ }
mistral7b_kto_w2_delta0.001/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87fd19c040097e11b7423fbb56ee2a5a2bbd7ece255a0895affdcff3a7497b83
3
+ size 42002584
mistral7b_kto_w2_delta0.001/all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 3.1861866257511875e+18,
4
+ "train_loss": 0.5821207132266493,
5
+ "train_runtime": 4296.589,
6
+ "train_samples_per_second": 23.274,
7
+ "train_steps_per_second": 0.046
8
+ }
mistral7b_kto_w2_delta0.001/chat_template.jinja ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {{ '<s>' }}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if loop.index0 == 0 and system_message is defined %}{% set content = system_message + '
2
+
3
+ ' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + content + '[/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content + '</s>' }}{% endif %}{% endfor %}
mistral7b_kto_w2_delta0.001/checkpoint-196/README.md ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-v0.1
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:mistralai/Mistral-7B-v0.1
7
+ - llama-factory
8
+ - lora
9
+ - transformers
10
+ ---
11
+
12
+ # Model Card for Model ID
13
+
14
+ <!-- Provide a quick summary of what the model is/does. -->
15
+
16
+
17
+
18
+ ## Model Details
19
+
20
+ ### Model Description
21
+
22
+ <!-- Provide a longer summary of what this model is. -->
23
+
24
+
25
+
26
+ - **Developed by:** [More Information Needed]
27
+ - **Funded by [optional]:** [More Information Needed]
28
+ - **Shared by [optional]:** [More Information Needed]
29
+ - **Model type:** [More Information Needed]
30
+ - **Language(s) (NLP):** [More Information Needed]
31
+ - **License:** [More Information Needed]
32
+ - **Finetuned from model [optional]:** [More Information Needed]
33
+
34
+ ### Model Sources [optional]
35
+
36
+ <!-- Provide the basic links for the model. -->
37
+
38
+ - **Repository:** [More Information Needed]
39
+ - **Paper [optional]:** [More Information Needed]
40
+ - **Demo [optional]:** [More Information Needed]
41
+
42
+ ## Uses
43
+
44
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
45
+
46
+ ### Direct Use
47
+
48
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Downstream Use [optional]
53
+
54
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
55
+
56
+ [More Information Needed]
57
+
58
+ ### Out-of-Scope Use
59
+
60
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ## Bias, Risks, and Limitations
65
+
66
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
67
+
68
+ [More Information Needed]
69
+
70
+ ### Recommendations
71
+
72
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
73
+
74
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
75
+
76
+ ## How to Get Started with the Model
77
+
78
+ Use the code below to get started with the model.
79
+
80
+ [More Information Needed]
81
+
82
+ ## Training Details
83
+
84
+ ### Training Data
85
+
86
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
87
+
88
+ [More Information Needed]
89
+
90
+ ### Training Procedure
91
+
92
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
93
+
94
+ #### Preprocessing [optional]
95
+
96
+ [More Information Needed]
97
+
98
+
99
+ #### Training Hyperparameters
100
+
101
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
102
+
103
+ #### Speeds, Sizes, Times [optional]
104
+
105
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
106
+
107
+ [More Information Needed]
108
+
109
+ ## Evaluation
110
+
111
+ <!-- This section describes the evaluation protocols and provides the results. -->
112
+
113
+ ### Testing Data, Factors & Metrics
114
+
115
+ #### Testing Data
116
+
117
+ <!-- This should link to a Dataset Card if possible. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Factors
122
+
123
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
124
+
125
+ [More Information Needed]
126
+
127
+ #### Metrics
128
+
129
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
130
+
131
+ [More Information Needed]
132
+
133
+ ### Results
134
+
135
+ [More Information Needed]
136
+
137
+ #### Summary
138
+
139
+
140
+
141
+ ## Model Examination [optional]
142
+
143
+ <!-- Relevant interpretability work for the model goes here -->
144
+
145
+ [More Information Needed]
146
+
147
+ ## Environmental Impact
148
+
149
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
150
+
151
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
152
+
153
+ - **Hardware Type:** [More Information Needed]
154
+ - **Hours used:** [More Information Needed]
155
+ - **Cloud Provider:** [More Information Needed]
156
+ - **Compute Region:** [More Information Needed]
157
+ - **Carbon Emitted:** [More Information Needed]
158
+
159
+ ## Technical Specifications [optional]
160
+
161
+ ### Model Architecture and Objective
162
+
163
+ [More Information Needed]
164
+
165
+ ### Compute Infrastructure
166
+
167
+ [More Information Needed]
168
+
169
+ #### Hardware
170
+
171
+ [More Information Needed]
172
+
173
+ #### Software
174
+
175
+ [More Information Needed]
176
+
177
+ ## Citation [optional]
178
+
179
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
180
+
181
+ **BibTeX:**
182
+
183
+ [More Information Needed]
184
+
185
+ **APA:**
186
+
187
+ [More Information Needed]
188
+
189
+ ## Glossary [optional]
190
+
191
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
192
+
193
+ [More Information Needed]
194
+
195
+ ## More Information [optional]
196
+
197
+ [More Information Needed]
198
+
199
+ ## Model Card Authors [optional]
200
+
201
+ [More Information Needed]
202
+
203
+ ## Model Card Contact
204
+
205
+ [More Information Needed]
206
+ ### Framework versions
207
+
208
+ - PEFT 0.17.1
mistral7b_kto_w2_delta0.001/checkpoint-196/adapter_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.0,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "qalora_group_size": 16,
24
+ "r": 8,
25
+ "rank_pattern": {},
26
+ "revision": null,
27
+ "target_modules": [
28
+ "gate_proj",
29
+ "down_proj",
30
+ "up_proj",
31
+ "q_proj",
32
+ "k_proj",
33
+ "o_proj",
34
+ "v_proj"
35
+ ],
36
+ "target_parameters": null,
37
+ "task_type": "CAUSAL_LM",
38
+ "trainable_token_indices": null,
39
+ "use_dora": false,
40
+ "use_qalora": false,
41
+ "use_rslora": false
42
+ }
mistral7b_kto_w2_delta0.001/checkpoint-196/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87fd19c040097e11b7423fbb56ee2a5a2bbd7ece255a0895affdcff3a7497b83
3
+ size 42002584
mistral7b_kto_w2_delta0.001/checkpoint-196/chat_template.jinja ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {{ '<s>' }}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if loop.index0 == 0 and system_message is defined %}{% set content = system_message + '
2
+
3
+ ' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + content + '[/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content + '</s>' }}{% endif %}{% endfor %}
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51932fbb0b2ec1f77ef6f5a87e75bf9ecfd2c45c215f2c583d376a23c002bd98
3
+ size 31467333
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cd238b5f26b477fc2a0a1976fe7d53ae32e34f0b22e2c53902dd38c79e6cd68
3
+ size 31467333
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26ff1ecc669a44ba6e03a56f290b0149f269e368ef3acd1bc8a1a8ed9bac1dcd
3
+ size 31467333
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:405fb0fa8f3f1949767034a4104d9da6a8f74a887f2000ef4029cf56d6e044a2
3
+ size 31467397
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48b53dce4f43b501176d56ec5c0f7d90547afaf21c6b7de1d43ea429493374f9
3
+ size 31467397
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dae9d8ddf051ccadabbb76f48096a1e3b3d7f61a39198505d323af41bc8661cc
3
+ size 31467397
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a0dfc4d2769cafede5557cde1010f76e589433ac81b0f46e3b0d6a7521b5afb
3
+ size 31467397
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1a5da139fb7f8918236b19270d940cb2a432e544baa4ca12dc4a1f57041ce32
3
+ size 31467397
mistral7b_kto_w2_delta0.001/checkpoint-196/global_step196/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:367b736115265c9830260836e27d9579ed26f1eced903c6ff02f3ca072ac708b
3
+ size 42288409
mistral7b_kto_w2_delta0.001/checkpoint-196/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step196
mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7efbc3b39e557ed047a255851058c3d62216b6bc5794c19289879cf099f52035
3
+ size 16389
mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce29a8767a7d907dd24987aa2c3e654d4317f3042fbc13b5b72cadb46d43311a
3
+ size 16389
mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61a48db011646b4e9a867bf12f4a233cad5dfbfe309686f8996c250196d3783a
3
+ size 16389
mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9562ee822472a4f01dcd6349ab3d1ef42a48915fe3b92e843a0c37db53c8421
3
+ size 16389
mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_4.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7d2767d83c3bf27f12db022b0632e2c4f8c164274ba75e380cf18f9d5f21819
3
+ size 16389
mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_5.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76816358d4e5db8149d60d55234db658d67a13c0c1ce05d7404cf7125a676a5c
3
+ size 16389
mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_6.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1562e7520c977d178183d641f70abcf3f57da2489938756cfbebf9b6e6c1a9fd
3
+ size 16389
mistral7b_kto_w2_delta0.001/checkpoint-196/rng_state_7.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6b6cabaed045c5398cd1b732f7ec48bd363f3b43cd24e0e70e641a42bd00c28
3
+ size 16389
mistral7b_kto_w2_delta0.001/checkpoint-196/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83820952e8eb59075696a2d6e1f7ef27d70c5576cb2781806606f38f86685d3e
3
+ size 1401
mistral7b_kto_w2_delta0.001/checkpoint-196/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
mistral7b_kto_w2_delta0.001/checkpoint-196/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
mistral7b_kto_w2_delta0.001/checkpoint-196/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
mistral7b_kto_w2_delta0.001/checkpoint-196/tokenizer_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "additional_special_tokens": [],
32
+ "bos_token": "<s>",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "extra_special_tokens": {},
36
+ "legacy": false,
37
+ "model_max_length": 1000000000000000019884624838656,
38
+ "pad_token": "</s>",
39
+ "padding_side": "right",
40
+ "sp_model_kwargs": {},
41
+ "spaces_between_special_tokens": false,
42
+ "split_special_tokens": false,
43
+ "tokenizer_class": "LlamaTokenizer",
44
+ "unk_token": "<unk>",
45
+ "use_default_system_prompt": false
46
+ }
mistral7b_kto_w2_delta0.001/checkpoint-196/trainer_state.json ADDED
@@ -0,0 +1,965 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0,
6
+ "eval_steps": 500,
7
+ "global_step": 196,
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.025591810620601407,
14
+ "grad_norm": 0.5704261660575867,
15
+ "kl": 0.009683904238045216,
16
+ "learning_rate": 4e-08,
17
+ "logits/chosen": -59713832.421052635,
18
+ "logits/rejected": -50416451.047619045,
19
+ "logps/chosen": -439.0024157072368,
20
+ "logps/rejected": -198.41252790178572,
21
+ "loss": 0.5885,
22
+ "loss/base_kto": 0.4994261860847473,
23
+ "metrics/advantage_var": 0.04821223020553589,
24
+ "regularization/grad_norm_sq": 4308.1396484375,
25
+ "regularization/w2": 0.09046166390180588,
26
+ "rewards/chosen": 0.004319707029744198,
27
+ "rewards/margins": 0.004632244073321347,
28
+ "rewards/rejected": -0.0003125370435771488,
29
+ "step": 5
30
+ },
31
+ {
32
+ "epoch": 0.05118362124120281,
33
+ "grad_norm": 0.6019414663314819,
34
+ "kl": 0.0205225832760334,
35
+ "learning_rate": 9e-08,
36
+ "logits/chosen": -59306230.02597403,
37
+ "logits/rejected": -50024096.38554217,
38
+ "logps/chosen": -429.9021915584416,
39
+ "logps/rejected": -192.85753953313252,
40
+ "loss": 0.586,
41
+ "loss/base_kto": 0.4996527135372162,
42
+ "metrics/advantage_var": 0.06569447368383408,
43
+ "regularization/grad_norm_sq": 3819.715576171875,
44
+ "regularization/w2": 0.08616509288549423,
45
+ "rewards/chosen": 0.003629611297087236,
46
+ "rewards/margins": 0.002590525050740383,
47
+ "rewards/rejected": 0.001039086246346853,
48
+ "stability/repetition_rate_mean": 0.3551284670829773,
49
+ "stability/response_length_mean": 46.125,
50
+ "stability/response_length_std": 27.231481552124023,
51
+ "stability/response_length_var": 741.5535888671875,
52
+ "stability/token_entropy_mean": 3.4365234375,
53
+ "step": 10
54
+ },
55
+ {
56
+ "epoch": 0.07677543186180422,
57
+ "grad_norm": 0.6072039604187012,
58
+ "kl": 0.011671505868434906,
59
+ "learning_rate": 1.4e-07,
60
+ "logits/chosen": -56229478.4,
61
+ "logits/rejected": -51918392.15483871,
62
+ "logps/chosen": -404.1024621212121,
63
+ "logps/rejected": -200.67379032258066,
64
+ "loss": 0.5856,
65
+ "loss/base_kto": 0.49987754225730896,
66
+ "metrics/advantage_var": 0.05594036728143692,
67
+ "regularization/grad_norm_sq": 4186.52001953125,
68
+ "regularization/w2": 0.08851373195648193,
69
+ "rewards/chosen": 0.002835910970514471,
70
+ "rewards/margins": 0.0008086012605348293,
71
+ "rewards/rejected": 0.0020273097099796416,
72
+ "stability/repetition_rate_mean": 0.2763020694255829,
73
+ "stability/response_length_mean": 28.5,
74
+ "stability/response_length_std": 30.10457992553711,
75
+ "stability/response_length_var": 906.2857055664062,
76
+ "stability/token_entropy_mean": 3.75390625,
77
+ "step": 15
78
+ },
79
+ {
80
+ "epoch": 0.10236724248240563,
81
+ "grad_norm": 0.6190371513366699,
82
+ "kl": 0.01878364384174347,
83
+ "learning_rate": 1.8999999999999998e-07,
84
+ "logits/chosen": -51667321.6,
85
+ "logits/rejected": -48058720.0,
86
+ "logps/chosen": -343.685205078125,
87
+ "logps/rejected": -225.618603515625,
88
+ "loss": 0.5864,
89
+ "loss/base_kto": 0.5004865527153015,
90
+ "metrics/advantage_var": 0.055938970297575,
91
+ "regularization/grad_norm_sq": 3616.344970703125,
92
+ "regularization/w2": 0.08394529670476913,
93
+ "rewards/chosen": 0.0011490656994283198,
94
+ "rewards/margins": -0.003325168509036303,
95
+ "rewards/rejected": 0.004474234208464623,
96
+ "stability/repetition_rate_mean": 0.1925223171710968,
97
+ "stability/response_length_mean": 49.75,
98
+ "stability/response_length_std": 26.649845123291016,
99
+ "stability/response_length_var": 710.2142944335938,
100
+ "stability/token_entropy_mean": 4.154296875,
101
+ "step": 20
102
+ },
103
+ {
104
+ "epoch": 0.12795905310300704,
105
+ "grad_norm": 0.5828595161437988,
106
+ "kl": 0.018041405826807022,
107
+ "learning_rate": 2.4e-07,
108
+ "logits/chosen": -56484976.993103445,
109
+ "logits/rejected": -52025847.22285714,
110
+ "logps/chosen": -378.47941810344827,
111
+ "logps/rejected": -202.76964285714286,
112
+ "loss": 0.5883,
113
+ "loss/base_kto": 0.5001233220100403,
114
+ "metrics/advantage_var": 0.07194186747074127,
115
+ "regularization/grad_norm_sq": 4000.53515625,
116
+ "regularization/w2": 0.08617646992206573,
117
+ "rewards/chosen": 0.0012034501495032475,
118
+ "rewards/margins": -0.001115835549796156,
119
+ "rewards/rejected": 0.0023192856992994035,
120
+ "stability/repetition_rate_mean": 0.18387754261493683,
121
+ "stability/response_length_mean": 43.375,
122
+ "stability/response_length_std": 28.54538917541504,
123
+ "stability/response_length_var": 814.8392944335938,
124
+ "stability/token_entropy_mean": 4.73828125,
125
+ "step": 25
126
+ },
127
+ {
128
+ "epoch": 0.15355086372360843,
129
+ "grad_norm": 0.6027837991714478,
130
+ "kl": 0.01663057506084442,
131
+ "learning_rate": 2.9e-07,
132
+ "logits/chosen": -57733023.7852349,
133
+ "logits/rejected": -51524224.74853801,
134
+ "logps/chosen": -468.56889681208054,
135
+ "logps/rejected": -198.22884685672514,
136
+ "loss": 0.5872,
137
+ "loss/base_kto": 0.5000787377357483,
138
+ "metrics/advantage_var": 0.08475451171398163,
139
+ "regularization/grad_norm_sq": 4545.20458984375,
140
+ "regularization/w2": 0.09177713841199875,
141
+ "rewards/chosen": 0.001230826113848078,
142
+ "rewards/margins": -0.0006731302826898365,
143
+ "rewards/rejected": 0.0019039563965379145,
144
+ "stability/repetition_rate_mean": 0.1875,
145
+ "stability/response_length_mean": 48.375,
146
+ "stability/response_length_std": 28.93311309814453,
147
+ "stability/response_length_var": 837.125,
148
+ "stability/token_entropy_mean": 4.52734375,
149
+ "step": 30
150
+ },
151
+ {
152
+ "epoch": 0.17914267434420986,
153
+ "grad_norm": 0.6801803708076477,
154
+ "kl": 0.016775427386164665,
155
+ "learning_rate": 3.4000000000000003e-07,
156
+ "logits/chosen": -57625172.25316456,
157
+ "logits/rejected": -53896609.18518519,
158
+ "logps/chosen": -385.9157189477848,
159
+ "logps/rejected": -195.12061149691357,
160
+ "loss": 0.5878,
161
+ "loss/base_kto": 0.4998288154602051,
162
+ "metrics/advantage_var": 0.062246084213256836,
163
+ "regularization/grad_norm_sq": 3760.884521484375,
164
+ "regularization/w2": 0.08562777936458588,
165
+ "rewards/chosen": 0.002080178713496727,
166
+ "rewards/margins": 0.0014936748957853799,
167
+ "rewards/rejected": 0.0005865038177113475,
168
+ "stability/repetition_rate_mean": 0.2854352593421936,
169
+ "stability/response_length_mean": 50.5,
170
+ "stability/response_length_std": 25.048524856567383,
171
+ "stability/response_length_var": 627.4285888671875,
172
+ "stability/token_entropy_mean": 5.5234375,
173
+ "step": 35
174
+ },
175
+ {
176
+ "epoch": 0.20473448496481125,
177
+ "grad_norm": 0.5847268104553223,
178
+ "kl": 0.017838044092059135,
179
+ "learning_rate": 3.8999999999999997e-07,
180
+ "logits/chosen": -56634124.8,
181
+ "logits/rejected": -50225545.6,
182
+ "logps/chosen": -421.87763671875,
183
+ "logps/rejected": -219.2741943359375,
184
+ "loss": 0.5859,
185
+ "loss/base_kto": 0.5001553297042847,
186
+ "metrics/advantage_var": 0.06722141057252884,
187
+ "regularization/grad_norm_sq": 4253.48828125,
188
+ "regularization/w2": 0.0906253382563591,
189
+ "rewards/chosen": 0.002502601221203804,
190
+ "rewards/margins": -0.0010038755834102628,
191
+ "rewards/rejected": 0.003506476804614067,
192
+ "stability/repetition_rate_mean": 0.16303454339504242,
193
+ "stability/response_length_mean": 35.0,
194
+ "stability/response_length_std": 31.518701553344727,
195
+ "stability/response_length_var": 993.4285888671875,
196
+ "stability/token_entropy_mean": 4.8115234375,
197
+ "step": 40
198
+ },
199
+ {
200
+ "epoch": 0.23032629558541268,
201
+ "grad_norm": 0.6392990946769714,
202
+ "kl": 0.044592004269361496,
203
+ "learning_rate": 4.3999999999999997e-07,
204
+ "logits/chosen": -52689789.422818795,
205
+ "logits/rejected": -50767135.438596494,
206
+ "logps/chosen": -352.29244442114094,
207
+ "logps/rejected": -243.81542397660817,
208
+ "loss": 0.5871,
209
+ "loss/base_kto": 0.5003380179405212,
210
+ "metrics/advantage_var": 0.0578509084880352,
211
+ "regularization/grad_norm_sq": 3660.001953125,
212
+ "regularization/w2": 0.08328904211521149,
213
+ "rewards/chosen": 0.0036000581395706074,
214
+ "rewards/margins": -0.0022749988076132804,
215
+ "rewards/rejected": 0.005875056947183888,
216
+ "stability/repetition_rate_mean": 0.0915892943739891,
217
+ "stability/response_length_mean": 29.25,
218
+ "stability/response_length_std": 29.51875877380371,
219
+ "stability/response_length_var": 871.3571166992188,
220
+ "stability/token_entropy_mean": 4.705078125,
221
+ "step": 45
222
+ },
223
+ {
224
+ "epoch": 0.2559181062060141,
225
+ "grad_norm": 0.5789488554000854,
226
+ "kl": 0.04660215601325035,
227
+ "learning_rate": 4.9e-07,
228
+ "logits/chosen": -54035864.912751675,
229
+ "logits/rejected": -48294564.67836257,
230
+ "logps/chosen": -375.1398385067114,
231
+ "logps/rejected": -180.18667763157896,
232
+ "loss": 0.5843,
233
+ "loss/base_kto": 0.4998607635498047,
234
+ "metrics/advantage_var": 0.06304984539747238,
235
+ "regularization/grad_norm_sq": 3861.982421875,
236
+ "regularization/w2": 0.08533728122711182,
237
+ "rewards/chosen": 0.005930147715062903,
238
+ "rewards/margins": 0.0005367304570512354,
239
+ "rewards/rejected": 0.005393417258011668,
240
+ "stability/repetition_rate_mean": 0.4206075370311737,
241
+ "stability/response_length_mean": 55.375,
242
+ "stability/response_length_std": 16.361431121826172,
243
+ "stability/response_length_var": 267.6964416503906,
244
+ "stability/token_entropy_mean": 3.806640625,
245
+ "step": 50
246
+ },
247
+ {
248
+ "epoch": 0.28150991682661547,
249
+ "grad_norm": 0.6636475324630737,
250
+ "kl": 0.04949667677283287,
251
+ "learning_rate": 5.4e-07,
252
+ "logits/chosen": -56956520.94409938,
253
+ "logits/rejected": -49569669.635220125,
254
+ "logps/chosen": -344.4948078416149,
255
+ "logps/rejected": -230.40541470125785,
256
+ "loss": 0.5859,
257
+ "loss/base_kto": 0.5003251433372498,
258
+ "metrics/advantage_var": 0.05528384447097778,
259
+ "regularization/grad_norm_sq": 3821.798583984375,
260
+ "regularization/w2": 0.08618461340665817,
261
+ "rewards/chosen": 0.0017190375683470542,
262
+ "rewards/margins": -0.0025420666225273456,
263
+ "rewards/rejected": 0.0042611041908743996,
264
+ "stability/repetition_rate_mean": 0.10418051481246948,
265
+ "stability/response_length_mean": 22.375,
266
+ "stability/response_length_std": 30.236862182617188,
267
+ "stability/response_length_var": 914.2678833007812,
268
+ "stability/token_entropy_mean": 4.3310546875,
269
+ "step": 55
270
+ },
271
+ {
272
+ "epoch": 0.30710172744721687,
273
+ "grad_norm": 0.5860218405723572,
274
+ "kl": 0.052175115793943405,
275
+ "learning_rate": 5.9e-07,
276
+ "logits/chosen": -52664307.587878786,
277
+ "logits/rejected": -47816974.86451613,
278
+ "logps/chosen": -359.62769886363634,
279
+ "logps/rejected": -178.1703377016129,
280
+ "loss": 0.5865,
281
+ "loss/base_kto": 0.4995388090610504,
282
+ "metrics/advantage_var": 0.05257711559534073,
283
+ "regularization/grad_norm_sq": 3147.68408203125,
284
+ "regularization/w2": 0.07853565365076065,
285
+ "rewards/chosen": 0.009310866124702222,
286
+ "rewards/margins": 0.003652031144322071,
287
+ "rewards/rejected": 0.005658834980380151,
288
+ "stability/repetition_rate_mean": 0.19273173809051514,
289
+ "stability/response_length_mean": 51.125,
290
+ "stability/response_length_std": 21.90523338317871,
291
+ "stability/response_length_var": 479.83929443359375,
292
+ "stability/token_entropy_mean": 5.384765625,
293
+ "step": 60
294
+ },
295
+ {
296
+ "epoch": 0.3326935380678183,
297
+ "grad_norm": 0.5740265846252441,
298
+ "kl": 0.08242836594581604,
299
+ "learning_rate": 6.4e-07,
300
+ "logits/chosen": -57557335.535483874,
301
+ "logits/rejected": -47273723.345454544,
302
+ "logps/chosen": -381.8203629032258,
303
+ "logps/rejected": -183.4941287878788,
304
+ "loss": 0.5876,
305
+ "loss/base_kto": 0.4996063709259033,
306
+ "metrics/advantage_var": 0.060703542083501816,
307
+ "regularization/grad_norm_sq": 3963.318359375,
308
+ "regularization/w2": 0.08724621683359146,
309
+ "rewards/chosen": 0.012640624661599436,
310
+ "rewards/margins": 0.003818599709317831,
311
+ "rewards/rejected": 0.008822024952281605,
312
+ "stability/repetition_rate_mean": 0.18141163885593414,
313
+ "stability/response_length_mean": 20.625,
314
+ "stability/response_length_std": 27.176342010498047,
315
+ "stability/response_length_var": 738.5535888671875,
316
+ "stability/token_entropy_mean": 5.541015625,
317
+ "step": 65
318
+ },
319
+ {
320
+ "epoch": 0.3582853486884197,
321
+ "grad_norm": 0.5525412559509277,
322
+ "kl": 0.08330817520618439,
323
+ "learning_rate": 6.9e-07,
324
+ "logits/chosen": -52759789.83225807,
325
+ "logits/rejected": -49030733.57575758,
326
+ "logps/chosen": -379.01844758064516,
327
+ "logps/rejected": -220.32575757575756,
328
+ "loss": 0.5896,
329
+ "loss/base_kto": 0.4998234808444977,
330
+ "metrics/advantage_var": 0.07535155117511749,
331
+ "regularization/grad_norm_sq": 4505.4248046875,
332
+ "regularization/w2": 0.09144462645053864,
333
+ "rewards/chosen": 0.01100011948616274,
334
+ "rewards/margins": 0.001358813158111722,
335
+ "rewards/rejected": 0.009641306328051017,
336
+ "stability/repetition_rate_mean": 0.1875,
337
+ "stability/response_length_mean": 33.875,
338
+ "stability/response_length_std": 32.36151885986328,
339
+ "stability/response_length_var": 1047.267822265625,
340
+ "stability/token_entropy_mean": 5.734375,
341
+ "step": 70
342
+ },
343
+ {
344
+ "epoch": 0.3838771593090211,
345
+ "grad_norm": 0.6087732315063477,
346
+ "kl": 0.08941509574651718,
347
+ "learning_rate": 7.4e-07,
348
+ "logits/chosen": -49510995.027027026,
349
+ "logits/rejected": -47899594.41860465,
350
+ "logps/chosen": -314.11993243243245,
351
+ "logps/rejected": -228.82019894622093,
352
+ "loss": 0.5871,
353
+ "loss/base_kto": 0.4989282786846161,
354
+ "metrics/advantage_var": 0.0716477707028389,
355
+ "regularization/grad_norm_sq": 3729.305419921875,
356
+ "regularization/w2": 0.08471358567476273,
357
+ "rewards/chosen": 0.01508830366907893,
358
+ "rewards/margins": 0.008622753590176797,
359
+ "rewards/rejected": 0.0064655500789021336,
360
+ "stability/repetition_rate_mean": 0.07421875,
361
+ "stability/response_length_mean": 24.25,
362
+ "stability/response_length_std": 32.92306900024414,
363
+ "stability/response_length_var": 1083.9285888671875,
364
+ "stability/token_entropy_mean": 1.901123046875,
365
+ "step": 75
366
+ },
367
+ {
368
+ "epoch": 0.4094689699296225,
369
+ "grad_norm": 0.6029742360115051,
370
+ "kl": 0.12230757623910904,
371
+ "learning_rate": 7.9e-07,
372
+ "logits/chosen": -58619103.78807947,
373
+ "logits/rejected": -53444892.78106509,
374
+ "logps/chosen": -403.8790873344371,
375
+ "logps/rejected": -200.96717825443787,
376
+ "loss": 0.586,
377
+ "loss/base_kto": 0.49925336241722107,
378
+ "metrics/advantage_var": 0.08379612118005753,
379
+ "regularization/grad_norm_sq": 3586.81494140625,
380
+ "regularization/w2": 0.08361315727233887,
381
+ "rewards/chosen": 0.015101601745908624,
382
+ "rewards/margins": 0.006237886015433373,
383
+ "rewards/rejected": 0.008863715730475251,
384
+ "stability/repetition_rate_mean": 0.19088542461395264,
385
+ "stability/response_length_mean": 42.0,
386
+ "stability/response_length_std": 30.481843948364258,
387
+ "stability/response_length_var": 929.1428833007812,
388
+ "stability/token_entropy_mean": 5.22265625,
389
+ "step": 80
390
+ },
391
+ {
392
+ "epoch": 0.4350607805502239,
393
+ "grad_norm": 0.6115427613258362,
394
+ "kl": 0.12014111131429672,
395
+ "learning_rate": 8.399999999999999e-07,
396
+ "logits/chosen": -51479532.18064516,
397
+ "logits/rejected": -47144202.86060606,
398
+ "logps/chosen": -358.09873991935484,
399
+ "logps/rejected": -230.32935606060607,
400
+ "loss": 0.5852,
401
+ "loss/base_kto": 0.4983179271221161,
402
+ "metrics/advantage_var": 0.0890185683965683,
403
+ "regularization/grad_norm_sq": 3845.35009765625,
404
+ "regularization/w2": 0.08649836480617523,
405
+ "rewards/chosen": 0.023378246061263545,
406
+ "rewards/margins": 0.013833501425190287,
407
+ "rewards/rejected": 0.009544744636073257,
408
+ "stability/repetition_rate_mean": 0.1291852593421936,
409
+ "stability/response_length_mean": 28.0,
410
+ "stability/response_length_std": 31.181495666503906,
411
+ "stability/response_length_var": 972.2857055664062,
412
+ "stability/token_entropy_mean": 4.955078125,
413
+ "step": 85
414
+ },
415
+ {
416
+ "epoch": 0.46065259117082535,
417
+ "grad_norm": 0.6375041604042053,
418
+ "kl": 0.16934870183467865,
419
+ "learning_rate": 8.9e-07,
420
+ "logits/chosen": -58404365.12820513,
421
+ "logits/rejected": -50561935.6097561,
422
+ "logps/chosen": -380.53598257211536,
423
+ "logps/rejected": -187.11123285060975,
424
+ "loss": 0.5845,
425
+ "loss/base_kto": 0.4982176721096039,
426
+ "metrics/advantage_var": 0.09395573288202286,
427
+ "regularization/grad_norm_sq": 3960.31103515625,
428
+ "regularization/w2": 0.0869247317314148,
429
+ "rewards/chosen": 0.025340945292741824,
430
+ "rewards/margins": 0.013783786392271555,
431
+ "rewards/rejected": 0.01155715890047027,
432
+ "stability/repetition_rate_mean": 0.3175307810306549,
433
+ "stability/response_length_mean": 35.625,
434
+ "stability/response_length_std": 31.057262420654297,
435
+ "stability/response_length_var": 964.5535888671875,
436
+ "stability/token_entropy_mean": 3.80078125,
437
+ "step": 90
438
+ },
439
+ {
440
+ "epoch": 0.48624440179142675,
441
+ "grad_norm": 0.6220579147338867,
442
+ "kl": 0.16499601304531097,
443
+ "learning_rate": 9.399999999999999e-07,
444
+ "logits/chosen": -50380346.32911392,
445
+ "logits/rejected": -48968169.87654321,
446
+ "logps/chosen": -314.7436956091772,
447
+ "logps/rejected": -207.06233121141975,
448
+ "loss": 0.5842,
449
+ "loss/base_kto": 0.49793797731399536,
450
+ "metrics/advantage_var": 0.13462769985198975,
451
+ "regularization/grad_norm_sq": 3773.901123046875,
452
+ "regularization/w2": 0.08464869111776352,
453
+ "rewards/chosen": 0.02496972416020647,
454
+ "rewards/margins": 0.016831111695584253,
455
+ "rewards/rejected": 0.008138612464622216,
456
+ "stability/repetition_rate_mean": 0.09133065491914749,
457
+ "stability/response_length_mean": 21.875,
458
+ "stability/response_length_std": 27.304826736450195,
459
+ "stability/response_length_var": 745.5535888671875,
460
+ "stability/token_entropy_mean": 4.09375,
461
+ "step": 95
462
+ },
463
+ {
464
+ "epoch": 0.5118362124120281,
465
+ "grad_norm": 0.6105950474739075,
466
+ "kl": 0.20538730919361115,
467
+ "learning_rate": 9.9e-07,
468
+ "logits/chosen": -54697513.51351351,
469
+ "logits/rejected": -50905552.37209302,
470
+ "logps/chosen": -359.57635663006755,
471
+ "logps/rejected": -216.37804324127907,
472
+ "loss": 0.5846,
473
+ "loss/base_kto": 0.4987795054912567,
474
+ "metrics/advantage_var": 0.12774451076984406,
475
+ "regularization/grad_norm_sq": 3816.7734375,
476
+ "regularization/w2": 0.08535917103290558,
477
+ "rewards/chosen": 0.029381449158127244,
478
+ "rewards/margins": 0.009296495572790869,
479
+ "rewards/rejected": 0.020084953585336376,
480
+ "stability/repetition_rate_mean": 0.2265625,
481
+ "stability/response_length_mean": 41.25,
482
+ "stability/response_length_std": 31.476749420166016,
483
+ "stability/response_length_var": 990.7857055664062,
484
+ "stability/token_entropy_mean": 4.166015625,
485
+ "step": 100
486
+ },
487
+ {
488
+ "epoch": 0.5374280230326296,
489
+ "grad_norm": 0.6735162138938904,
490
+ "kl": 0.22678242623806,
491
+ "learning_rate": 9.999815554351224e-07,
492
+ "logits/chosen": -59375134.84337349,
493
+ "logits/rejected": -53807054.12987013,
494
+ "logps/chosen": -399.4981645331325,
495
+ "logps/rejected": -209.86383928571428,
496
+ "loss": 0.5847,
497
+ "loss/base_kto": 0.49670204520225525,
498
+ "metrics/advantage_var": 0.2160111963748932,
499
+ "regularization/grad_norm_sq": 3959.833740234375,
500
+ "regularization/w2": 0.08724039793014526,
501
+ "rewards/chosen": 0.04043001151946654,
502
+ "rewards/margins": 0.02643077232863418,
503
+ "rewards/rejected": 0.01399923919083236,
504
+ "stability/repetition_rate_mean": 0.1897321343421936,
505
+ "stability/response_length_mean": 29.0,
506
+ "stability/response_length_std": 29.89505386352539,
507
+ "stability/response_length_var": 893.7142944335938,
508
+ "stability/token_entropy_mean": 3.359375,
509
+ "step": 105
510
+ },
511
+ {
512
+ "epoch": 0.5630198336532309,
513
+ "grad_norm": 0.6461487412452698,
514
+ "kl": 0.2732836902141571,
515
+ "learning_rate": 9.999066267225444e-07,
516
+ "logits/chosen": -57406969.8313253,
517
+ "logits/rejected": -53620639.584415585,
518
+ "logps/chosen": -378.2289627259036,
519
+ "logps/rejected": -205.90453784496754,
520
+ "loss": 0.5829,
521
+ "loss/base_kto": 0.4979163706302643,
522
+ "metrics/advantage_var": 0.1939479112625122,
523
+ "regularization/grad_norm_sq": 3633.171875,
524
+ "regularization/w2": 0.08427540957927704,
525
+ "rewards/chosen": 0.033429114215345265,
526
+ "rewards/margins": 0.015068041179646833,
527
+ "rewards/rejected": 0.018361073035698432,
528
+ "stability/repetition_rate_mean": 0.30853456258773804,
529
+ "stability/response_length_mean": 28.875,
530
+ "stability/response_length_std": 29.911476135253906,
531
+ "stability/response_length_var": 894.6964111328125,
532
+ "stability/token_entropy_mean": 4.416015625,
533
+ "step": 110
534
+ },
535
+ {
536
+ "epoch": 0.5886116442738324,
537
+ "grad_norm": 0.6481019854545593,
538
+ "kl": 0.31861141324043274,
539
+ "learning_rate": 9.997740697079592e-07,
540
+ "logits/chosen": -60599995.94936709,
541
+ "logits/rejected": -53401410.37037037,
542
+ "logps/chosen": -364.0679390822785,
543
+ "logps/rejected": -200.95594618055554,
544
+ "loss": 0.5815,
545
+ "loss/base_kto": 0.4965081214904785,
546
+ "metrics/advantage_var": 0.2759661376476288,
547
+ "regularization/grad_norm_sq": 3353.943115234375,
548
+ "regularization/w2": 0.08032859116792679,
549
+ "rewards/chosen": 0.052460066879851906,
550
+ "rewards/margins": 0.0283992906756132,
551
+ "rewards/rejected": 0.024060776204238705,
552
+ "stability/repetition_rate_mean": 0.3053385615348816,
553
+ "stability/response_length_mean": 49.0,
554
+ "stability/response_length_std": 27.795169830322266,
555
+ "stability/response_length_var": 772.5714111328125,
556
+ "stability/token_entropy_mean": 4.779296875,
557
+ "step": 115
558
+ },
559
+ {
560
+ "epoch": 0.6142034548944337,
561
+ "grad_norm": 0.6184019446372986,
562
+ "kl": 0.3490689694881439,
563
+ "learning_rate": 9.995838996722914e-07,
564
+ "logits/chosen": -57745769.4117647,
565
+ "logits/rejected": -54368427.68862276,
566
+ "logps/chosen": -383.6613562091503,
567
+ "logps/rejected": -211.98376684131736,
568
+ "loss": 0.5837,
569
+ "loss/base_kto": 0.49555841088294983,
570
+ "metrics/advantage_var": 0.4176083505153656,
571
+ "regularization/grad_norm_sq": 4317.544921875,
572
+ "regularization/w2": 0.08935306966304779,
573
+ "rewards/chosen": 0.05835722630320032,
574
+ "rewards/margins": 0.03509791492412741,
575
+ "rewards/rejected": 0.02325931137907291,
576
+ "stability/repetition_rate_mean": 0.1742897778749466,
577
+ "stability/response_length_mean": 27.875,
578
+ "stability/response_length_std": 30.31943130493164,
579
+ "stability/response_length_var": 919.2678833007812,
580
+ "stability/token_entropy_mean": 4.634765625,
581
+ "step": 120
582
+ },
583
+ {
584
+ "epoch": 0.6397952655150352,
585
+ "grad_norm": 0.6115716099739075,
586
+ "kl": 0.39925938844680786,
587
+ "learning_rate": 9.993361385379874e-07,
588
+ "logits/chosen": -60688299.83561644,
589
+ "logits/rejected": -55668524.137931034,
590
+ "logps/chosen": -416.8091823630137,
591
+ "logps/rejected": -216.12354076867817,
592
+ "loss": 0.582,
593
+ "loss/base_kto": 0.49605321884155273,
594
+ "metrics/advantage_var": 0.6236904263496399,
595
+ "regularization/grad_norm_sq": 3812.632568359375,
596
+ "regularization/w2": 0.08550175279378891,
597
+ "rewards/chosen": 0.057012499195255646,
598
+ "rewards/margins": 0.032647929103745005,
599
+ "rewards/rejected": 0.02436457009151064,
600
+ "stability/repetition_rate_mean": 0.16215278208255768,
601
+ "stability/response_length_mean": 15.25,
602
+ "stability/response_length_std": 24.93276596069336,
603
+ "stability/response_length_var": 621.6428833007812,
604
+ "stability/token_entropy_mean": 3.64453125,
605
+ "step": 125
606
+ },
607
+ {
608
+ "epoch": 0.6653870761356366,
609
+ "grad_norm": 0.593185305595398,
610
+ "kl": 0.4498286247253418,
611
+ "learning_rate": 9.99030814866488e-07,
612
+ "logits/chosen": -57376213.05806451,
613
+ "logits/rejected": -53835838.06060606,
614
+ "logps/chosen": -391.9687247983871,
615
+ "logps/rejected": -183.66205018939394,
616
+ "loss": 0.5824,
617
+ "loss/base_kto": 0.4946207106113434,
618
+ "metrics/advantage_var": 0.780052661895752,
619
+ "regularization/grad_norm_sq": 3791.43017578125,
620
+ "regularization/w2": 0.08550234884023666,
621
+ "rewards/chosen": 0.06892158754410282,
622
+ "rewards/margins": 0.04323520790913005,
623
+ "rewards/rejected": 0.025686379634972775,
624
+ "stability/repetition_rate_mean": 0.24460937082767487,
625
+ "stability/response_length_mean": 43.25,
626
+ "stability/response_length_std": 29.620214462280273,
627
+ "stability/response_length_var": 877.3571166992188,
628
+ "stability/token_entropy_mean": 3.6328125,
629
+ "step": 130
630
+ },
631
+ {
632
+ "epoch": 0.690978886756238,
633
+ "grad_norm": 0.5935289263725281,
634
+ "kl": 0.5017997026443481,
635
+ "learning_rate": 9.986679638549358e-07,
636
+ "logits/chosen": -59854006.18404908,
637
+ "logits/rejected": -55003403.41401274,
638
+ "logps/chosen": -400.9800373849693,
639
+ "logps/rejected": -247.51960589171975,
640
+ "loss": 0.5789,
641
+ "loss/base_kto": 0.49386605620384216,
642
+ "metrics/advantage_var": 1.076611042022705,
643
+ "regularization/grad_norm_sq": 4160.88037109375,
644
+ "regularization/w2": 0.08902523666620255,
645
+ "rewards/chosen": 0.08361249467346565,
646
+ "rewards/margins": 0.048496560192178954,
647
+ "rewards/rejected": 0.0351159344812867,
648
+ "stability/repetition_rate_mean": 0.2270585298538208,
649
+ "stability/response_length_mean": 29.875,
650
+ "stability/response_length_std": 29.502723693847656,
651
+ "stability/response_length_var": 870.4107055664062,
652
+ "stability/token_entropy_mean": 3.8955078125,
653
+ "step": 135
654
+ },
655
+ {
656
+ "epoch": 0.7165706973768394,
657
+ "grad_norm": 0.7262139916419983,
658
+ "kl": 0.48766636848449707,
659
+ "learning_rate": 9.982476273321175e-07,
660
+ "logits/chosen": -57086696.72727273,
661
+ "logits/rejected": -50077061.78064516,
662
+ "logps/chosen": -366.3728456439394,
663
+ "logps/rejected": -189.92496219758064,
664
+ "loss": 0.5811,
665
+ "loss/base_kto": 0.4916563630104065,
666
+ "metrics/advantage_var": 1.9005340337753296,
667
+ "regularization/grad_norm_sq": 5850.53369140625,
668
+ "regularization/w2": 0.09640365839004517,
669
+ "rewards/chosen": 0.08169195001775569,
670
+ "rewards/margins": 0.07074021258312237,
671
+ "rewards/rejected": 0.010951737434633317,
672
+ "stability/repetition_rate_mean": 0.2662760317325592,
673
+ "stability/response_length_mean": 52.75,
674
+ "stability/response_length_std": 22.72663688659668,
675
+ "stability/response_length_var": 516.5,
676
+ "stability/token_entropy_mean": 5.19921875,
677
+ "step": 140
678
+ },
679
+ {
680
+ "epoch": 0.7421625079974408,
681
+ "grad_norm": 0.6740468144416809,
682
+ "kl": 0.5717339515686035,
683
+ "learning_rate": 9.977698537536417e-07,
684
+ "logits/chosen": -51144241.34939759,
685
+ "logits/rejected": -51662345.97402597,
686
+ "logps/chosen": -329.4772684487952,
687
+ "logps/rejected": -199.15458857548703,
688
+ "loss": 0.5778,
689
+ "loss/base_kto": 0.4942333400249481,
690
+ "metrics/advantage_var": 0.8122803568840027,
691
+ "regularization/grad_norm_sq": 3395.665771484375,
692
+ "regularization/w2": 0.08150183409452438,
693
+ "rewards/chosen": 0.07945383600441806,
694
+ "rewards/margins": 0.04612136428073769,
695
+ "rewards/rejected": 0.033332471723680375,
696
+ "stability/repetition_rate_mean": 0.19258596003055573,
697
+ "stability/response_length_mean": 22.625,
698
+ "stability/response_length_std": 26.359804153442383,
699
+ "stability/response_length_var": 694.8392944335938,
700
+ "stability/token_entropy_mean": 5.59765625,
701
+ "step": 145
702
+ },
703
+ {
704
+ "epoch": 0.7677543186180422,
705
+ "grad_norm": 0.6410212516784668,
706
+ "kl": 0.6380648016929626,
707
+ "learning_rate": 9.972346981963546e-07,
708
+ "logits/chosen": -55422674.823529415,
709
+ "logits/rejected": -50191220.053333335,
710
+ "logps/chosen": -396.8014705882353,
711
+ "logps/rejected": -207.36661458333333,
712
+ "loss": 0.5788,
713
+ "loss/base_kto": 0.48983898758888245,
714
+ "metrics/advantage_var": 1.331944465637207,
715
+ "regularization/grad_norm_sq": 4066.153076171875,
716
+ "regularization/w2": 0.08941753953695297,
717
+ "rewards/chosen": 0.11329341215245864,
718
+ "rewards/margins": 0.0773618948693369,
719
+ "rewards/rejected": 0.035931517283121744,
720
+ "stability/repetition_rate_mean": 0.2115885466337204,
721
+ "stability/response_length_mean": 35.25,
722
+ "stability/response_length_std": 31.01957893371582,
723
+ "stability/response_length_var": 962.2142944335938,
724
+ "stability/token_entropy_mean": 4.6640625,
725
+ "step": 150
726
+ },
727
+ {
728
+ "epoch": 0.7933461292386437,
729
+ "grad_norm": 0.6439304947853088,
730
+ "kl": 0.6510013341903687,
731
+ "learning_rate": 9.966422223519885e-07,
732
+ "logits/chosen": -54019288.847058825,
733
+ "logits/rejected": -49348276.906666666,
734
+ "logps/chosen": -360.07109375,
735
+ "logps/rejected": -190.99877604166667,
736
+ "loss": 0.5778,
737
+ "loss/base_kto": 0.4926762580871582,
738
+ "metrics/advantage_var": 2.249819755554199,
739
+ "regularization/grad_norm_sq": 5026.2802734375,
740
+ "regularization/w2": 0.09407851099967957,
741
+ "rewards/chosen": 0.09181964537676643,
742
+ "rewards/margins": 0.06113565108355354,
743
+ "rewards/rejected": 0.03068399429321289,
744
+ "stability/repetition_rate_mean": 0.3444148898124695,
745
+ "stability/response_length_mean": 61.875,
746
+ "stability/response_length_std": 6.010407447814941,
747
+ "stability/response_length_var": 36.125,
748
+ "stability/token_entropy_mean": 4.5625,
749
+ "step": 155
750
+ },
751
+ {
752
+ "epoch": 0.818937939859245,
753
+ "grad_norm": 0.615806519985199,
754
+ "kl": 0.7197233438491821,
755
+ "learning_rate": 9.959924945200523e-07,
756
+ "logits/chosen": -55244385.52380952,
757
+ "logits/rejected": -48958032.84210526,
758
+ "logps/chosen": -415.5634765625,
759
+ "logps/rejected": -186.464111328125,
760
+ "loss": 0.5777,
761
+ "loss/base_kto": 0.4885575473308563,
762
+ "metrics/advantage_var": 1.9970428943634033,
763
+ "regularization/grad_norm_sq": 4003.491455078125,
764
+ "regularization/w2": 0.08765041083097458,
765
+ "rewards/chosen": 0.13318413779849098,
766
+ "rewards/margins": 0.08986123582175501,
767
+ "rewards/rejected": 0.04332290197673597,
768
+ "stability/repetition_rate_mean": 0.30851560831069946,
769
+ "stability/response_length_mean": 32.5,
770
+ "stability/response_length_std": 30.528675079345703,
771
+ "stability/response_length_var": 932.0,
772
+ "stability/token_entropy_mean": 4.44921875,
773
+ "step": 160
774
+ },
775
+ {
776
+ "epoch": 0.8445297504798465,
777
+ "grad_norm": 0.7225887179374695,
778
+ "kl": 0.7622379660606384,
779
+ "learning_rate": 9.952855895999568e-07,
780
+ "logits/chosen": -54423646.16091954,
781
+ "logits/rejected": -49801538.63013699,
782
+ "logps/chosen": -369.7487652658046,
783
+ "logps/rejected": -212.1081843964041,
784
+ "loss": 0.575,
785
+ "loss/base_kto": 0.4914153218269348,
786
+ "metrics/advantage_var": 1.7091789245605469,
787
+ "regularization/grad_norm_sq": 3531.582763671875,
788
+ "regularization/w2": 0.0829373374581337,
789
+ "rewards/chosen": 0.11679701969541352,
790
+ "rewards/margins": 0.06840403473033733,
791
+ "rewards/rejected": 0.048392984965076186,
792
+ "stability/repetition_rate_mean": 0.2411106526851654,
793
+ "stability/response_length_mean": 22.5,
794
+ "stability/response_length_std": 28.33977508544922,
795
+ "stability/response_length_var": 803.1428833007812,
796
+ "stability/token_entropy_mean": 4.8671875,
797
+ "step": 165
798
+ },
799
+ {
800
+ "epoch": 0.8701215611004478,
801
+ "grad_norm": 0.6213456988334656,
802
+ "kl": 0.9274574518203735,
803
+ "learning_rate": 9.9452158908238e-07,
804
+ "logits/chosen": -59135054.76923077,
805
+ "logits/rejected": -52582671.25827815,
806
+ "logps/chosen": -439.6777921597633,
807
+ "logps/rejected": -190.59510813327816,
808
+ "loss": 0.5717,
809
+ "loss/base_kto": 0.4875049293041229,
810
+ "metrics/advantage_var": 2.3025033473968506,
811
+ "regularization/grad_norm_sq": 4036.350830078125,
812
+ "regularization/w2": 0.08665412664413452,
813
+ "rewards/chosen": 0.1664069587662375,
814
+ "rewards/margins": 0.1001336926497226,
815
+ "rewards/rejected": 0.0662732661165149,
816
+ "stability/repetition_rate_mean": 0.22428728640079498,
817
+ "stability/response_length_mean": 36.25,
818
+ "stability/response_length_std": 30.76988410949707,
819
+ "stability/response_length_var": 946.7857055664062,
820
+ "stability/token_entropy_mean": 3.7744140625,
821
+ "step": 170
822
+ },
823
+ {
824
+ "epoch": 0.8957133717210493,
825
+ "grad_norm": 0.7222792506217957,
826
+ "kl": 0.9340354204177856,
827
+ "learning_rate": 9.937005810398745e-07,
828
+ "logits/chosen": -56650924.72289157,
829
+ "logits/rejected": -48021038.54545455,
830
+ "logps/chosen": -354.87575301204816,
831
+ "logps/rejected": -194.314453125,
832
+ "loss": 0.5718,
833
+ "loss/base_kto": 0.48661375045776367,
834
+ "metrics/advantage_var": 4.268935680389404,
835
+ "regularization/grad_norm_sq": 4183.99560546875,
836
+ "regularization/w2": 0.08717496693134308,
837
+ "rewards/chosen": 0.15614137304834572,
838
+ "rewards/margins": 0.10683375422597546,
839
+ "rewards/rejected": 0.04930761882237026,
840
+ "stability/repetition_rate_mean": 0.2011384218931198,
841
+ "stability/response_length_mean": 28.125,
842
+ "stability/response_length_std": 25.357091903686523,
843
+ "stability/response_length_var": 642.9821166992188,
844
+ "stability/token_entropy_mean": 4.91015625,
845
+ "step": 175
846
+ },
847
+ {
848
+ "epoch": 0.9213051823416507,
849
+ "grad_norm": 0.6457726955413818,
850
+ "kl": 1.0286387205123901,
851
+ "learning_rate": 9.928226601167138e-07,
852
+ "logits/chosen": -52652798.42944785,
853
+ "logits/rejected": -47983420.33121019,
854
+ "logps/chosen": -374.4070408358896,
855
+ "logps/rejected": -210.5137838375796,
856
+ "loss": 0.5699,
857
+ "loss/base_kto": 0.48794251680374146,
858
+ "metrics/advantage_var": 4.224320411682129,
859
+ "regularization/grad_norm_sq": 3658.589111328125,
860
+ "regularization/w2": 0.08313455432653427,
861
+ "rewards/chosen": 0.1738798925481691,
862
+ "rewards/margins": 0.0954359765675324,
863
+ "rewards/rejected": 0.0784439159806367,
864
+ "stability/repetition_rate_mean": 0.1989397406578064,
865
+ "stability/response_length_mean": 35.25,
866
+ "stability/response_length_std": 31.129911422729492,
867
+ "stability/response_length_var": 969.0714111328125,
868
+ "stability/token_entropy_mean": 3.41015625,
869
+ "step": 180
870
+ },
871
+ {
872
+ "epoch": 0.946896992962252,
873
+ "grad_norm": 0.6506476402282715,
874
+ "kl": 1.0774658918380737,
875
+ "learning_rate": 9.918879275179817e-07,
876
+ "logits/chosen": -54617227.061728396,
877
+ "logits/rejected": -49519227.1392405,
878
+ "logps/chosen": -310.31630979938274,
879
+ "logps/rejected": -196.56126384493672,
880
+ "loss": 0.5768,
881
+ "loss/base_kto": 0.486668199300766,
882
+ "metrics/advantage_var": 7.448278903961182,
883
+ "regularization/grad_norm_sq": 6933.6611328125,
884
+ "regularization/w2": 0.09475024789571762,
885
+ "rewards/chosen": 0.16850583347273462,
886
+ "rewards/margins": 0.12071590972032412,
887
+ "rewards/rejected": 0.0477899237524105,
888
+ "stability/repetition_rate_mean": 0.15234375,
889
+ "stability/response_length_mean": 32.875,
890
+ "stability/response_length_std": 33.30996322631836,
891
+ "stability/response_length_var": 1109.5535888671875,
892
+ "stability/token_entropy_mean": 3.6953125,
893
+ "step": 185
894
+ },
895
+ {
896
+ "epoch": 0.9724888035828535,
897
+ "grad_norm": 0.6974467635154724,
898
+ "kl": 1.1172609329223633,
899
+ "learning_rate": 9.90896490997906e-07,
900
+ "logits/chosen": -53099575.18562874,
901
+ "logits/rejected": -49682532.39215686,
902
+ "logps/chosen": -390.274186002994,
903
+ "logps/rejected": -210.4579248366013,
904
+ "loss": 0.572,
905
+ "loss/base_kto": 0.4829126298427582,
906
+ "metrics/advantage_var": 6.995049953460693,
907
+ "regularization/grad_norm_sq": 5340.63427734375,
908
+ "regularization/w2": 0.09194418042898178,
909
+ "rewards/chosen": 0.21311228860638098,
910
+ "rewards/margins": 0.13904476766693424,
911
+ "rewards/rejected": 0.07406752093944674,
912
+ "stability/repetition_rate_mean": 0.13363486528396606,
913
+ "stability/response_length_mean": 16.75,
914
+ "stability/response_length_std": 27.12800407409668,
915
+ "stability/response_length_var": 735.9285888671875,
916
+ "stability/token_entropy_mean": 5.107421875,
917
+ "step": 190
918
+ },
919
+ {
920
+ "epoch": 0.9980806142034548,
921
+ "grad_norm": 0.6366767287254333,
922
+ "kl": 1.1507939100265503,
923
+ "learning_rate": 9.898484648474362e-07,
924
+ "logits/chosen": -60035851.561290324,
925
+ "logits/rejected": -53796069.624242425,
926
+ "logps/chosen": -390.8335685483871,
927
+ "logps/rejected": -197.07270359848485,
928
+ "loss": 0.5705,
929
+ "loss/base_kto": 0.48604080080986023,
930
+ "metrics/advantage_var": 4.371114253997803,
931
+ "regularization/grad_norm_sq": 3933.094482421875,
932
+ "regularization/w2": 0.08576133102178574,
933
+ "rewards/chosen": 0.19513650709582914,
934
+ "rewards/margins": 0.11047319690036868,
935
+ "rewards/rejected": 0.08466331019546046,
936
+ "stability/repetition_rate_mean": 0.3953683078289032,
937
+ "stability/response_length_mean": 49.0,
938
+ "stability/response_length_std": 27.82085609436035,
939
+ "stability/response_length_var": 774.0,
940
+ "stability/token_entropy_mean": 5.1796875,
941
+ "step": 195
942
+ }
943
+ ],
944
+ "logging_steps": 5,
945
+ "max_steps": 196,
946
+ "num_input_tokens_seen": 0,
947
+ "num_train_epochs": 1,
948
+ "save_steps": 200,
949
+ "stateful_callbacks": {
950
+ "TrainerControl": {
951
+ "args": {
952
+ "should_epoch_stop": false,
953
+ "should_evaluate": false,
954
+ "should_log": false,
955
+ "should_save": true,
956
+ "should_training_stop": true
957
+ },
958
+ "attributes": {}
959
+ }
960
+ },
961
+ "total_flos": 3.1861866257511875e+18,
962
+ "train_batch_size": 8,
963
+ "trial_name": null,
964
+ "trial_params": null
965
+ }
mistral7b_kto_w2_delta0.001/checkpoint-196/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc269180f5d75bd1ef95cbfdbfbd583fa9ef80416dbb4748e6a57fe1cde09ea8
3
+ size 8081
mistral7b_kto_w2_delta0.001/checkpoint-196/zero_to_fp32.py ADDED
@@ -0,0 +1,604 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright (c) Microsoft Corporation.
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
+ # DeepSpeed Team
7
+
8
+ # This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
9
+ # copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
10
+ # the future. Once extracted, the weights don't require DeepSpeed and can be used in any
11
+ # application.
12
+ #
13
+ # example: python zero_to_fp32.py . pytorch_model.bin
14
+
15
+ import argparse
16
+ import torch
17
+ import glob
18
+ import math
19
+ import os
20
+ import re
21
+ from collections import OrderedDict
22
+ from dataclasses import dataclass
23
+
24
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
25
+ # DeepSpeed data structures it has to be available in the current python environment.
26
+ from deepspeed.utils import logger
27
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
28
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
29
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
30
+
31
+
32
+ @dataclass
33
+ class zero_model_state:
34
+ buffers: dict()
35
+ param_shapes: dict()
36
+ shared_params: list
37
+ ds_version: int
38
+ frozen_param_shapes: dict()
39
+ frozen_param_fragments: dict()
40
+
41
+
42
+ debug = 0
43
+
44
+ # load to cpu
45
+ device = torch.device('cpu')
46
+
47
+
48
+ def atoi(text):
49
+ return int(text) if text.isdigit() else text
50
+
51
+
52
+ def natural_keys(text):
53
+ '''
54
+ alist.sort(key=natural_keys) sorts in human order
55
+ http://nedbatchelder.com/blog/200712/human_sorting.html
56
+ (See Toothy's implementation in the comments)
57
+ '''
58
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
59
+
60
+
61
+ def get_model_state_file(checkpoint_dir, zero_stage):
62
+ if not os.path.isdir(checkpoint_dir):
63
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
64
+
65
+ # there should be only one file
66
+ if zero_stage <= 2:
67
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
68
+ elif zero_stage == 3:
69
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
70
+
71
+ if not os.path.exists(file):
72
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
73
+
74
+ return file
75
+
76
+
77
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
78
+ # XXX: need to test that this simple glob rule works for multi-node setup too
79
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
80
+
81
+ if len(ckpt_files) == 0:
82
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
83
+
84
+ return ckpt_files
85
+
86
+
87
+ def get_optim_files(checkpoint_dir):
88
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
89
+
90
+
91
+ def get_model_state_files(checkpoint_dir):
92
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
93
+
94
+
95
+ def parse_model_states(files):
96
+ zero_model_states = []
97
+ for file in files:
98
+ state_dict = torch.load(file, map_location=device)
99
+
100
+ if BUFFER_NAMES not in state_dict:
101
+ raise ValueError(f"{file} is not a model state checkpoint")
102
+ buffer_names = state_dict[BUFFER_NAMES]
103
+ if debug:
104
+ print("Found buffers:", buffer_names)
105
+
106
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
107
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
108
+ param_shapes = state_dict[PARAM_SHAPES]
109
+
110
+ # collect parameters that are included in param_shapes
111
+ param_names = []
112
+ for s in param_shapes:
113
+ for name in s.keys():
114
+ param_names.append(name)
115
+
116
+ # update with frozen parameters
117
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
118
+ if frozen_param_shapes is not None:
119
+ if debug:
120
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
121
+ param_names += list(frozen_param_shapes.keys())
122
+
123
+ # handle shared params
124
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
125
+
126
+ ds_version = state_dict.get(DS_VERSION, None)
127
+
128
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
129
+
130
+ z_model_state = zero_model_state(buffers=buffers,
131
+ param_shapes=param_shapes,
132
+ shared_params=shared_params,
133
+ ds_version=ds_version,
134
+ frozen_param_shapes=frozen_param_shapes,
135
+ frozen_param_fragments=frozen_param_fragments)
136
+ zero_model_states.append(z_model_state)
137
+
138
+ return zero_model_states
139
+
140
+
141
+ def parse_optim_states(files, ds_checkpoint_dir):
142
+
143
+ total_files = len(files)
144
+ state_dicts = []
145
+ for f in files:
146
+ state_dict = torch.load(f, map_location=device)
147
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
148
+ # and also handle the case where it was already removed by another helper script
149
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
150
+ state_dicts.append(state_dict)
151
+
152
+ if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
153
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
154
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
155
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
156
+
157
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
158
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
159
+ # use the max of the partition_count to get the dp world_size.
160
+
161
+ if type(world_size) is list:
162
+ world_size = max(world_size)
163
+
164
+ if world_size != total_files:
165
+ raise ValueError(
166
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
167
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
168
+ )
169
+
170
+ # the groups are named differently in each stage
171
+ if zero_stage <= 2:
172
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
173
+ elif zero_stage == 3:
174
+ fp32_groups_key = FP32_FLAT_GROUPS
175
+ else:
176
+ raise ValueError(f"unknown zero stage {zero_stage}")
177
+
178
+ if zero_stage <= 2:
179
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
180
+ elif zero_stage == 3:
181
+ # if there is more than one param group, there will be multiple flattened tensors - one
182
+ # flattened tensor per group - for simplicity merge them into a single tensor
183
+ #
184
+ # XXX: could make the script more memory efficient for when there are multiple groups - it
185
+ # will require matching the sub-lists of param_shapes for each param group flattened tensor
186
+
187
+ fp32_flat_groups = [
188
+ torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
189
+ ]
190
+
191
+ return zero_stage, world_size, fp32_flat_groups
192
+
193
+
194
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
195
+ """
196
+ Returns fp32 state_dict reconstructed from ds checkpoint
197
+
198
+ Args:
199
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
200
+
201
+ """
202
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
203
+
204
+ optim_files = get_optim_files(ds_checkpoint_dir)
205
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
206
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
207
+
208
+ model_files = get_model_state_files(ds_checkpoint_dir)
209
+
210
+ zero_model_states = parse_model_states(model_files)
211
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
212
+
213
+ if zero_stage <= 2:
214
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
215
+ exclude_frozen_parameters)
216
+ elif zero_stage == 3:
217
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
218
+ exclude_frozen_parameters)
219
+
220
+
221
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
222
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
223
+ return
224
+
225
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
226
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
227
+
228
+ if debug:
229
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
230
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
231
+
232
+ wanted_params = len(frozen_param_shapes)
233
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
234
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
235
+ print(f'Frozen params: Have {avail_numel} numels to process.')
236
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
237
+
238
+ total_params = 0
239
+ total_numel = 0
240
+ for name, shape in frozen_param_shapes.items():
241
+ total_params += 1
242
+ unpartitioned_numel = shape.numel()
243
+ total_numel += unpartitioned_numel
244
+
245
+ state_dict[name] = frozen_param_fragments[name]
246
+
247
+ if debug:
248
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
249
+
250
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
251
+
252
+
253
+ def _has_callable(obj, fn):
254
+ attr = getattr(obj, fn, None)
255
+ return callable(attr)
256
+
257
+
258
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
259
+ param_shapes = zero_model_states[0].param_shapes
260
+
261
+ # Reconstruction protocol:
262
+ #
263
+ # XXX: document this
264
+
265
+ if debug:
266
+ for i in range(world_size):
267
+ for j in range(len(fp32_flat_groups[0])):
268
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
269
+
270
+ # XXX: memory usage doubles here (zero2)
271
+ num_param_groups = len(fp32_flat_groups[0])
272
+ merged_single_partition_of_fp32_groups = []
273
+ for i in range(num_param_groups):
274
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
275
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
276
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
277
+ avail_numel = sum(
278
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
279
+
280
+ if debug:
281
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
282
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
283
+ # not asserting if there is a mismatch due to possible padding
284
+ print(f"Have {avail_numel} numels to process.")
285
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
286
+
287
+ # params
288
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
289
+ # out-of-core computing solution
290
+ total_numel = 0
291
+ total_params = 0
292
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
293
+ offset = 0
294
+ avail_numel = full_single_fp32_vector.numel()
295
+ for name, shape in shapes.items():
296
+
297
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
298
+ total_numel += unpartitioned_numel
299
+ total_params += 1
300
+
301
+ if debug:
302
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
303
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
304
+ offset += unpartitioned_numel
305
+
306
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
307
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
308
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
309
+ # live optimizer object, so we are checking that the numbers are within the right range
310
+ align_to = 2 * world_size
311
+
312
+ def zero2_align(x):
313
+ return align_to * math.ceil(x / align_to)
314
+
315
+ if debug:
316
+ print(f"original offset={offset}, avail_numel={avail_numel}")
317
+
318
+ offset = zero2_align(offset)
319
+ avail_numel = zero2_align(avail_numel)
320
+
321
+ if debug:
322
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
323
+
324
+ # Sanity check
325
+ if offset != avail_numel:
326
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
327
+
328
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
329
+
330
+
331
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
332
+ exclude_frozen_parameters):
333
+ state_dict = OrderedDict()
334
+
335
+ # buffers
336
+ buffers = zero_model_states[0].buffers
337
+ state_dict.update(buffers)
338
+ if debug:
339
+ print(f"added {len(buffers)} buffers")
340
+
341
+ if not exclude_frozen_parameters:
342
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
343
+
344
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
345
+
346
+ # recover shared parameters
347
+ for pair in zero_model_states[0].shared_params:
348
+ if pair[1] in state_dict:
349
+ state_dict[pair[0]] = state_dict[pair[1]]
350
+
351
+ return state_dict
352
+
353
+
354
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
355
+ remainder = unpartitioned_numel % world_size
356
+ padding_numel = (world_size - remainder) if remainder else 0
357
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
358
+ return partitioned_numel, padding_numel
359
+
360
+
361
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
362
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
363
+ return
364
+
365
+ if debug:
366
+ for i in range(world_size):
367
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
368
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
369
+
370
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
371
+ wanted_params = len(frozen_param_shapes)
372
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
373
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
374
+ print(f'Frozen params: Have {avail_numel} numels to process.')
375
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
376
+
377
+ total_params = 0
378
+ total_numel = 0
379
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
380
+ total_params += 1
381
+ unpartitioned_numel = shape.numel()
382
+ total_numel += unpartitioned_numel
383
+
384
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
385
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
386
+
387
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
388
+
389
+ if debug:
390
+ print(
391
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
392
+ )
393
+
394
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
395
+
396
+
397
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
398
+ param_shapes = zero_model_states[0].param_shapes
399
+ avail_numel = fp32_flat_groups[0].numel() * world_size
400
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
401
+ # param, re-consolidating each param, while dealing with padding if any
402
+
403
+ # merge list of dicts, preserving order
404
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
405
+
406
+ if debug:
407
+ for i in range(world_size):
408
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
409
+
410
+ wanted_params = len(param_shapes)
411
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
412
+ # not asserting if there is a mismatch due to possible padding
413
+ avail_numel = fp32_flat_groups[0].numel() * world_size
414
+ print(f"Trainable params: Have {avail_numel} numels to process.")
415
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
416
+
417
+ # params
418
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
419
+ # out-of-core computing solution
420
+ offset = 0
421
+ total_numel = 0
422
+ total_params = 0
423
+ for name, shape in param_shapes.items():
424
+
425
+ unpartitioned_numel = shape.numel()
426
+ total_numel += unpartitioned_numel
427
+ total_params += 1
428
+
429
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
430
+
431
+ if debug:
432
+ print(
433
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
434
+ )
435
+
436
+ # XXX: memory usage doubles here
437
+ state_dict[name] = torch.cat(
438
+ tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
439
+ 0).narrow(0, 0, unpartitioned_numel).view(shape)
440
+ offset += partitioned_numel
441
+
442
+ offset *= world_size
443
+
444
+ # Sanity check
445
+ if offset != avail_numel:
446
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
447
+
448
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
449
+
450
+
451
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
452
+ exclude_frozen_parameters):
453
+ state_dict = OrderedDict()
454
+
455
+ # buffers
456
+ buffers = zero_model_states[0].buffers
457
+ state_dict.update(buffers)
458
+ if debug:
459
+ print(f"added {len(buffers)} buffers")
460
+
461
+ if not exclude_frozen_parameters:
462
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
463
+
464
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
465
+
466
+ # recover shared parameters
467
+ for pair in zero_model_states[0].shared_params:
468
+ if pair[1] in state_dict:
469
+ state_dict[pair[0]] = state_dict[pair[1]]
470
+
471
+ return state_dict
472
+
473
+
474
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False):
475
+ """
476
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
477
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
478
+ via a model hub.
479
+
480
+ Args:
481
+ - ``checkpoint_dir``: path to the desired checkpoint folder
482
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
483
+ - ``exclude_frozen_parameters``: exclude frozen parameters
484
+
485
+ Returns:
486
+ - pytorch ``state_dict``
487
+
488
+ Note: this approach may not work if your application doesn't have sufficient free CPU memory and
489
+ you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
490
+ the checkpoint.
491
+
492
+ A typical usage might be ::
493
+
494
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
495
+ # do the training and checkpoint saving
496
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
497
+ model = model.cpu() # move to cpu
498
+ model.load_state_dict(state_dict)
499
+ # submit to model hub or save the model to share with others
500
+
501
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
502
+ application. i.e. you will need to re-initialize the deepspeed engine, since
503
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
504
+
505
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
506
+
507
+ """
508
+ if tag is None:
509
+ latest_path = os.path.join(checkpoint_dir, 'latest')
510
+ if os.path.isfile(latest_path):
511
+ with open(latest_path, 'r') as fd:
512
+ tag = fd.read().strip()
513
+ else:
514
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
515
+
516
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
517
+
518
+ if not os.path.isdir(ds_checkpoint_dir):
519
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
520
+
521
+ return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
522
+
523
+
524
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_file, tag=None, exclude_frozen_parameters=False):
525
+ """
526
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
527
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
528
+
529
+ Args:
530
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
531
+ - ``output_file``: path to the pytorch fp32 state_dict output file (e.g. path/pytorch_model.bin)
532
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
533
+ - ``exclude_frozen_parameters``: exclude frozen parameters
534
+ """
535
+
536
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters)
537
+ print(f"Saving fp32 state dict to {output_file}")
538
+ torch.save(state_dict, output_file)
539
+
540
+
541
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
542
+ """
543
+ 1. Put the provided model to cpu
544
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
545
+ 3. Load it into the provided model
546
+
547
+ Args:
548
+ - ``model``: the model object to update
549
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
550
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
551
+
552
+ Returns:
553
+ - ``model`: modified model
554
+
555
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
556
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
557
+ conveniently placed for you in the checkpoint folder.
558
+
559
+ A typical usage might be ::
560
+
561
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
562
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
563
+ # submit to model hub or save the model to share with others
564
+
565
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
566
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
567
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
568
+
569
+ """
570
+ logger.info(f"Extracting fp32 weights")
571
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
572
+
573
+ logger.info(f"Overwriting model with fp32 weights")
574
+ model = model.cpu()
575
+ model.load_state_dict(state_dict, strict=False)
576
+
577
+ return model
578
+
579
+
580
+ if __name__ == "__main__":
581
+
582
+ parser = argparse.ArgumentParser()
583
+ parser.add_argument("checkpoint_dir",
584
+ type=str,
585
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
586
+ parser.add_argument(
587
+ "output_file",
588
+ type=str,
589
+ help="path to the pytorch fp32 state_dict output file (e.g. path/checkpoint-12/pytorch_model.bin)")
590
+ parser.add_argument("-t",
591
+ "--tag",
592
+ type=str,
593
+ default=None,
594
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
595
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
596
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
597
+ args = parser.parse_args()
598
+
599
+ debug = args.debug
600
+
601
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
602
+ args.output_file,
603
+ tag=args.tag,
604
+ exclude_frozen_parameters=args.exclude_frozen_parameters)
mistral7b_kto_w2_delta0.001/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
mistral7b_kto_w2_delta0.001/stability_metrics.jsonl ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"stability/response_length_mean": 46.125, "stability/response_length_std": 27.231481552124023, "stability/response_length_var": 741.5535888671875, "stability/token_entropy_mean": 3.4365234375, "stability/repetition_rate_mean": 0.3551284670829773, "step": 10}
2
+ {"stability/response_length_mean": 28.5, "stability/response_length_std": 30.10457992553711, "stability/response_length_var": 906.2857055664062, "stability/token_entropy_mean": 3.75390625, "stability/repetition_rate_mean": 0.2763020694255829, "step": 15}
3
+ {"stability/response_length_mean": 49.75, "stability/response_length_std": 26.649845123291016, "stability/response_length_var": 710.2142944335938, "stability/token_entropy_mean": 4.154296875, "stability/repetition_rate_mean": 0.1925223171710968, "step": 20}
4
+ {"stability/response_length_mean": 43.375, "stability/response_length_std": 28.54538917541504, "stability/response_length_var": 814.8392944335938, "stability/token_entropy_mean": 4.73828125, "stability/repetition_rate_mean": 0.18387754261493683, "step": 25}
5
+ {"stability/response_length_mean": 48.375, "stability/response_length_std": 28.93311309814453, "stability/response_length_var": 837.125, "stability/token_entropy_mean": 4.52734375, "stability/repetition_rate_mean": 0.1875, "step": 30}
6
+ {"stability/response_length_mean": 50.5, "stability/response_length_std": 25.048524856567383, "stability/response_length_var": 627.4285888671875, "stability/token_entropy_mean": 5.5234375, "stability/repetition_rate_mean": 0.2854352593421936, "step": 35}
7
+ {"stability/response_length_mean": 35.0, "stability/response_length_std": 31.518701553344727, "stability/response_length_var": 993.4285888671875, "stability/token_entropy_mean": 4.8115234375, "stability/repetition_rate_mean": 0.16303454339504242, "step": 40}
8
+ {"stability/response_length_mean": 29.25, "stability/response_length_std": 29.51875877380371, "stability/response_length_var": 871.3571166992188, "stability/token_entropy_mean": 4.705078125, "stability/repetition_rate_mean": 0.0915892943739891, "step": 45}
9
+ {"stability/response_length_mean": 55.375, "stability/response_length_std": 16.361431121826172, "stability/response_length_var": 267.6964416503906, "stability/token_entropy_mean": 3.806640625, "stability/repetition_rate_mean": 0.4206075370311737, "step": 50}
10
+ {"stability/response_length_mean": 22.375, "stability/response_length_std": 30.236862182617188, "stability/response_length_var": 914.2678833007812, "stability/token_entropy_mean": 4.3310546875, "stability/repetition_rate_mean": 0.10418051481246948, "step": 55}
11
+ {"stability/response_length_mean": 51.125, "stability/response_length_std": 21.90523338317871, "stability/response_length_var": 479.83929443359375, "stability/token_entropy_mean": 5.384765625, "stability/repetition_rate_mean": 0.19273173809051514, "step": 60}
12
+ {"stability/response_length_mean": 20.625, "stability/response_length_std": 27.176342010498047, "stability/response_length_var": 738.5535888671875, "stability/token_entropy_mean": 5.541015625, "stability/repetition_rate_mean": 0.18141163885593414, "step": 65}
13
+ {"stability/response_length_mean": 33.875, "stability/response_length_std": 32.36151885986328, "stability/response_length_var": 1047.267822265625, "stability/token_entropy_mean": 5.734375, "stability/repetition_rate_mean": 0.1875, "step": 70}
14
+ {"stability/response_length_mean": 24.25, "stability/response_length_std": 32.92306900024414, "stability/response_length_var": 1083.9285888671875, "stability/token_entropy_mean": 1.901123046875, "stability/repetition_rate_mean": 0.07421875, "step": 75}
15
+ {"stability/response_length_mean": 42.0, "stability/response_length_std": 30.481843948364258, "stability/response_length_var": 929.1428833007812, "stability/token_entropy_mean": 5.22265625, "stability/repetition_rate_mean": 0.19088542461395264, "step": 80}
16
+ {"stability/response_length_mean": 28.0, "stability/response_length_std": 31.181495666503906, "stability/response_length_var": 972.2857055664062, "stability/token_entropy_mean": 4.955078125, "stability/repetition_rate_mean": 0.1291852593421936, "step": 85}
17
+ {"stability/response_length_mean": 35.625, "stability/response_length_std": 31.057262420654297, "stability/response_length_var": 964.5535888671875, "stability/token_entropy_mean": 3.80078125, "stability/repetition_rate_mean": 0.3175307810306549, "step": 90}
18
+ {"stability/response_length_mean": 21.875, "stability/response_length_std": 27.304826736450195, "stability/response_length_var": 745.5535888671875, "stability/token_entropy_mean": 4.09375, "stability/repetition_rate_mean": 0.09133065491914749, "step": 95}
19
+ {"stability/response_length_mean": 41.25, "stability/response_length_std": 31.476749420166016, "stability/response_length_var": 990.7857055664062, "stability/token_entropy_mean": 4.166015625, "stability/repetition_rate_mean": 0.2265625, "step": 100}
20
+ {"stability/response_length_mean": 29.0, "stability/response_length_std": 29.89505386352539, "stability/response_length_var": 893.7142944335938, "stability/token_entropy_mean": 3.359375, "stability/repetition_rate_mean": 0.1897321343421936, "step": 105}
21
+ {"stability/response_length_mean": 28.875, "stability/response_length_std": 29.911476135253906, "stability/response_length_var": 894.6964111328125, "stability/token_entropy_mean": 4.416015625, "stability/repetition_rate_mean": 0.30853456258773804, "step": 110}
22
+ {"stability/response_length_mean": 49.0, "stability/response_length_std": 27.795169830322266, "stability/response_length_var": 772.5714111328125, "stability/token_entropy_mean": 4.779296875, "stability/repetition_rate_mean": 0.3053385615348816, "step": 115}
23
+ {"stability/response_length_mean": 27.875, "stability/response_length_std": 30.31943130493164, "stability/response_length_var": 919.2678833007812, "stability/token_entropy_mean": 4.634765625, "stability/repetition_rate_mean": 0.1742897778749466, "step": 120}
24
+ {"stability/response_length_mean": 15.25, "stability/response_length_std": 24.93276596069336, "stability/response_length_var": 621.6428833007812, "stability/token_entropy_mean": 3.64453125, "stability/repetition_rate_mean": 0.16215278208255768, "step": 125}
25
+ {"stability/response_length_mean": 43.25, "stability/response_length_std": 29.620214462280273, "stability/response_length_var": 877.3571166992188, "stability/token_entropy_mean": 3.6328125, "stability/repetition_rate_mean": 0.24460937082767487, "step": 130}
26
+ {"stability/response_length_mean": 29.875, "stability/response_length_std": 29.502723693847656, "stability/response_length_var": 870.4107055664062, "stability/token_entropy_mean": 3.8955078125, "stability/repetition_rate_mean": 0.2270585298538208, "step": 135}
27
+ {"stability/response_length_mean": 52.75, "stability/response_length_std": 22.72663688659668, "stability/response_length_var": 516.5, "stability/token_entropy_mean": 5.19921875, "stability/repetition_rate_mean": 0.2662760317325592, "step": 140}
28
+ {"stability/response_length_mean": 22.625, "stability/response_length_std": 26.359804153442383, "stability/response_length_var": 694.8392944335938, "stability/token_entropy_mean": 5.59765625, "stability/repetition_rate_mean": 0.19258596003055573, "step": 145}
29
+ {"stability/response_length_mean": 35.25, "stability/response_length_std": 31.01957893371582, "stability/response_length_var": 962.2142944335938, "stability/token_entropy_mean": 4.6640625, "stability/repetition_rate_mean": 0.2115885466337204, "step": 150}
30
+ {"stability/response_length_mean": 61.875, "stability/response_length_std": 6.010407447814941, "stability/response_length_var": 36.125, "stability/token_entropy_mean": 4.5625, "stability/repetition_rate_mean": 0.3444148898124695, "step": 155}
31
+ {"stability/response_length_mean": 32.5, "stability/response_length_std": 30.528675079345703, "stability/response_length_var": 932.0, "stability/token_entropy_mean": 4.44921875, "stability/repetition_rate_mean": 0.30851560831069946, "step": 160}
32
+ {"stability/response_length_mean": 22.5, "stability/response_length_std": 28.33977508544922, "stability/response_length_var": 803.1428833007812, "stability/token_entropy_mean": 4.8671875, "stability/repetition_rate_mean": 0.2411106526851654, "step": 165}
33
+ {"stability/response_length_mean": 36.25, "stability/response_length_std": 30.76988410949707, "stability/response_length_var": 946.7857055664062, "stability/token_entropy_mean": 3.7744140625, "stability/repetition_rate_mean": 0.22428728640079498, "step": 170}
34
+ {"stability/response_length_mean": 28.125, "stability/response_length_std": 25.357091903686523, "stability/response_length_var": 642.9821166992188, "stability/token_entropy_mean": 4.91015625, "stability/repetition_rate_mean": 0.2011384218931198, "step": 175}
35
+ {"stability/response_length_mean": 35.25, "stability/response_length_std": 31.129911422729492, "stability/response_length_var": 969.0714111328125, "stability/token_entropy_mean": 3.41015625, "stability/repetition_rate_mean": 0.1989397406578064, "step": 180}
36
+ {"stability/response_length_mean": 32.875, "stability/response_length_std": 33.30996322631836, "stability/response_length_var": 1109.5535888671875, "stability/token_entropy_mean": 3.6953125, "stability/repetition_rate_mean": 0.15234375, "step": 185}
37
+ {"stability/response_length_mean": 16.75, "stability/response_length_std": 27.12800407409668, "stability/response_length_var": 735.9285888671875, "stability/token_entropy_mean": 5.107421875, "stability/repetition_rate_mean": 0.13363486528396606, "step": 190}
38
+ {"stability/response_length_mean": 49.0, "stability/response_length_std": 27.82085609436035, "stability/response_length_var": 774.0, "stability/token_entropy_mean": 5.1796875, "stability/repetition_rate_mean": 0.3953683078289032, "step": 195}
mistral7b_kto_w2_delta0.001/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
mistral7b_kto_w2_delta0.001/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
mistral7b_kto_w2_delta0.001/tokenizer_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "additional_special_tokens": [],
32
+ "bos_token": "<s>",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "extra_special_tokens": {},
36
+ "legacy": false,
37
+ "model_max_length": 1000000000000000019884624838656,
38
+ "pad_token": "</s>",
39
+ "padding_side": "right",
40
+ "sp_model_kwargs": {},
41
+ "spaces_between_special_tokens": false,
42
+ "split_special_tokens": false,
43
+ "tokenizer_class": "LlamaTokenizer",
44
+ "unk_token": "<unk>",
45
+ "use_default_system_prompt": false
46
+ }
mistral7b_kto_w2_delta0.001/train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 3.1861866257511875e+18,
4
+ "train_loss": 0.5821207132266493,
5
+ "train_runtime": 4296.589,
6
+ "train_samples_per_second": 23.274,
7
+ "train_steps_per_second": 0.046
8
+ }
mistral7b_kto_w2_delta0.001/trainer_log.jsonl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 5, "total_steps": 196, "loss": 0.5885, "lr": 4e-08, "epoch": 0.025591810620601407, "percentage": 2.55, "elapsed_time": "0:01:47", "remaining_time": "1:08:33", "rewards/chosen": 0.004319707029744198, "logps/chosen": -439.0024157072368, "logits/chosen": -59713832.421052635, "rewards/rejected": -0.0003125370435771488, "logps/rejected": -198.41252790178572, "logits/rejected": -50416451.047619045, "rewards/margins": 0.004632244073321347, "regularization/w2": 0.09046166390180588, "regularization/grad_norm_sq": 4308.1396484375, "kl": 0.009683904238045216}
2
+ {"current_steps": 10, "total_steps": 196, "loss": 0.586, "lr": 9e-08, "epoch": 0.05118362124120281, "percentage": 5.1, "elapsed_time": "0:03:37", "remaining_time": "1:07:31", "rewards/chosen": 0.003629611297087236, "logps/chosen": -429.9021915584416, "logits/chosen": -59306230.02597403, "rewards/rejected": 0.001039086246346853, "logps/rejected": -192.85753953313252, "logits/rejected": -50024096.38554217, "rewards/margins": 0.002590525050740383, "regularization/w2": 0.08616509288549423, "regularization/grad_norm_sq": 3819.715576171875, "kl": 0.0205225832760334, "stability/response_length_mean": 46.125, "stability/response_length_std": 27.231481552124023, "stability/response_length_var": 741.5535888671875, "stability/token_entropy_mean": 3.4365234375, "stability/repetition_rate_mean": 0.3551284670829773}
3
+ {"current_steps": 15, "total_steps": 196, "loss": 0.5856, "lr": 1.4e-07, "epoch": 0.07677543186180422, "percentage": 7.65, "elapsed_time": "0:05:26", "remaining_time": "1:05:38", "rewards/chosen": 0.002835910970514471, "logps/chosen": -404.1024621212121, "logits/chosen": -56229478.4, "rewards/rejected": 0.0020273097099796416, "logps/rejected": -200.67379032258066, "logits/rejected": -51918392.15483871, "rewards/margins": 0.0008086012605348293, "regularization/w2": 0.08851373195648193, "regularization/grad_norm_sq": 4186.52001953125, "kl": 0.011671505868434906, "stability/response_length_mean": 28.5, "stability/response_length_std": 30.10457992553711, "stability/response_length_var": 906.2857055664062, "stability/token_entropy_mean": 3.75390625, "stability/repetition_rate_mean": 0.2763020694255829}
4
+ {"current_steps": 20, "total_steps": 196, "loss": 0.5864, "lr": 1.8999999999999998e-07, "epoch": 0.10236724248240563, "percentage": 10.2, "elapsed_time": "0:07:17", "remaining_time": "1:04:09", "rewards/chosen": 0.0011490656994283198, "logps/chosen": -343.685205078125, "logits/chosen": -51667321.6, "rewards/rejected": 0.004474234208464623, "logps/rejected": -225.618603515625, "logits/rejected": -48058720.0, "rewards/margins": -0.003325168509036303, "regularization/w2": 0.08394529670476913, "regularization/grad_norm_sq": 3616.344970703125, "kl": 0.01878364384174347, "stability/response_length_mean": 49.75, "stability/response_length_std": 26.649845123291016, "stability/response_length_var": 710.2142944335938, "stability/token_entropy_mean": 4.154296875, "stability/repetition_rate_mean": 0.1925223171710968}
5
+ {"current_steps": 25, "total_steps": 196, "loss": 0.5883, "lr": 2.4e-07, "epoch": 0.12795905310300704, "percentage": 12.76, "elapsed_time": "0:09:06", "remaining_time": "1:02:15", "rewards/chosen": 0.0012034501495032475, "logps/chosen": -378.47941810344827, "logits/chosen": -56484976.993103445, "rewards/rejected": 0.0023192856992994035, "logps/rejected": -202.76964285714286, "logits/rejected": -52025847.22285714, "rewards/margins": -0.001115835549796156, "regularization/w2": 0.08617646992206573, "regularization/grad_norm_sq": 4000.53515625, "kl": 0.018041405826807022, "stability/response_length_mean": 43.375, "stability/response_length_std": 28.54538917541504, "stability/response_length_var": 814.8392944335938, "stability/token_entropy_mean": 4.73828125, "stability/repetition_rate_mean": 0.18387754261493683}
6
+ {"current_steps": 30, "total_steps": 196, "loss": 0.5872, "lr": 2.9e-07, "epoch": 0.15355086372360843, "percentage": 15.31, "elapsed_time": "0:10:55", "remaining_time": "1:00:26", "rewards/chosen": 0.001230826113848078, "logps/chosen": -468.56889681208054, "logits/chosen": -57733023.7852349, "rewards/rejected": 0.0019039563965379145, "logps/rejected": -198.22884685672514, "logits/rejected": -51524224.74853801, "rewards/margins": -0.0006731302826898365, "regularization/w2": 0.09177713841199875, "regularization/grad_norm_sq": 4545.20458984375, "kl": 0.01663057506084442, "stability/response_length_mean": 48.375, "stability/response_length_std": 28.93311309814453, "stability/response_length_var": 837.125, "stability/token_entropy_mean": 4.52734375, "stability/repetition_rate_mean": 0.1875}
7
+ {"current_steps": 35, "total_steps": 196, "loss": 0.5878, "lr": 3.4000000000000003e-07, "epoch": 0.17914267434420986, "percentage": 17.86, "elapsed_time": "0:12:45", "remaining_time": "0:58:40", "rewards/chosen": 0.002080178713496727, "logps/chosen": -385.9157189477848, "logits/chosen": -57625172.25316456, "rewards/rejected": 0.0005865038177113475, "logps/rejected": -195.12061149691357, "logits/rejected": -53896609.18518519, "rewards/margins": 0.0014936748957853799, "regularization/w2": 0.08562777936458588, "regularization/grad_norm_sq": 3760.884521484375, "kl": 0.016775427386164665, "stability/response_length_mean": 50.5, "stability/response_length_std": 25.048524856567383, "stability/response_length_var": 627.4285888671875, "stability/token_entropy_mean": 5.5234375, "stability/repetition_rate_mean": 0.2854352593421936}
8
+ {"current_steps": 40, "total_steps": 196, "loss": 0.5859, "lr": 3.8999999999999997e-07, "epoch": 0.20473448496481125, "percentage": 20.41, "elapsed_time": "0:14:35", "remaining_time": "0:56:54", "rewards/chosen": 0.002502601221203804, "logps/chosen": -421.87763671875, "logits/chosen": -56634124.8, "rewards/rejected": 0.003506476804614067, "logps/rejected": -219.2741943359375, "logits/rejected": -50225545.6, "rewards/margins": -0.0010038755834102628, "regularization/w2": 0.0906253382563591, "regularization/grad_norm_sq": 4253.48828125, "kl": 0.017838044092059135, "stability/response_length_mean": 35.0, "stability/response_length_std": 31.518701553344727, "stability/response_length_var": 993.4285888671875, "stability/token_entropy_mean": 4.8115234375, "stability/repetition_rate_mean": 0.16303454339504242}
9
+ {"current_steps": 45, "total_steps": 196, "loss": 0.5871, "lr": 4.3999999999999997e-07, "epoch": 0.23032629558541268, "percentage": 22.96, "elapsed_time": "0:16:25", "remaining_time": "0:55:07", "rewards/chosen": 0.0036000581395706074, "logps/chosen": -352.29244442114094, "logits/chosen": -52689789.422818795, "rewards/rejected": 0.005875056947183888, "logps/rejected": -243.81542397660817, "logits/rejected": -50767135.438596494, "rewards/margins": -0.0022749988076132804, "regularization/w2": 0.08328904211521149, "regularization/grad_norm_sq": 3660.001953125, "kl": 0.044592004269361496, "stability/response_length_mean": 29.25, "stability/response_length_std": 29.51875877380371, "stability/response_length_var": 871.3571166992188, "stability/token_entropy_mean": 4.705078125, "stability/repetition_rate_mean": 0.0915892943739891}
10
+ {"current_steps": 50, "total_steps": 196, "loss": 0.5843, "lr": 4.9e-07, "epoch": 0.2559181062060141, "percentage": 25.51, "elapsed_time": "0:18:14", "remaining_time": "0:53:17", "rewards/chosen": 0.005930147715062903, "logps/chosen": -375.1398385067114, "logits/chosen": -54035864.912751675, "rewards/rejected": 0.005393417258011668, "logps/rejected": -180.18667763157896, "logits/rejected": -48294564.67836257, "rewards/margins": 0.0005367304570512354, "regularization/w2": 0.08533728122711182, "regularization/grad_norm_sq": 3861.982421875, "kl": 0.04660215601325035, "stability/response_length_mean": 55.375, "stability/response_length_std": 16.361431121826172, "stability/response_length_var": 267.6964416503906, "stability/token_entropy_mean": 3.806640625, "stability/repetition_rate_mean": 0.4206075370311737}
11
+ {"current_steps": 55, "total_steps": 196, "loss": 0.5859, "lr": 5.4e-07, "epoch": 0.28150991682661547, "percentage": 28.06, "elapsed_time": "0:20:03", "remaining_time": "0:51:26", "rewards/chosen": 0.0017190375683470542, "logps/chosen": -344.4948078416149, "logits/chosen": -56956520.94409938, "rewards/rejected": 0.0042611041908743996, "logps/rejected": -230.40541470125785, "logits/rejected": -49569669.635220125, "rewards/margins": -0.0025420666225273456, "regularization/w2": 0.08618461340665817, "regularization/grad_norm_sq": 3821.798583984375, "kl": 0.04949667677283287, "stability/response_length_mean": 22.375, "stability/response_length_std": 30.236862182617188, "stability/response_length_var": 914.2678833007812, "stability/token_entropy_mean": 4.3310546875, "stability/repetition_rate_mean": 0.10418051481246948}
12
+ {"current_steps": 60, "total_steps": 196, "loss": 0.5865, "lr": 5.9e-07, "epoch": 0.30710172744721687, "percentage": 30.61, "elapsed_time": "0:21:54", "remaining_time": "0:49:40", "rewards/chosen": 0.009310866124702222, "logps/chosen": -359.62769886363634, "logits/chosen": -52664307.587878786, "rewards/rejected": 0.005658834980380151, "logps/rejected": -178.1703377016129, "logits/rejected": -47816974.86451613, "rewards/margins": 0.003652031144322071, "regularization/w2": 0.07853565365076065, "regularization/grad_norm_sq": 3147.68408203125, "kl": 0.052175115793943405, "stability/response_length_mean": 51.125, "stability/response_length_std": 21.90523338317871, "stability/response_length_var": 479.83929443359375, "stability/token_entropy_mean": 5.384765625, "stability/repetition_rate_mean": 0.19273173809051514}
13
+ {"current_steps": 65, "total_steps": 196, "loss": 0.5876, "lr": 6.4e-07, "epoch": 0.3326935380678183, "percentage": 33.16, "elapsed_time": "0:23:45", "remaining_time": "0:47:52", "rewards/chosen": 0.012640624661599436, "logps/chosen": -381.8203629032258, "logits/chosen": -57557335.535483874, "rewards/rejected": 0.008822024952281605, "logps/rejected": -183.4941287878788, "logits/rejected": -47273723.345454544, "rewards/margins": 0.003818599709317831, "regularization/w2": 0.08724621683359146, "regularization/grad_norm_sq": 3963.318359375, "kl": 0.08242836594581604, "stability/response_length_mean": 20.625, "stability/response_length_std": 27.176342010498047, "stability/response_length_var": 738.5535888671875, "stability/token_entropy_mean": 5.541015625, "stability/repetition_rate_mean": 0.18141163885593414}
14
+ {"current_steps": 70, "total_steps": 196, "loss": 0.5896, "lr": 6.9e-07, "epoch": 0.3582853486884197, "percentage": 35.71, "elapsed_time": "0:25:34", "remaining_time": "0:46:01", "rewards/chosen": 0.01100011948616274, "logps/chosen": -379.01844758064516, "logits/chosen": -52759789.83225807, "rewards/rejected": 0.009641306328051017, "logps/rejected": -220.32575757575756, "logits/rejected": -49030733.57575758, "rewards/margins": 0.001358813158111722, "regularization/w2": 0.09144462645053864, "regularization/grad_norm_sq": 4505.4248046875, "kl": 0.08330817520618439, "stability/response_length_mean": 33.875, "stability/response_length_std": 32.36151885986328, "stability/response_length_var": 1047.267822265625, "stability/token_entropy_mean": 5.734375, "stability/repetition_rate_mean": 0.1875}
15
+ {"current_steps": 75, "total_steps": 196, "loss": 0.5871, "lr": 7.4e-07, "epoch": 0.3838771593090211, "percentage": 38.27, "elapsed_time": "0:27:24", "remaining_time": "0:44:13", "rewards/chosen": 0.01508830366907893, "logps/chosen": -314.11993243243245, "logits/chosen": -49510995.027027026, "rewards/rejected": 0.0064655500789021336, "logps/rejected": -228.82019894622093, "logits/rejected": -47899594.41860465, "rewards/margins": 0.008622753590176797, "regularization/w2": 0.08471358567476273, "regularization/grad_norm_sq": 3729.305419921875, "kl": 0.08941509574651718, "stability/response_length_mean": 24.25, "stability/response_length_std": 32.92306900024414, "stability/response_length_var": 1083.9285888671875, "stability/token_entropy_mean": 1.901123046875, "stability/repetition_rate_mean": 0.07421875}
16
+ {"current_steps": 80, "total_steps": 196, "loss": 0.586, "lr": 7.9e-07, "epoch": 0.4094689699296225, "percentage": 40.82, "elapsed_time": "0:29:15", "remaining_time": "0:42:25", "rewards/chosen": 0.015101601745908624, "logps/chosen": -403.8790873344371, "logits/chosen": -58619103.78807947, "rewards/rejected": 0.008863715730475251, "logps/rejected": -200.96717825443787, "logits/rejected": -53444892.78106509, "rewards/margins": 0.006237886015433373, "regularization/w2": 0.08361315727233887, "regularization/grad_norm_sq": 3586.81494140625, "kl": 0.12230757623910904, "stability/response_length_mean": 42.0, "stability/response_length_std": 30.481843948364258, "stability/response_length_var": 929.1428833007812, "stability/token_entropy_mean": 5.22265625, "stability/repetition_rate_mean": 0.19088542461395264}
17
+ {"current_steps": 85, "total_steps": 196, "loss": 0.5852, "lr": 8.399999999999999e-07, "epoch": 0.4350607805502239, "percentage": 43.37, "elapsed_time": "0:31:05", "remaining_time": "0:40:35", "rewards/chosen": 0.023378246061263545, "logps/chosen": -358.09873991935484, "logits/chosen": -51479532.18064516, "rewards/rejected": 0.009544744636073257, "logps/rejected": -230.32935606060607, "logits/rejected": -47144202.86060606, "rewards/margins": 0.013833501425190287, "regularization/w2": 0.08649836480617523, "regularization/grad_norm_sq": 3845.35009765625, "kl": 0.12014111131429672, "stability/response_length_mean": 28.0, "stability/response_length_std": 31.181495666503906, "stability/response_length_var": 972.2857055664062, "stability/token_entropy_mean": 4.955078125, "stability/repetition_rate_mean": 0.1291852593421936}
18
+ {"current_steps": 90, "total_steps": 196, "loss": 0.5845, "lr": 8.9e-07, "epoch": 0.46065259117082535, "percentage": 45.92, "elapsed_time": "0:32:56", "remaining_time": "0:38:47", "rewards/chosen": 0.025340945292741824, "logps/chosen": -380.53598257211536, "logits/chosen": -58404365.12820513, "rewards/rejected": 0.01155715890047027, "logps/rejected": -187.11123285060975, "logits/rejected": -50561935.6097561, "rewards/margins": 0.013783786392271555, "regularization/w2": 0.0869247317314148, "regularization/grad_norm_sq": 3960.31103515625, "kl": 0.16934870183467865, "stability/response_length_mean": 35.625, "stability/response_length_std": 31.057262420654297, "stability/response_length_var": 964.5535888671875, "stability/token_entropy_mean": 3.80078125, "stability/repetition_rate_mean": 0.3175307810306549}
19
+ {"current_steps": 95, "total_steps": 196, "loss": 0.5842, "lr": 9.399999999999999e-07, "epoch": 0.48624440179142675, "percentage": 48.47, "elapsed_time": "0:34:45", "remaining_time": "0:36:57", "rewards/chosen": 0.02496972416020647, "logps/chosen": -314.7436956091772, "logits/chosen": -50380346.32911392, "rewards/rejected": 0.008138612464622216, "logps/rejected": -207.06233121141975, "logits/rejected": -48968169.87654321, "rewards/margins": 0.016831111695584253, "regularization/w2": 0.08464869111776352, "regularization/grad_norm_sq": 3773.901123046875, "kl": 0.16499601304531097, "stability/response_length_mean": 21.875, "stability/response_length_std": 27.304826736450195, "stability/response_length_var": 745.5535888671875, "stability/token_entropy_mean": 4.09375, "stability/repetition_rate_mean": 0.09133065491914749}
20
+ {"current_steps": 100, "total_steps": 196, "loss": 0.5846, "lr": 9.9e-07, "epoch": 0.5118362124120281, "percentage": 51.02, "elapsed_time": "0:36:35", "remaining_time": "0:35:07", "rewards/chosen": 0.029381449158127244, "logps/chosen": -359.57635663006755, "logits/chosen": -54697513.51351351, "rewards/rejected": 0.020084953585336376, "logps/rejected": -216.37804324127907, "logits/rejected": -50905552.37209302, "rewards/margins": 0.009296495572790869, "regularization/w2": 0.08535917103290558, "regularization/grad_norm_sq": 3816.7734375, "kl": 0.20538730919361115, "stability/response_length_mean": 41.25, "stability/response_length_std": 31.476749420166016, "stability/response_length_var": 990.7857055664062, "stability/token_entropy_mean": 4.166015625, "stability/repetition_rate_mean": 0.2265625}
21
+ {"current_steps": 105, "total_steps": 196, "loss": 0.5847, "lr": 9.999815554351224e-07, "epoch": 0.5374280230326296, "percentage": 53.57, "elapsed_time": "0:38:25", "remaining_time": "0:33:18", "rewards/chosen": 0.04043001151946654, "logps/chosen": -399.4981645331325, "logits/chosen": -59375134.84337349, "rewards/rejected": 0.01399923919083236, "logps/rejected": -209.86383928571428, "logits/rejected": -53807054.12987013, "rewards/margins": 0.02643077232863418, "regularization/w2": 0.08724039793014526, "regularization/grad_norm_sq": 3959.833740234375, "kl": 0.22678242623806, "stability/response_length_mean": 29.0, "stability/response_length_std": 29.89505386352539, "stability/response_length_var": 893.7142944335938, "stability/token_entropy_mean": 3.359375, "stability/repetition_rate_mean": 0.1897321343421936}
22
+ {"current_steps": 110, "total_steps": 196, "loss": 0.5829, "lr": 9.999066267225444e-07, "epoch": 0.5630198336532309, "percentage": 56.12, "elapsed_time": "0:40:16", "remaining_time": "0:31:29", "rewards/chosen": 0.033429114215345265, "logps/chosen": -378.2289627259036, "logits/chosen": -57406969.8313253, "rewards/rejected": 0.018361073035698432, "logps/rejected": -205.90453784496754, "logits/rejected": -53620639.584415585, "rewards/margins": 0.015068041179646833, "regularization/w2": 0.08427540957927704, "regularization/grad_norm_sq": 3633.171875, "kl": 0.2732836902141571, "stability/response_length_mean": 28.875, "stability/response_length_std": 29.911476135253906, "stability/response_length_var": 894.6964111328125, "stability/token_entropy_mean": 4.416015625, "stability/repetition_rate_mean": 0.30853456258773804}
23
+ {"current_steps": 115, "total_steps": 196, "loss": 0.5815, "lr": 9.997740697079592e-07, "epoch": 0.5886116442738324, "percentage": 58.67, "elapsed_time": "0:42:07", "remaining_time": "0:29:40", "rewards/chosen": 0.052460066879851906, "logps/chosen": -364.0679390822785, "logits/chosen": -60599995.94936709, "rewards/rejected": 0.024060776204238705, "logps/rejected": -200.95594618055554, "logits/rejected": -53401410.37037037, "rewards/margins": 0.0283992906756132, "regularization/w2": 0.08032859116792679, "regularization/grad_norm_sq": 3353.943115234375, "kl": 0.31861141324043274, "stability/response_length_mean": 49.0, "stability/response_length_std": 27.795169830322266, "stability/response_length_var": 772.5714111328125, "stability/token_entropy_mean": 4.779296875, "stability/repetition_rate_mean": 0.3053385615348816}
24
+ {"current_steps": 120, "total_steps": 196, "loss": 0.5837, "lr": 9.995838996722914e-07, "epoch": 0.6142034548944337, "percentage": 61.22, "elapsed_time": "0:43:56", "remaining_time": "0:27:49", "rewards/chosen": 0.05835722630320032, "logps/chosen": -383.6613562091503, "logits/chosen": -57745769.4117647, "rewards/rejected": 0.02325931137907291, "logps/rejected": -211.98376684131736, "logits/rejected": -54368427.68862276, "rewards/margins": 0.03509791492412741, "regularization/w2": 0.08935306966304779, "regularization/grad_norm_sq": 4317.544921875, "kl": 0.3490689694881439, "stability/response_length_mean": 27.875, "stability/response_length_std": 30.31943130493164, "stability/response_length_var": 919.2678833007812, "stability/token_entropy_mean": 4.634765625, "stability/repetition_rate_mean": 0.1742897778749466}
25
+ {"current_steps": 125, "total_steps": 196, "loss": 0.582, "lr": 9.993361385379874e-07, "epoch": 0.6397952655150352, "percentage": 63.78, "elapsed_time": "0:45:47", "remaining_time": "0:26:00", "rewards/chosen": 0.057012499195255646, "logps/chosen": -416.8091823630137, "logits/chosen": -60688299.83561644, "rewards/rejected": 0.02436457009151064, "logps/rejected": -216.12354076867817, "logits/rejected": -55668524.137931034, "rewards/margins": 0.032647929103745005, "regularization/w2": 0.08550175279378891, "regularization/grad_norm_sq": 3812.632568359375, "kl": 0.39925938844680786, "stability/response_length_mean": 15.25, "stability/response_length_std": 24.93276596069336, "stability/response_length_var": 621.6428833007812, "stability/token_entropy_mean": 3.64453125, "stability/repetition_rate_mean": 0.16215278208255768}
26
+ {"current_steps": 130, "total_steps": 196, "loss": 0.5824, "lr": 9.99030814866488e-07, "epoch": 0.6653870761356366, "percentage": 66.33, "elapsed_time": "0:47:36", "remaining_time": "0:24:10", "rewards/chosen": 0.06892158754410282, "logps/chosen": -391.9687247983871, "logits/chosen": -57376213.05806451, "rewards/rejected": 0.025686379634972775, "logps/rejected": -183.66205018939394, "logits/rejected": -53835838.06060606, "rewards/margins": 0.04323520790913005, "regularization/w2": 0.08550234884023666, "regularization/grad_norm_sq": 3791.43017578125, "kl": 0.4498286247253418, "stability/response_length_mean": 43.25, "stability/response_length_std": 29.620214462280273, "stability/response_length_var": 877.3571166992188, "stability/token_entropy_mean": 3.6328125, "stability/repetition_rate_mean": 0.24460937082767487}
27
+ {"current_steps": 135, "total_steps": 196, "loss": 0.5789, "lr": 9.986679638549358e-07, "epoch": 0.690978886756238, "percentage": 68.88, "elapsed_time": "0:49:26", "remaining_time": "0:22:20", "rewards/chosen": 0.08361249467346565, "logps/chosen": -400.9800373849693, "logits/chosen": -59854006.18404908, "rewards/rejected": 0.0351159344812867, "logps/rejected": -247.51960589171975, "logits/rejected": -55003403.41401274, "rewards/margins": 0.048496560192178954, "regularization/w2": 0.08902523666620255, "regularization/grad_norm_sq": 4160.88037109375, "kl": 0.5017997026443481, "stability/response_length_mean": 29.875, "stability/response_length_std": 29.502723693847656, "stability/response_length_var": 870.4107055664062, "stability/token_entropy_mean": 3.8955078125, "stability/repetition_rate_mean": 0.2270585298538208}
28
+ {"current_steps": 140, "total_steps": 196, "loss": 0.5811, "lr": 9.982476273321175e-07, "epoch": 0.7165706973768394, "percentage": 71.43, "elapsed_time": "0:51:15", "remaining_time": "0:20:30", "rewards/chosen": 0.08169195001775569, "logps/chosen": -366.3728456439394, "logits/chosen": -57086696.72727273, "rewards/rejected": 0.010951737434633317, "logps/rejected": -189.92496219758064, "logits/rejected": -50077061.78064516, "rewards/margins": 0.07074021258312237, "regularization/w2": 0.09640365839004517, "regularization/grad_norm_sq": 5850.53369140625, "kl": 0.48766636848449707, "stability/response_length_mean": 52.75, "stability/response_length_std": 22.72663688659668, "stability/response_length_var": 516.5, "stability/token_entropy_mean": 5.19921875, "stability/repetition_rate_mean": 0.2662760317325592}
29
+ {"current_steps": 145, "total_steps": 196, "loss": 0.5778, "lr": 9.977698537536417e-07, "epoch": 0.7421625079974408, "percentage": 73.98, "elapsed_time": "0:53:04", "remaining_time": "0:18:40", "rewards/chosen": 0.07945383600441806, "logps/chosen": -329.4772684487952, "logits/chosen": -51144241.34939759, "rewards/rejected": 0.033332471723680375, "logps/rejected": -199.15458857548703, "logits/rejected": -51662345.97402597, "rewards/margins": 0.04612136428073769, "regularization/w2": 0.08150183409452438, "regularization/grad_norm_sq": 3395.665771484375, "kl": 0.5717339515686035, "stability/response_length_mean": 22.625, "stability/response_length_std": 26.359804153442383, "stability/response_length_var": 694.8392944335938, "stability/token_entropy_mean": 5.59765625, "stability/repetition_rate_mean": 0.19258596003055573}
30
+ {"current_steps": 150, "total_steps": 196, "loss": 0.5788, "lr": 9.972346981963546e-07, "epoch": 0.7677543186180422, "percentage": 76.53, "elapsed_time": "0:54:54", "remaining_time": "0:16:50", "rewards/chosen": 0.11329341215245864, "logps/chosen": -396.8014705882353, "logits/chosen": -55422674.823529415, "rewards/rejected": 0.035931517283121744, "logps/rejected": -207.36661458333333, "logits/rejected": -50191220.053333335, "rewards/margins": 0.0773618948693369, "regularization/w2": 0.08941753953695297, "regularization/grad_norm_sq": 4066.153076171875, "kl": 0.6380648016929626, "stability/response_length_mean": 35.25, "stability/response_length_std": 31.01957893371582, "stability/response_length_var": 962.2142944335938, "stability/token_entropy_mean": 4.6640625, "stability/repetition_rate_mean": 0.2115885466337204}
31
+ {"current_steps": 155, "total_steps": 196, "loss": 0.5778, "lr": 9.966422223519885e-07, "epoch": 0.7933461292386437, "percentage": 79.08, "elapsed_time": "0:56:45", "remaining_time": "0:15:00", "rewards/chosen": 0.09181964537676643, "logps/chosen": -360.07109375, "logits/chosen": -54019288.847058825, "rewards/rejected": 0.03068399429321289, "logps/rejected": -190.99877604166667, "logits/rejected": -49348276.906666666, "rewards/margins": 0.06113565108355354, "regularization/w2": 0.09407851099967957, "regularization/grad_norm_sq": 5026.2802734375, "kl": 0.6510013341903687, "stability/response_length_mean": 61.875, "stability/response_length_std": 6.010407447814941, "stability/response_length_var": 36.125, "stability/token_entropy_mean": 4.5625, "stability/repetition_rate_mean": 0.3444148898124695}
32
+ {"current_steps": 160, "total_steps": 196, "loss": 0.5777, "lr": 9.959924945200523e-07, "epoch": 0.818937939859245, "percentage": 81.63, "elapsed_time": "0:58:35", "remaining_time": "0:13:10", "rewards/chosen": 0.13318413779849098, "logps/chosen": -415.5634765625, "logits/chosen": -55244385.52380952, "rewards/rejected": 0.04332290197673597, "logps/rejected": -186.464111328125, "logits/rejected": -48958032.84210526, "rewards/margins": 0.08986123582175501, "regularization/w2": 0.08765041083097458, "regularization/grad_norm_sq": 4003.491455078125, "kl": 0.7197233438491821, "stability/response_length_mean": 32.5, "stability/response_length_std": 30.528675079345703, "stability/response_length_var": 932.0, "stability/token_entropy_mean": 4.44921875, "stability/repetition_rate_mean": 0.30851560831069946}
33
+ {"current_steps": 165, "total_steps": 196, "loss": 0.575, "lr": 9.952855895999568e-07, "epoch": 0.8445297504798465, "percentage": 84.18, "elapsed_time": "1:00:24", "remaining_time": "0:11:21", "rewards/chosen": 0.11679701969541352, "logps/chosen": -369.7487652658046, "logits/chosen": -54423646.16091954, "rewards/rejected": 0.048392984965076186, "logps/rejected": -212.1081843964041, "logits/rejected": -49801538.63013699, "rewards/margins": 0.06840403473033733, "regularization/w2": 0.0829373374581337, "regularization/grad_norm_sq": 3531.582763671875, "kl": 0.7622379660606384, "stability/response_length_mean": 22.5, "stability/response_length_std": 28.33977508544922, "stability/response_length_var": 803.1428833007812, "stability/token_entropy_mean": 4.8671875, "stability/repetition_rate_mean": 0.2411106526851654}
34
+ {"current_steps": 170, "total_steps": 196, "loss": 0.5717, "lr": 9.9452158908238e-07, "epoch": 0.8701215611004478, "percentage": 86.73, "elapsed_time": "1:02:15", "remaining_time": "0:09:31", "rewards/chosen": 0.1664069587662375, "logps/chosen": -439.6777921597633, "logits/chosen": -59135054.76923077, "rewards/rejected": 0.0662732661165149, "logps/rejected": -190.59510813327816, "logits/rejected": -52582671.25827815, "rewards/margins": 0.1001336926497226, "regularization/w2": 0.08665412664413452, "regularization/grad_norm_sq": 4036.350830078125, "kl": 0.9274574518203735, "stability/response_length_mean": 36.25, "stability/response_length_std": 30.76988410949707, "stability/response_length_var": 946.7857055664062, "stability/token_entropy_mean": 3.7744140625, "stability/repetition_rate_mean": 0.22428728640079498}
35
+ {"current_steps": 175, "total_steps": 196, "loss": 0.5718, "lr": 9.937005810398745e-07, "epoch": 0.8957133717210493, "percentage": 89.29, "elapsed_time": "1:04:05", "remaining_time": "0:07:41", "rewards/chosen": 0.15614137304834572, "logps/chosen": -354.87575301204816, "logits/chosen": -56650924.72289157, "rewards/rejected": 0.04930761882237026, "logps/rejected": -194.314453125, "logits/rejected": -48021038.54545455, "rewards/margins": 0.10683375422597546, "regularization/w2": 0.08717496693134308, "regularization/grad_norm_sq": 4183.99560546875, "kl": 0.9340354204177856, "stability/response_length_mean": 28.125, "stability/response_length_std": 25.357091903686523, "stability/response_length_var": 642.9821166992188, "stability/token_entropy_mean": 4.91015625, "stability/repetition_rate_mean": 0.2011384218931198}
36
+ {"current_steps": 180, "total_steps": 196, "loss": 0.5699, "lr": 9.928226601167138e-07, "epoch": 0.9213051823416507, "percentage": 91.84, "elapsed_time": "1:05:55", "remaining_time": "0:05:51", "rewards/chosen": 0.1738798925481691, "logps/chosen": -374.4070408358896, "logits/chosen": -52652798.42944785, "rewards/rejected": 0.0784439159806367, "logps/rejected": -210.5137838375796, "logits/rejected": -47983420.33121019, "rewards/margins": 0.0954359765675324, "regularization/w2": 0.08313455432653427, "regularization/grad_norm_sq": 3658.589111328125, "kl": 1.0286387205123901, "stability/response_length_mean": 35.25, "stability/response_length_std": 31.129911422729492, "stability/response_length_var": 969.0714111328125, "stability/token_entropy_mean": 3.41015625, "stability/repetition_rate_mean": 0.1989397406578064}
37
+ {"current_steps": 185, "total_steps": 196, "loss": 0.5768, "lr": 9.918879275179817e-07, "epoch": 0.946896992962252, "percentage": 94.39, "elapsed_time": "1:07:43", "remaining_time": "0:04:01", "rewards/chosen": 0.16850583347273462, "logps/chosen": -310.31630979938274, "logits/chosen": -54617227.061728396, "rewards/rejected": 0.0477899237524105, "logps/rejected": -196.56126384493672, "logits/rejected": -49519227.1392405, "rewards/margins": 0.12071590972032412, "regularization/w2": 0.09475024789571762, "regularization/grad_norm_sq": 6933.6611328125, "kl": 1.0774658918380737, "stability/response_length_mean": 32.875, "stability/response_length_std": 33.30996322631836, "stability/response_length_var": 1109.5535888671875, "stability/token_entropy_mean": 3.6953125, "stability/repetition_rate_mean": 0.15234375}
38
+ {"current_steps": 190, "total_steps": 196, "loss": 0.572, "lr": 9.90896490997906e-07, "epoch": 0.9724888035828535, "percentage": 96.94, "elapsed_time": "1:09:32", "remaining_time": "0:02:11", "rewards/chosen": 0.21311228860638098, "logps/chosen": -390.274186002994, "logits/chosen": -53099575.18562874, "rewards/rejected": 0.07406752093944674, "logps/rejected": -210.4579248366013, "logits/rejected": -49682532.39215686, "rewards/margins": 0.13904476766693424, "regularization/w2": 0.09194418042898178, "regularization/grad_norm_sq": 5340.63427734375, "kl": 1.1172609329223633, "stability/response_length_mean": 16.75, "stability/response_length_std": 27.12800407409668, "stability/response_length_var": 735.9285888671875, "stability/token_entropy_mean": 5.107421875, "stability/repetition_rate_mean": 0.13363486528396606}
39
+ {"current_steps": 195, "total_steps": 196, "loss": 0.5705, "lr": 9.898484648474362e-07, "epoch": 0.9980806142034548, "percentage": 99.49, "elapsed_time": "1:11:21", "remaining_time": "0:00:21", "rewards/chosen": 0.19513650709582914, "logps/chosen": -390.8335685483871, "logits/chosen": -60035851.561290324, "rewards/rejected": 0.08466331019546046, "logps/rejected": -197.07270359848485, "logits/rejected": -53796069.624242425, "rewards/margins": 0.11047319690036868, "regularization/w2": 0.08576133102178574, "regularization/grad_norm_sq": 3933.094482421875, "kl": 1.1507939100265503, "stability/response_length_mean": 49.0, "stability/response_length_std": 27.82085609436035, "stability/response_length_var": 774.0, "stability/token_entropy_mean": 5.1796875, "stability/repetition_rate_mean": 0.3953683078289032}
40
+ {"current_steps": 196, "total_steps": 196, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "1:11:36", "remaining_time": "0:00:00"}
mistral7b_kto_w2_delta0.001/trainer_state.json ADDED
@@ -0,0 +1,974 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0,
6
+ "eval_steps": 500,
7
+ "global_step": 196,
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.025591810620601407,
14
+ "grad_norm": 0.5704261660575867,
15
+ "kl": 0.009683904238045216,
16
+ "learning_rate": 4e-08,
17
+ "logits/chosen": -59713832.421052635,
18
+ "logits/rejected": -50416451.047619045,
19
+ "logps/chosen": -439.0024157072368,
20
+ "logps/rejected": -198.41252790178572,
21
+ "loss": 0.5885,
22
+ "loss/base_kto": 0.4994261860847473,
23
+ "metrics/advantage_var": 0.04821223020553589,
24
+ "regularization/grad_norm_sq": 4308.1396484375,
25
+ "regularization/w2": 0.09046166390180588,
26
+ "rewards/chosen": 0.004319707029744198,
27
+ "rewards/margins": 0.004632244073321347,
28
+ "rewards/rejected": -0.0003125370435771488,
29
+ "step": 5
30
+ },
31
+ {
32
+ "epoch": 0.05118362124120281,
33
+ "grad_norm": 0.6019414663314819,
34
+ "kl": 0.0205225832760334,
35
+ "learning_rate": 9e-08,
36
+ "logits/chosen": -59306230.02597403,
37
+ "logits/rejected": -50024096.38554217,
38
+ "logps/chosen": -429.9021915584416,
39
+ "logps/rejected": -192.85753953313252,
40
+ "loss": 0.586,
41
+ "loss/base_kto": 0.4996527135372162,
42
+ "metrics/advantage_var": 0.06569447368383408,
43
+ "regularization/grad_norm_sq": 3819.715576171875,
44
+ "regularization/w2": 0.08616509288549423,
45
+ "rewards/chosen": 0.003629611297087236,
46
+ "rewards/margins": 0.002590525050740383,
47
+ "rewards/rejected": 0.001039086246346853,
48
+ "stability/repetition_rate_mean": 0.3551284670829773,
49
+ "stability/response_length_mean": 46.125,
50
+ "stability/response_length_std": 27.231481552124023,
51
+ "stability/response_length_var": 741.5535888671875,
52
+ "stability/token_entropy_mean": 3.4365234375,
53
+ "step": 10
54
+ },
55
+ {
56
+ "epoch": 0.07677543186180422,
57
+ "grad_norm": 0.6072039604187012,
58
+ "kl": 0.011671505868434906,
59
+ "learning_rate": 1.4e-07,
60
+ "logits/chosen": -56229478.4,
61
+ "logits/rejected": -51918392.15483871,
62
+ "logps/chosen": -404.1024621212121,
63
+ "logps/rejected": -200.67379032258066,
64
+ "loss": 0.5856,
65
+ "loss/base_kto": 0.49987754225730896,
66
+ "metrics/advantage_var": 0.05594036728143692,
67
+ "regularization/grad_norm_sq": 4186.52001953125,
68
+ "regularization/w2": 0.08851373195648193,
69
+ "rewards/chosen": 0.002835910970514471,
70
+ "rewards/margins": 0.0008086012605348293,
71
+ "rewards/rejected": 0.0020273097099796416,
72
+ "stability/repetition_rate_mean": 0.2763020694255829,
73
+ "stability/response_length_mean": 28.5,
74
+ "stability/response_length_std": 30.10457992553711,
75
+ "stability/response_length_var": 906.2857055664062,
76
+ "stability/token_entropy_mean": 3.75390625,
77
+ "step": 15
78
+ },
79
+ {
80
+ "epoch": 0.10236724248240563,
81
+ "grad_norm": 0.6190371513366699,
82
+ "kl": 0.01878364384174347,
83
+ "learning_rate": 1.8999999999999998e-07,
84
+ "logits/chosen": -51667321.6,
85
+ "logits/rejected": -48058720.0,
86
+ "logps/chosen": -343.685205078125,
87
+ "logps/rejected": -225.618603515625,
88
+ "loss": 0.5864,
89
+ "loss/base_kto": 0.5004865527153015,
90
+ "metrics/advantage_var": 0.055938970297575,
91
+ "regularization/grad_norm_sq": 3616.344970703125,
92
+ "regularization/w2": 0.08394529670476913,
93
+ "rewards/chosen": 0.0011490656994283198,
94
+ "rewards/margins": -0.003325168509036303,
95
+ "rewards/rejected": 0.004474234208464623,
96
+ "stability/repetition_rate_mean": 0.1925223171710968,
97
+ "stability/response_length_mean": 49.75,
98
+ "stability/response_length_std": 26.649845123291016,
99
+ "stability/response_length_var": 710.2142944335938,
100
+ "stability/token_entropy_mean": 4.154296875,
101
+ "step": 20
102
+ },
103
+ {
104
+ "epoch": 0.12795905310300704,
105
+ "grad_norm": 0.5828595161437988,
106
+ "kl": 0.018041405826807022,
107
+ "learning_rate": 2.4e-07,
108
+ "logits/chosen": -56484976.993103445,
109
+ "logits/rejected": -52025847.22285714,
110
+ "logps/chosen": -378.47941810344827,
111
+ "logps/rejected": -202.76964285714286,
112
+ "loss": 0.5883,
113
+ "loss/base_kto": 0.5001233220100403,
114
+ "metrics/advantage_var": 0.07194186747074127,
115
+ "regularization/grad_norm_sq": 4000.53515625,
116
+ "regularization/w2": 0.08617646992206573,
117
+ "rewards/chosen": 0.0012034501495032475,
118
+ "rewards/margins": -0.001115835549796156,
119
+ "rewards/rejected": 0.0023192856992994035,
120
+ "stability/repetition_rate_mean": 0.18387754261493683,
121
+ "stability/response_length_mean": 43.375,
122
+ "stability/response_length_std": 28.54538917541504,
123
+ "stability/response_length_var": 814.8392944335938,
124
+ "stability/token_entropy_mean": 4.73828125,
125
+ "step": 25
126
+ },
127
+ {
128
+ "epoch": 0.15355086372360843,
129
+ "grad_norm": 0.6027837991714478,
130
+ "kl": 0.01663057506084442,
131
+ "learning_rate": 2.9e-07,
132
+ "logits/chosen": -57733023.7852349,
133
+ "logits/rejected": -51524224.74853801,
134
+ "logps/chosen": -468.56889681208054,
135
+ "logps/rejected": -198.22884685672514,
136
+ "loss": 0.5872,
137
+ "loss/base_kto": 0.5000787377357483,
138
+ "metrics/advantage_var": 0.08475451171398163,
139
+ "regularization/grad_norm_sq": 4545.20458984375,
140
+ "regularization/w2": 0.09177713841199875,
141
+ "rewards/chosen": 0.001230826113848078,
142
+ "rewards/margins": -0.0006731302826898365,
143
+ "rewards/rejected": 0.0019039563965379145,
144
+ "stability/repetition_rate_mean": 0.1875,
145
+ "stability/response_length_mean": 48.375,
146
+ "stability/response_length_std": 28.93311309814453,
147
+ "stability/response_length_var": 837.125,
148
+ "stability/token_entropy_mean": 4.52734375,
149
+ "step": 30
150
+ },
151
+ {
152
+ "epoch": 0.17914267434420986,
153
+ "grad_norm": 0.6801803708076477,
154
+ "kl": 0.016775427386164665,
155
+ "learning_rate": 3.4000000000000003e-07,
156
+ "logits/chosen": -57625172.25316456,
157
+ "logits/rejected": -53896609.18518519,
158
+ "logps/chosen": -385.9157189477848,
159
+ "logps/rejected": -195.12061149691357,
160
+ "loss": 0.5878,
161
+ "loss/base_kto": 0.4998288154602051,
162
+ "metrics/advantage_var": 0.062246084213256836,
163
+ "regularization/grad_norm_sq": 3760.884521484375,
164
+ "regularization/w2": 0.08562777936458588,
165
+ "rewards/chosen": 0.002080178713496727,
166
+ "rewards/margins": 0.0014936748957853799,
167
+ "rewards/rejected": 0.0005865038177113475,
168
+ "stability/repetition_rate_mean": 0.2854352593421936,
169
+ "stability/response_length_mean": 50.5,
170
+ "stability/response_length_std": 25.048524856567383,
171
+ "stability/response_length_var": 627.4285888671875,
172
+ "stability/token_entropy_mean": 5.5234375,
173
+ "step": 35
174
+ },
175
+ {
176
+ "epoch": 0.20473448496481125,
177
+ "grad_norm": 0.5847268104553223,
178
+ "kl": 0.017838044092059135,
179
+ "learning_rate": 3.8999999999999997e-07,
180
+ "logits/chosen": -56634124.8,
181
+ "logits/rejected": -50225545.6,
182
+ "logps/chosen": -421.87763671875,
183
+ "logps/rejected": -219.2741943359375,
184
+ "loss": 0.5859,
185
+ "loss/base_kto": 0.5001553297042847,
186
+ "metrics/advantage_var": 0.06722141057252884,
187
+ "regularization/grad_norm_sq": 4253.48828125,
188
+ "regularization/w2": 0.0906253382563591,
189
+ "rewards/chosen": 0.002502601221203804,
190
+ "rewards/margins": -0.0010038755834102628,
191
+ "rewards/rejected": 0.003506476804614067,
192
+ "stability/repetition_rate_mean": 0.16303454339504242,
193
+ "stability/response_length_mean": 35.0,
194
+ "stability/response_length_std": 31.518701553344727,
195
+ "stability/response_length_var": 993.4285888671875,
196
+ "stability/token_entropy_mean": 4.8115234375,
197
+ "step": 40
198
+ },
199
+ {
200
+ "epoch": 0.23032629558541268,
201
+ "grad_norm": 0.6392990946769714,
202
+ "kl": 0.044592004269361496,
203
+ "learning_rate": 4.3999999999999997e-07,
204
+ "logits/chosen": -52689789.422818795,
205
+ "logits/rejected": -50767135.438596494,
206
+ "logps/chosen": -352.29244442114094,
207
+ "logps/rejected": -243.81542397660817,
208
+ "loss": 0.5871,
209
+ "loss/base_kto": 0.5003380179405212,
210
+ "metrics/advantage_var": 0.0578509084880352,
211
+ "regularization/grad_norm_sq": 3660.001953125,
212
+ "regularization/w2": 0.08328904211521149,
213
+ "rewards/chosen": 0.0036000581395706074,
214
+ "rewards/margins": -0.0022749988076132804,
215
+ "rewards/rejected": 0.005875056947183888,
216
+ "stability/repetition_rate_mean": 0.0915892943739891,
217
+ "stability/response_length_mean": 29.25,
218
+ "stability/response_length_std": 29.51875877380371,
219
+ "stability/response_length_var": 871.3571166992188,
220
+ "stability/token_entropy_mean": 4.705078125,
221
+ "step": 45
222
+ },
223
+ {
224
+ "epoch": 0.2559181062060141,
225
+ "grad_norm": 0.5789488554000854,
226
+ "kl": 0.04660215601325035,
227
+ "learning_rate": 4.9e-07,
228
+ "logits/chosen": -54035864.912751675,
229
+ "logits/rejected": -48294564.67836257,
230
+ "logps/chosen": -375.1398385067114,
231
+ "logps/rejected": -180.18667763157896,
232
+ "loss": 0.5843,
233
+ "loss/base_kto": 0.4998607635498047,
234
+ "metrics/advantage_var": 0.06304984539747238,
235
+ "regularization/grad_norm_sq": 3861.982421875,
236
+ "regularization/w2": 0.08533728122711182,
237
+ "rewards/chosen": 0.005930147715062903,
238
+ "rewards/margins": 0.0005367304570512354,
239
+ "rewards/rejected": 0.005393417258011668,
240
+ "stability/repetition_rate_mean": 0.4206075370311737,
241
+ "stability/response_length_mean": 55.375,
242
+ "stability/response_length_std": 16.361431121826172,
243
+ "stability/response_length_var": 267.6964416503906,
244
+ "stability/token_entropy_mean": 3.806640625,
245
+ "step": 50
246
+ },
247
+ {
248
+ "epoch": 0.28150991682661547,
249
+ "grad_norm": 0.6636475324630737,
250
+ "kl": 0.04949667677283287,
251
+ "learning_rate": 5.4e-07,
252
+ "logits/chosen": -56956520.94409938,
253
+ "logits/rejected": -49569669.635220125,
254
+ "logps/chosen": -344.4948078416149,
255
+ "logps/rejected": -230.40541470125785,
256
+ "loss": 0.5859,
257
+ "loss/base_kto": 0.5003251433372498,
258
+ "metrics/advantage_var": 0.05528384447097778,
259
+ "regularization/grad_norm_sq": 3821.798583984375,
260
+ "regularization/w2": 0.08618461340665817,
261
+ "rewards/chosen": 0.0017190375683470542,
262
+ "rewards/margins": -0.0025420666225273456,
263
+ "rewards/rejected": 0.0042611041908743996,
264
+ "stability/repetition_rate_mean": 0.10418051481246948,
265
+ "stability/response_length_mean": 22.375,
266
+ "stability/response_length_std": 30.236862182617188,
267
+ "stability/response_length_var": 914.2678833007812,
268
+ "stability/token_entropy_mean": 4.3310546875,
269
+ "step": 55
270
+ },
271
+ {
272
+ "epoch": 0.30710172744721687,
273
+ "grad_norm": 0.5860218405723572,
274
+ "kl": 0.052175115793943405,
275
+ "learning_rate": 5.9e-07,
276
+ "logits/chosen": -52664307.587878786,
277
+ "logits/rejected": -47816974.86451613,
278
+ "logps/chosen": -359.62769886363634,
279
+ "logps/rejected": -178.1703377016129,
280
+ "loss": 0.5865,
281
+ "loss/base_kto": 0.4995388090610504,
282
+ "metrics/advantage_var": 0.05257711559534073,
283
+ "regularization/grad_norm_sq": 3147.68408203125,
284
+ "regularization/w2": 0.07853565365076065,
285
+ "rewards/chosen": 0.009310866124702222,
286
+ "rewards/margins": 0.003652031144322071,
287
+ "rewards/rejected": 0.005658834980380151,
288
+ "stability/repetition_rate_mean": 0.19273173809051514,
289
+ "stability/response_length_mean": 51.125,
290
+ "stability/response_length_std": 21.90523338317871,
291
+ "stability/response_length_var": 479.83929443359375,
292
+ "stability/token_entropy_mean": 5.384765625,
293
+ "step": 60
294
+ },
295
+ {
296
+ "epoch": 0.3326935380678183,
297
+ "grad_norm": 0.5740265846252441,
298
+ "kl": 0.08242836594581604,
299
+ "learning_rate": 6.4e-07,
300
+ "logits/chosen": -57557335.535483874,
301
+ "logits/rejected": -47273723.345454544,
302
+ "logps/chosen": -381.8203629032258,
303
+ "logps/rejected": -183.4941287878788,
304
+ "loss": 0.5876,
305
+ "loss/base_kto": 0.4996063709259033,
306
+ "metrics/advantage_var": 0.060703542083501816,
307
+ "regularization/grad_norm_sq": 3963.318359375,
308
+ "regularization/w2": 0.08724621683359146,
309
+ "rewards/chosen": 0.012640624661599436,
310
+ "rewards/margins": 0.003818599709317831,
311
+ "rewards/rejected": 0.008822024952281605,
312
+ "stability/repetition_rate_mean": 0.18141163885593414,
313
+ "stability/response_length_mean": 20.625,
314
+ "stability/response_length_std": 27.176342010498047,
315
+ "stability/response_length_var": 738.5535888671875,
316
+ "stability/token_entropy_mean": 5.541015625,
317
+ "step": 65
318
+ },
319
+ {
320
+ "epoch": 0.3582853486884197,
321
+ "grad_norm": 0.5525412559509277,
322
+ "kl": 0.08330817520618439,
323
+ "learning_rate": 6.9e-07,
324
+ "logits/chosen": -52759789.83225807,
325
+ "logits/rejected": -49030733.57575758,
326
+ "logps/chosen": -379.01844758064516,
327
+ "logps/rejected": -220.32575757575756,
328
+ "loss": 0.5896,
329
+ "loss/base_kto": 0.4998234808444977,
330
+ "metrics/advantage_var": 0.07535155117511749,
331
+ "regularization/grad_norm_sq": 4505.4248046875,
332
+ "regularization/w2": 0.09144462645053864,
333
+ "rewards/chosen": 0.01100011948616274,
334
+ "rewards/margins": 0.001358813158111722,
335
+ "rewards/rejected": 0.009641306328051017,
336
+ "stability/repetition_rate_mean": 0.1875,
337
+ "stability/response_length_mean": 33.875,
338
+ "stability/response_length_std": 32.36151885986328,
339
+ "stability/response_length_var": 1047.267822265625,
340
+ "stability/token_entropy_mean": 5.734375,
341
+ "step": 70
342
+ },
343
+ {
344
+ "epoch": 0.3838771593090211,
345
+ "grad_norm": 0.6087732315063477,
346
+ "kl": 0.08941509574651718,
347
+ "learning_rate": 7.4e-07,
348
+ "logits/chosen": -49510995.027027026,
349
+ "logits/rejected": -47899594.41860465,
350
+ "logps/chosen": -314.11993243243245,
351
+ "logps/rejected": -228.82019894622093,
352
+ "loss": 0.5871,
353
+ "loss/base_kto": 0.4989282786846161,
354
+ "metrics/advantage_var": 0.0716477707028389,
355
+ "regularization/grad_norm_sq": 3729.305419921875,
356
+ "regularization/w2": 0.08471358567476273,
357
+ "rewards/chosen": 0.01508830366907893,
358
+ "rewards/margins": 0.008622753590176797,
359
+ "rewards/rejected": 0.0064655500789021336,
360
+ "stability/repetition_rate_mean": 0.07421875,
361
+ "stability/response_length_mean": 24.25,
362
+ "stability/response_length_std": 32.92306900024414,
363
+ "stability/response_length_var": 1083.9285888671875,
364
+ "stability/token_entropy_mean": 1.901123046875,
365
+ "step": 75
366
+ },
367
+ {
368
+ "epoch": 0.4094689699296225,
369
+ "grad_norm": 0.6029742360115051,
370
+ "kl": 0.12230757623910904,
371
+ "learning_rate": 7.9e-07,
372
+ "logits/chosen": -58619103.78807947,
373
+ "logits/rejected": -53444892.78106509,
374
+ "logps/chosen": -403.8790873344371,
375
+ "logps/rejected": -200.96717825443787,
376
+ "loss": 0.586,
377
+ "loss/base_kto": 0.49925336241722107,
378
+ "metrics/advantage_var": 0.08379612118005753,
379
+ "regularization/grad_norm_sq": 3586.81494140625,
380
+ "regularization/w2": 0.08361315727233887,
381
+ "rewards/chosen": 0.015101601745908624,
382
+ "rewards/margins": 0.006237886015433373,
383
+ "rewards/rejected": 0.008863715730475251,
384
+ "stability/repetition_rate_mean": 0.19088542461395264,
385
+ "stability/response_length_mean": 42.0,
386
+ "stability/response_length_std": 30.481843948364258,
387
+ "stability/response_length_var": 929.1428833007812,
388
+ "stability/token_entropy_mean": 5.22265625,
389
+ "step": 80
390
+ },
391
+ {
392
+ "epoch": 0.4350607805502239,
393
+ "grad_norm": 0.6115427613258362,
394
+ "kl": 0.12014111131429672,
395
+ "learning_rate": 8.399999999999999e-07,
396
+ "logits/chosen": -51479532.18064516,
397
+ "logits/rejected": -47144202.86060606,
398
+ "logps/chosen": -358.09873991935484,
399
+ "logps/rejected": -230.32935606060607,
400
+ "loss": 0.5852,
401
+ "loss/base_kto": 0.4983179271221161,
402
+ "metrics/advantage_var": 0.0890185683965683,
403
+ "regularization/grad_norm_sq": 3845.35009765625,
404
+ "regularization/w2": 0.08649836480617523,
405
+ "rewards/chosen": 0.023378246061263545,
406
+ "rewards/margins": 0.013833501425190287,
407
+ "rewards/rejected": 0.009544744636073257,
408
+ "stability/repetition_rate_mean": 0.1291852593421936,
409
+ "stability/response_length_mean": 28.0,
410
+ "stability/response_length_std": 31.181495666503906,
411
+ "stability/response_length_var": 972.2857055664062,
412
+ "stability/token_entropy_mean": 4.955078125,
413
+ "step": 85
414
+ },
415
+ {
416
+ "epoch": 0.46065259117082535,
417
+ "grad_norm": 0.6375041604042053,
418
+ "kl": 0.16934870183467865,
419
+ "learning_rate": 8.9e-07,
420
+ "logits/chosen": -58404365.12820513,
421
+ "logits/rejected": -50561935.6097561,
422
+ "logps/chosen": -380.53598257211536,
423
+ "logps/rejected": -187.11123285060975,
424
+ "loss": 0.5845,
425
+ "loss/base_kto": 0.4982176721096039,
426
+ "metrics/advantage_var": 0.09395573288202286,
427
+ "regularization/grad_norm_sq": 3960.31103515625,
428
+ "regularization/w2": 0.0869247317314148,
429
+ "rewards/chosen": 0.025340945292741824,
430
+ "rewards/margins": 0.013783786392271555,
431
+ "rewards/rejected": 0.01155715890047027,
432
+ "stability/repetition_rate_mean": 0.3175307810306549,
433
+ "stability/response_length_mean": 35.625,
434
+ "stability/response_length_std": 31.057262420654297,
435
+ "stability/response_length_var": 964.5535888671875,
436
+ "stability/token_entropy_mean": 3.80078125,
437
+ "step": 90
438
+ },
439
+ {
440
+ "epoch": 0.48624440179142675,
441
+ "grad_norm": 0.6220579147338867,
442
+ "kl": 0.16499601304531097,
443
+ "learning_rate": 9.399999999999999e-07,
444
+ "logits/chosen": -50380346.32911392,
445
+ "logits/rejected": -48968169.87654321,
446
+ "logps/chosen": -314.7436956091772,
447
+ "logps/rejected": -207.06233121141975,
448
+ "loss": 0.5842,
449
+ "loss/base_kto": 0.49793797731399536,
450
+ "metrics/advantage_var": 0.13462769985198975,
451
+ "regularization/grad_norm_sq": 3773.901123046875,
452
+ "regularization/w2": 0.08464869111776352,
453
+ "rewards/chosen": 0.02496972416020647,
454
+ "rewards/margins": 0.016831111695584253,
455
+ "rewards/rejected": 0.008138612464622216,
456
+ "stability/repetition_rate_mean": 0.09133065491914749,
457
+ "stability/response_length_mean": 21.875,
458
+ "stability/response_length_std": 27.304826736450195,
459
+ "stability/response_length_var": 745.5535888671875,
460
+ "stability/token_entropy_mean": 4.09375,
461
+ "step": 95
462
+ },
463
+ {
464
+ "epoch": 0.5118362124120281,
465
+ "grad_norm": 0.6105950474739075,
466
+ "kl": 0.20538730919361115,
467
+ "learning_rate": 9.9e-07,
468
+ "logits/chosen": -54697513.51351351,
469
+ "logits/rejected": -50905552.37209302,
470
+ "logps/chosen": -359.57635663006755,
471
+ "logps/rejected": -216.37804324127907,
472
+ "loss": 0.5846,
473
+ "loss/base_kto": 0.4987795054912567,
474
+ "metrics/advantage_var": 0.12774451076984406,
475
+ "regularization/grad_norm_sq": 3816.7734375,
476
+ "regularization/w2": 0.08535917103290558,
477
+ "rewards/chosen": 0.029381449158127244,
478
+ "rewards/margins": 0.009296495572790869,
479
+ "rewards/rejected": 0.020084953585336376,
480
+ "stability/repetition_rate_mean": 0.2265625,
481
+ "stability/response_length_mean": 41.25,
482
+ "stability/response_length_std": 31.476749420166016,
483
+ "stability/response_length_var": 990.7857055664062,
484
+ "stability/token_entropy_mean": 4.166015625,
485
+ "step": 100
486
+ },
487
+ {
488
+ "epoch": 0.5374280230326296,
489
+ "grad_norm": 0.6735162138938904,
490
+ "kl": 0.22678242623806,
491
+ "learning_rate": 9.999815554351224e-07,
492
+ "logits/chosen": -59375134.84337349,
493
+ "logits/rejected": -53807054.12987013,
494
+ "logps/chosen": -399.4981645331325,
495
+ "logps/rejected": -209.86383928571428,
496
+ "loss": 0.5847,
497
+ "loss/base_kto": 0.49670204520225525,
498
+ "metrics/advantage_var": 0.2160111963748932,
499
+ "regularization/grad_norm_sq": 3959.833740234375,
500
+ "regularization/w2": 0.08724039793014526,
501
+ "rewards/chosen": 0.04043001151946654,
502
+ "rewards/margins": 0.02643077232863418,
503
+ "rewards/rejected": 0.01399923919083236,
504
+ "stability/repetition_rate_mean": 0.1897321343421936,
505
+ "stability/response_length_mean": 29.0,
506
+ "stability/response_length_std": 29.89505386352539,
507
+ "stability/response_length_var": 893.7142944335938,
508
+ "stability/token_entropy_mean": 3.359375,
509
+ "step": 105
510
+ },
511
+ {
512
+ "epoch": 0.5630198336532309,
513
+ "grad_norm": 0.6461487412452698,
514
+ "kl": 0.2732836902141571,
515
+ "learning_rate": 9.999066267225444e-07,
516
+ "logits/chosen": -57406969.8313253,
517
+ "logits/rejected": -53620639.584415585,
518
+ "logps/chosen": -378.2289627259036,
519
+ "logps/rejected": -205.90453784496754,
520
+ "loss": 0.5829,
521
+ "loss/base_kto": 0.4979163706302643,
522
+ "metrics/advantage_var": 0.1939479112625122,
523
+ "regularization/grad_norm_sq": 3633.171875,
524
+ "regularization/w2": 0.08427540957927704,
525
+ "rewards/chosen": 0.033429114215345265,
526
+ "rewards/margins": 0.015068041179646833,
527
+ "rewards/rejected": 0.018361073035698432,
528
+ "stability/repetition_rate_mean": 0.30853456258773804,
529
+ "stability/response_length_mean": 28.875,
530
+ "stability/response_length_std": 29.911476135253906,
531
+ "stability/response_length_var": 894.6964111328125,
532
+ "stability/token_entropy_mean": 4.416015625,
533
+ "step": 110
534
+ },
535
+ {
536
+ "epoch": 0.5886116442738324,
537
+ "grad_norm": 0.6481019854545593,
538
+ "kl": 0.31861141324043274,
539
+ "learning_rate": 9.997740697079592e-07,
540
+ "logits/chosen": -60599995.94936709,
541
+ "logits/rejected": -53401410.37037037,
542
+ "logps/chosen": -364.0679390822785,
543
+ "logps/rejected": -200.95594618055554,
544
+ "loss": 0.5815,
545
+ "loss/base_kto": 0.4965081214904785,
546
+ "metrics/advantage_var": 0.2759661376476288,
547
+ "regularization/grad_norm_sq": 3353.943115234375,
548
+ "regularization/w2": 0.08032859116792679,
549
+ "rewards/chosen": 0.052460066879851906,
550
+ "rewards/margins": 0.0283992906756132,
551
+ "rewards/rejected": 0.024060776204238705,
552
+ "stability/repetition_rate_mean": 0.3053385615348816,
553
+ "stability/response_length_mean": 49.0,
554
+ "stability/response_length_std": 27.795169830322266,
555
+ "stability/response_length_var": 772.5714111328125,
556
+ "stability/token_entropy_mean": 4.779296875,
557
+ "step": 115
558
+ },
559
+ {
560
+ "epoch": 0.6142034548944337,
561
+ "grad_norm": 0.6184019446372986,
562
+ "kl": 0.3490689694881439,
563
+ "learning_rate": 9.995838996722914e-07,
564
+ "logits/chosen": -57745769.4117647,
565
+ "logits/rejected": -54368427.68862276,
566
+ "logps/chosen": -383.6613562091503,
567
+ "logps/rejected": -211.98376684131736,
568
+ "loss": 0.5837,
569
+ "loss/base_kto": 0.49555841088294983,
570
+ "metrics/advantage_var": 0.4176083505153656,
571
+ "regularization/grad_norm_sq": 4317.544921875,
572
+ "regularization/w2": 0.08935306966304779,
573
+ "rewards/chosen": 0.05835722630320032,
574
+ "rewards/margins": 0.03509791492412741,
575
+ "rewards/rejected": 0.02325931137907291,
576
+ "stability/repetition_rate_mean": 0.1742897778749466,
577
+ "stability/response_length_mean": 27.875,
578
+ "stability/response_length_std": 30.31943130493164,
579
+ "stability/response_length_var": 919.2678833007812,
580
+ "stability/token_entropy_mean": 4.634765625,
581
+ "step": 120
582
+ },
583
+ {
584
+ "epoch": 0.6397952655150352,
585
+ "grad_norm": 0.6115716099739075,
586
+ "kl": 0.39925938844680786,
587
+ "learning_rate": 9.993361385379874e-07,
588
+ "logits/chosen": -60688299.83561644,
589
+ "logits/rejected": -55668524.137931034,
590
+ "logps/chosen": -416.8091823630137,
591
+ "logps/rejected": -216.12354076867817,
592
+ "loss": 0.582,
593
+ "loss/base_kto": 0.49605321884155273,
594
+ "metrics/advantage_var": 0.6236904263496399,
595
+ "regularization/grad_norm_sq": 3812.632568359375,
596
+ "regularization/w2": 0.08550175279378891,
597
+ "rewards/chosen": 0.057012499195255646,
598
+ "rewards/margins": 0.032647929103745005,
599
+ "rewards/rejected": 0.02436457009151064,
600
+ "stability/repetition_rate_mean": 0.16215278208255768,
601
+ "stability/response_length_mean": 15.25,
602
+ "stability/response_length_std": 24.93276596069336,
603
+ "stability/response_length_var": 621.6428833007812,
604
+ "stability/token_entropy_mean": 3.64453125,
605
+ "step": 125
606
+ },
607
+ {
608
+ "epoch": 0.6653870761356366,
609
+ "grad_norm": 0.593185305595398,
610
+ "kl": 0.4498286247253418,
611
+ "learning_rate": 9.99030814866488e-07,
612
+ "logits/chosen": -57376213.05806451,
613
+ "logits/rejected": -53835838.06060606,
614
+ "logps/chosen": -391.9687247983871,
615
+ "logps/rejected": -183.66205018939394,
616
+ "loss": 0.5824,
617
+ "loss/base_kto": 0.4946207106113434,
618
+ "metrics/advantage_var": 0.780052661895752,
619
+ "regularization/grad_norm_sq": 3791.43017578125,
620
+ "regularization/w2": 0.08550234884023666,
621
+ "rewards/chosen": 0.06892158754410282,
622
+ "rewards/margins": 0.04323520790913005,
623
+ "rewards/rejected": 0.025686379634972775,
624
+ "stability/repetition_rate_mean": 0.24460937082767487,
625
+ "stability/response_length_mean": 43.25,
626
+ "stability/response_length_std": 29.620214462280273,
627
+ "stability/response_length_var": 877.3571166992188,
628
+ "stability/token_entropy_mean": 3.6328125,
629
+ "step": 130
630
+ },
631
+ {
632
+ "epoch": 0.690978886756238,
633
+ "grad_norm": 0.5935289263725281,
634
+ "kl": 0.5017997026443481,
635
+ "learning_rate": 9.986679638549358e-07,
636
+ "logits/chosen": -59854006.18404908,
637
+ "logits/rejected": -55003403.41401274,
638
+ "logps/chosen": -400.9800373849693,
639
+ "logps/rejected": -247.51960589171975,
640
+ "loss": 0.5789,
641
+ "loss/base_kto": 0.49386605620384216,
642
+ "metrics/advantage_var": 1.076611042022705,
643
+ "regularization/grad_norm_sq": 4160.88037109375,
644
+ "regularization/w2": 0.08902523666620255,
645
+ "rewards/chosen": 0.08361249467346565,
646
+ "rewards/margins": 0.048496560192178954,
647
+ "rewards/rejected": 0.0351159344812867,
648
+ "stability/repetition_rate_mean": 0.2270585298538208,
649
+ "stability/response_length_mean": 29.875,
650
+ "stability/response_length_std": 29.502723693847656,
651
+ "stability/response_length_var": 870.4107055664062,
652
+ "stability/token_entropy_mean": 3.8955078125,
653
+ "step": 135
654
+ },
655
+ {
656
+ "epoch": 0.7165706973768394,
657
+ "grad_norm": 0.7262139916419983,
658
+ "kl": 0.48766636848449707,
659
+ "learning_rate": 9.982476273321175e-07,
660
+ "logits/chosen": -57086696.72727273,
661
+ "logits/rejected": -50077061.78064516,
662
+ "logps/chosen": -366.3728456439394,
663
+ "logps/rejected": -189.92496219758064,
664
+ "loss": 0.5811,
665
+ "loss/base_kto": 0.4916563630104065,
666
+ "metrics/advantage_var": 1.9005340337753296,
667
+ "regularization/grad_norm_sq": 5850.53369140625,
668
+ "regularization/w2": 0.09640365839004517,
669
+ "rewards/chosen": 0.08169195001775569,
670
+ "rewards/margins": 0.07074021258312237,
671
+ "rewards/rejected": 0.010951737434633317,
672
+ "stability/repetition_rate_mean": 0.2662760317325592,
673
+ "stability/response_length_mean": 52.75,
674
+ "stability/response_length_std": 22.72663688659668,
675
+ "stability/response_length_var": 516.5,
676
+ "stability/token_entropy_mean": 5.19921875,
677
+ "step": 140
678
+ },
679
+ {
680
+ "epoch": 0.7421625079974408,
681
+ "grad_norm": 0.6740468144416809,
682
+ "kl": 0.5717339515686035,
683
+ "learning_rate": 9.977698537536417e-07,
684
+ "logits/chosen": -51144241.34939759,
685
+ "logits/rejected": -51662345.97402597,
686
+ "logps/chosen": -329.4772684487952,
687
+ "logps/rejected": -199.15458857548703,
688
+ "loss": 0.5778,
689
+ "loss/base_kto": 0.4942333400249481,
690
+ "metrics/advantage_var": 0.8122803568840027,
691
+ "regularization/grad_norm_sq": 3395.665771484375,
692
+ "regularization/w2": 0.08150183409452438,
693
+ "rewards/chosen": 0.07945383600441806,
694
+ "rewards/margins": 0.04612136428073769,
695
+ "rewards/rejected": 0.033332471723680375,
696
+ "stability/repetition_rate_mean": 0.19258596003055573,
697
+ "stability/response_length_mean": 22.625,
698
+ "stability/response_length_std": 26.359804153442383,
699
+ "stability/response_length_var": 694.8392944335938,
700
+ "stability/token_entropy_mean": 5.59765625,
701
+ "step": 145
702
+ },
703
+ {
704
+ "epoch": 0.7677543186180422,
705
+ "grad_norm": 0.6410212516784668,
706
+ "kl": 0.6380648016929626,
707
+ "learning_rate": 9.972346981963546e-07,
708
+ "logits/chosen": -55422674.823529415,
709
+ "logits/rejected": -50191220.053333335,
710
+ "logps/chosen": -396.8014705882353,
711
+ "logps/rejected": -207.36661458333333,
712
+ "loss": 0.5788,
713
+ "loss/base_kto": 0.48983898758888245,
714
+ "metrics/advantage_var": 1.331944465637207,
715
+ "regularization/grad_norm_sq": 4066.153076171875,
716
+ "regularization/w2": 0.08941753953695297,
717
+ "rewards/chosen": 0.11329341215245864,
718
+ "rewards/margins": 0.0773618948693369,
719
+ "rewards/rejected": 0.035931517283121744,
720
+ "stability/repetition_rate_mean": 0.2115885466337204,
721
+ "stability/response_length_mean": 35.25,
722
+ "stability/response_length_std": 31.01957893371582,
723
+ "stability/response_length_var": 962.2142944335938,
724
+ "stability/token_entropy_mean": 4.6640625,
725
+ "step": 150
726
+ },
727
+ {
728
+ "epoch": 0.7933461292386437,
729
+ "grad_norm": 0.6439304947853088,
730
+ "kl": 0.6510013341903687,
731
+ "learning_rate": 9.966422223519885e-07,
732
+ "logits/chosen": -54019288.847058825,
733
+ "logits/rejected": -49348276.906666666,
734
+ "logps/chosen": -360.07109375,
735
+ "logps/rejected": -190.99877604166667,
736
+ "loss": 0.5778,
737
+ "loss/base_kto": 0.4926762580871582,
738
+ "metrics/advantage_var": 2.249819755554199,
739
+ "regularization/grad_norm_sq": 5026.2802734375,
740
+ "regularization/w2": 0.09407851099967957,
741
+ "rewards/chosen": 0.09181964537676643,
742
+ "rewards/margins": 0.06113565108355354,
743
+ "rewards/rejected": 0.03068399429321289,
744
+ "stability/repetition_rate_mean": 0.3444148898124695,
745
+ "stability/response_length_mean": 61.875,
746
+ "stability/response_length_std": 6.010407447814941,
747
+ "stability/response_length_var": 36.125,
748
+ "stability/token_entropy_mean": 4.5625,
749
+ "step": 155
750
+ },
751
+ {
752
+ "epoch": 0.818937939859245,
753
+ "grad_norm": 0.615806519985199,
754
+ "kl": 0.7197233438491821,
755
+ "learning_rate": 9.959924945200523e-07,
756
+ "logits/chosen": -55244385.52380952,
757
+ "logits/rejected": -48958032.84210526,
758
+ "logps/chosen": -415.5634765625,
759
+ "logps/rejected": -186.464111328125,
760
+ "loss": 0.5777,
761
+ "loss/base_kto": 0.4885575473308563,
762
+ "metrics/advantage_var": 1.9970428943634033,
763
+ "regularization/grad_norm_sq": 4003.491455078125,
764
+ "regularization/w2": 0.08765041083097458,
765
+ "rewards/chosen": 0.13318413779849098,
766
+ "rewards/margins": 0.08986123582175501,
767
+ "rewards/rejected": 0.04332290197673597,
768
+ "stability/repetition_rate_mean": 0.30851560831069946,
769
+ "stability/response_length_mean": 32.5,
770
+ "stability/response_length_std": 30.528675079345703,
771
+ "stability/response_length_var": 932.0,
772
+ "stability/token_entropy_mean": 4.44921875,
773
+ "step": 160
774
+ },
775
+ {
776
+ "epoch": 0.8445297504798465,
777
+ "grad_norm": 0.7225887179374695,
778
+ "kl": 0.7622379660606384,
779
+ "learning_rate": 9.952855895999568e-07,
780
+ "logits/chosen": -54423646.16091954,
781
+ "logits/rejected": -49801538.63013699,
782
+ "logps/chosen": -369.7487652658046,
783
+ "logps/rejected": -212.1081843964041,
784
+ "loss": 0.575,
785
+ "loss/base_kto": 0.4914153218269348,
786
+ "metrics/advantage_var": 1.7091789245605469,
787
+ "regularization/grad_norm_sq": 3531.582763671875,
788
+ "regularization/w2": 0.0829373374581337,
789
+ "rewards/chosen": 0.11679701969541352,
790
+ "rewards/margins": 0.06840403473033733,
791
+ "rewards/rejected": 0.048392984965076186,
792
+ "stability/repetition_rate_mean": 0.2411106526851654,
793
+ "stability/response_length_mean": 22.5,
794
+ "stability/response_length_std": 28.33977508544922,
795
+ "stability/response_length_var": 803.1428833007812,
796
+ "stability/token_entropy_mean": 4.8671875,
797
+ "step": 165
798
+ },
799
+ {
800
+ "epoch": 0.8701215611004478,
801
+ "grad_norm": 0.6213456988334656,
802
+ "kl": 0.9274574518203735,
803
+ "learning_rate": 9.9452158908238e-07,
804
+ "logits/chosen": -59135054.76923077,
805
+ "logits/rejected": -52582671.25827815,
806
+ "logps/chosen": -439.6777921597633,
807
+ "logps/rejected": -190.59510813327816,
808
+ "loss": 0.5717,
809
+ "loss/base_kto": 0.4875049293041229,
810
+ "metrics/advantage_var": 2.3025033473968506,
811
+ "regularization/grad_norm_sq": 4036.350830078125,
812
+ "regularization/w2": 0.08665412664413452,
813
+ "rewards/chosen": 0.1664069587662375,
814
+ "rewards/margins": 0.1001336926497226,
815
+ "rewards/rejected": 0.0662732661165149,
816
+ "stability/repetition_rate_mean": 0.22428728640079498,
817
+ "stability/response_length_mean": 36.25,
818
+ "stability/response_length_std": 30.76988410949707,
819
+ "stability/response_length_var": 946.7857055664062,
820
+ "stability/token_entropy_mean": 3.7744140625,
821
+ "step": 170
822
+ },
823
+ {
824
+ "epoch": 0.8957133717210493,
825
+ "grad_norm": 0.7222792506217957,
826
+ "kl": 0.9340354204177856,
827
+ "learning_rate": 9.937005810398745e-07,
828
+ "logits/chosen": -56650924.72289157,
829
+ "logits/rejected": -48021038.54545455,
830
+ "logps/chosen": -354.87575301204816,
831
+ "logps/rejected": -194.314453125,
832
+ "loss": 0.5718,
833
+ "loss/base_kto": 0.48661375045776367,
834
+ "metrics/advantage_var": 4.268935680389404,
835
+ "regularization/grad_norm_sq": 4183.99560546875,
836
+ "regularization/w2": 0.08717496693134308,
837
+ "rewards/chosen": 0.15614137304834572,
838
+ "rewards/margins": 0.10683375422597546,
839
+ "rewards/rejected": 0.04930761882237026,
840
+ "stability/repetition_rate_mean": 0.2011384218931198,
841
+ "stability/response_length_mean": 28.125,
842
+ "stability/response_length_std": 25.357091903686523,
843
+ "stability/response_length_var": 642.9821166992188,
844
+ "stability/token_entropy_mean": 4.91015625,
845
+ "step": 175
846
+ },
847
+ {
848
+ "epoch": 0.9213051823416507,
849
+ "grad_norm": 0.6457726955413818,
850
+ "kl": 1.0286387205123901,
851
+ "learning_rate": 9.928226601167138e-07,
852
+ "logits/chosen": -52652798.42944785,
853
+ "logits/rejected": -47983420.33121019,
854
+ "logps/chosen": -374.4070408358896,
855
+ "logps/rejected": -210.5137838375796,
856
+ "loss": 0.5699,
857
+ "loss/base_kto": 0.48794251680374146,
858
+ "metrics/advantage_var": 4.224320411682129,
859
+ "regularization/grad_norm_sq": 3658.589111328125,
860
+ "regularization/w2": 0.08313455432653427,
861
+ "rewards/chosen": 0.1738798925481691,
862
+ "rewards/margins": 0.0954359765675324,
863
+ "rewards/rejected": 0.0784439159806367,
864
+ "stability/repetition_rate_mean": 0.1989397406578064,
865
+ "stability/response_length_mean": 35.25,
866
+ "stability/response_length_std": 31.129911422729492,
867
+ "stability/response_length_var": 969.0714111328125,
868
+ "stability/token_entropy_mean": 3.41015625,
869
+ "step": 180
870
+ },
871
+ {
872
+ "epoch": 0.946896992962252,
873
+ "grad_norm": 0.6506476402282715,
874
+ "kl": 1.0774658918380737,
875
+ "learning_rate": 9.918879275179817e-07,
876
+ "logits/chosen": -54617227.061728396,
877
+ "logits/rejected": -49519227.1392405,
878
+ "logps/chosen": -310.31630979938274,
879
+ "logps/rejected": -196.56126384493672,
880
+ "loss": 0.5768,
881
+ "loss/base_kto": 0.486668199300766,
882
+ "metrics/advantage_var": 7.448278903961182,
883
+ "regularization/grad_norm_sq": 6933.6611328125,
884
+ "regularization/w2": 0.09475024789571762,
885
+ "rewards/chosen": 0.16850583347273462,
886
+ "rewards/margins": 0.12071590972032412,
887
+ "rewards/rejected": 0.0477899237524105,
888
+ "stability/repetition_rate_mean": 0.15234375,
889
+ "stability/response_length_mean": 32.875,
890
+ "stability/response_length_std": 33.30996322631836,
891
+ "stability/response_length_var": 1109.5535888671875,
892
+ "stability/token_entropy_mean": 3.6953125,
893
+ "step": 185
894
+ },
895
+ {
896
+ "epoch": 0.9724888035828535,
897
+ "grad_norm": 0.6974467635154724,
898
+ "kl": 1.1172609329223633,
899
+ "learning_rate": 9.90896490997906e-07,
900
+ "logits/chosen": -53099575.18562874,
901
+ "logits/rejected": -49682532.39215686,
902
+ "logps/chosen": -390.274186002994,
903
+ "logps/rejected": -210.4579248366013,
904
+ "loss": 0.572,
905
+ "loss/base_kto": 0.4829126298427582,
906
+ "metrics/advantage_var": 6.995049953460693,
907
+ "regularization/grad_norm_sq": 5340.63427734375,
908
+ "regularization/w2": 0.09194418042898178,
909
+ "rewards/chosen": 0.21311228860638098,
910
+ "rewards/margins": 0.13904476766693424,
911
+ "rewards/rejected": 0.07406752093944674,
912
+ "stability/repetition_rate_mean": 0.13363486528396606,
913
+ "stability/response_length_mean": 16.75,
914
+ "stability/response_length_std": 27.12800407409668,
915
+ "stability/response_length_var": 735.9285888671875,
916
+ "stability/token_entropy_mean": 5.107421875,
917
+ "step": 190
918
+ },
919
+ {
920
+ "epoch": 0.9980806142034548,
921
+ "grad_norm": 0.6366767287254333,
922
+ "kl": 1.1507939100265503,
923
+ "learning_rate": 9.898484648474362e-07,
924
+ "logits/chosen": -60035851.561290324,
925
+ "logits/rejected": -53796069.624242425,
926
+ "logps/chosen": -390.8335685483871,
927
+ "logps/rejected": -197.07270359848485,
928
+ "loss": 0.5705,
929
+ "loss/base_kto": 0.48604080080986023,
930
+ "metrics/advantage_var": 4.371114253997803,
931
+ "regularization/grad_norm_sq": 3933.094482421875,
932
+ "regularization/w2": 0.08576133102178574,
933
+ "rewards/chosen": 0.19513650709582914,
934
+ "rewards/margins": 0.11047319690036868,
935
+ "rewards/rejected": 0.08466331019546046,
936
+ "stability/repetition_rate_mean": 0.3953683078289032,
937
+ "stability/response_length_mean": 49.0,
938
+ "stability/response_length_std": 27.82085609436035,
939
+ "stability/response_length_var": 774.0,
940
+ "stability/token_entropy_mean": 5.1796875,
941
+ "step": 195
942
+ },
943
+ {
944
+ "epoch": 1.0,
945
+ "step": 196,
946
+ "total_flos": 3.1861866257511875e+18,
947
+ "train_loss": 0.5821207132266493,
948
+ "train_runtime": 4296.589,
949
+ "train_samples_per_second": 23.274,
950
+ "train_steps_per_second": 0.046
951
+ }
952
+ ],
953
+ "logging_steps": 5,
954
+ "max_steps": 196,
955
+ "num_input_tokens_seen": 0,
956
+ "num_train_epochs": 1,
957
+ "save_steps": 200,
958
+ "stateful_callbacks": {
959
+ "TrainerControl": {
960
+ "args": {
961
+ "should_epoch_stop": false,
962
+ "should_evaluate": false,
963
+ "should_log": false,
964
+ "should_save": true,
965
+ "should_training_stop": true
966
+ },
967
+ "attributes": {}
968
+ }
969
+ },
970
+ "total_flos": 3.1861866257511875e+18,
971
+ "train_batch_size": 8,
972
+ "trial_name": null,
973
+ "trial_params": null
974
+ }
mistral7b_kto_w2_delta0.001/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc269180f5d75bd1ef95cbfdbfbd583fa9ef80416dbb4748e6a57fe1cde09ea8
3
+ size 8081
mistral7b_kto_w2_delta0.001/training_loss.png ADDED
mistral7b_kto_w2_delta0.001/training_loss_base_kto.png ADDED
mistral7b_kto_w2_delta0.001/training_rewards_chosen.png ADDED
mistral7b_kto_w2_delta0.001/training_rewards_margins.png ADDED
mistral7b_kto_w2_delta0.001/training_rewards_rejected.png ADDED