Tondji commited on
Commit
8acc045
·
verified ·
1 Parent(s): f959ec9

Upload folder using huggingface_hub

Browse files
Files changed (49) hide show
  1. mistral7b_kto_w2_delta0.01/README.md +64 -0
  2. mistral7b_kto_w2_delta0.01/adapter_config.json +42 -0
  3. mistral7b_kto_w2_delta0.01/adapter_model.safetensors +3 -0
  4. mistral7b_kto_w2_delta0.01/all_results.json +8 -0
  5. mistral7b_kto_w2_delta0.01/chat_template.jinja +3 -0
  6. mistral7b_kto_w2_delta0.01/checkpoint-196/README.md +208 -0
  7. mistral7b_kto_w2_delta0.01/checkpoint-196/adapter_config.json +42 -0
  8. mistral7b_kto_w2_delta0.01/checkpoint-196/adapter_model.safetensors +3 -0
  9. mistral7b_kto_w2_delta0.01/checkpoint-196/chat_template.jinja +3 -0
  10. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  11. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  12. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
  13. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
  14. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +3 -0
  15. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +3 -0
  16. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +3 -0
  17. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +3 -0
  18. mistral7b_kto_w2_delta0.01/checkpoint-196/global_step196/mp_rank_00_model_states.pt +3 -0
  19. mistral7b_kto_w2_delta0.01/checkpoint-196/latest +1 -0
  20. mistral7b_kto_w2_delta0.01/checkpoint-196/rng_state_0.pth +3 -0
  21. mistral7b_kto_w2_delta0.01/checkpoint-196/rng_state_1.pth +3 -0
  22. mistral7b_kto_w2_delta0.01/checkpoint-196/rng_state_2.pth +3 -0
  23. mistral7b_kto_w2_delta0.01/checkpoint-196/rng_state_3.pth +3 -0
  24. mistral7b_kto_w2_delta0.01/checkpoint-196/rng_state_4.pth +3 -0
  25. mistral7b_kto_w2_delta0.01/checkpoint-196/rng_state_5.pth +3 -0
  26. mistral7b_kto_w2_delta0.01/checkpoint-196/rng_state_6.pth +3 -0
  27. mistral7b_kto_w2_delta0.01/checkpoint-196/rng_state_7.pth +3 -0
  28. mistral7b_kto_w2_delta0.01/checkpoint-196/scheduler.pt +3 -0
  29. mistral7b_kto_w2_delta0.01/checkpoint-196/special_tokens_map.json +24 -0
  30. mistral7b_kto_w2_delta0.01/checkpoint-196/tokenizer.json +0 -0
  31. mistral7b_kto_w2_delta0.01/checkpoint-196/tokenizer.model +3 -0
  32. mistral7b_kto_w2_delta0.01/checkpoint-196/tokenizer_config.json +46 -0
  33. mistral7b_kto_w2_delta0.01/checkpoint-196/trainer_state.json +965 -0
  34. mistral7b_kto_w2_delta0.01/checkpoint-196/training_args.bin +3 -0
  35. mistral7b_kto_w2_delta0.01/checkpoint-196/zero_to_fp32.py +604 -0
  36. mistral7b_kto_w2_delta0.01/special_tokens_map.json +24 -0
  37. mistral7b_kto_w2_delta0.01/stability_metrics.jsonl +38 -0
  38. mistral7b_kto_w2_delta0.01/tokenizer.json +0 -0
  39. mistral7b_kto_w2_delta0.01/tokenizer.model +3 -0
  40. mistral7b_kto_w2_delta0.01/tokenizer_config.json +46 -0
  41. mistral7b_kto_w2_delta0.01/train_results.json +8 -0
  42. mistral7b_kto_w2_delta0.01/trainer_log.jsonl +40 -0
  43. mistral7b_kto_w2_delta0.01/trainer_state.json +974 -0
  44. mistral7b_kto_w2_delta0.01/training_args.bin +3 -0
  45. mistral7b_kto_w2_delta0.01/training_loss.png +0 -0
  46. mistral7b_kto_w2_delta0.01/training_loss_base_kto.png +0 -0
  47. mistral7b_kto_w2_delta0.01/training_rewards_chosen.png +0 -0
  48. mistral7b_kto_w2_delta0.01/training_rewards_margins.png +0 -0
  49. mistral7b_kto_w2_delta0.01/training_rewards_rejected.png +0 -0
mistral7b_kto_w2_delta0.01/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.01
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.01
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.01/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
+ "v_proj",
29
+ "up_proj",
30
+ "q_proj",
31
+ "down_proj",
32
+ "gate_proj",
33
+ "k_proj",
34
+ "o_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.01/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc532f3a9b2ccc58878b589488df8086ef4250cc231c88aba808dbb76b5294c1
3
+ size 42002584
mistral7b_kto_w2_delta0.01/all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 3.1861866257511875e+18,
4
+ "train_loss": 1.359869228333843,
5
+ "train_runtime": 4299.7361,
6
+ "train_samples_per_second": 23.257,
7
+ "train_steps_per_second": 0.046
8
+ }
mistral7b_kto_w2_delta0.01/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.01/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.01/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
+ "v_proj",
29
+ "up_proj",
30
+ "q_proj",
31
+ "down_proj",
32
+ "gate_proj",
33
+ "k_proj",
34
+ "o_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.01/checkpoint-196/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc532f3a9b2ccc58878b589488df8086ef4250cc231c88aba808dbb76b5294c1
3
+ size 42002584
mistral7b_kto_w2_delta0.01/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.01/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:779c93b9ef581111af46f25107bbc846dbc7efba4fc3330c6646a0f70d2a5705
3
+ size 31467333
mistral7b_kto_w2_delta0.01/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:54845b390b610a05d465f7be357b40b0f638cade1acb414872a5f5e08b53a283
3
+ size 31467333
mistral7b_kto_w2_delta0.01/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:1f5731e01ba75fdcdcc89b870fbc8b0b2ff2b0bd23fb9065431fdd5f62d6cacd
3
+ size 31467333
mistral7b_kto_w2_delta0.01/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:3725d43dace61fe2434980b1d08a2a437d1dbd37c80f0637e8d29e23f70c69ff
3
+ size 31467397
mistral7b_kto_w2_delta0.01/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:80a8bb45c28fc36d719d16d558d3a2d236e2e627012f2570e1a96022c7590666
3
+ size 31467397
mistral7b_kto_w2_delta0.01/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:edb86df20859eb8a3c9f4d6fad4158ee1a925d0f89df2b091c68ae8737481d9e
3
+ size 31467397
mistral7b_kto_w2_delta0.01/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:b89f2f782f2d2a6cd0871cfd698a8baad34179c1307f595f933a56d06251613d
3
+ size 31467397
mistral7b_kto_w2_delta0.01/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:7b84b0e63bb09e2569efc034248f9908399a8a6cd39f255a426c6a7f67f6de21
3
+ size 31467397
mistral7b_kto_w2_delta0.01/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:8d264421cb65ff59b80635aaf644b74c9eb54ef0e25d0b629bd49ccc9d4be72f
3
+ size 42288409
mistral7b_kto_w2_delta0.01/checkpoint-196/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step196
mistral7b_kto_w2_delta0.01/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.01/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.01/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.01/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.01/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.01/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.01/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.01/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.01/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.01/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.01/checkpoint-196/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
mistral7b_kto_w2_delta0.01/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.01/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.01/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.5667362213134766,
15
+ "kl": 0.008433527313172817,
16
+ "learning_rate": 4e-08,
17
+ "logits/chosen": -59717241.2631579,
18
+ "logits/rejected": -50415911.61904762,
19
+ "logps/chosen": -439.02847450657896,
20
+ "logps/rejected": -198.40762183779762,
21
+ "loss": 1.3863,
22
+ "loss/base_kto": 0.4998113214969635,
23
+ "metrics/advantage_var": 0.04507648944854736,
24
+ "regularization/grad_norm_sq": 4328.5595703125,
25
+ "regularization/w2": 0.9065223932266235,
26
+ "rewards/chosen": 0.0017119320599656355,
27
+ "rewards/margins": 0.00153388447107229,
28
+ "rewards/rejected": 0.00017804758889334544,
29
+ "step": 5
30
+ },
31
+ {
32
+ "epoch": 0.05118362124120281,
33
+ "grad_norm": 0.6054168343544006,
34
+ "kl": 0.019305892288684845,
35
+ "learning_rate": 9e-08,
36
+ "logits/chosen": -59293257.14285714,
37
+ "logits/rejected": -50017699.469879515,
38
+ "logps/chosen": -429.92294034090907,
39
+ "logps/rejected": -192.84436182228916,
40
+ "loss": 1.3645,
41
+ "loss/base_kto": 0.50011146068573,
42
+ "metrics/advantage_var": 0.06692608445882797,
43
+ "regularization/grad_norm_sq": 3843.479736328125,
44
+ "regularization/w2": 0.8646374940872192,
45
+ "rewards/chosen": 0.0015573305162516508,
46
+ "rewards/margins": -0.0008008119947025051,
47
+ "rewards/rejected": 0.002358142510954156,
48
+ "stability/repetition_rate_mean": 0.3629409670829773,
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.27001953125,
53
+ "step": 10
54
+ },
55
+ {
56
+ "epoch": 0.07677543186180422,
57
+ "grad_norm": 0.6099650859832764,
58
+ "kl": 0.013482200913131237,
59
+ "learning_rate": 1.4e-07,
60
+ "logits/chosen": -56229807.32121212,
61
+ "logits/rejected": -51916106.32258064,
62
+ "logps/chosen": -404.1315814393939,
63
+ "logps/rejected": -200.67066532258065,
64
+ "loss": 1.3548,
65
+ "loss/base_kto": 0.5002730488777161,
66
+ "metrics/advantage_var": 0.053939878940582275,
67
+ "regularization/grad_norm_sq": 4172.4462890625,
68
+ "regularization/w2": 0.8843773007392883,
69
+ "rewards/chosen": -7.632036100734364e-05,
70
+ "rewards/margins": -0.0024158480448806742,
71
+ "rewards/rejected": 0.0023395276838733305,
72
+ "stability/repetition_rate_mean": 0.2929687201976776,
73
+ "stability/response_length_mean": 29.375,
74
+ "stability/response_length_std": 29.92341423034668,
75
+ "stability/response_length_var": 895.4107055664062,
76
+ "stability/token_entropy_mean": 3.7001953125,
77
+ "step": 15
78
+ },
79
+ {
80
+ "epoch": 0.10236724248240563,
81
+ "grad_norm": 0.619081437587738,
82
+ "kl": 0.018938787281513214,
83
+ "learning_rate": 1.8999999999999998e-07,
84
+ "logits/chosen": -51664345.6,
85
+ "logits/rejected": -48065900.8,
86
+ "logps/chosen": -343.694580078125,
87
+ "logps/rejected": -225.647802734375,
88
+ "loss": 1.3654,
89
+ "loss/base_kto": 0.5002180337905884,
90
+ "metrics/advantage_var": 0.05758875235915184,
91
+ "regularization/grad_norm_sq": 3665.234375,
92
+ "regularization/w2": 0.843424916267395,
93
+ "rewards/chosen": 0.00021410472691059114,
94
+ "rewards/margins": -0.0013427346944808961,
95
+ "rewards/rejected": 0.0015568394213914872,
96
+ "stability/repetition_rate_mean": 0.2155257910490036,
97
+ "stability/response_length_mean": 44.0,
98
+ "stability/response_length_std": 28.0611572265625,
99
+ "stability/response_length_var": 787.4285888671875,
100
+ "stability/token_entropy_mean": 4.4140625,
101
+ "step": 20
102
+ },
103
+ {
104
+ "epoch": 0.12795905310300704,
105
+ "grad_norm": 0.5774287581443787,
106
+ "kl": 0.02769310213625431,
107
+ "learning_rate": 2.4e-07,
108
+ "logits/chosen": -56488998.84137931,
109
+ "logits/rejected": -52022798.62857143,
110
+ "logps/chosen": -378.4621767241379,
111
+ "logps/rejected": -202.77145089285713,
112
+ "loss": 1.3771,
113
+ "loss/base_kto": 0.4999386966228485,
114
+ "metrics/advantage_var": 0.053915154188871384,
115
+ "regularization/grad_norm_sq": 4001.77783203125,
116
+ "regularization/w2": 0.860791027545929,
117
+ "rewards/chosen": 0.0029272856383488095,
118
+ "rewards/margins": 0.0007881318172210544,
119
+ "rewards/rejected": 0.002139153821127755,
120
+ "stability/repetition_rate_mean": 0.17215879261493683,
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.8125,
125
+ "step": 25
126
+ },
127
+ {
128
+ "epoch": 0.15355086372360843,
129
+ "grad_norm": 0.603484034538269,
130
+ "kl": 0.018374785780906677,
131
+ "learning_rate": 2.9e-07,
132
+ "logits/chosen": -57729649.39597315,
133
+ "logits/rejected": -51505858.61988304,
134
+ "logps/chosen": -468.588716442953,
135
+ "logps/rejected": -198.24766995614036,
136
+ "loss": 1.3694,
137
+ "loss/base_kto": 0.5000385642051697,
138
+ "metrics/advantage_var": 0.07535337656736374,
139
+ "regularization/grad_norm_sq": 4544.02490234375,
140
+ "regularization/w2": 0.917149007320404,
141
+ "rewards/chosen": -0.0007460268351855694,
142
+ "rewards/margins": -0.0007687252250420083,
143
+ "rewards/rejected": 2.2698389856438888e-05,
144
+ "stability/repetition_rate_mean": 0.1427641361951828,
145
+ "stability/response_length_mean": 43.0,
146
+ "stability/response_length_std": 29.602123260498047,
147
+ "stability/response_length_var": 876.2857055664062,
148
+ "stability/token_entropy_mean": 4.61328125,
149
+ "step": 30
150
+ },
151
+ {
152
+ "epoch": 0.17914267434420986,
153
+ "grad_norm": 0.6760314106941223,
154
+ "kl": 0.02894224040210247,
155
+ "learning_rate": 3.4000000000000003e-07,
156
+ "logits/chosen": -57635956.658227846,
157
+ "logits/rejected": -53888758.518518515,
158
+ "logps/chosen": -385.90286293512656,
159
+ "logps/rejected": -195.11945408950618,
160
+ "loss": 1.3758,
161
+ "loss/base_kto": 0.49967771768569946,
162
+ "metrics/advantage_var": 0.08824540674686432,
163
+ "regularization/grad_norm_sq": 3807.059326171875,
164
+ "regularization/w2": 0.8619928359985352,
165
+ "rewards/chosen": 0.003366763833202893,
166
+ "rewards/margins": 0.002664287083385363,
167
+ "rewards/rejected": 0.0007024767498175303,
168
+ "stability/repetition_rate_mean": 0.3166852593421936,
169
+ "stability/response_length_mean": 56.875,
170
+ "stability/response_length_std": 20.152544021606445,
171
+ "stability/response_length_var": 406.125,
172
+ "stability/token_entropy_mean": 5.419921875,
173
+ "step": 35
174
+ },
175
+ {
176
+ "epoch": 0.20473448496481125,
177
+ "grad_norm": 0.5855346322059631,
178
+ "kl": 0.02706434763967991,
179
+ "learning_rate": 3.8999999999999997e-07,
180
+ "logits/chosen": -56634796.8,
181
+ "logits/rejected": -50219603.2,
182
+ "logps/chosen": -421.87265625,
183
+ "logps/rejected": -219.273095703125,
184
+ "loss": 1.3686,
185
+ "loss/base_kto": 0.5001084208488464,
186
+ "metrics/advantage_var": 0.08759542554616928,
187
+ "regularization/grad_norm_sq": 4305.833984375,
188
+ "regularization/w2": 0.9105228781700134,
189
+ "rewards/chosen": 0.0030031204223632812,
190
+ "rewards/margins": -0.0006122220307588576,
191
+ "rewards/rejected": 0.003615342453122139,
192
+ "stability/repetition_rate_mean": 0.13671875,
193
+ "stability/response_length_mean": 33.125,
194
+ "stability/response_length_std": 33.01704025268555,
195
+ "stability/response_length_var": 1090.125,
196
+ "stability/token_entropy_mean": 4.8935546875,
197
+ "step": 40
198
+ },
199
+ {
200
+ "epoch": 0.23032629558541268,
201
+ "grad_norm": 0.6397272944450378,
202
+ "kl": 0.03937375545501709,
203
+ "learning_rate": 4.3999999999999997e-07,
204
+ "logits/chosen": -52699170.36241611,
205
+ "logits/rejected": -50773297.403508775,
206
+ "logps/chosen": -352.2831900167785,
207
+ "logps/rejected": -243.85115131578948,
208
+ "loss": 1.379,
209
+ "loss/base_kto": 0.4997560679912567,
210
+ "metrics/advantage_var": 0.07129540294408798,
211
+ "regularization/grad_norm_sq": 3761.641357421875,
212
+ "regularization/w2": 0.8400061726570129,
213
+ "rewards/chosen": 0.004526910365827932,
214
+ "rewards/margins": 0.0022242151040232504,
215
+ "rewards/rejected": 0.0023026952618046812,
216
+ "stability/repetition_rate_mean": 0.0994017943739891,
217
+ "stability/response_length_mean": 28.875,
218
+ "stability/response_length_std": 29.87324333190918,
219
+ "stability/response_length_var": 892.4107055664062,
220
+ "stability/token_entropy_mean": 4.7578125,
221
+ "step": 45
222
+ },
223
+ {
224
+ "epoch": 0.2559181062060141,
225
+ "grad_norm": 0.5777538418769836,
226
+ "kl": 0.047937434166669846,
227
+ "learning_rate": 4.9e-07,
228
+ "logits/chosen": -54044414.281879194,
229
+ "logits/rejected": -48299597.847953215,
230
+ "logps/chosen": -375.1258389261745,
231
+ "logps/rejected": -180.18202896564327,
232
+ "loss": 1.3394,
233
+ "loss/base_kto": 0.49980711936950684,
234
+ "metrics/advantage_var": 0.05609378218650818,
235
+ "regularization/grad_norm_sq": 3838.28369140625,
236
+ "regularization/w2": 0.8510723114013672,
237
+ "rewards/chosen": 0.007330068805873794,
238
+ "rewards/margins": 0.0014725509611215326,
239
+ "rewards/rejected": 0.005857517844752262,
240
+ "stability/repetition_rate_mean": 0.2952169179916382,
241
+ "stability/response_length_mean": 53.375,
242
+ "stability/response_length_std": 21.480472564697266,
243
+ "stability/response_length_var": 461.41070556640625,
244
+ "stability/token_entropy_mean": 4.1162109375,
245
+ "step": 50
246
+ },
247
+ {
248
+ "epoch": 0.28150991682661547,
249
+ "grad_norm": 0.6621295213699341,
250
+ "kl": 0.0575476698577404,
251
+ "learning_rate": 5.4e-07,
252
+ "logits/chosen": -56949887.204968944,
253
+ "logits/rejected": -49557458.91823899,
254
+ "logps/chosen": -344.48966420807454,
255
+ "logps/rejected": -230.39740566037736,
256
+ "loss": 1.357,
257
+ "loss/base_kto": 0.5003090500831604,
258
+ "metrics/advantage_var": 0.06319057196378708,
259
+ "regularization/grad_norm_sq": 3955.544921875,
260
+ "regularization/w2": 0.8724905252456665,
261
+ "rewards/chosen": 0.0022328466362094286,
262
+ "rewards/margins": -0.002831306810132032,
263
+ "rewards/rejected": 0.00506415344634146,
264
+ "stability/repetition_rate_mean": 0.11589926481246948,
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.302734375,
269
+ "step": 55
270
+ },
271
+ {
272
+ "epoch": 0.30710172744721687,
273
+ "grad_norm": 0.5823009014129639,
274
+ "kl": 0.05734771117568016,
275
+ "learning_rate": 5.9e-07,
276
+ "logits/chosen": -52677849.21212121,
277
+ "logits/rejected": -47824090.01290323,
278
+ "logps/chosen": -359.6180871212121,
279
+ "logps/rejected": -178.15743447580644,
280
+ "loss": 1.3664,
281
+ "loss/base_kto": 0.4995133578777313,
282
+ "metrics/advantage_var": 0.057131972163915634,
283
+ "regularization/grad_norm_sq": 3162.57421875,
284
+ "regularization/w2": 0.7870045900344849,
285
+ "rewards/chosen": 0.010271583903919567,
286
+ "rewards/margins": 0.003323828090320934,
287
+ "rewards/rejected": 0.006947755813598633,
288
+ "stability/repetition_rate_mean": 0.17885693907737732,
289
+ "stability/response_length_mean": 44.625,
290
+ "stability/response_length_std": 27.8820858001709,
291
+ "stability/response_length_var": 777.4107055664062,
292
+ "stability/token_entropy_mean": 4.607421875,
293
+ "step": 60
294
+ },
295
+ {
296
+ "epoch": 0.3326935380678183,
297
+ "grad_norm": 0.5745700597763062,
298
+ "kl": 0.07911502569913864,
299
+ "learning_rate": 6.4e-07,
300
+ "logits/chosen": -57565778.58064516,
301
+ "logits/rejected": -47265906.81212121,
302
+ "logps/chosen": -381.8476814516129,
303
+ "logps/rejected": -183.48361742424242,
304
+ "loss": 1.3773,
305
+ "loss/base_kto": 0.49997368454933167,
306
+ "metrics/advantage_var": 0.06365744024515152,
307
+ "regularization/grad_norm_sq": 3887.826904296875,
308
+ "regularization/w2": 0.8648955225944519,
309
+ "rewards/chosen": 0.009909362177694997,
310
+ "rewards/margins": 3.680861240957546e-05,
311
+ "rewards/rejected": 0.009872553565285422,
312
+ "stability/repetition_rate_mean": 0.1857219785451889,
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.525390625,
317
+ "step": 65
318
+ },
319
+ {
320
+ "epoch": 0.3582853486884197,
321
+ "grad_norm": 0.5528952479362488,
322
+ "kl": 0.09082157909870148,
323
+ "learning_rate": 6.9e-07,
324
+ "logits/chosen": -52773428.8516129,
325
+ "logits/rejected": -49024763.345454544,
326
+ "logps/chosen": -379.00569556451615,
327
+ "logps/rejected": -220.34614109848485,
328
+ "loss": 1.403,
329
+ "loss/base_kto": 0.49938470125198364,
330
+ "metrics/advantage_var": 0.07325268536806107,
331
+ "regularization/grad_norm_sq": 4501.79833984375,
332
+ "regularization/w2": 0.9129446148872375,
333
+ "rewards/chosen": 0.01227622724348499,
334
+ "rewards/margins": 0.004672638272260291,
335
+ "rewards/rejected": 0.007603588971224698,
336
+ "stability/repetition_rate_mean": 0.162109375,
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.77734375,
341
+ "step": 70
342
+ },
343
+ {
344
+ "epoch": 0.3838771593090211,
345
+ "grad_norm": 0.609993040561676,
346
+ "kl": 0.08937091380357742,
347
+ "learning_rate": 7.4e-07,
348
+ "logits/chosen": -49499239.783783786,
349
+ "logits/rejected": -47880882.60465116,
350
+ "logps/chosen": -314.12774493243245,
351
+ "logps/rejected": -228.82871547965115,
352
+ "loss": 1.3809,
353
+ "loss/base_kto": 0.4988512098789215,
354
+ "metrics/advantage_var": 0.08098717033863068,
355
+ "regularization/grad_norm_sq": 3738.951171875,
356
+ "regularization/w2": 0.8484571576118469,
357
+ "rewards/chosen": 0.014305324167818637,
358
+ "rewards/margins": 0.008692953588076915,
359
+ "rewards/rejected": 0.005612370579741722,
360
+ "stability/repetition_rate_mean": 0.08308292925357819,
361
+ "stability/response_length_mean": 22.75,
362
+ "stability/response_length_std": 31.07479476928711,
363
+ "stability/response_length_var": 965.6428833007812,
364
+ "stability/token_entropy_mean": 2.15625,
365
+ "step": 75
366
+ },
367
+ {
368
+ "epoch": 0.4094689699296225,
369
+ "grad_norm": 0.603708028793335,
370
+ "kl": 0.11913253366947174,
371
+ "learning_rate": 7.9e-07,
372
+ "logits/chosen": -58623972.87417219,
373
+ "logits/rejected": -53456156.78106509,
374
+ "logps/chosen": -403.85572744205297,
375
+ "logps/rejected": -200.97545303254438,
376
+ "loss": 1.3598,
377
+ "loss/base_kto": 0.49891233444213867,
378
+ "metrics/advantage_var": 0.07670630514621735,
379
+ "regularization/grad_norm_sq": 3606.688232421875,
380
+ "regularization/w2": 0.8389098048210144,
381
+ "rewards/chosen": 0.01743706330558322,
382
+ "rewards/margins": 0.009403561979603481,
383
+ "rewards/rejected": 0.00803350132597974,
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.2265625,
389
+ "step": 80
390
+ },
391
+ {
392
+ "epoch": 0.4350607805502239,
393
+ "grad_norm": 0.6118994951248169,
394
+ "kl": 0.12905550003051758,
395
+ "learning_rate": 8.399999999999999e-07,
396
+ "logits/chosen": -51481953.44516129,
397
+ "logits/rejected": -47134605.18787879,
398
+ "logps/chosen": -358.1473790322581,
399
+ "logps/rejected": -230.32398200757575,
400
+ "loss": 1.3679,
401
+ "loss/base_kto": 0.49895092844963074,
402
+ "metrics/advantage_var": 0.09141772240400314,
403
+ "regularization/grad_norm_sq": 3847.29296875,
404
+ "regularization/w2": 0.8647522330284119,
405
+ "rewards/chosen": 0.018512418193201863,
406
+ "rewards/margins": 0.008430653047235363,
407
+ "rewards/rejected": 0.0100817651459665,
408
+ "stability/repetition_rate_mean": 0.1218377947807312,
409
+ "stability/response_length_mean": 32.375,
410
+ "stability/response_length_std": 33.547142028808594,
411
+ "stability/response_length_var": 1125.4107666015625,
412
+ "stability/token_entropy_mean": 4.869140625,
413
+ "step": 85
414
+ },
415
+ {
416
+ "epoch": 0.46065259117082535,
417
+ "grad_norm": 0.638875424861908,
418
+ "kl": 0.16841307282447815,
419
+ "learning_rate": 8.9e-07,
420
+ "logits/chosen": -58414395.07692308,
421
+ "logits/rejected": -50576390.24390244,
422
+ "logps/chosen": -380.533203125,
423
+ "logps/rejected": -187.13657583841464,
424
+ "loss": 1.3594,
425
+ "loss/base_kto": 0.49779611825942993,
426
+ "metrics/advantage_var": 0.11126144975423813,
427
+ "regularization/grad_norm_sq": 3978.860595703125,
428
+ "regularization/w2": 0.8712137341499329,
429
+ "rewards/chosen": 0.025618803806793995,
430
+ "rewards/margins": 0.016595058194393664,
431
+ "rewards/rejected": 0.009023745612400333,
432
+ "stability/repetition_rate_mean": 0.2843276560306549,
433
+ "stability/response_length_mean": 26.875,
434
+ "stability/response_length_std": 27.544445037841797,
435
+ "stability/response_length_var": 758.6964111328125,
436
+ "stability/token_entropy_mean": 4.3203125,
437
+ "step": 90
438
+ },
439
+ {
440
+ "epoch": 0.48624440179142675,
441
+ "grad_norm": 0.6166263222694397,
442
+ "kl": 0.1684073954820633,
443
+ "learning_rate": 9.399999999999999e-07,
444
+ "logits/chosen": -50395103.594936706,
445
+ "logits/rejected": -48990799.01234568,
446
+ "logps/chosen": -314.7726463607595,
447
+ "logps/rejected": -207.06107735339506,
448
+ "loss": 1.3568,
449
+ "loss/base_kto": 0.4983139932155609,
450
+ "metrics/advantage_var": 0.11646153777837753,
451
+ "regularization/grad_norm_sq": 3889.73095703125,
452
+ "regularization/w2": 0.8536549806594849,
453
+ "rewards/chosen": 0.022073296051991136,
454
+ "rewards/margins": 0.013807725693997339,
455
+ "rewards/rejected": 0.008265570357993798,
456
+ "stability/repetition_rate_mean": 0.19374233484268188,
457
+ "stability/response_length_mean": 27.0,
458
+ "stability/response_length_std": 31.1264705657959,
459
+ "stability/response_length_var": 968.8571166992188,
460
+ "stability/token_entropy_mean": 3.724609375,
461
+ "step": 95
462
+ },
463
+ {
464
+ "epoch": 0.5118362124120281,
465
+ "grad_norm": 0.6097723841667175,
466
+ "kl": 0.19923549890518188,
467
+ "learning_rate": 9.9e-07,
468
+ "logits/chosen": -54706169.08108108,
469
+ "logits/rejected": -50907100.27906977,
470
+ "logps/chosen": -359.5902396537162,
471
+ "logps/rejected": -216.37990552325581,
472
+ "loss": 1.3626,
473
+ "loss/base_kto": 0.4989898204803467,
474
+ "metrics/advantage_var": 0.1130441352725029,
475
+ "regularization/grad_norm_sq": 3821.28564453125,
476
+ "regularization/w2": 0.8549612164497375,
477
+ "rewards/chosen": 0.027993318196889515,
478
+ "rewards/margins": 0.008093704561404954,
479
+ "rewards/rejected": 0.01989961363548456,
480
+ "stability/repetition_rate_mean": 0.23982319235801697,
481
+ "stability/response_length_mean": 38.0,
482
+ "stability/response_length_std": 30.10457992553711,
483
+ "stability/response_length_var": 906.2857055664062,
484
+ "stability/token_entropy_mean": 4.146484375,
485
+ "step": 100
486
+ },
487
+ {
488
+ "epoch": 0.5374280230326296,
489
+ "grad_norm": 0.6825862526893616,
490
+ "kl": 0.21407940983772278,
491
+ "learning_rate": 9.999815554351224e-07,
492
+ "logits/chosen": -59382716.144578315,
493
+ "logits/rejected": -53816409.766233765,
494
+ "logps/chosen": -399.5208960843373,
495
+ "logps/rejected": -209.84342025162337,
496
+ "loss": 1.3765,
497
+ "loss/base_kto": 0.4972083270549774,
498
+ "metrics/advantage_var": 0.20788688957691193,
499
+ "regularization/grad_norm_sq": 4485.09521484375,
500
+ "regularization/w2": 0.9070795178413391,
501
+ "rewards/chosen": 0.03815392413771296,
502
+ "rewards/margins": 0.022114001497791844,
503
+ "rewards/rejected": 0.016039922639921114,
504
+ "stability/repetition_rate_mean": 0.1741071343421936,
505
+ "stability/response_length_mean": 28.0,
506
+ "stability/response_length_std": 28.665559768676758,
507
+ "stability/response_length_var": 821.7142944335938,
508
+ "stability/token_entropy_mean": 3.37109375,
509
+ "step": 105
510
+ },
511
+ {
512
+ "epoch": 0.5630198336532309,
513
+ "grad_norm": 0.6473393440246582,
514
+ "kl": 0.2727767527103424,
515
+ "learning_rate": 9.999066267225444e-07,
516
+ "logits/chosen": -57382239.61445783,
517
+ "logits/rejected": -53606935.27272727,
518
+ "logps/chosen": -378.179499246988,
519
+ "logps/rejected": -205.8876572646104,
520
+ "loss": 1.3516,
521
+ "loss/base_kto": 0.49749407172203064,
522
+ "metrics/advantage_var": 0.22285981476306915,
523
+ "regularization/grad_norm_sq": 3648.669189453125,
524
+ "regularization/w2": 0.8446584939956665,
525
+ "rewards/chosen": 0.03837782790861934,
526
+ "rewards/margins": 0.01832955173811169,
527
+ "rewards/rejected": 0.020048276170507653,
528
+ "stability/repetition_rate_mean": 0.3225615620613098,
529
+ "stability/response_length_mean": 23.625,
530
+ "stability/response_length_std": 26.338117599487305,
531
+ "stability/response_length_var": 693.6964111328125,
532
+ "stability/token_entropy_mean": 4.37109375,
533
+ "step": 110
534
+ },
535
+ {
536
+ "epoch": 0.5886116442738324,
537
+ "grad_norm": 0.6492971181869507,
538
+ "kl": 0.31304872035980225,
539
+ "learning_rate": 9.997740697079592e-07,
540
+ "logits/chosen": -60607565.7721519,
541
+ "logits/rejected": -53416308.938271604,
542
+ "logps/chosen": -364.08957179588606,
543
+ "logps/rejected": -200.99373070987653,
544
+ "loss": 1.3496,
545
+ "loss/base_kto": 0.4962143898010254,
546
+ "metrics/advantage_var": 0.24412627518177032,
547
+ "regularization/grad_norm_sq": 3345.042724609375,
548
+ "regularization/w2": 0.8016390204429626,
549
+ "rewards/chosen": 0.050295352935791016,
550
+ "rewards/margins": 0.030011934998594683,
551
+ "rewards/rejected": 0.020283417937196332,
552
+ "stability/repetition_rate_mean": 0.2233072966337204,
553
+ "stability/response_length_mean": 49.25,
554
+ "stability/response_length_std": 27.316923141479492,
555
+ "stability/response_length_var": 746.2142944335938,
556
+ "stability/token_entropy_mean": 4.751953125,
557
+ "step": 115
558
+ },
559
+ {
560
+ "epoch": 0.6142034548944337,
561
+ "grad_norm": 0.6205304861068726,
562
+ "kl": 0.3582621216773987,
563
+ "learning_rate": 9.995838996722914e-07,
564
+ "logits/chosen": -57740241.150326796,
565
+ "logits/rejected": -54358218.34730539,
566
+ "logps/chosen": -383.6830065359477,
567
+ "logps/rejected": -211.94082148203591,
568
+ "loss": 1.3724,
569
+ "loss/base_kto": 0.49640893936157227,
570
+ "metrics/advantage_var": 0.4239996075630188,
571
+ "regularization/grad_norm_sq": 4084.145263671875,
572
+ "regularization/w2": 0.876289963722229,
573
+ "rewards/chosen": 0.05619120753668492,
574
+ "rewards/margins": 0.028636307190282997,
575
+ "rewards/rejected": 0.02755490034640192,
576
+ "stability/repetition_rate_mean": 0.16154514253139496,
577
+ "stability/response_length_mean": 27.625,
578
+ "stability/response_length_std": 30.486238479614258,
579
+ "stability/response_length_var": 929.4107055664062,
580
+ "stability/token_entropy_mean": 4.673828125,
581
+ "step": 120
582
+ },
583
+ {
584
+ "epoch": 0.6397952655150352,
585
+ "grad_norm": 0.6123977899551392,
586
+ "kl": 0.39068296551704407,
587
+ "learning_rate": 9.993361385379874e-07,
588
+ "logits/chosen": -60689534.24657534,
589
+ "logits/rejected": -55647396.78160919,
590
+ "logps/chosen": -416.7543343321918,
591
+ "logps/rejected": -216.09976652298852,
592
+ "loss": 1.3496,
593
+ "loss/base_kto": 0.4957490861415863,
594
+ "metrics/advantage_var": 0.5870842933654785,
595
+ "regularization/grad_norm_sq": 3718.946044921875,
596
+ "regularization/w2": 0.8455937504768372,
597
+ "rewards/chosen": 0.06249639432724208,
598
+ "rewards/margins": 0.035753407078152694,
599
+ "rewards/rejected": 0.026742987249089384,
600
+ "stability/repetition_rate_mean": 0.16215278208255768,
601
+ "stability/response_length_mean": 15.875,
602
+ "stability/response_length_std": 24.584766387939453,
603
+ "stability/response_length_var": 604.4107055664062,
604
+ "stability/token_entropy_mean": 3.48828125,
605
+ "step": 125
606
+ },
607
+ {
608
+ "epoch": 0.6653870761356366,
609
+ "grad_norm": 0.592140793800354,
610
+ "kl": 0.4606175422668457,
611
+ "learning_rate": 9.99030814866488e-07,
612
+ "logits/chosen": -57394050.477419354,
613
+ "logits/rejected": -53828483.878787875,
614
+ "logps/chosen": -391.94445564516127,
615
+ "logps/rejected": -183.64746685606062,
616
+ "loss": 1.3539,
617
+ "loss/base_kto": 0.4944417178630829,
618
+ "metrics/advantage_var": 0.848583996295929,
619
+ "regularization/grad_norm_sq": 3812.23291015625,
620
+ "regularization/w2": 0.8568418622016907,
621
+ "rewards/chosen": 0.07134679978893649,
622
+ "rewards/margins": 0.044202971714799116,
623
+ "rewards/rejected": 0.027143828074137368,
624
+ "stability/repetition_rate_mean": 0.26218748092651367,
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.6240234375,
629
+ "step": 130
630
+ },
631
+ {
632
+ "epoch": 0.690978886756238,
633
+ "grad_norm": 0.5895723700523376,
634
+ "kl": 0.5093870759010315,
635
+ "learning_rate": 9.986679638549358e-07,
636
+ "logits/chosen": -59838715.288343556,
637
+ "logits/rejected": -54993019.92356688,
638
+ "logps/chosen": -400.97141008435585,
639
+ "logps/rejected": -247.50482683121018,
640
+ "loss": 1.3412,
641
+ "loss/base_kto": 0.4939149022102356,
642
+ "metrics/advantage_var": 1.0497407913208008,
643
+ "regularization/grad_norm_sq": 4162.27978515625,
644
+ "regularization/w2": 0.889818012714386,
645
+ "rewards/chosen": 0.08447715548649887,
646
+ "rewards/margins": 0.04788554667364432,
647
+ "rewards/rejected": 0.036591608812854545,
648
+ "stability/repetition_rate_mean": 0.2230902761220932,
649
+ "stability/response_length_mean": 29.25,
650
+ "stability/response_length_std": 29.936838150024414,
651
+ "stability/response_length_var": 896.2142944335938,
652
+ "stability/token_entropy_mean": 4.080078125,
653
+ "step": 135
654
+ },
655
+ {
656
+ "epoch": 0.7165706973768394,
657
+ "grad_norm": 0.7277541160583496,
658
+ "kl": 0.4901605546474457,
659
+ "learning_rate": 9.982476273321175e-07,
660
+ "logits/chosen": -57087714.52121212,
661
+ "logits/rejected": -50078577.96129032,
662
+ "logps/chosen": -366.3832623106061,
663
+ "logps/rejected": -189.90645161290323,
664
+ "loss": 1.3743,
665
+ "loss/base_kto": 0.4920271039009094,
666
+ "metrics/advantage_var": 1.8927977085113525,
667
+ "regularization/grad_norm_sq": 5975.46728515625,
668
+ "regularization/w2": 0.9738343358039856,
669
+ "rewards/chosen": 0.08064722003358783,
670
+ "rewards/margins": 0.06784514984660368,
671
+ "rewards/rejected": 0.012802070186984154,
672
+ "stability/repetition_rate_mean": 0.3125,
673
+ "stability/response_length_mean": 56.25,
674
+ "stability/response_length_std": 21.920310974121094,
675
+ "stability/response_length_var": 480.5,
676
+ "stability/token_entropy_mean": 4.9853515625,
677
+ "step": 140
678
+ },
679
+ {
680
+ "epoch": 0.7421625079974408,
681
+ "grad_norm": 0.6773489713668823,
682
+ "kl": 0.5782578587532043,
683
+ "learning_rate": 9.977698537536417e-07,
684
+ "logits/chosen": -51145351.71084338,
685
+ "logits/rejected": -51668925.50649351,
686
+ "logps/chosen": -329.48458678463857,
687
+ "logps/rejected": -199.14678875811688,
688
+ "loss": 1.3404,
689
+ "loss/base_kto": 0.49439021944999695,
690
+ "metrics/advantage_var": 0.7935466766357422,
691
+ "regularization/grad_norm_sq": 3477.833251953125,
692
+ "regularization/w2": 0.8221335411071777,
693
+ "rewards/chosen": 0.07872245972415051,
694
+ "rewards/margins": 0.044609513944573034,
695
+ "rewards/rejected": 0.03411294577957748,
696
+ "stability/repetition_rate_mean": 0.27182701230049133,
697
+ "stability/response_length_mean": 35.125,
698
+ "stability/response_length_std": 31.37076759338379,
699
+ "stability/response_length_var": 984.125,
700
+ "stability/token_entropy_mean": 5.19921875,
701
+ "step": 145
702
+ },
703
+ {
704
+ "epoch": 0.7677543186180422,
705
+ "grad_norm": 0.6416272521018982,
706
+ "kl": 0.6353618502616882,
707
+ "learning_rate": 9.972346981963546e-07,
708
+ "logits/chosen": -55416663.34117647,
709
+ "logits/rejected": -50182574.08,
710
+ "logps/chosen": -396.80445772058823,
711
+ "logps/rejected": -207.3536328125,
712
+ "loss": 1.3548,
713
+ "loss/base_kto": 0.490011066198349,
714
+ "metrics/advantage_var": 1.2986860275268555,
715
+ "regularization/grad_norm_sq": 4135.36962890625,
716
+ "regularization/w2": 0.900852382183075,
717
+ "rewards/chosen": 0.1129976609173943,
718
+ "rewards/margins": 0.07576675284142587,
719
+ "rewards/rejected": 0.037230908075968426,
720
+ "stability/repetition_rate_mean": 0.20136336982250214,
721
+ "stability/response_length_mean": 29.375,
722
+ "stability/response_length_std": 29.193626403808594,
723
+ "stability/response_length_var": 852.2678833007812,
724
+ "stability/token_entropy_mean": 4.65625,
725
+ "step": 150
726
+ },
727
+ {
728
+ "epoch": 0.7933461292386437,
729
+ "grad_norm": 0.6257898211479187,
730
+ "kl": 0.6446139216423035,
731
+ "learning_rate": 9.966422223519885e-07,
732
+ "logits/chosen": -54021403.105882354,
733
+ "logits/rejected": -49364510.72,
734
+ "logps/chosen": -360.11148897058825,
735
+ "logps/rejected": -191.02584635416667,
736
+ "loss": 1.3426,
737
+ "loss/base_kto": 0.49283477663993835,
738
+ "metrics/advantage_var": 2.1838507652282715,
739
+ "regularization/grad_norm_sq": 4965.29248046875,
740
+ "regularization/w2": 0.9337390065193176,
741
+ "rewards/chosen": 0.0877797295065487,
742
+ "rewards/margins": 0.059804205239987834,
743
+ "rewards/rejected": 0.027975524266560872,
744
+ "stability/repetition_rate_mean": 0.3111416697502136,
745
+ "stability/response_length_mean": 56.5,
746
+ "stability/response_length_std": 10.928338050842285,
747
+ "stability/response_length_var": 119.42857360839844,
748
+ "stability/token_entropy_mean": 4.533203125,
749
+ "step": 155
750
+ },
751
+ {
752
+ "epoch": 0.818937939859245,
753
+ "grad_norm": 0.6220570206642151,
754
+ "kl": 0.7235702872276306,
755
+ "learning_rate": 9.959924945200523e-07,
756
+ "logits/chosen": -55247811.047619045,
757
+ "logits/rejected": -48958012.631578945,
758
+ "logps/chosen": -415.5559895833333,
759
+ "logps/rejected": -186.48792146381578,
760
+ "loss": 1.357,
761
+ "loss/base_kto": 0.48817262053489685,
762
+ "metrics/advantage_var": 1.9768089056015015,
763
+ "regularization/grad_norm_sq": 3970.04931640625,
764
+ "regularization/w2": 0.8730607032775879,
765
+ "rewards/chosen": 0.13393676848638625,
766
+ "rewards/margins": 0.0929941403537167,
767
+ "rewards/rejected": 0.04094262813266955,
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.48828125,
773
+ "step": 160
774
+ },
775
+ {
776
+ "epoch": 0.8445297504798465,
777
+ "grad_norm": 0.7207323908805847,
778
+ "kl": 0.7536167502403259,
779
+ "learning_rate": 9.952855895999568e-07,
780
+ "logits/chosen": -54424352.36781609,
781
+ "logits/rejected": -49791210.95890411,
782
+ "logps/chosen": -369.7562185704023,
783
+ "logps/rejected": -212.1244381421233,
784
+ "loss": 1.3489,
785
+ "loss/base_kto": 0.4913412034511566,
786
+ "metrics/advantage_var": 1.7532039880752563,
787
+ "regularization/grad_norm_sq": 3547.708984375,
788
+ "regularization/w2": 0.8307213187217712,
789
+ "rewards/chosen": 0.11605137792126886,
790
+ "rewards/margins": 0.06928389490241987,
791
+ "rewards/rejected": 0.046767483018849,
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.88671875,
797
+ "step": 165
798
+ },
799
+ {
800
+ "epoch": 0.8701215611004478,
801
+ "grad_norm": 0.6222322583198547,
802
+ "kl": 0.920440137386322,
803
+ "learning_rate": 9.9452158908238e-07,
804
+ "logits/chosen": -59139877.86982249,
805
+ "logits/rejected": -52581216.63576159,
806
+ "logps/chosen": -439.6777921597633,
807
+ "logps/rejected": -190.6081332781457,
808
+ "loss": 1.3222,
809
+ "loss/base_kto": 0.48742732405662537,
810
+ "metrics/advantage_var": 2.3735947608947754,
811
+ "regularization/grad_norm_sq": 4127.0400390625,
812
+ "regularization/w2": 0.8687969446182251,
813
+ "rewards/chosen": 0.16640804223054964,
814
+ "rewards/margins": 0.10143800048816165,
815
+ "rewards/rejected": 0.06497004174238799,
816
+ "stability/repetition_rate_mean": 0.23209978640079498,
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.67041015625,
821
+ "step": 170
822
+ },
823
+ {
824
+ "epoch": 0.8957133717210493,
825
+ "grad_norm": 0.7240987420082092,
826
+ "kl": 0.9491209983825684,
827
+ "learning_rate": 9.937005810398745e-07,
828
+ "logits/chosen": -56657488.192771085,
829
+ "logits/rejected": -48037266.28571428,
830
+ "logps/chosen": -354.8600809487952,
831
+ "logps/rejected": -194.32765574269482,
832
+ "loss": 1.3334,
833
+ "loss/base_kto": 0.4863254725933075,
834
+ "metrics/advantage_var": 4.277890682220459,
835
+ "regularization/grad_norm_sq": 4247.8359375,
836
+ "regularization/w2": 0.8748798370361328,
837
+ "rewards/chosen": 0.15770882296274943,
838
+ "rewards/margins": 0.10972130923479342,
839
+ "rewards/rejected": 0.047987513727956004,
840
+ "stability/repetition_rate_mean": 0.18672296404838562,
841
+ "stability/response_length_mean": 29.75,
842
+ "stability/response_length_std": 26.015106201171875,
843
+ "stability/response_length_var": 676.7857055664062,
844
+ "stability/token_entropy_mean": 4.822265625,
845
+ "step": 175
846
+ },
847
+ {
848
+ "epoch": 0.9213051823416507,
849
+ "grad_norm": 0.6430587768554688,
850
+ "kl": 1.032440423965454,
851
+ "learning_rate": 9.928226601167138e-07,
852
+ "logits/chosen": -52647628.17177914,
853
+ "logits/rejected": -47983459.46496815,
854
+ "logps/chosen": -374.4316765720859,
855
+ "logps/rejected": -210.53918690286625,
856
+ "loss": 1.321,
857
+ "loss/base_kto": 0.48797211050987244,
858
+ "metrics/advantage_var": 4.151429653167725,
859
+ "regularization/grad_norm_sq": 3608.227294921875,
860
+ "regularization/w2": 0.8262709975242615,
861
+ "rewards/chosen": 0.17141536408406824,
862
+ "rewards/margins": 0.09551231590283814,
863
+ "rewards/rejected": 0.0759030481812301,
864
+ "stability/repetition_rate_mean": 0.2868303656578064,
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.130859375,
869
+ "step": 180
870
+ },
871
+ {
872
+ "epoch": 0.946896992962252,
873
+ "grad_norm": 0.6488748788833618,
874
+ "kl": 1.0751243829727173,
875
+ "learning_rate": 9.918879275179817e-07,
876
+ "logits/chosen": -54614894.61728395,
877
+ "logits/rejected": -49520795.5443038,
878
+ "logps/chosen": -310.31404320987656,
879
+ "logps/rejected": -196.53752966772151,
880
+ "loss": 1.3781,
881
+ "loss/base_kto": 0.4869016706943512,
882
+ "metrics/advantage_var": 7.557289123535156,
883
+ "regularization/grad_norm_sq": 7128.36279296875,
884
+ "regularization/w2": 0.9516963958740234,
885
+ "rewards/chosen": 0.16873404420452354,
886
+ "rewards/margins": 0.1185720879727182,
887
+ "rewards/rejected": 0.05016195623180534,
888
+ "stability/repetition_rate_mean": 0.2109375,
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.71875,
893
+ "step": 185
894
+ },
895
+ {
896
+ "epoch": 0.9724888035828535,
897
+ "grad_norm": 0.6966060996055603,
898
+ "kl": 1.1208827495574951,
899
+ "learning_rate": 9.90896490997906e-07,
900
+ "logits/chosen": -53095589.556886226,
901
+ "logits/rejected": -49707021.385620914,
902
+ "logps/chosen": -390.324967252994,
903
+ "logps/rejected": -210.44881025326796,
904
+ "loss": 1.3626,
905
+ "loss/base_kto": 0.4836917519569397,
906
+ "metrics/advantage_var": 7.099040985107422,
907
+ "regularization/grad_norm_sq": 5476.40771484375,
908
+ "regularization/w2": 0.9177618026733398,
909
+ "rewards/chosen": 0.20803529202581167,
910
+ "rewards/margins": 0.1330566630569308,
911
+ "rewards/rejected": 0.07497862896888084,
912
+ "stability/repetition_rate_mean": 0.2964409589767456,
913
+ "stability/response_length_mean": 20.375,
914
+ "stability/response_length_std": 27.645395278930664,
915
+ "stability/response_length_var": 764.2678833007812,
916
+ "stability/token_entropy_mean": 4.3505859375,
917
+ "step": 190
918
+ },
919
+ {
920
+ "epoch": 0.9980806142034548,
921
+ "grad_norm": 0.6411679983139038,
922
+ "kl": 1.1453860998153687,
923
+ "learning_rate": 9.898484648474362e-07,
924
+ "logits/chosen": -60050742.5032258,
925
+ "logits/rejected": -53805540.07272727,
926
+ "logps/chosen": -390.8772681451613,
927
+ "logps/rejected": -197.0868252840909,
928
+ "loss": 1.3508,
929
+ "loss/base_kto": 0.48641711473464966,
930
+ "metrics/advantage_var": 4.3691325187683105,
931
+ "regularization/grad_norm_sq": 4039.490966796875,
932
+ "regularization/w2": 0.8582512736320496,
933
+ "rewards/chosen": 0.19076536855389994,
934
+ "rewards/margins": 0.1075151782814242,
935
+ "rewards/rejected": 0.08325019027247574,
936
+ "stability/repetition_rate_mean": 0.3895089328289032,
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.19921875,
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.01/checkpoint-196/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9125ddbb4efe23bb499afbabc466a81ea7d184e9e0ac5bd7dc5acdf9cbac0b42
3
+ size 8081
mistral7b_kto_w2_delta0.01/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.01/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.01/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.27001953125, "stability/repetition_rate_mean": 0.3629409670829773, "step": 10}
2
+ {"stability/response_length_mean": 29.375, "stability/response_length_std": 29.92341423034668, "stability/response_length_var": 895.4107055664062, "stability/token_entropy_mean": 3.7001953125, "stability/repetition_rate_mean": 0.2929687201976776, "step": 15}
3
+ {"stability/response_length_mean": 44.0, "stability/response_length_std": 28.0611572265625, "stability/response_length_var": 787.4285888671875, "stability/token_entropy_mean": 4.4140625, "stability/repetition_rate_mean": 0.2155257910490036, "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.8125, "stability/repetition_rate_mean": 0.17215879261493683, "step": 25}
5
+ {"stability/response_length_mean": 43.0, "stability/response_length_std": 29.602123260498047, "stability/response_length_var": 876.2857055664062, "stability/token_entropy_mean": 4.61328125, "stability/repetition_rate_mean": 0.1427641361951828, "step": 30}
6
+ {"stability/response_length_mean": 56.875, "stability/response_length_std": 20.152544021606445, "stability/response_length_var": 406.125, "stability/token_entropy_mean": 5.419921875, "stability/repetition_rate_mean": 0.3166852593421936, "step": 35}
7
+ {"stability/response_length_mean": 33.125, "stability/response_length_std": 33.01704025268555, "stability/response_length_var": 1090.125, "stability/token_entropy_mean": 4.8935546875, "stability/repetition_rate_mean": 0.13671875, "step": 40}
8
+ {"stability/response_length_mean": 28.875, "stability/response_length_std": 29.87324333190918, "stability/response_length_var": 892.4107055664062, "stability/token_entropy_mean": 4.7578125, "stability/repetition_rate_mean": 0.0994017943739891, "step": 45}
9
+ {"stability/response_length_mean": 53.375, "stability/response_length_std": 21.480472564697266, "stability/response_length_var": 461.41070556640625, "stability/token_entropy_mean": 4.1162109375, "stability/repetition_rate_mean": 0.2952169179916382, "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.302734375, "stability/repetition_rate_mean": 0.11589926481246948, "step": 55}
11
+ {"stability/response_length_mean": 44.625, "stability/response_length_std": 27.8820858001709, "stability/response_length_var": 777.4107055664062, "stability/token_entropy_mean": 4.607421875, "stability/repetition_rate_mean": 0.17885693907737732, "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.525390625, "stability/repetition_rate_mean": 0.1857219785451889, "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.77734375, "stability/repetition_rate_mean": 0.162109375, "step": 70}
14
+ {"stability/response_length_mean": 22.75, "stability/response_length_std": 31.07479476928711, "stability/response_length_var": 965.6428833007812, "stability/token_entropy_mean": 2.15625, "stability/repetition_rate_mean": 0.08308292925357819, "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.2265625, "stability/repetition_rate_mean": 0.19088542461395264, "step": 80}
16
+ {"stability/response_length_mean": 32.375, "stability/response_length_std": 33.547142028808594, "stability/response_length_var": 1125.4107666015625, "stability/token_entropy_mean": 4.869140625, "stability/repetition_rate_mean": 0.1218377947807312, "step": 85}
17
+ {"stability/response_length_mean": 26.875, "stability/response_length_std": 27.544445037841797, "stability/response_length_var": 758.6964111328125, "stability/token_entropy_mean": 4.3203125, "stability/repetition_rate_mean": 0.2843276560306549, "step": 90}
18
+ {"stability/response_length_mean": 27.0, "stability/response_length_std": 31.1264705657959, "stability/response_length_var": 968.8571166992188, "stability/token_entropy_mean": 3.724609375, "stability/repetition_rate_mean": 0.19374233484268188, "step": 95}
19
+ {"stability/response_length_mean": 38.0, "stability/response_length_std": 30.10457992553711, "stability/response_length_var": 906.2857055664062, "stability/token_entropy_mean": 4.146484375, "stability/repetition_rate_mean": 0.23982319235801697, "step": 100}
20
+ {"stability/response_length_mean": 28.0, "stability/response_length_std": 28.665559768676758, "stability/response_length_var": 821.7142944335938, "stability/token_entropy_mean": 3.37109375, "stability/repetition_rate_mean": 0.1741071343421936, "step": 105}
21
+ {"stability/response_length_mean": 23.625, "stability/response_length_std": 26.338117599487305, "stability/response_length_var": 693.6964111328125, "stability/token_entropy_mean": 4.37109375, "stability/repetition_rate_mean": 0.3225615620613098, "step": 110}
22
+ {"stability/response_length_mean": 49.25, "stability/response_length_std": 27.316923141479492, "stability/response_length_var": 746.2142944335938, "stability/token_entropy_mean": 4.751953125, "stability/repetition_rate_mean": 0.2233072966337204, "step": 115}
23
+ {"stability/response_length_mean": 27.625, "stability/response_length_std": 30.486238479614258, "stability/response_length_var": 929.4107055664062, "stability/token_entropy_mean": 4.673828125, "stability/repetition_rate_mean": 0.16154514253139496, "step": 120}
24
+ {"stability/response_length_mean": 15.875, "stability/response_length_std": 24.584766387939453, "stability/response_length_var": 604.4107055664062, "stability/token_entropy_mean": 3.48828125, "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.6240234375, "stability/repetition_rate_mean": 0.26218748092651367, "step": 130}
26
+ {"stability/response_length_mean": 29.25, "stability/response_length_std": 29.936838150024414, "stability/response_length_var": 896.2142944335938, "stability/token_entropy_mean": 4.080078125, "stability/repetition_rate_mean": 0.2230902761220932, "step": 135}
27
+ {"stability/response_length_mean": 56.25, "stability/response_length_std": 21.920310974121094, "stability/response_length_var": 480.5, "stability/token_entropy_mean": 4.9853515625, "stability/repetition_rate_mean": 0.3125, "step": 140}
28
+ {"stability/response_length_mean": 35.125, "stability/response_length_std": 31.37076759338379, "stability/response_length_var": 984.125, "stability/token_entropy_mean": 5.19921875, "stability/repetition_rate_mean": 0.27182701230049133, "step": 145}
29
+ {"stability/response_length_mean": 29.375, "stability/response_length_std": 29.193626403808594, "stability/response_length_var": 852.2678833007812, "stability/token_entropy_mean": 4.65625, "stability/repetition_rate_mean": 0.20136336982250214, "step": 150}
30
+ {"stability/response_length_mean": 56.5, "stability/response_length_std": 10.928338050842285, "stability/response_length_var": 119.42857360839844, "stability/token_entropy_mean": 4.533203125, "stability/repetition_rate_mean": 0.3111416697502136, "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.48828125, "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.88671875, "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.67041015625, "stability/repetition_rate_mean": 0.23209978640079498, "step": 170}
34
+ {"stability/response_length_mean": 29.75, "stability/response_length_std": 26.015106201171875, "stability/response_length_var": 676.7857055664062, "stability/token_entropy_mean": 4.822265625, "stability/repetition_rate_mean": 0.18672296404838562, "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.130859375, "stability/repetition_rate_mean": 0.2868303656578064, "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.71875, "stability/repetition_rate_mean": 0.2109375, "step": 185}
37
+ {"stability/response_length_mean": 20.375, "stability/response_length_std": 27.645395278930664, "stability/response_length_var": 764.2678833007812, "stability/token_entropy_mean": 4.3505859375, "stability/repetition_rate_mean": 0.2964409589767456, "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.19921875, "stability/repetition_rate_mean": 0.3895089328289032, "step": 195}
mistral7b_kto_w2_delta0.01/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
mistral7b_kto_w2_delta0.01/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.01/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.01/train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 3.1861866257511875e+18,
4
+ "train_loss": 1.359869228333843,
5
+ "train_runtime": 4299.7361,
6
+ "train_samples_per_second": 23.257,
7
+ "train_steps_per_second": 0.046
8
+ }
mistral7b_kto_w2_delta0.01/trainer_log.jsonl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 5, "total_steps": 196, "loss": 1.3863, "lr": 4e-08, "epoch": 0.025591810620601407, "percentage": 2.55, "elapsed_time": "0:01:47", "remaining_time": "1:08:27", "rewards/chosen": 0.0017119320599656355, "logps/chosen": -439.02847450657896, "logits/chosen": -59717241.2631579, "rewards/rejected": 0.00017804758889334544, "logps/rejected": -198.40762183779762, "logits/rejected": -50415911.61904762, "rewards/margins": 0.00153388447107229, "regularization/w2": 0.9065223932266235, "regularization/grad_norm_sq": 4328.5595703125, "kl": 0.008433527313172817}
2
+ {"current_steps": 10, "total_steps": 196, "loss": 1.3645, "lr": 9e-08, "epoch": 0.05118362124120281, "percentage": 5.1, "elapsed_time": "0:03:37", "remaining_time": "1:07:28", "rewards/chosen": 0.0015573305162516508, "logps/chosen": -429.92294034090907, "logits/chosen": -59293257.14285714, "rewards/rejected": 0.002358142510954156, "logps/rejected": -192.84436182228916, "logits/rejected": -50017699.469879515, "rewards/margins": -0.0008008119947025051, "regularization/w2": 0.8646374940872192, "regularization/grad_norm_sq": 3843.479736328125, "kl": 0.019305892288684845, "stability/response_length_mean": 46.125, "stability/response_length_std": 27.231481552124023, "stability/response_length_var": 741.5535888671875, "stability/token_entropy_mean": 3.27001953125, "stability/repetition_rate_mean": 0.3629409670829773}
3
+ {"current_steps": 15, "total_steps": 196, "loss": 1.3548, "lr": 1.4e-07, "epoch": 0.07677543186180422, "percentage": 7.65, "elapsed_time": "0:05:26", "remaining_time": "1:05:36", "rewards/chosen": -7.632036100734364e-05, "logps/chosen": -404.1315814393939, "logits/chosen": -56229807.32121212, "rewards/rejected": 0.0023395276838733305, "logps/rejected": -200.67066532258065, "logits/rejected": -51916106.32258064, "rewards/margins": -0.0024158480448806742, "regularization/w2": 0.8843773007392883, "regularization/grad_norm_sq": 4172.4462890625, "kl": 0.013482200913131237, "stability/response_length_mean": 29.375, "stability/response_length_std": 29.92341423034668, "stability/response_length_var": 895.4107055664062, "stability/token_entropy_mean": 3.7001953125, "stability/repetition_rate_mean": 0.2929687201976776}
4
+ {"current_steps": 20, "total_steps": 196, "loss": 1.3654, "lr": 1.8999999999999998e-07, "epoch": 0.10236724248240563, "percentage": 10.2, "elapsed_time": "0:07:17", "remaining_time": "1:04:08", "rewards/chosen": 0.00021410472691059114, "logps/chosen": -343.694580078125, "logits/chosen": -51664345.6, "rewards/rejected": 0.0015568394213914872, "logps/rejected": -225.647802734375, "logits/rejected": -48065900.8, "rewards/margins": -0.0013427346944808961, "regularization/w2": 0.843424916267395, "regularization/grad_norm_sq": 3665.234375, "kl": 0.018938787281513214, "stability/response_length_mean": 44.0, "stability/response_length_std": 28.0611572265625, "stability/response_length_var": 787.4285888671875, "stability/token_entropy_mean": 4.4140625, "stability/repetition_rate_mean": 0.2155257910490036}
5
+ {"current_steps": 25, "total_steps": 196, "loss": 1.3771, "lr": 2.4e-07, "epoch": 0.12795905310300704, "percentage": 12.76, "elapsed_time": "0:09:06", "remaining_time": "1:02:15", "rewards/chosen": 0.0029272856383488095, "logps/chosen": -378.4621767241379, "logits/chosen": -56488998.84137931, "rewards/rejected": 0.002139153821127755, "logps/rejected": -202.77145089285713, "logits/rejected": -52022798.62857143, "rewards/margins": 0.0007881318172210544, "regularization/w2": 0.860791027545929, "regularization/grad_norm_sq": 4001.77783203125, "kl": 0.02769310213625431, "stability/response_length_mean": 43.375, "stability/response_length_std": 28.54538917541504, "stability/response_length_var": 814.8392944335938, "stability/token_entropy_mean": 4.8125, "stability/repetition_rate_mean": 0.17215879261493683}
6
+ {"current_steps": 30, "total_steps": 196, "loss": 1.3694, "lr": 2.9e-07, "epoch": 0.15355086372360843, "percentage": 15.31, "elapsed_time": "0:10:55", "remaining_time": "1:00:26", "rewards/chosen": -0.0007460268351855694, "logps/chosen": -468.588716442953, "logits/chosen": -57729649.39597315, "rewards/rejected": 2.2698389856438888e-05, "logps/rejected": -198.24766995614036, "logits/rejected": -51505858.61988304, "rewards/margins": -0.0007687252250420083, "regularization/w2": 0.917149007320404, "regularization/grad_norm_sq": 4544.02490234375, "kl": 0.018374785780906677, "stability/response_length_mean": 43.0, "stability/response_length_std": 29.602123260498047, "stability/response_length_var": 876.2857055664062, "stability/token_entropy_mean": 4.61328125, "stability/repetition_rate_mean": 0.1427641361951828}
7
+ {"current_steps": 35, "total_steps": 196, "loss": 1.3758, "lr": 3.4000000000000003e-07, "epoch": 0.17914267434420986, "percentage": 17.86, "elapsed_time": "0:12:45", "remaining_time": "0:58:39", "rewards/chosen": 0.003366763833202893, "logps/chosen": -385.90286293512656, "logits/chosen": -57635956.658227846, "rewards/rejected": 0.0007024767498175303, "logps/rejected": -195.11945408950618, "logits/rejected": -53888758.518518515, "rewards/margins": 0.002664287083385363, "regularization/w2": 0.8619928359985352, "regularization/grad_norm_sq": 3807.059326171875, "kl": 0.02894224040210247, "stability/response_length_mean": 56.875, "stability/response_length_std": 20.152544021606445, "stability/response_length_var": 406.125, "stability/token_entropy_mean": 5.419921875, "stability/repetition_rate_mean": 0.3166852593421936}
8
+ {"current_steps": 40, "total_steps": 196, "loss": 1.3686, "lr": 3.8999999999999997e-07, "epoch": 0.20473448496481125, "percentage": 20.41, "elapsed_time": "0:14:35", "remaining_time": "0:56:54", "rewards/chosen": 0.0030031204223632812, "logps/chosen": -421.87265625, "logits/chosen": -56634796.8, "rewards/rejected": 0.003615342453122139, "logps/rejected": -219.273095703125, "logits/rejected": -50219603.2, "rewards/margins": -0.0006122220307588576, "regularization/w2": 0.9105228781700134, "regularization/grad_norm_sq": 4305.833984375, "kl": 0.02706434763967991, "stability/response_length_mean": 33.125, "stability/response_length_std": 33.01704025268555, "stability/response_length_var": 1090.125, "stability/token_entropy_mean": 4.8935546875, "stability/repetition_rate_mean": 0.13671875}
9
+ {"current_steps": 45, "total_steps": 196, "loss": 1.379, "lr": 4.3999999999999997e-07, "epoch": 0.23032629558541268, "percentage": 22.96, "elapsed_time": "0:16:25", "remaining_time": "0:55:07", "rewards/chosen": 0.004526910365827932, "logps/chosen": -352.2831900167785, "logits/chosen": -52699170.36241611, "rewards/rejected": 0.0023026952618046812, "logps/rejected": -243.85115131578948, "logits/rejected": -50773297.403508775, "rewards/margins": 0.0022242151040232504, "regularization/w2": 0.8400061726570129, "regularization/grad_norm_sq": 3761.641357421875, "kl": 0.03937375545501709, "stability/response_length_mean": 28.875, "stability/response_length_std": 29.87324333190918, "stability/response_length_var": 892.4107055664062, "stability/token_entropy_mean": 4.7578125, "stability/repetition_rate_mean": 0.0994017943739891}
10
+ {"current_steps": 50, "total_steps": 196, "loss": 1.3394, "lr": 4.9e-07, "epoch": 0.2559181062060141, "percentage": 25.51, "elapsed_time": "0:18:14", "remaining_time": "0:53:17", "rewards/chosen": 0.007330068805873794, "logps/chosen": -375.1258389261745, "logits/chosen": -54044414.281879194, "rewards/rejected": 0.005857517844752262, "logps/rejected": -180.18202896564327, "logits/rejected": -48299597.847953215, "rewards/margins": 0.0014725509611215326, "regularization/w2": 0.8510723114013672, "regularization/grad_norm_sq": 3838.28369140625, "kl": 0.047937434166669846, "stability/response_length_mean": 53.375, "stability/response_length_std": 21.480472564697266, "stability/response_length_var": 461.41070556640625, "stability/token_entropy_mean": 4.1162109375, "stability/repetition_rate_mean": 0.2952169179916382}
11
+ {"current_steps": 55, "total_steps": 196, "loss": 1.357, "lr": 5.4e-07, "epoch": 0.28150991682661547, "percentage": 28.06, "elapsed_time": "0:20:03", "remaining_time": "0:51:26", "rewards/chosen": 0.0022328466362094286, "logps/chosen": -344.48966420807454, "logits/chosen": -56949887.204968944, "rewards/rejected": 0.00506415344634146, "logps/rejected": -230.39740566037736, "logits/rejected": -49557458.91823899, "rewards/margins": -0.002831306810132032, "regularization/w2": 0.8724905252456665, "regularization/grad_norm_sq": 3955.544921875, "kl": 0.0575476698577404, "stability/response_length_mean": 22.375, "stability/response_length_std": 30.236862182617188, "stability/response_length_var": 914.2678833007812, "stability/token_entropy_mean": 4.302734375, "stability/repetition_rate_mean": 0.11589926481246948}
12
+ {"current_steps": 60, "total_steps": 196, "loss": 1.3664, "lr": 5.9e-07, "epoch": 0.30710172744721687, "percentage": 30.61, "elapsed_time": "0:21:54", "remaining_time": "0:49:40", "rewards/chosen": 0.010271583903919567, "logps/chosen": -359.6180871212121, "logits/chosen": -52677849.21212121, "rewards/rejected": 0.006947755813598633, "logps/rejected": -178.15743447580644, "logits/rejected": -47824090.01290323, "rewards/margins": 0.003323828090320934, "regularization/w2": 0.7870045900344849, "regularization/grad_norm_sq": 3162.57421875, "kl": 0.05734771117568016, "stability/response_length_mean": 44.625, "stability/response_length_std": 27.8820858001709, "stability/response_length_var": 777.4107055664062, "stability/token_entropy_mean": 4.607421875, "stability/repetition_rate_mean": 0.17885693907737732}
13
+ {"current_steps": 65, "total_steps": 196, "loss": 1.3773, "lr": 6.4e-07, "epoch": 0.3326935380678183, "percentage": 33.16, "elapsed_time": "0:23:45", "remaining_time": "0:47:52", "rewards/chosen": 0.009909362177694997, "logps/chosen": -381.8476814516129, "logits/chosen": -57565778.58064516, "rewards/rejected": 0.009872553565285422, "logps/rejected": -183.48361742424242, "logits/rejected": -47265906.81212121, "rewards/margins": 3.680861240957546e-05, "regularization/w2": 0.8648955225944519, "regularization/grad_norm_sq": 3887.826904296875, "kl": 0.07911502569913864, "stability/response_length_mean": 20.625, "stability/response_length_std": 27.176342010498047, "stability/response_length_var": 738.5535888671875, "stability/token_entropy_mean": 5.525390625, "stability/repetition_rate_mean": 0.1857219785451889}
14
+ {"current_steps": 70, "total_steps": 196, "loss": 1.403, "lr": 6.9e-07, "epoch": 0.3582853486884197, "percentage": 35.71, "elapsed_time": "0:25:34", "remaining_time": "0:46:01", "rewards/chosen": 0.01227622724348499, "logps/chosen": -379.00569556451615, "logits/chosen": -52773428.8516129, "rewards/rejected": 0.007603588971224698, "logps/rejected": -220.34614109848485, "logits/rejected": -49024763.345454544, "rewards/margins": 0.004672638272260291, "regularization/w2": 0.9129446148872375, "regularization/grad_norm_sq": 4501.79833984375, "kl": 0.09082157909870148, "stability/response_length_mean": 33.875, "stability/response_length_std": 32.36151885986328, "stability/response_length_var": 1047.267822265625, "stability/token_entropy_mean": 5.77734375, "stability/repetition_rate_mean": 0.162109375}
15
+ {"current_steps": 75, "total_steps": 196, "loss": 1.3809, "lr": 7.4e-07, "epoch": 0.3838771593090211, "percentage": 38.27, "elapsed_time": "0:27:24", "remaining_time": "0:44:13", "rewards/chosen": 0.014305324167818637, "logps/chosen": -314.12774493243245, "logits/chosen": -49499239.783783786, "rewards/rejected": 0.005612370579741722, "logps/rejected": -228.82871547965115, "logits/rejected": -47880882.60465116, "rewards/margins": 0.008692953588076915, "regularization/w2": 0.8484571576118469, "regularization/grad_norm_sq": 3738.951171875, "kl": 0.08937091380357742, "stability/response_length_mean": 22.75, "stability/response_length_std": 31.07479476928711, "stability/response_length_var": 965.6428833007812, "stability/token_entropy_mean": 2.15625, "stability/repetition_rate_mean": 0.08308292925357819}
16
+ {"current_steps": 80, "total_steps": 196, "loss": 1.3598, "lr": 7.9e-07, "epoch": 0.4094689699296225, "percentage": 40.82, "elapsed_time": "0:29:15", "remaining_time": "0:42:25", "rewards/chosen": 0.01743706330558322, "logps/chosen": -403.85572744205297, "logits/chosen": -58623972.87417219, "rewards/rejected": 0.00803350132597974, "logps/rejected": -200.97545303254438, "logits/rejected": -53456156.78106509, "rewards/margins": 0.009403561979603481, "regularization/w2": 0.8389098048210144, "regularization/grad_norm_sq": 3606.688232421875, "kl": 0.11913253366947174, "stability/response_length_mean": 42.0, "stability/response_length_std": 30.481843948364258, "stability/response_length_var": 929.1428833007812, "stability/token_entropy_mean": 5.2265625, "stability/repetition_rate_mean": 0.19088542461395264}
17
+ {"current_steps": 85, "total_steps": 196, "loss": 1.3679, "lr": 8.399999999999999e-07, "epoch": 0.4350607805502239, "percentage": 43.37, "elapsed_time": "0:31:04", "remaining_time": "0:40:35", "rewards/chosen": 0.018512418193201863, "logps/chosen": -358.1473790322581, "logits/chosen": -51481953.44516129, "rewards/rejected": 0.0100817651459665, "logps/rejected": -230.32398200757575, "logits/rejected": -47134605.18787879, "rewards/margins": 0.008430653047235363, "regularization/w2": 0.8647522330284119, "regularization/grad_norm_sq": 3847.29296875, "kl": 0.12905550003051758, "stability/response_length_mean": 32.375, "stability/response_length_std": 33.547142028808594, "stability/response_length_var": 1125.4107666015625, "stability/token_entropy_mean": 4.869140625, "stability/repetition_rate_mean": 0.1218377947807312}
18
+ {"current_steps": 90, "total_steps": 196, "loss": 1.3594, "lr": 8.9e-07, "epoch": 0.46065259117082535, "percentage": 45.92, "elapsed_time": "0:32:55", "remaining_time": "0:38:47", "rewards/chosen": 0.025618803806793995, "logps/chosen": -380.533203125, "logits/chosen": -58414395.07692308, "rewards/rejected": 0.009023745612400333, "logps/rejected": -187.13657583841464, "logits/rejected": -50576390.24390244, "rewards/margins": 0.016595058194393664, "regularization/w2": 0.8712137341499329, "regularization/grad_norm_sq": 3978.860595703125, "kl": 0.16841307282447815, "stability/response_length_mean": 26.875, "stability/response_length_std": 27.544445037841797, "stability/response_length_var": 758.6964111328125, "stability/token_entropy_mean": 4.3203125, "stability/repetition_rate_mean": 0.2843276560306549}
19
+ {"current_steps": 95, "total_steps": 196, "loss": 1.3568, "lr": 9.399999999999999e-07, "epoch": 0.48624440179142675, "percentage": 48.47, "elapsed_time": "0:34:45", "remaining_time": "0:36:57", "rewards/chosen": 0.022073296051991136, "logps/chosen": -314.7726463607595, "logits/chosen": -50395103.594936706, "rewards/rejected": 0.008265570357993798, "logps/rejected": -207.06107735339506, "logits/rejected": -48990799.01234568, "rewards/margins": 0.013807725693997339, "regularization/w2": 0.8536549806594849, "regularization/grad_norm_sq": 3889.73095703125, "kl": 0.1684073954820633, "stability/response_length_mean": 27.0, "stability/response_length_std": 31.1264705657959, "stability/response_length_var": 968.8571166992188, "stability/token_entropy_mean": 3.724609375, "stability/repetition_rate_mean": 0.19374233484268188}
20
+ {"current_steps": 100, "total_steps": 196, "loss": 1.3626, "lr": 9.9e-07, "epoch": 0.5118362124120281, "percentage": 51.02, "elapsed_time": "0:36:35", "remaining_time": "0:35:07", "rewards/chosen": 0.027993318196889515, "logps/chosen": -359.5902396537162, "logits/chosen": -54706169.08108108, "rewards/rejected": 0.01989961363548456, "logps/rejected": -216.37990552325581, "logits/rejected": -50907100.27906977, "rewards/margins": 0.008093704561404954, "regularization/w2": 0.8549612164497375, "regularization/grad_norm_sq": 3821.28564453125, "kl": 0.19923549890518188, "stability/response_length_mean": 38.0, "stability/response_length_std": 30.10457992553711, "stability/response_length_var": 906.2857055664062, "stability/token_entropy_mean": 4.146484375, "stability/repetition_rate_mean": 0.23982319235801697}
21
+ {"current_steps": 105, "total_steps": 196, "loss": 1.3765, "lr": 9.999815554351224e-07, "epoch": 0.5374280230326296, "percentage": 53.57, "elapsed_time": "0:38:25", "remaining_time": "0:33:18", "rewards/chosen": 0.03815392413771296, "logps/chosen": -399.5208960843373, "logits/chosen": -59382716.144578315, "rewards/rejected": 0.016039922639921114, "logps/rejected": -209.84342025162337, "logits/rejected": -53816409.766233765, "rewards/margins": 0.022114001497791844, "regularization/w2": 0.9070795178413391, "regularization/grad_norm_sq": 4485.09521484375, "kl": 0.21407940983772278, "stability/response_length_mean": 28.0, "stability/response_length_std": 28.665559768676758, "stability/response_length_var": 821.7142944335938, "stability/token_entropy_mean": 3.37109375, "stability/repetition_rate_mean": 0.1741071343421936}
22
+ {"current_steps": 110, "total_steps": 196, "loss": 1.3516, "lr": 9.999066267225444e-07, "epoch": 0.5630198336532309, "percentage": 56.12, "elapsed_time": "0:40:17", "remaining_time": "0:31:29", "rewards/chosen": 0.03837782790861934, "logps/chosen": -378.179499246988, "logits/chosen": -57382239.61445783, "rewards/rejected": 0.020048276170507653, "logps/rejected": -205.8876572646104, "logits/rejected": -53606935.27272727, "rewards/margins": 0.01832955173811169, "regularization/w2": 0.8446584939956665, "regularization/grad_norm_sq": 3648.669189453125, "kl": 0.2727767527103424, "stability/response_length_mean": 23.625, "stability/response_length_std": 26.338117599487305, "stability/response_length_var": 693.6964111328125, "stability/token_entropy_mean": 4.37109375, "stability/repetition_rate_mean": 0.3225615620613098}
23
+ {"current_steps": 115, "total_steps": 196, "loss": 1.3496, "lr": 9.997740697079592e-07, "epoch": 0.5886116442738324, "percentage": 58.67, "elapsed_time": "0:42:08", "remaining_time": "0:29:41", "rewards/chosen": 0.050295352935791016, "logps/chosen": -364.08957179588606, "logits/chosen": -60607565.7721519, "rewards/rejected": 0.020283417937196332, "logps/rejected": -200.99373070987653, "logits/rejected": -53416308.938271604, "rewards/margins": 0.030011934998594683, "regularization/w2": 0.8016390204429626, "regularization/grad_norm_sq": 3345.042724609375, "kl": 0.31304872035980225, "stability/response_length_mean": 49.25, "stability/response_length_std": 27.316923141479492, "stability/response_length_var": 746.2142944335938, "stability/token_entropy_mean": 4.751953125, "stability/repetition_rate_mean": 0.2233072966337204}
24
+ {"current_steps": 120, "total_steps": 196, "loss": 1.3724, "lr": 9.995838996722914e-07, "epoch": 0.6142034548944337, "percentage": 61.22, "elapsed_time": "0:43:57", "remaining_time": "0:27:50", "rewards/chosen": 0.05619120753668492, "logps/chosen": -383.6830065359477, "logits/chosen": -57740241.150326796, "rewards/rejected": 0.02755490034640192, "logps/rejected": -211.94082148203591, "logits/rejected": -54358218.34730539, "rewards/margins": 0.028636307190282997, "regularization/w2": 0.876289963722229, "regularization/grad_norm_sq": 4084.145263671875, "kl": 0.3582621216773987, "stability/response_length_mean": 27.625, "stability/response_length_std": 30.486238479614258, "stability/response_length_var": 929.4107055664062, "stability/token_entropy_mean": 4.673828125, "stability/repetition_rate_mean": 0.16154514253139496}
25
+ {"current_steps": 125, "total_steps": 196, "loss": 1.3496, "lr": 9.993361385379874e-07, "epoch": 0.6397952655150352, "percentage": 63.78, "elapsed_time": "0:45:48", "remaining_time": "0:26:01", "rewards/chosen": 0.06249639432724208, "logps/chosen": -416.7543343321918, "logits/chosen": -60689534.24657534, "rewards/rejected": 0.026742987249089384, "logps/rejected": -216.09976652298852, "logits/rejected": -55647396.78160919, "rewards/margins": 0.035753407078152694, "regularization/w2": 0.8455937504768372, "regularization/grad_norm_sq": 3718.946044921875, "kl": 0.39068296551704407, "stability/response_length_mean": 15.875, "stability/response_length_std": 24.584766387939453, "stability/response_length_var": 604.4107055664062, "stability/token_entropy_mean": 3.48828125, "stability/repetition_rate_mean": 0.16215278208255768}
26
+ {"current_steps": 130, "total_steps": 196, "loss": 1.3539, "lr": 9.99030814866488e-07, "epoch": 0.6653870761356366, "percentage": 66.33, "elapsed_time": "0:47:37", "remaining_time": "0:24:10", "rewards/chosen": 0.07134679978893649, "logps/chosen": -391.94445564516127, "logits/chosen": -57394050.477419354, "rewards/rejected": 0.027143828074137368, "logps/rejected": -183.64746685606062, "logits/rejected": -53828483.878787875, "rewards/margins": 0.044202971714799116, "regularization/w2": 0.8568418622016907, "regularization/grad_norm_sq": 3812.23291015625, "kl": 0.4606175422668457, "stability/response_length_mean": 43.25, "stability/response_length_std": 29.620214462280273, "stability/response_length_var": 877.3571166992188, "stability/token_entropy_mean": 3.6240234375, "stability/repetition_rate_mean": 0.26218748092651367}
27
+ {"current_steps": 135, "total_steps": 196, "loss": 1.3412, "lr": 9.986679638549358e-07, "epoch": 0.690978886756238, "percentage": 68.88, "elapsed_time": "0:49:27", "remaining_time": "0:22:20", "rewards/chosen": 0.08447715548649887, "logps/chosen": -400.97141008435585, "logits/chosen": -59838715.288343556, "rewards/rejected": 0.036591608812854545, "logps/rejected": -247.50482683121018, "logits/rejected": -54993019.92356688, "rewards/margins": 0.04788554667364432, "regularization/w2": 0.889818012714386, "regularization/grad_norm_sq": 4162.27978515625, "kl": 0.5093870759010315, "stability/response_length_mean": 29.25, "stability/response_length_std": 29.936838150024414, "stability/response_length_var": 896.2142944335938, "stability/token_entropy_mean": 4.080078125, "stability/repetition_rate_mean": 0.2230902761220932}
28
+ {"current_steps": 140, "total_steps": 196, "loss": 1.3743, "lr": 9.982476273321175e-07, "epoch": 0.7165706973768394, "percentage": 71.43, "elapsed_time": "0:51:17", "remaining_time": "0:20:30", "rewards/chosen": 0.08064722003358783, "logps/chosen": -366.3832623106061, "logits/chosen": -57087714.52121212, "rewards/rejected": 0.012802070186984154, "logps/rejected": -189.90645161290323, "logits/rejected": -50078577.96129032, "rewards/margins": 0.06784514984660368, "regularization/w2": 0.9738343358039856, "regularization/grad_norm_sq": 5975.46728515625, "kl": 0.4901605546474457, "stability/response_length_mean": 56.25, "stability/response_length_std": 21.920310974121094, "stability/response_length_var": 480.5, "stability/token_entropy_mean": 4.9853515625, "stability/repetition_rate_mean": 0.3125}
29
+ {"current_steps": 145, "total_steps": 196, "loss": 1.3404, "lr": 9.977698537536417e-07, "epoch": 0.7421625079974408, "percentage": 73.98, "elapsed_time": "0:53:06", "remaining_time": "0:18:40", "rewards/chosen": 0.07872245972415051, "logps/chosen": -329.48458678463857, "logits/chosen": -51145351.71084338, "rewards/rejected": 0.03411294577957748, "logps/rejected": -199.14678875811688, "logits/rejected": -51668925.50649351, "rewards/margins": 0.044609513944573034, "regularization/w2": 0.8221335411071777, "regularization/grad_norm_sq": 3477.833251953125, "kl": 0.5782578587532043, "stability/response_length_mean": 35.125, "stability/response_length_std": 31.37076759338379, "stability/response_length_var": 984.125, "stability/token_entropy_mean": 5.19921875, "stability/repetition_rate_mean": 0.27182701230049133}
30
+ {"current_steps": 150, "total_steps": 196, "loss": 1.3548, "lr": 9.972346981963546e-07, "epoch": 0.7677543186180422, "percentage": 76.53, "elapsed_time": "0:54:56", "remaining_time": "0:16:50", "rewards/chosen": 0.1129976609173943, "logps/chosen": -396.80445772058823, "logits/chosen": -55416663.34117647, "rewards/rejected": 0.037230908075968426, "logps/rejected": -207.3536328125, "logits/rejected": -50182574.08, "rewards/margins": 0.07576675284142587, "regularization/w2": 0.900852382183075, "regularization/grad_norm_sq": 4135.36962890625, "kl": 0.6353618502616882, "stability/response_length_mean": 29.375, "stability/response_length_std": 29.193626403808594, "stability/response_length_var": 852.2678833007812, "stability/token_entropy_mean": 4.65625, "stability/repetition_rate_mean": 0.20136336982250214}
31
+ {"current_steps": 155, "total_steps": 196, "loss": 1.3426, "lr": 9.966422223519885e-07, "epoch": 0.7933461292386437, "percentage": 79.08, "elapsed_time": "0:56:46", "remaining_time": "0:15:01", "rewards/chosen": 0.0877797295065487, "logps/chosen": -360.11148897058825, "logits/chosen": -54021403.105882354, "rewards/rejected": 0.027975524266560872, "logps/rejected": -191.02584635416667, "logits/rejected": -49364510.72, "rewards/margins": 0.059804205239987834, "regularization/w2": 0.9337390065193176, "regularization/grad_norm_sq": 4965.29248046875, "kl": 0.6446139216423035, "stability/response_length_mean": 56.5, "stability/response_length_std": 10.928338050842285, "stability/response_length_var": 119.42857360839844, "stability/token_entropy_mean": 4.533203125, "stability/repetition_rate_mean": 0.3111416697502136}
32
+ {"current_steps": 160, "total_steps": 196, "loss": 1.357, "lr": 9.959924945200523e-07, "epoch": 0.818937939859245, "percentage": 81.63, "elapsed_time": "0:58:37", "remaining_time": "0:13:11", "rewards/chosen": 0.13393676848638625, "logps/chosen": -415.5559895833333, "logits/chosen": -55247811.047619045, "rewards/rejected": 0.04094262813266955, "logps/rejected": -186.48792146381578, "logits/rejected": -48958012.631578945, "rewards/margins": 0.0929941403537167, "regularization/w2": 0.8730607032775879, "regularization/grad_norm_sq": 3970.04931640625, "kl": 0.7235702872276306, "stability/response_length_mean": 32.5, "stability/response_length_std": 30.528675079345703, "stability/response_length_var": 932.0, "stability/token_entropy_mean": 4.48828125, "stability/repetition_rate_mean": 0.30851560831069946}
33
+ {"current_steps": 165, "total_steps": 196, "loss": 1.3489, "lr": 9.952855895999568e-07, "epoch": 0.8445297504798465, "percentage": 84.18, "elapsed_time": "1:00:26", "remaining_time": "0:11:21", "rewards/chosen": 0.11605137792126886, "logps/chosen": -369.7562185704023, "logits/chosen": -54424352.36781609, "rewards/rejected": 0.046767483018849, "logps/rejected": -212.1244381421233, "logits/rejected": -49791210.95890411, "rewards/margins": 0.06928389490241987, "regularization/w2": 0.8307213187217712, "regularization/grad_norm_sq": 3547.708984375, "kl": 0.7536167502403259, "stability/response_length_mean": 22.5, "stability/response_length_std": 28.33977508544922, "stability/response_length_var": 803.1428833007812, "stability/token_entropy_mean": 4.88671875, "stability/repetition_rate_mean": 0.2411106526851654}
34
+ {"current_steps": 170, "total_steps": 196, "loss": 1.3222, "lr": 9.9452158908238e-07, "epoch": 0.8701215611004478, "percentage": 86.73, "elapsed_time": "1:02:17", "remaining_time": "0:09:31", "rewards/chosen": 0.16640804223054964, "logps/chosen": -439.6777921597633, "logits/chosen": -59139877.86982249, "rewards/rejected": 0.06497004174238799, "logps/rejected": -190.6081332781457, "logits/rejected": -52581216.63576159, "rewards/margins": 0.10143800048816165, "regularization/w2": 0.8687969446182251, "regularization/grad_norm_sq": 4127.0400390625, "kl": 0.920440137386322, "stability/response_length_mean": 36.25, "stability/response_length_std": 30.76988410949707, "stability/response_length_var": 946.7857055664062, "stability/token_entropy_mean": 3.67041015625, "stability/repetition_rate_mean": 0.23209978640079498}
35
+ {"current_steps": 175, "total_steps": 196, "loss": 1.3334, "lr": 9.937005810398745e-07, "epoch": 0.8957133717210493, "percentage": 89.29, "elapsed_time": "1:04:07", "remaining_time": "0:07:41", "rewards/chosen": 0.15770882296274943, "logps/chosen": -354.8600809487952, "logits/chosen": -56657488.192771085, "rewards/rejected": 0.047987513727956004, "logps/rejected": -194.32765574269482, "logits/rejected": -48037266.28571428, "rewards/margins": 0.10972130923479342, "regularization/w2": 0.8748798370361328, "regularization/grad_norm_sq": 4247.8359375, "kl": 0.9491209983825684, "stability/response_length_mean": 29.75, "stability/response_length_std": 26.015106201171875, "stability/response_length_var": 676.7857055664062, "stability/token_entropy_mean": 4.822265625, "stability/repetition_rate_mean": 0.18672296404838562}
36
+ {"current_steps": 180, "total_steps": 196, "loss": 1.321, "lr": 9.928226601167138e-07, "epoch": 0.9213051823416507, "percentage": 91.84, "elapsed_time": "1:05:57", "remaining_time": "0:05:51", "rewards/chosen": 0.17141536408406824, "logps/chosen": -374.4316765720859, "logits/chosen": -52647628.17177914, "rewards/rejected": 0.0759030481812301, "logps/rejected": -210.53918690286625, "logits/rejected": -47983459.46496815, "rewards/margins": 0.09551231590283814, "regularization/w2": 0.8262709975242615, "regularization/grad_norm_sq": 3608.227294921875, "kl": 1.032440423965454, "stability/response_length_mean": 35.25, "stability/response_length_std": 31.129911422729492, "stability/response_length_var": 969.0714111328125, "stability/token_entropy_mean": 3.130859375, "stability/repetition_rate_mean": 0.2868303656578064}
37
+ {"current_steps": 185, "total_steps": 196, "loss": 1.3781, "lr": 9.918879275179817e-07, "epoch": 0.946896992962252, "percentage": 94.39, "elapsed_time": "1:07:46", "remaining_time": "0:04:01", "rewards/chosen": 0.16873404420452354, "logps/chosen": -310.31404320987656, "logits/chosen": -54614894.61728395, "rewards/rejected": 0.05016195623180534, "logps/rejected": -196.53752966772151, "logits/rejected": -49520795.5443038, "rewards/margins": 0.1185720879727182, "regularization/w2": 0.9516963958740234, "regularization/grad_norm_sq": 7128.36279296875, "kl": 1.0751243829727173, "stability/response_length_mean": 32.875, "stability/response_length_std": 33.30996322631836, "stability/response_length_var": 1109.5535888671875, "stability/token_entropy_mean": 3.71875, "stability/repetition_rate_mean": 0.2109375}
38
+ {"current_steps": 190, "total_steps": 196, "loss": 1.3626, "lr": 9.90896490997906e-07, "epoch": 0.9724888035828535, "percentage": 96.94, "elapsed_time": "1:09:35", "remaining_time": "0:02:11", "rewards/chosen": 0.20803529202581167, "logps/chosen": -390.324967252994, "logits/chosen": -53095589.556886226, "rewards/rejected": 0.07497862896888084, "logps/rejected": -210.44881025326796, "logits/rejected": -49707021.385620914, "rewards/margins": 0.1330566630569308, "regularization/w2": 0.9177618026733398, "regularization/grad_norm_sq": 5476.40771484375, "kl": 1.1208827495574951, "stability/response_length_mean": 20.375, "stability/response_length_std": 27.645395278930664, "stability/response_length_var": 764.2678833007812, "stability/token_entropy_mean": 4.3505859375, "stability/repetition_rate_mean": 0.2964409589767456}
39
+ {"current_steps": 195, "total_steps": 196, "loss": 1.3508, "lr": 9.898484648474362e-07, "epoch": 0.9980806142034548, "percentage": 99.49, "elapsed_time": "1:11:24", "remaining_time": "0:00:21", "rewards/chosen": 0.19076536855389994, "logps/chosen": -390.8772681451613, "logits/chosen": -60050742.5032258, "rewards/rejected": 0.08325019027247574, "logps/rejected": -197.0868252840909, "logits/rejected": -53805540.07272727, "rewards/margins": 0.1075151782814242, "regularization/w2": 0.8582512736320496, "regularization/grad_norm_sq": 4039.490966796875, "kl": 1.1453860998153687, "stability/response_length_mean": 49.0, "stability/response_length_std": 27.82085609436035, "stability/response_length_var": 774.0, "stability/token_entropy_mean": 5.19921875, "stability/repetition_rate_mean": 0.3895089328289032}
40
+ {"current_steps": 196, "total_steps": 196, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "1:11:39", "remaining_time": "0:00:00"}
mistral7b_kto_w2_delta0.01/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.5667362213134766,
15
+ "kl": 0.008433527313172817,
16
+ "learning_rate": 4e-08,
17
+ "logits/chosen": -59717241.2631579,
18
+ "logits/rejected": -50415911.61904762,
19
+ "logps/chosen": -439.02847450657896,
20
+ "logps/rejected": -198.40762183779762,
21
+ "loss": 1.3863,
22
+ "loss/base_kto": 0.4998113214969635,
23
+ "metrics/advantage_var": 0.04507648944854736,
24
+ "regularization/grad_norm_sq": 4328.5595703125,
25
+ "regularization/w2": 0.9065223932266235,
26
+ "rewards/chosen": 0.0017119320599656355,
27
+ "rewards/margins": 0.00153388447107229,
28
+ "rewards/rejected": 0.00017804758889334544,
29
+ "step": 5
30
+ },
31
+ {
32
+ "epoch": 0.05118362124120281,
33
+ "grad_norm": 0.6054168343544006,
34
+ "kl": 0.019305892288684845,
35
+ "learning_rate": 9e-08,
36
+ "logits/chosen": -59293257.14285714,
37
+ "logits/rejected": -50017699.469879515,
38
+ "logps/chosen": -429.92294034090907,
39
+ "logps/rejected": -192.84436182228916,
40
+ "loss": 1.3645,
41
+ "loss/base_kto": 0.50011146068573,
42
+ "metrics/advantage_var": 0.06692608445882797,
43
+ "regularization/grad_norm_sq": 3843.479736328125,
44
+ "regularization/w2": 0.8646374940872192,
45
+ "rewards/chosen": 0.0015573305162516508,
46
+ "rewards/margins": -0.0008008119947025051,
47
+ "rewards/rejected": 0.002358142510954156,
48
+ "stability/repetition_rate_mean": 0.3629409670829773,
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.27001953125,
53
+ "step": 10
54
+ },
55
+ {
56
+ "epoch": 0.07677543186180422,
57
+ "grad_norm": 0.6099650859832764,
58
+ "kl": 0.013482200913131237,
59
+ "learning_rate": 1.4e-07,
60
+ "logits/chosen": -56229807.32121212,
61
+ "logits/rejected": -51916106.32258064,
62
+ "logps/chosen": -404.1315814393939,
63
+ "logps/rejected": -200.67066532258065,
64
+ "loss": 1.3548,
65
+ "loss/base_kto": 0.5002730488777161,
66
+ "metrics/advantage_var": 0.053939878940582275,
67
+ "regularization/grad_norm_sq": 4172.4462890625,
68
+ "regularization/w2": 0.8843773007392883,
69
+ "rewards/chosen": -7.632036100734364e-05,
70
+ "rewards/margins": -0.0024158480448806742,
71
+ "rewards/rejected": 0.0023395276838733305,
72
+ "stability/repetition_rate_mean": 0.2929687201976776,
73
+ "stability/response_length_mean": 29.375,
74
+ "stability/response_length_std": 29.92341423034668,
75
+ "stability/response_length_var": 895.4107055664062,
76
+ "stability/token_entropy_mean": 3.7001953125,
77
+ "step": 15
78
+ },
79
+ {
80
+ "epoch": 0.10236724248240563,
81
+ "grad_norm": 0.619081437587738,
82
+ "kl": 0.018938787281513214,
83
+ "learning_rate": 1.8999999999999998e-07,
84
+ "logits/chosen": -51664345.6,
85
+ "logits/rejected": -48065900.8,
86
+ "logps/chosen": -343.694580078125,
87
+ "logps/rejected": -225.647802734375,
88
+ "loss": 1.3654,
89
+ "loss/base_kto": 0.5002180337905884,
90
+ "metrics/advantage_var": 0.05758875235915184,
91
+ "regularization/grad_norm_sq": 3665.234375,
92
+ "regularization/w2": 0.843424916267395,
93
+ "rewards/chosen": 0.00021410472691059114,
94
+ "rewards/margins": -0.0013427346944808961,
95
+ "rewards/rejected": 0.0015568394213914872,
96
+ "stability/repetition_rate_mean": 0.2155257910490036,
97
+ "stability/response_length_mean": 44.0,
98
+ "stability/response_length_std": 28.0611572265625,
99
+ "stability/response_length_var": 787.4285888671875,
100
+ "stability/token_entropy_mean": 4.4140625,
101
+ "step": 20
102
+ },
103
+ {
104
+ "epoch": 0.12795905310300704,
105
+ "grad_norm": 0.5774287581443787,
106
+ "kl": 0.02769310213625431,
107
+ "learning_rate": 2.4e-07,
108
+ "logits/chosen": -56488998.84137931,
109
+ "logits/rejected": -52022798.62857143,
110
+ "logps/chosen": -378.4621767241379,
111
+ "logps/rejected": -202.77145089285713,
112
+ "loss": 1.3771,
113
+ "loss/base_kto": 0.4999386966228485,
114
+ "metrics/advantage_var": 0.053915154188871384,
115
+ "regularization/grad_norm_sq": 4001.77783203125,
116
+ "regularization/w2": 0.860791027545929,
117
+ "rewards/chosen": 0.0029272856383488095,
118
+ "rewards/margins": 0.0007881318172210544,
119
+ "rewards/rejected": 0.002139153821127755,
120
+ "stability/repetition_rate_mean": 0.17215879261493683,
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.8125,
125
+ "step": 25
126
+ },
127
+ {
128
+ "epoch": 0.15355086372360843,
129
+ "grad_norm": 0.603484034538269,
130
+ "kl": 0.018374785780906677,
131
+ "learning_rate": 2.9e-07,
132
+ "logits/chosen": -57729649.39597315,
133
+ "logits/rejected": -51505858.61988304,
134
+ "logps/chosen": -468.588716442953,
135
+ "logps/rejected": -198.24766995614036,
136
+ "loss": 1.3694,
137
+ "loss/base_kto": 0.5000385642051697,
138
+ "metrics/advantage_var": 0.07535337656736374,
139
+ "regularization/grad_norm_sq": 4544.02490234375,
140
+ "regularization/w2": 0.917149007320404,
141
+ "rewards/chosen": -0.0007460268351855694,
142
+ "rewards/margins": -0.0007687252250420083,
143
+ "rewards/rejected": 2.2698389856438888e-05,
144
+ "stability/repetition_rate_mean": 0.1427641361951828,
145
+ "stability/response_length_mean": 43.0,
146
+ "stability/response_length_std": 29.602123260498047,
147
+ "stability/response_length_var": 876.2857055664062,
148
+ "stability/token_entropy_mean": 4.61328125,
149
+ "step": 30
150
+ },
151
+ {
152
+ "epoch": 0.17914267434420986,
153
+ "grad_norm": 0.6760314106941223,
154
+ "kl": 0.02894224040210247,
155
+ "learning_rate": 3.4000000000000003e-07,
156
+ "logits/chosen": -57635956.658227846,
157
+ "logits/rejected": -53888758.518518515,
158
+ "logps/chosen": -385.90286293512656,
159
+ "logps/rejected": -195.11945408950618,
160
+ "loss": 1.3758,
161
+ "loss/base_kto": 0.49967771768569946,
162
+ "metrics/advantage_var": 0.08824540674686432,
163
+ "regularization/grad_norm_sq": 3807.059326171875,
164
+ "regularization/w2": 0.8619928359985352,
165
+ "rewards/chosen": 0.003366763833202893,
166
+ "rewards/margins": 0.002664287083385363,
167
+ "rewards/rejected": 0.0007024767498175303,
168
+ "stability/repetition_rate_mean": 0.3166852593421936,
169
+ "stability/response_length_mean": 56.875,
170
+ "stability/response_length_std": 20.152544021606445,
171
+ "stability/response_length_var": 406.125,
172
+ "stability/token_entropy_mean": 5.419921875,
173
+ "step": 35
174
+ },
175
+ {
176
+ "epoch": 0.20473448496481125,
177
+ "grad_norm": 0.5855346322059631,
178
+ "kl": 0.02706434763967991,
179
+ "learning_rate": 3.8999999999999997e-07,
180
+ "logits/chosen": -56634796.8,
181
+ "logits/rejected": -50219603.2,
182
+ "logps/chosen": -421.87265625,
183
+ "logps/rejected": -219.273095703125,
184
+ "loss": 1.3686,
185
+ "loss/base_kto": 0.5001084208488464,
186
+ "metrics/advantage_var": 0.08759542554616928,
187
+ "regularization/grad_norm_sq": 4305.833984375,
188
+ "regularization/w2": 0.9105228781700134,
189
+ "rewards/chosen": 0.0030031204223632812,
190
+ "rewards/margins": -0.0006122220307588576,
191
+ "rewards/rejected": 0.003615342453122139,
192
+ "stability/repetition_rate_mean": 0.13671875,
193
+ "stability/response_length_mean": 33.125,
194
+ "stability/response_length_std": 33.01704025268555,
195
+ "stability/response_length_var": 1090.125,
196
+ "stability/token_entropy_mean": 4.8935546875,
197
+ "step": 40
198
+ },
199
+ {
200
+ "epoch": 0.23032629558541268,
201
+ "grad_norm": 0.6397272944450378,
202
+ "kl": 0.03937375545501709,
203
+ "learning_rate": 4.3999999999999997e-07,
204
+ "logits/chosen": -52699170.36241611,
205
+ "logits/rejected": -50773297.403508775,
206
+ "logps/chosen": -352.2831900167785,
207
+ "logps/rejected": -243.85115131578948,
208
+ "loss": 1.379,
209
+ "loss/base_kto": 0.4997560679912567,
210
+ "metrics/advantage_var": 0.07129540294408798,
211
+ "regularization/grad_norm_sq": 3761.641357421875,
212
+ "regularization/w2": 0.8400061726570129,
213
+ "rewards/chosen": 0.004526910365827932,
214
+ "rewards/margins": 0.0022242151040232504,
215
+ "rewards/rejected": 0.0023026952618046812,
216
+ "stability/repetition_rate_mean": 0.0994017943739891,
217
+ "stability/response_length_mean": 28.875,
218
+ "stability/response_length_std": 29.87324333190918,
219
+ "stability/response_length_var": 892.4107055664062,
220
+ "stability/token_entropy_mean": 4.7578125,
221
+ "step": 45
222
+ },
223
+ {
224
+ "epoch": 0.2559181062060141,
225
+ "grad_norm": 0.5777538418769836,
226
+ "kl": 0.047937434166669846,
227
+ "learning_rate": 4.9e-07,
228
+ "logits/chosen": -54044414.281879194,
229
+ "logits/rejected": -48299597.847953215,
230
+ "logps/chosen": -375.1258389261745,
231
+ "logps/rejected": -180.18202896564327,
232
+ "loss": 1.3394,
233
+ "loss/base_kto": 0.49980711936950684,
234
+ "metrics/advantage_var": 0.05609378218650818,
235
+ "regularization/grad_norm_sq": 3838.28369140625,
236
+ "regularization/w2": 0.8510723114013672,
237
+ "rewards/chosen": 0.007330068805873794,
238
+ "rewards/margins": 0.0014725509611215326,
239
+ "rewards/rejected": 0.005857517844752262,
240
+ "stability/repetition_rate_mean": 0.2952169179916382,
241
+ "stability/response_length_mean": 53.375,
242
+ "stability/response_length_std": 21.480472564697266,
243
+ "stability/response_length_var": 461.41070556640625,
244
+ "stability/token_entropy_mean": 4.1162109375,
245
+ "step": 50
246
+ },
247
+ {
248
+ "epoch": 0.28150991682661547,
249
+ "grad_norm": 0.6621295213699341,
250
+ "kl": 0.0575476698577404,
251
+ "learning_rate": 5.4e-07,
252
+ "logits/chosen": -56949887.204968944,
253
+ "logits/rejected": -49557458.91823899,
254
+ "logps/chosen": -344.48966420807454,
255
+ "logps/rejected": -230.39740566037736,
256
+ "loss": 1.357,
257
+ "loss/base_kto": 0.5003090500831604,
258
+ "metrics/advantage_var": 0.06319057196378708,
259
+ "regularization/grad_norm_sq": 3955.544921875,
260
+ "regularization/w2": 0.8724905252456665,
261
+ "rewards/chosen": 0.0022328466362094286,
262
+ "rewards/margins": -0.002831306810132032,
263
+ "rewards/rejected": 0.00506415344634146,
264
+ "stability/repetition_rate_mean": 0.11589926481246948,
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.302734375,
269
+ "step": 55
270
+ },
271
+ {
272
+ "epoch": 0.30710172744721687,
273
+ "grad_norm": 0.5823009014129639,
274
+ "kl": 0.05734771117568016,
275
+ "learning_rate": 5.9e-07,
276
+ "logits/chosen": -52677849.21212121,
277
+ "logits/rejected": -47824090.01290323,
278
+ "logps/chosen": -359.6180871212121,
279
+ "logps/rejected": -178.15743447580644,
280
+ "loss": 1.3664,
281
+ "loss/base_kto": 0.4995133578777313,
282
+ "metrics/advantage_var": 0.057131972163915634,
283
+ "regularization/grad_norm_sq": 3162.57421875,
284
+ "regularization/w2": 0.7870045900344849,
285
+ "rewards/chosen": 0.010271583903919567,
286
+ "rewards/margins": 0.003323828090320934,
287
+ "rewards/rejected": 0.006947755813598633,
288
+ "stability/repetition_rate_mean": 0.17885693907737732,
289
+ "stability/response_length_mean": 44.625,
290
+ "stability/response_length_std": 27.8820858001709,
291
+ "stability/response_length_var": 777.4107055664062,
292
+ "stability/token_entropy_mean": 4.607421875,
293
+ "step": 60
294
+ },
295
+ {
296
+ "epoch": 0.3326935380678183,
297
+ "grad_norm": 0.5745700597763062,
298
+ "kl": 0.07911502569913864,
299
+ "learning_rate": 6.4e-07,
300
+ "logits/chosen": -57565778.58064516,
301
+ "logits/rejected": -47265906.81212121,
302
+ "logps/chosen": -381.8476814516129,
303
+ "logps/rejected": -183.48361742424242,
304
+ "loss": 1.3773,
305
+ "loss/base_kto": 0.49997368454933167,
306
+ "metrics/advantage_var": 0.06365744024515152,
307
+ "regularization/grad_norm_sq": 3887.826904296875,
308
+ "regularization/w2": 0.8648955225944519,
309
+ "rewards/chosen": 0.009909362177694997,
310
+ "rewards/margins": 3.680861240957546e-05,
311
+ "rewards/rejected": 0.009872553565285422,
312
+ "stability/repetition_rate_mean": 0.1857219785451889,
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.525390625,
317
+ "step": 65
318
+ },
319
+ {
320
+ "epoch": 0.3582853486884197,
321
+ "grad_norm": 0.5528952479362488,
322
+ "kl": 0.09082157909870148,
323
+ "learning_rate": 6.9e-07,
324
+ "logits/chosen": -52773428.8516129,
325
+ "logits/rejected": -49024763.345454544,
326
+ "logps/chosen": -379.00569556451615,
327
+ "logps/rejected": -220.34614109848485,
328
+ "loss": 1.403,
329
+ "loss/base_kto": 0.49938470125198364,
330
+ "metrics/advantage_var": 0.07325268536806107,
331
+ "regularization/grad_norm_sq": 4501.79833984375,
332
+ "regularization/w2": 0.9129446148872375,
333
+ "rewards/chosen": 0.01227622724348499,
334
+ "rewards/margins": 0.004672638272260291,
335
+ "rewards/rejected": 0.007603588971224698,
336
+ "stability/repetition_rate_mean": 0.162109375,
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.77734375,
341
+ "step": 70
342
+ },
343
+ {
344
+ "epoch": 0.3838771593090211,
345
+ "grad_norm": 0.609993040561676,
346
+ "kl": 0.08937091380357742,
347
+ "learning_rate": 7.4e-07,
348
+ "logits/chosen": -49499239.783783786,
349
+ "logits/rejected": -47880882.60465116,
350
+ "logps/chosen": -314.12774493243245,
351
+ "logps/rejected": -228.82871547965115,
352
+ "loss": 1.3809,
353
+ "loss/base_kto": 0.4988512098789215,
354
+ "metrics/advantage_var": 0.08098717033863068,
355
+ "regularization/grad_norm_sq": 3738.951171875,
356
+ "regularization/w2": 0.8484571576118469,
357
+ "rewards/chosen": 0.014305324167818637,
358
+ "rewards/margins": 0.008692953588076915,
359
+ "rewards/rejected": 0.005612370579741722,
360
+ "stability/repetition_rate_mean": 0.08308292925357819,
361
+ "stability/response_length_mean": 22.75,
362
+ "stability/response_length_std": 31.07479476928711,
363
+ "stability/response_length_var": 965.6428833007812,
364
+ "stability/token_entropy_mean": 2.15625,
365
+ "step": 75
366
+ },
367
+ {
368
+ "epoch": 0.4094689699296225,
369
+ "grad_norm": 0.603708028793335,
370
+ "kl": 0.11913253366947174,
371
+ "learning_rate": 7.9e-07,
372
+ "logits/chosen": -58623972.87417219,
373
+ "logits/rejected": -53456156.78106509,
374
+ "logps/chosen": -403.85572744205297,
375
+ "logps/rejected": -200.97545303254438,
376
+ "loss": 1.3598,
377
+ "loss/base_kto": 0.49891233444213867,
378
+ "metrics/advantage_var": 0.07670630514621735,
379
+ "regularization/grad_norm_sq": 3606.688232421875,
380
+ "regularization/w2": 0.8389098048210144,
381
+ "rewards/chosen": 0.01743706330558322,
382
+ "rewards/margins": 0.009403561979603481,
383
+ "rewards/rejected": 0.00803350132597974,
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.2265625,
389
+ "step": 80
390
+ },
391
+ {
392
+ "epoch": 0.4350607805502239,
393
+ "grad_norm": 0.6118994951248169,
394
+ "kl": 0.12905550003051758,
395
+ "learning_rate": 8.399999999999999e-07,
396
+ "logits/chosen": -51481953.44516129,
397
+ "logits/rejected": -47134605.18787879,
398
+ "logps/chosen": -358.1473790322581,
399
+ "logps/rejected": -230.32398200757575,
400
+ "loss": 1.3679,
401
+ "loss/base_kto": 0.49895092844963074,
402
+ "metrics/advantage_var": 0.09141772240400314,
403
+ "regularization/grad_norm_sq": 3847.29296875,
404
+ "regularization/w2": 0.8647522330284119,
405
+ "rewards/chosen": 0.018512418193201863,
406
+ "rewards/margins": 0.008430653047235363,
407
+ "rewards/rejected": 0.0100817651459665,
408
+ "stability/repetition_rate_mean": 0.1218377947807312,
409
+ "stability/response_length_mean": 32.375,
410
+ "stability/response_length_std": 33.547142028808594,
411
+ "stability/response_length_var": 1125.4107666015625,
412
+ "stability/token_entropy_mean": 4.869140625,
413
+ "step": 85
414
+ },
415
+ {
416
+ "epoch": 0.46065259117082535,
417
+ "grad_norm": 0.638875424861908,
418
+ "kl": 0.16841307282447815,
419
+ "learning_rate": 8.9e-07,
420
+ "logits/chosen": -58414395.07692308,
421
+ "logits/rejected": -50576390.24390244,
422
+ "logps/chosen": -380.533203125,
423
+ "logps/rejected": -187.13657583841464,
424
+ "loss": 1.3594,
425
+ "loss/base_kto": 0.49779611825942993,
426
+ "metrics/advantage_var": 0.11126144975423813,
427
+ "regularization/grad_norm_sq": 3978.860595703125,
428
+ "regularization/w2": 0.8712137341499329,
429
+ "rewards/chosen": 0.025618803806793995,
430
+ "rewards/margins": 0.016595058194393664,
431
+ "rewards/rejected": 0.009023745612400333,
432
+ "stability/repetition_rate_mean": 0.2843276560306549,
433
+ "stability/response_length_mean": 26.875,
434
+ "stability/response_length_std": 27.544445037841797,
435
+ "stability/response_length_var": 758.6964111328125,
436
+ "stability/token_entropy_mean": 4.3203125,
437
+ "step": 90
438
+ },
439
+ {
440
+ "epoch": 0.48624440179142675,
441
+ "grad_norm": 0.6166263222694397,
442
+ "kl": 0.1684073954820633,
443
+ "learning_rate": 9.399999999999999e-07,
444
+ "logits/chosen": -50395103.594936706,
445
+ "logits/rejected": -48990799.01234568,
446
+ "logps/chosen": -314.7726463607595,
447
+ "logps/rejected": -207.06107735339506,
448
+ "loss": 1.3568,
449
+ "loss/base_kto": 0.4983139932155609,
450
+ "metrics/advantage_var": 0.11646153777837753,
451
+ "regularization/grad_norm_sq": 3889.73095703125,
452
+ "regularization/w2": 0.8536549806594849,
453
+ "rewards/chosen": 0.022073296051991136,
454
+ "rewards/margins": 0.013807725693997339,
455
+ "rewards/rejected": 0.008265570357993798,
456
+ "stability/repetition_rate_mean": 0.19374233484268188,
457
+ "stability/response_length_mean": 27.0,
458
+ "stability/response_length_std": 31.1264705657959,
459
+ "stability/response_length_var": 968.8571166992188,
460
+ "stability/token_entropy_mean": 3.724609375,
461
+ "step": 95
462
+ },
463
+ {
464
+ "epoch": 0.5118362124120281,
465
+ "grad_norm": 0.6097723841667175,
466
+ "kl": 0.19923549890518188,
467
+ "learning_rate": 9.9e-07,
468
+ "logits/chosen": -54706169.08108108,
469
+ "logits/rejected": -50907100.27906977,
470
+ "logps/chosen": -359.5902396537162,
471
+ "logps/rejected": -216.37990552325581,
472
+ "loss": 1.3626,
473
+ "loss/base_kto": 0.4989898204803467,
474
+ "metrics/advantage_var": 0.1130441352725029,
475
+ "regularization/grad_norm_sq": 3821.28564453125,
476
+ "regularization/w2": 0.8549612164497375,
477
+ "rewards/chosen": 0.027993318196889515,
478
+ "rewards/margins": 0.008093704561404954,
479
+ "rewards/rejected": 0.01989961363548456,
480
+ "stability/repetition_rate_mean": 0.23982319235801697,
481
+ "stability/response_length_mean": 38.0,
482
+ "stability/response_length_std": 30.10457992553711,
483
+ "stability/response_length_var": 906.2857055664062,
484
+ "stability/token_entropy_mean": 4.146484375,
485
+ "step": 100
486
+ },
487
+ {
488
+ "epoch": 0.5374280230326296,
489
+ "grad_norm": 0.6825862526893616,
490
+ "kl": 0.21407940983772278,
491
+ "learning_rate": 9.999815554351224e-07,
492
+ "logits/chosen": -59382716.144578315,
493
+ "logits/rejected": -53816409.766233765,
494
+ "logps/chosen": -399.5208960843373,
495
+ "logps/rejected": -209.84342025162337,
496
+ "loss": 1.3765,
497
+ "loss/base_kto": 0.4972083270549774,
498
+ "metrics/advantage_var": 0.20788688957691193,
499
+ "regularization/grad_norm_sq": 4485.09521484375,
500
+ "regularization/w2": 0.9070795178413391,
501
+ "rewards/chosen": 0.03815392413771296,
502
+ "rewards/margins": 0.022114001497791844,
503
+ "rewards/rejected": 0.016039922639921114,
504
+ "stability/repetition_rate_mean": 0.1741071343421936,
505
+ "stability/response_length_mean": 28.0,
506
+ "stability/response_length_std": 28.665559768676758,
507
+ "stability/response_length_var": 821.7142944335938,
508
+ "stability/token_entropy_mean": 3.37109375,
509
+ "step": 105
510
+ },
511
+ {
512
+ "epoch": 0.5630198336532309,
513
+ "grad_norm": 0.6473393440246582,
514
+ "kl": 0.2727767527103424,
515
+ "learning_rate": 9.999066267225444e-07,
516
+ "logits/chosen": -57382239.61445783,
517
+ "logits/rejected": -53606935.27272727,
518
+ "logps/chosen": -378.179499246988,
519
+ "logps/rejected": -205.8876572646104,
520
+ "loss": 1.3516,
521
+ "loss/base_kto": 0.49749407172203064,
522
+ "metrics/advantage_var": 0.22285981476306915,
523
+ "regularization/grad_norm_sq": 3648.669189453125,
524
+ "regularization/w2": 0.8446584939956665,
525
+ "rewards/chosen": 0.03837782790861934,
526
+ "rewards/margins": 0.01832955173811169,
527
+ "rewards/rejected": 0.020048276170507653,
528
+ "stability/repetition_rate_mean": 0.3225615620613098,
529
+ "stability/response_length_mean": 23.625,
530
+ "stability/response_length_std": 26.338117599487305,
531
+ "stability/response_length_var": 693.6964111328125,
532
+ "stability/token_entropy_mean": 4.37109375,
533
+ "step": 110
534
+ },
535
+ {
536
+ "epoch": 0.5886116442738324,
537
+ "grad_norm": 0.6492971181869507,
538
+ "kl": 0.31304872035980225,
539
+ "learning_rate": 9.997740697079592e-07,
540
+ "logits/chosen": -60607565.7721519,
541
+ "logits/rejected": -53416308.938271604,
542
+ "logps/chosen": -364.08957179588606,
543
+ "logps/rejected": -200.99373070987653,
544
+ "loss": 1.3496,
545
+ "loss/base_kto": 0.4962143898010254,
546
+ "metrics/advantage_var": 0.24412627518177032,
547
+ "regularization/grad_norm_sq": 3345.042724609375,
548
+ "regularization/w2": 0.8016390204429626,
549
+ "rewards/chosen": 0.050295352935791016,
550
+ "rewards/margins": 0.030011934998594683,
551
+ "rewards/rejected": 0.020283417937196332,
552
+ "stability/repetition_rate_mean": 0.2233072966337204,
553
+ "stability/response_length_mean": 49.25,
554
+ "stability/response_length_std": 27.316923141479492,
555
+ "stability/response_length_var": 746.2142944335938,
556
+ "stability/token_entropy_mean": 4.751953125,
557
+ "step": 115
558
+ },
559
+ {
560
+ "epoch": 0.6142034548944337,
561
+ "grad_norm": 0.6205304861068726,
562
+ "kl": 0.3582621216773987,
563
+ "learning_rate": 9.995838996722914e-07,
564
+ "logits/chosen": -57740241.150326796,
565
+ "logits/rejected": -54358218.34730539,
566
+ "logps/chosen": -383.6830065359477,
567
+ "logps/rejected": -211.94082148203591,
568
+ "loss": 1.3724,
569
+ "loss/base_kto": 0.49640893936157227,
570
+ "metrics/advantage_var": 0.4239996075630188,
571
+ "regularization/grad_norm_sq": 4084.145263671875,
572
+ "regularization/w2": 0.876289963722229,
573
+ "rewards/chosen": 0.05619120753668492,
574
+ "rewards/margins": 0.028636307190282997,
575
+ "rewards/rejected": 0.02755490034640192,
576
+ "stability/repetition_rate_mean": 0.16154514253139496,
577
+ "stability/response_length_mean": 27.625,
578
+ "stability/response_length_std": 30.486238479614258,
579
+ "stability/response_length_var": 929.4107055664062,
580
+ "stability/token_entropy_mean": 4.673828125,
581
+ "step": 120
582
+ },
583
+ {
584
+ "epoch": 0.6397952655150352,
585
+ "grad_norm": 0.6123977899551392,
586
+ "kl": 0.39068296551704407,
587
+ "learning_rate": 9.993361385379874e-07,
588
+ "logits/chosen": -60689534.24657534,
589
+ "logits/rejected": -55647396.78160919,
590
+ "logps/chosen": -416.7543343321918,
591
+ "logps/rejected": -216.09976652298852,
592
+ "loss": 1.3496,
593
+ "loss/base_kto": 0.4957490861415863,
594
+ "metrics/advantage_var": 0.5870842933654785,
595
+ "regularization/grad_norm_sq": 3718.946044921875,
596
+ "regularization/w2": 0.8455937504768372,
597
+ "rewards/chosen": 0.06249639432724208,
598
+ "rewards/margins": 0.035753407078152694,
599
+ "rewards/rejected": 0.026742987249089384,
600
+ "stability/repetition_rate_mean": 0.16215278208255768,
601
+ "stability/response_length_mean": 15.875,
602
+ "stability/response_length_std": 24.584766387939453,
603
+ "stability/response_length_var": 604.4107055664062,
604
+ "stability/token_entropy_mean": 3.48828125,
605
+ "step": 125
606
+ },
607
+ {
608
+ "epoch": 0.6653870761356366,
609
+ "grad_norm": 0.592140793800354,
610
+ "kl": 0.4606175422668457,
611
+ "learning_rate": 9.99030814866488e-07,
612
+ "logits/chosen": -57394050.477419354,
613
+ "logits/rejected": -53828483.878787875,
614
+ "logps/chosen": -391.94445564516127,
615
+ "logps/rejected": -183.64746685606062,
616
+ "loss": 1.3539,
617
+ "loss/base_kto": 0.4944417178630829,
618
+ "metrics/advantage_var": 0.848583996295929,
619
+ "regularization/grad_norm_sq": 3812.23291015625,
620
+ "regularization/w2": 0.8568418622016907,
621
+ "rewards/chosen": 0.07134679978893649,
622
+ "rewards/margins": 0.044202971714799116,
623
+ "rewards/rejected": 0.027143828074137368,
624
+ "stability/repetition_rate_mean": 0.26218748092651367,
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.6240234375,
629
+ "step": 130
630
+ },
631
+ {
632
+ "epoch": 0.690978886756238,
633
+ "grad_norm": 0.5895723700523376,
634
+ "kl": 0.5093870759010315,
635
+ "learning_rate": 9.986679638549358e-07,
636
+ "logits/chosen": -59838715.288343556,
637
+ "logits/rejected": -54993019.92356688,
638
+ "logps/chosen": -400.97141008435585,
639
+ "logps/rejected": -247.50482683121018,
640
+ "loss": 1.3412,
641
+ "loss/base_kto": 0.4939149022102356,
642
+ "metrics/advantage_var": 1.0497407913208008,
643
+ "regularization/grad_norm_sq": 4162.27978515625,
644
+ "regularization/w2": 0.889818012714386,
645
+ "rewards/chosen": 0.08447715548649887,
646
+ "rewards/margins": 0.04788554667364432,
647
+ "rewards/rejected": 0.036591608812854545,
648
+ "stability/repetition_rate_mean": 0.2230902761220932,
649
+ "stability/response_length_mean": 29.25,
650
+ "stability/response_length_std": 29.936838150024414,
651
+ "stability/response_length_var": 896.2142944335938,
652
+ "stability/token_entropy_mean": 4.080078125,
653
+ "step": 135
654
+ },
655
+ {
656
+ "epoch": 0.7165706973768394,
657
+ "grad_norm": 0.7277541160583496,
658
+ "kl": 0.4901605546474457,
659
+ "learning_rate": 9.982476273321175e-07,
660
+ "logits/chosen": -57087714.52121212,
661
+ "logits/rejected": -50078577.96129032,
662
+ "logps/chosen": -366.3832623106061,
663
+ "logps/rejected": -189.90645161290323,
664
+ "loss": 1.3743,
665
+ "loss/base_kto": 0.4920271039009094,
666
+ "metrics/advantage_var": 1.8927977085113525,
667
+ "regularization/grad_norm_sq": 5975.46728515625,
668
+ "regularization/w2": 0.9738343358039856,
669
+ "rewards/chosen": 0.08064722003358783,
670
+ "rewards/margins": 0.06784514984660368,
671
+ "rewards/rejected": 0.012802070186984154,
672
+ "stability/repetition_rate_mean": 0.3125,
673
+ "stability/response_length_mean": 56.25,
674
+ "stability/response_length_std": 21.920310974121094,
675
+ "stability/response_length_var": 480.5,
676
+ "stability/token_entropy_mean": 4.9853515625,
677
+ "step": 140
678
+ },
679
+ {
680
+ "epoch": 0.7421625079974408,
681
+ "grad_norm": 0.6773489713668823,
682
+ "kl": 0.5782578587532043,
683
+ "learning_rate": 9.977698537536417e-07,
684
+ "logits/chosen": -51145351.71084338,
685
+ "logits/rejected": -51668925.50649351,
686
+ "logps/chosen": -329.48458678463857,
687
+ "logps/rejected": -199.14678875811688,
688
+ "loss": 1.3404,
689
+ "loss/base_kto": 0.49439021944999695,
690
+ "metrics/advantage_var": 0.7935466766357422,
691
+ "regularization/grad_norm_sq": 3477.833251953125,
692
+ "regularization/w2": 0.8221335411071777,
693
+ "rewards/chosen": 0.07872245972415051,
694
+ "rewards/margins": 0.044609513944573034,
695
+ "rewards/rejected": 0.03411294577957748,
696
+ "stability/repetition_rate_mean": 0.27182701230049133,
697
+ "stability/response_length_mean": 35.125,
698
+ "stability/response_length_std": 31.37076759338379,
699
+ "stability/response_length_var": 984.125,
700
+ "stability/token_entropy_mean": 5.19921875,
701
+ "step": 145
702
+ },
703
+ {
704
+ "epoch": 0.7677543186180422,
705
+ "grad_norm": 0.6416272521018982,
706
+ "kl": 0.6353618502616882,
707
+ "learning_rate": 9.972346981963546e-07,
708
+ "logits/chosen": -55416663.34117647,
709
+ "logits/rejected": -50182574.08,
710
+ "logps/chosen": -396.80445772058823,
711
+ "logps/rejected": -207.3536328125,
712
+ "loss": 1.3548,
713
+ "loss/base_kto": 0.490011066198349,
714
+ "metrics/advantage_var": 1.2986860275268555,
715
+ "regularization/grad_norm_sq": 4135.36962890625,
716
+ "regularization/w2": 0.900852382183075,
717
+ "rewards/chosen": 0.1129976609173943,
718
+ "rewards/margins": 0.07576675284142587,
719
+ "rewards/rejected": 0.037230908075968426,
720
+ "stability/repetition_rate_mean": 0.20136336982250214,
721
+ "stability/response_length_mean": 29.375,
722
+ "stability/response_length_std": 29.193626403808594,
723
+ "stability/response_length_var": 852.2678833007812,
724
+ "stability/token_entropy_mean": 4.65625,
725
+ "step": 150
726
+ },
727
+ {
728
+ "epoch": 0.7933461292386437,
729
+ "grad_norm": 0.6257898211479187,
730
+ "kl": 0.6446139216423035,
731
+ "learning_rate": 9.966422223519885e-07,
732
+ "logits/chosen": -54021403.105882354,
733
+ "logits/rejected": -49364510.72,
734
+ "logps/chosen": -360.11148897058825,
735
+ "logps/rejected": -191.02584635416667,
736
+ "loss": 1.3426,
737
+ "loss/base_kto": 0.49283477663993835,
738
+ "metrics/advantage_var": 2.1838507652282715,
739
+ "regularization/grad_norm_sq": 4965.29248046875,
740
+ "regularization/w2": 0.9337390065193176,
741
+ "rewards/chosen": 0.0877797295065487,
742
+ "rewards/margins": 0.059804205239987834,
743
+ "rewards/rejected": 0.027975524266560872,
744
+ "stability/repetition_rate_mean": 0.3111416697502136,
745
+ "stability/response_length_mean": 56.5,
746
+ "stability/response_length_std": 10.928338050842285,
747
+ "stability/response_length_var": 119.42857360839844,
748
+ "stability/token_entropy_mean": 4.533203125,
749
+ "step": 155
750
+ },
751
+ {
752
+ "epoch": 0.818937939859245,
753
+ "grad_norm": 0.6220570206642151,
754
+ "kl": 0.7235702872276306,
755
+ "learning_rate": 9.959924945200523e-07,
756
+ "logits/chosen": -55247811.047619045,
757
+ "logits/rejected": -48958012.631578945,
758
+ "logps/chosen": -415.5559895833333,
759
+ "logps/rejected": -186.48792146381578,
760
+ "loss": 1.357,
761
+ "loss/base_kto": 0.48817262053489685,
762
+ "metrics/advantage_var": 1.9768089056015015,
763
+ "regularization/grad_norm_sq": 3970.04931640625,
764
+ "regularization/w2": 0.8730607032775879,
765
+ "rewards/chosen": 0.13393676848638625,
766
+ "rewards/margins": 0.0929941403537167,
767
+ "rewards/rejected": 0.04094262813266955,
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.48828125,
773
+ "step": 160
774
+ },
775
+ {
776
+ "epoch": 0.8445297504798465,
777
+ "grad_norm": 0.7207323908805847,
778
+ "kl": 0.7536167502403259,
779
+ "learning_rate": 9.952855895999568e-07,
780
+ "logits/chosen": -54424352.36781609,
781
+ "logits/rejected": -49791210.95890411,
782
+ "logps/chosen": -369.7562185704023,
783
+ "logps/rejected": -212.1244381421233,
784
+ "loss": 1.3489,
785
+ "loss/base_kto": 0.4913412034511566,
786
+ "metrics/advantage_var": 1.7532039880752563,
787
+ "regularization/grad_norm_sq": 3547.708984375,
788
+ "regularization/w2": 0.8307213187217712,
789
+ "rewards/chosen": 0.11605137792126886,
790
+ "rewards/margins": 0.06928389490241987,
791
+ "rewards/rejected": 0.046767483018849,
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.88671875,
797
+ "step": 165
798
+ },
799
+ {
800
+ "epoch": 0.8701215611004478,
801
+ "grad_norm": 0.6222322583198547,
802
+ "kl": 0.920440137386322,
803
+ "learning_rate": 9.9452158908238e-07,
804
+ "logits/chosen": -59139877.86982249,
805
+ "logits/rejected": -52581216.63576159,
806
+ "logps/chosen": -439.6777921597633,
807
+ "logps/rejected": -190.6081332781457,
808
+ "loss": 1.3222,
809
+ "loss/base_kto": 0.48742732405662537,
810
+ "metrics/advantage_var": 2.3735947608947754,
811
+ "regularization/grad_norm_sq": 4127.0400390625,
812
+ "regularization/w2": 0.8687969446182251,
813
+ "rewards/chosen": 0.16640804223054964,
814
+ "rewards/margins": 0.10143800048816165,
815
+ "rewards/rejected": 0.06497004174238799,
816
+ "stability/repetition_rate_mean": 0.23209978640079498,
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.67041015625,
821
+ "step": 170
822
+ },
823
+ {
824
+ "epoch": 0.8957133717210493,
825
+ "grad_norm": 0.7240987420082092,
826
+ "kl": 0.9491209983825684,
827
+ "learning_rate": 9.937005810398745e-07,
828
+ "logits/chosen": -56657488.192771085,
829
+ "logits/rejected": -48037266.28571428,
830
+ "logps/chosen": -354.8600809487952,
831
+ "logps/rejected": -194.32765574269482,
832
+ "loss": 1.3334,
833
+ "loss/base_kto": 0.4863254725933075,
834
+ "metrics/advantage_var": 4.277890682220459,
835
+ "regularization/grad_norm_sq": 4247.8359375,
836
+ "regularization/w2": 0.8748798370361328,
837
+ "rewards/chosen": 0.15770882296274943,
838
+ "rewards/margins": 0.10972130923479342,
839
+ "rewards/rejected": 0.047987513727956004,
840
+ "stability/repetition_rate_mean": 0.18672296404838562,
841
+ "stability/response_length_mean": 29.75,
842
+ "stability/response_length_std": 26.015106201171875,
843
+ "stability/response_length_var": 676.7857055664062,
844
+ "stability/token_entropy_mean": 4.822265625,
845
+ "step": 175
846
+ },
847
+ {
848
+ "epoch": 0.9213051823416507,
849
+ "grad_norm": 0.6430587768554688,
850
+ "kl": 1.032440423965454,
851
+ "learning_rate": 9.928226601167138e-07,
852
+ "logits/chosen": -52647628.17177914,
853
+ "logits/rejected": -47983459.46496815,
854
+ "logps/chosen": -374.4316765720859,
855
+ "logps/rejected": -210.53918690286625,
856
+ "loss": 1.321,
857
+ "loss/base_kto": 0.48797211050987244,
858
+ "metrics/advantage_var": 4.151429653167725,
859
+ "regularization/grad_norm_sq": 3608.227294921875,
860
+ "regularization/w2": 0.8262709975242615,
861
+ "rewards/chosen": 0.17141536408406824,
862
+ "rewards/margins": 0.09551231590283814,
863
+ "rewards/rejected": 0.0759030481812301,
864
+ "stability/repetition_rate_mean": 0.2868303656578064,
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.130859375,
869
+ "step": 180
870
+ },
871
+ {
872
+ "epoch": 0.946896992962252,
873
+ "grad_norm": 0.6488748788833618,
874
+ "kl": 1.0751243829727173,
875
+ "learning_rate": 9.918879275179817e-07,
876
+ "logits/chosen": -54614894.61728395,
877
+ "logits/rejected": -49520795.5443038,
878
+ "logps/chosen": -310.31404320987656,
879
+ "logps/rejected": -196.53752966772151,
880
+ "loss": 1.3781,
881
+ "loss/base_kto": 0.4869016706943512,
882
+ "metrics/advantage_var": 7.557289123535156,
883
+ "regularization/grad_norm_sq": 7128.36279296875,
884
+ "regularization/w2": 0.9516963958740234,
885
+ "rewards/chosen": 0.16873404420452354,
886
+ "rewards/margins": 0.1185720879727182,
887
+ "rewards/rejected": 0.05016195623180534,
888
+ "stability/repetition_rate_mean": 0.2109375,
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.71875,
893
+ "step": 185
894
+ },
895
+ {
896
+ "epoch": 0.9724888035828535,
897
+ "grad_norm": 0.6966060996055603,
898
+ "kl": 1.1208827495574951,
899
+ "learning_rate": 9.90896490997906e-07,
900
+ "logits/chosen": -53095589.556886226,
901
+ "logits/rejected": -49707021.385620914,
902
+ "logps/chosen": -390.324967252994,
903
+ "logps/rejected": -210.44881025326796,
904
+ "loss": 1.3626,
905
+ "loss/base_kto": 0.4836917519569397,
906
+ "metrics/advantage_var": 7.099040985107422,
907
+ "regularization/grad_norm_sq": 5476.40771484375,
908
+ "regularization/w2": 0.9177618026733398,
909
+ "rewards/chosen": 0.20803529202581167,
910
+ "rewards/margins": 0.1330566630569308,
911
+ "rewards/rejected": 0.07497862896888084,
912
+ "stability/repetition_rate_mean": 0.2964409589767456,
913
+ "stability/response_length_mean": 20.375,
914
+ "stability/response_length_std": 27.645395278930664,
915
+ "stability/response_length_var": 764.2678833007812,
916
+ "stability/token_entropy_mean": 4.3505859375,
917
+ "step": 190
918
+ },
919
+ {
920
+ "epoch": 0.9980806142034548,
921
+ "grad_norm": 0.6411679983139038,
922
+ "kl": 1.1453860998153687,
923
+ "learning_rate": 9.898484648474362e-07,
924
+ "logits/chosen": -60050742.5032258,
925
+ "logits/rejected": -53805540.07272727,
926
+ "logps/chosen": -390.8772681451613,
927
+ "logps/rejected": -197.0868252840909,
928
+ "loss": 1.3508,
929
+ "loss/base_kto": 0.48641711473464966,
930
+ "metrics/advantage_var": 4.3691325187683105,
931
+ "regularization/grad_norm_sq": 4039.490966796875,
932
+ "regularization/w2": 0.8582512736320496,
933
+ "rewards/chosen": 0.19076536855389994,
934
+ "rewards/margins": 0.1075151782814242,
935
+ "rewards/rejected": 0.08325019027247574,
936
+ "stability/repetition_rate_mean": 0.3895089328289032,
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.19921875,
941
+ "step": 195
942
+ },
943
+ {
944
+ "epoch": 1.0,
945
+ "step": 196,
946
+ "total_flos": 3.1861866257511875e+18,
947
+ "train_loss": 1.359869228333843,
948
+ "train_runtime": 4299.7361,
949
+ "train_samples_per_second": 23.257,
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.01/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9125ddbb4efe23bb499afbabc466a81ea7d184e9e0ac5bd7dc5acdf9cbac0b42
3
+ size 8081
mistral7b_kto_w2_delta0.01/training_loss.png ADDED
mistral7b_kto_w2_delta0.01/training_loss_base_kto.png ADDED
mistral7b_kto_w2_delta0.01/training_rewards_chosen.png ADDED
mistral7b_kto_w2_delta0.01/training_rewards_margins.png ADDED
mistral7b_kto_w2_delta0.01/training_rewards_rejected.png ADDED