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

Upload folder using huggingface_hub

Browse files
Files changed (49) hide show
  1. mistral7b_kto_w2_delta0.005/README.md +64 -0
  2. mistral7b_kto_w2_delta0.005/adapter_config.json +42 -0
  3. mistral7b_kto_w2_delta0.005/adapter_model.safetensors +3 -0
  4. mistral7b_kto_w2_delta0.005/all_results.json +8 -0
  5. mistral7b_kto_w2_delta0.005/chat_template.jinja +3 -0
  6. mistral7b_kto_w2_delta0.005/checkpoint-196/README.md +208 -0
  7. mistral7b_kto_w2_delta0.005/checkpoint-196/adapter_config.json +42 -0
  8. mistral7b_kto_w2_delta0.005/checkpoint-196/adapter_model.safetensors +3 -0
  9. mistral7b_kto_w2_delta0.005/checkpoint-196/chat_template.jinja +3 -0
  10. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  11. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  12. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
  13. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
  14. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +3 -0
  15. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +3 -0
  16. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +3 -0
  17. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +3 -0
  18. mistral7b_kto_w2_delta0.005/checkpoint-196/global_step196/mp_rank_00_model_states.pt +3 -0
  19. mistral7b_kto_w2_delta0.005/checkpoint-196/latest +1 -0
  20. mistral7b_kto_w2_delta0.005/checkpoint-196/rng_state_0.pth +3 -0
  21. mistral7b_kto_w2_delta0.005/checkpoint-196/rng_state_1.pth +3 -0
  22. mistral7b_kto_w2_delta0.005/checkpoint-196/rng_state_2.pth +3 -0
  23. mistral7b_kto_w2_delta0.005/checkpoint-196/rng_state_3.pth +3 -0
  24. mistral7b_kto_w2_delta0.005/checkpoint-196/rng_state_4.pth +3 -0
  25. mistral7b_kto_w2_delta0.005/checkpoint-196/rng_state_5.pth +3 -0
  26. mistral7b_kto_w2_delta0.005/checkpoint-196/rng_state_6.pth +3 -0
  27. mistral7b_kto_w2_delta0.005/checkpoint-196/rng_state_7.pth +3 -0
  28. mistral7b_kto_w2_delta0.005/checkpoint-196/scheduler.pt +3 -0
  29. mistral7b_kto_w2_delta0.005/checkpoint-196/special_tokens_map.json +24 -0
  30. mistral7b_kto_w2_delta0.005/checkpoint-196/tokenizer.json +0 -0
  31. mistral7b_kto_w2_delta0.005/checkpoint-196/tokenizer.model +3 -0
  32. mistral7b_kto_w2_delta0.005/checkpoint-196/tokenizer_config.json +46 -0
  33. mistral7b_kto_w2_delta0.005/checkpoint-196/trainer_state.json +965 -0
  34. mistral7b_kto_w2_delta0.005/checkpoint-196/training_args.bin +3 -0
  35. mistral7b_kto_w2_delta0.005/checkpoint-196/zero_to_fp32.py +604 -0
  36. mistral7b_kto_w2_delta0.005/special_tokens_map.json +24 -0
  37. mistral7b_kto_w2_delta0.005/stability_metrics.jsonl +38 -0
  38. mistral7b_kto_w2_delta0.005/tokenizer.json +0 -0
  39. mistral7b_kto_w2_delta0.005/tokenizer.model +3 -0
  40. mistral7b_kto_w2_delta0.005/tokenizer_config.json +46 -0
  41. mistral7b_kto_w2_delta0.005/train_results.json +8 -0
  42. mistral7b_kto_w2_delta0.005/trainer_log.jsonl +40 -0
  43. mistral7b_kto_w2_delta0.005/trainer_state.json +974 -0
  44. mistral7b_kto_w2_delta0.005/training_args.bin +3 -0
  45. mistral7b_kto_w2_delta0.005/training_loss.png +0 -0
  46. mistral7b_kto_w2_delta0.005/training_loss_base_kto.png +0 -0
  47. mistral7b_kto_w2_delta0.005/training_rewards_chosen.png +0 -0
  48. mistral7b_kto_w2_delta0.005/training_rewards_margins.png +0 -0
  49. mistral7b_kto_w2_delta0.005/training_rewards_rejected.png +0 -0
mistral7b_kto_w2_delta0.005/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.005
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.005
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.005/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
+ "k_proj",
29
+ "o_proj",
30
+ "up_proj",
31
+ "gate_proj",
32
+ "v_proj",
33
+ "down_proj",
34
+ "q_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.005/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35828ffbc8422a5b814447238f31afc10f35e9d7b503717dc4679511dba37b55
3
+ size 42002584
mistral7b_kto_w2_delta0.005/all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 3.1861866257511875e+18,
4
+ "train_loss": 0.9280117068971906,
5
+ "train_runtime": 4303.5052,
6
+ "train_samples_per_second": 23.237,
7
+ "train_steps_per_second": 0.046
8
+ }
mistral7b_kto_w2_delta0.005/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.005/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.005/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
+ "k_proj",
29
+ "o_proj",
30
+ "up_proj",
31
+ "gate_proj",
32
+ "v_proj",
33
+ "down_proj",
34
+ "q_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.005/checkpoint-196/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35828ffbc8422a5b814447238f31afc10f35e9d7b503717dc4679511dba37b55
3
+ size 42002584
mistral7b_kto_w2_delta0.005/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.005/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:1dd9bafbfae251ae3887812445b6d1daf17fb951a59ca01e7e43bfb9c65c86d7
3
+ size 31467333
mistral7b_kto_w2_delta0.005/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:988641547a6d6865903758927ba3de7f6963f555e5c6ffccc3c0924e1c6fabf7
3
+ size 31467333
mistral7b_kto_w2_delta0.005/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:d3e75cea27fdaeb8b2e2cc1e61bef2929cb0df28071cd59ddea19185597073cd
3
+ size 31467333
mistral7b_kto_w2_delta0.005/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:af070a2306c428d3dd2f4af03cc5ea52ab5ad8d2b6f076bd6485f011ca15875b
3
+ size 31467397
mistral7b_kto_w2_delta0.005/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:c11dcbdc28de6d1e5f62f9544ccd48016ae5d6de4653588204d4bc4eb419be3f
3
+ size 31467397
mistral7b_kto_w2_delta0.005/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:e00bb3e28e4a37b92f39c543edc9bf8e8972534bbd2351b821e1746eb053eacc
3
+ size 31467397
mistral7b_kto_w2_delta0.005/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:d9f7555cc3a3ccb6239096d6eb5af71b0a8707b2f382e15f3c3833cf72661d8f
3
+ size 31467397
mistral7b_kto_w2_delta0.005/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:283a047c63142ff64bc8d3b732cfb22dc08e4c76c170ab7fe4f6a560f726eea6
3
+ size 31467397
mistral7b_kto_w2_delta0.005/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:1b9280d068de7b25f4e4c3ce5c5b53d9879cb10a0f185c967578b11ddcaa0c05
3
+ size 42288409
mistral7b_kto_w2_delta0.005/checkpoint-196/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step196
mistral7b_kto_w2_delta0.005/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.005/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.005/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.005/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.005/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.005/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.005/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.005/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.005/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.005/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.005/checkpoint-196/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
mistral7b_kto_w2_delta0.005/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.005/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.005/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.577160120010376,
15
+ "kl": 0.008340898901224136,
16
+ "learning_rate": 4e-08,
17
+ "logits/chosen": -59718413.473684214,
18
+ "logits/rejected": -50413519.23809524,
19
+ "logps/chosen": -439.03885690789474,
20
+ "logps/rejected": -198.42229352678572,
21
+ "loss": 0.9479,
22
+ "loss/base_kto": 0.4997499883174896,
23
+ "metrics/advantage_var": 0.052478689700365067,
24
+ "regularization/grad_norm_sq": 4334.98388671875,
25
+ "regularization/w2": 0.45370370149612427,
26
+ "rewards/chosen": 0.0006774790388973136,
27
+ "rewards/margins": 0.0019659657722203654,
28
+ "rewards/rejected": -0.0012884867333230517,
29
+ "step": 5
30
+ },
31
+ {
32
+ "epoch": 0.05118362124120281,
33
+ "grad_norm": 0.611538290977478,
34
+ "kl": 0.016795814037322998,
35
+ "learning_rate": 9e-08,
36
+ "logits/chosen": -59302692.571428575,
37
+ "logits/rejected": -50021761.54216868,
38
+ "logps/chosen": -429.92659293831167,
39
+ "logps/rejected": -192.85163309487953,
40
+ "loss": 0.9286,
41
+ "loss/base_kto": 0.5000812411308289,
42
+ "metrics/advantage_var": 0.0676804929971695,
43
+ "regularization/grad_norm_sq": 3756.94775390625,
44
+ "regularization/w2": 0.4279446601867676,
45
+ "rewards/chosen": 0.0011910808744368614,
46
+ "rewards/margins": -0.00043923452559481435,
47
+ "rewards/rejected": 0.0016303154000316758,
48
+ "stability/repetition_rate_mean": 0.3492690920829773,
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.3662109375,
53
+ "step": 10
54
+ },
55
+ {
56
+ "epoch": 0.07677543186180422,
57
+ "grad_norm": 0.6086092591285706,
58
+ "kl": 0.020404411479830742,
59
+ "learning_rate": 1.4e-07,
60
+ "logits/chosen": -56236609.163636364,
61
+ "logits/rejected": -51916776.87741935,
62
+ "logps/chosen": -404.12135416666666,
63
+ "logps/rejected": -200.67870463709679,
64
+ "loss": 0.9272,
65
+ "loss/base_kto": 0.49999886751174927,
66
+ "metrics/advantage_var": 0.05835923179984093,
67
+ "regularization/grad_norm_sq": 4170.2373046875,
68
+ "regularization/w2": 0.44162631034851074,
69
+ "rewards/chosen": 0.0009465837117397424,
70
+ "rewards/margins": -0.0005884172047105119,
71
+ "rewards/rejected": 0.0015350009164502543,
72
+ "stability/repetition_rate_mean": 0.28515625,
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.7548828125,
77
+ "step": 15
78
+ },
79
+ {
80
+ "epoch": 0.10236724248240563,
81
+ "grad_norm": 0.6190893650054932,
82
+ "kl": 0.021697884425520897,
83
+ "learning_rate": 1.8999999999999998e-07,
84
+ "logits/chosen": -51675481.6,
85
+ "logits/rejected": -48057888.0,
86
+ "logps/chosen": -343.6622802734375,
87
+ "logps/rejected": -225.616259765625,
88
+ "loss": 0.9324,
89
+ "loss/base_kto": 0.5001762509346008,
90
+ "metrics/advantage_var": 0.06153888627886772,
91
+ "regularization/grad_norm_sq": 3680.827392578125,
92
+ "regularization/w2": 0.42263123393058777,
93
+ "rewards/chosen": 0.0034450016915798186,
94
+ "rewards/margins": -0.001264280080795288,
95
+ "rewards/rejected": 0.004709281772375107,
96
+ "stability/repetition_rate_mean": 0.2096664160490036,
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.42578125,
101
+ "step": 20
102
+ },
103
+ {
104
+ "epoch": 0.12795905310300704,
105
+ "grad_norm": 0.5808376669883728,
106
+ "kl": 0.018133217468857765,
107
+ "learning_rate": 2.4e-07,
108
+ "logits/chosen": -56471566.12413793,
109
+ "logits/rejected": -52024934.4,
110
+ "logps/chosen": -378.4438577586207,
111
+ "logps/rejected": -202.7503125,
112
+ "loss": 0.9391,
113
+ "loss/base_kto": 0.49999186396598816,
114
+ "metrics/advantage_var": 0.06101418659090996,
115
+ "regularization/grad_norm_sq": 4002.333984375,
116
+ "regularization/w2": 0.4309103488922119,
117
+ "rewards/chosen": 0.0047595426954072095,
118
+ "rewards/margins": 0.0005058412129068605,
119
+ "rewards/rejected": 0.004253701482500349,
120
+ "stability/repetition_rate_mean": 0.18583066761493683,
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.75390625,
125
+ "step": 25
126
+ },
127
+ {
128
+ "epoch": 0.15355086372360843,
129
+ "grad_norm": 0.6033640503883362,
130
+ "kl": 0.022612739354372025,
131
+ "learning_rate": 2.9e-07,
132
+ "logits/chosen": -57729188.939597316,
133
+ "logits/rejected": -51520841.35672515,
134
+ "logps/chosen": -468.5989932885906,
135
+ "logps/rejected": -198.2083561769006,
136
+ "loss": 0.9337,
137
+ "loss/base_kto": 0.5006771683692932,
138
+ "metrics/advantage_var": 0.09293336421251297,
139
+ "regularization/grad_norm_sq": 4491.3251953125,
140
+ "regularization/w2": 0.45624828338623047,
141
+ "rewards/chosen": -0.0017742578615278207,
142
+ "rewards/margins": -0.005727118693742176,
143
+ "rewards/rejected": 0.0039528608322143555,
144
+ "stability/repetition_rate_mean": 0.1583891361951828,
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.642578125,
149
+ "step": 30
150
+ },
151
+ {
152
+ "epoch": 0.17914267434420986,
153
+ "grad_norm": 0.6803989410400391,
154
+ "kl": 0.02071223594248295,
155
+ "learning_rate": 3.4000000000000003e-07,
156
+ "logits/chosen": -57644589.36708861,
157
+ "logits/rejected": -53911292.83950617,
158
+ "logps/chosen": -385.9240506329114,
159
+ "logps/rejected": -195.117862654321,
160
+ "loss": 0.938,
161
+ "loss/base_kto": 0.4999936521053314,
162
+ "metrics/advantage_var": 0.07669314742088318,
163
+ "regularization/grad_norm_sq": 3758.585205078125,
164
+ "regularization/w2": 0.4280441403388977,
165
+ "rewards/chosen": 0.001247800886631012,
166
+ "rewards/margins": 0.0003867014138786881,
167
+ "rewards/rejected": 0.0008610994727523239,
168
+ "stability/repetition_rate_mean": 0.3108258843421936,
169
+ "stability/response_length_mean": 50.5,
170
+ "stability/response_length_std": 25.048524856567383,
171
+ "stability/response_length_var": 627.4285888671875,
172
+ "stability/token_entropy_mean": 5.58203125,
173
+ "step": 35
174
+ },
175
+ {
176
+ "epoch": 0.20473448496481125,
177
+ "grad_norm": 0.5847389698028564,
178
+ "kl": 0.02293821983039379,
179
+ "learning_rate": 3.8999999999999997e-07,
180
+ "logits/chosen": -56634060.8,
181
+ "logits/rejected": -50219801.6,
182
+ "logps/chosen": -421.899560546875,
183
+ "logps/rejected": -219.2647705078125,
184
+ "loss": 0.9341,
185
+ "loss/base_kto": 0.5005573630332947,
186
+ "metrics/advantage_var": 0.06820251047611237,
187
+ "regularization/grad_norm_sq": 5033.30859375,
188
+ "regularization/w2": 0.4727831482887268,
189
+ "rewards/chosen": 0.0003104138188064098,
190
+ "rewards/margins": -0.0041379273869097235,
191
+ "rewards/rejected": 0.004448341205716133,
192
+ "stability/repetition_rate_mean": 0.16694079339504242,
193
+ "stability/response_length_mean": 35.0,
194
+ "stability/response_length_std": 31.518701553344727,
195
+ "stability/response_length_var": 993.4285888671875,
196
+ "stability/token_entropy_mean": 4.89453125,
197
+ "step": 40
198
+ },
199
+ {
200
+ "epoch": 0.23032629558541268,
201
+ "grad_norm": 0.6400073766708374,
202
+ "kl": 0.0444142147898674,
203
+ "learning_rate": 4.3999999999999997e-07,
204
+ "logits/chosen": -52707451.70469799,
205
+ "logits/rejected": -50772524.9122807,
206
+ "logps/chosen": -352.2749056208054,
207
+ "logps/rejected": -243.8424707602339,
208
+ "loss": 0.9389,
209
+ "loss/base_kto": 0.4996757507324219,
210
+ "metrics/advantage_var": 0.06386065483093262,
211
+ "regularization/grad_norm_sq": 3936.931640625,
212
+ "regularization/w2": 0.42452260851860046,
213
+ "rewards/chosen": 0.0053554469306997,
214
+ "rewards/margins": 0.0021862895790329766,
215
+ "rewards/rejected": 0.0031691573516667237,
216
+ "stability/repetition_rate_mean": 0.1052611693739891,
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.771484375,
221
+ "step": 45
222
+ },
223
+ {
224
+ "epoch": 0.2559181062060141,
225
+ "grad_norm": 0.5788847208023071,
226
+ "kl": 0.04537983611226082,
227
+ "learning_rate": 4.9e-07,
228
+ "logits/chosen": -54037710.17449664,
229
+ "logits/rejected": -48296085.70760234,
230
+ "logps/chosen": -375.1397336409396,
231
+ "logps/rejected": -180.18807108918128,
232
+ "loss": 0.9201,
233
+ "loss/base_kto": 0.49983420968055725,
234
+ "metrics/advantage_var": 0.052370816469192505,
235
+ "regularization/grad_norm_sq": 3871.12744140625,
236
+ "regularization/w2": 0.4266422390937805,
237
+ "rewards/chosen": 0.005941886629834271,
238
+ "rewards/margins": 0.0006887215409353172,
239
+ "rewards/rejected": 0.005253165088898954,
240
+ "stability/repetition_rate_mean": 0.3655294179916382,
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": 3.8212890625,
245
+ "step": 50
246
+ },
247
+ {
248
+ "epoch": 0.28150991682661547,
249
+ "grad_norm": 0.6621019244194031,
250
+ "kl": 0.05794268846511841,
251
+ "learning_rate": 5.4e-07,
252
+ "logits/chosen": -56953277.217391305,
253
+ "logits/rejected": -49571939.82389937,
254
+ "logps/chosen": -344.48738354037266,
255
+ "logps/rejected": -230.3876523191824,
256
+ "loss": 0.9291,
257
+ "loss/base_kto": 0.5004059076309204,
258
+ "metrics/advantage_var": 0.05569034814834595,
259
+ "regularization/grad_norm_sq": 3976.169921875,
260
+ "regularization/w2": 0.43878814578056335,
261
+ "rewards/chosen": 0.0024627199084121987,
262
+ "rewards/margins": -0.00357790456916621,
263
+ "rewards/rejected": 0.006040624477578409,
264
+ "stability/repetition_rate_mean": 0.10418051481246948,
265
+ "stability/response_length_mean": 22.375,
266
+ "stability/response_length_std": 30.236862182617188,
267
+ "stability/response_length_var": 914.2678833007812,
268
+ "stability/token_entropy_mean": 4.3173828125,
269
+ "step": 55
270
+ },
271
+ {
272
+ "epoch": 0.30710172744721687,
273
+ "grad_norm": 0.5812336206436157,
274
+ "kl": 0.05679145082831383,
275
+ "learning_rate": 5.9e-07,
276
+ "logits/chosen": -52678345.696969695,
277
+ "logits/rejected": -47821840.51612903,
278
+ "logps/chosen": -359.6124053030303,
279
+ "logps/rejected": -178.17867943548387,
280
+ "loss": 0.933,
281
+ "loss/base_kto": 0.4992280900478363,
282
+ "metrics/advantage_var": 0.057238996028900146,
283
+ "regularization/grad_norm_sq": 3165.790283203125,
284
+ "regularization/w2": 0.3937515616416931,
285
+ "rewards/chosen": 0.010837621399850556,
286
+ "rewards/margins": 0.00601367213975416,
287
+ "rewards/rejected": 0.004823949260096396,
288
+ "stability/repetition_rate_mean": 0.22545291483402252,
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.646484375,
293
+ "step": 60
294
+ },
295
+ {
296
+ "epoch": 0.3326935380678183,
297
+ "grad_norm": 0.5738043785095215,
298
+ "kl": 0.06266746670007706,
299
+ "learning_rate": 6.4e-07,
300
+ "logits/chosen": -57563182.24516129,
301
+ "logits/rejected": -47268345.7939394,
302
+ "logps/chosen": -381.86370967741937,
303
+ "logps/rejected": -183.5180516098485,
304
+ "loss": 0.939,
305
+ "loss/base_kto": 0.4997069537639618,
306
+ "metrics/advantage_var": 0.07446863502264023,
307
+ "regularization/grad_norm_sq": 3868.786865234375,
308
+ "regularization/w2": 0.4315285384654999,
309
+ "rewards/chosen": 0.008308312200730847,
310
+ "rewards/margins": 0.001878772895939772,
311
+ "rewards/rejected": 0.006429539304791075,
312
+ "stability/repetition_rate_mean": 0.19313038885593414,
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.55859375,
317
+ "step": 65
318
+ },
319
+ {
320
+ "epoch": 0.3582853486884197,
321
+ "grad_norm": 0.5531291365623474,
322
+ "kl": 0.08709845691919327,
323
+ "learning_rate": 6.9e-07,
324
+ "logits/chosen": -52753698.68387097,
325
+ "logits/rejected": -49023162.18181818,
326
+ "logps/chosen": -378.9974798387097,
327
+ "logps/rejected": -220.35189393939393,
328
+ "loss": 0.9497,
329
+ "loss/base_kto": 0.49925193190574646,
330
+ "metrics/advantage_var": 0.08100283890962601,
331
+ "regularization/grad_norm_sq": 4483.40087890625,
332
+ "regularization/w2": 0.45682960748672485,
333
+ "rewards/chosen": 0.01309710318042386,
334
+ "rewards/margins": 0.006069044376981108,
335
+ "rewards/rejected": 0.007028058803442753,
336
+ "stability/repetition_rate_mean": 0.111328125,
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.3388671875,
341
+ "step": 70
342
+ },
343
+ {
344
+ "epoch": 0.3838771593090211,
345
+ "grad_norm": 0.611277163028717,
346
+ "kl": 0.09017860144376755,
347
+ "learning_rate": 7.4e-07,
348
+ "logits/chosen": -49498509.83783784,
349
+ "logits/rejected": -47885377.488372095,
350
+ "logps/chosen": -314.13988597972974,
351
+ "logps/rejected": -228.78901707848837,
352
+ "loss": 0.9402,
353
+ "loss/base_kto": 0.49950870871543884,
354
+ "metrics/advantage_var": 0.06859137862920761,
355
+ "regularization/grad_norm_sq": 3736.681396484375,
356
+ "regularization/w2": 0.42404261231422424,
357
+ "rewards/chosen": 0.013092591955855087,
358
+ "rewards/margins": 0.0035108895627003218,
359
+ "rewards/rejected": 0.009581702393154765,
360
+ "stability/repetition_rate_mean": 0.10066105425357819,
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.130859375,
365
+ "step": 75
366
+ },
367
+ {
368
+ "epoch": 0.4094689699296225,
369
+ "grad_norm": 0.6037386655807495,
370
+ "kl": 0.13238738477230072,
371
+ "learning_rate": 7.9e-07,
372
+ "logits/chosen": -58626637.98675497,
373
+ "logits/rejected": -53447752.71005917,
374
+ "logps/chosen": -403.87065397350995,
375
+ "logps/rejected": -200.96398853550295,
376
+ "loss": 0.9316,
377
+ "loss/base_kto": 0.4992172420024872,
378
+ "metrics/advantage_var": 0.07778961956501007,
379
+ "regularization/grad_norm_sq": 3624.650390625,
380
+ "regularization/w2": 0.42037779092788696,
381
+ "rewards/chosen": 0.0159459240389186,
382
+ "rewards/margins": 0.006766194357169991,
383
+ "rewards/rejected": 0.00917972968174861,
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.23828125,
389
+ "step": 80
390
+ },
391
+ {
392
+ "epoch": 0.4350607805502239,
393
+ "grad_norm": 0.6116781234741211,
394
+ "kl": 0.12365061044692993,
395
+ "learning_rate": 8.399999999999999e-07,
396
+ "logits/chosen": -51478686.55483871,
397
+ "logits/rejected": -47141816.63030303,
398
+ "logps/chosen": -358.13480342741934,
399
+ "logps/rejected": -230.34330018939394,
400
+ "loss": 0.9311,
401
+ "loss/base_kto": 0.4985641539096832,
402
+ "metrics/advantage_var": 0.10404322296380997,
403
+ "regularization/grad_norm_sq": 3923.891357421875,
404
+ "regularization/w2": 0.43580102920532227,
405
+ "rewards/chosen": 0.01977017310357863,
406
+ "rewards/margins": 0.011619663471583632,
407
+ "rewards/rejected": 0.008150509631994998,
408
+ "stability/repetition_rate_mean": 0.103515625,
409
+ "stability/response_length_mean": 32.5,
410
+ "stability/response_length_std": 33.67915725708008,
411
+ "stability/response_length_var": 1134.2857666015625,
412
+ "stability/token_entropy_mean": 4.9375,
413
+ "step": 85
414
+ },
415
+ {
416
+ "epoch": 0.46065259117082535,
417
+ "grad_norm": 0.6381218433380127,
418
+ "kl": 0.16665403544902802,
419
+ "learning_rate": 8.9e-07,
420
+ "logits/chosen": -58412438.974358976,
421
+ "logits/rejected": -50588893.65853658,
422
+ "logps/chosen": -380.5612980769231,
423
+ "logps/rejected": -187.1324433117378,
424
+ "loss": 0.9286,
425
+ "loss/base_kto": 0.4982132017612457,
426
+ "metrics/advantage_var": 0.08798178285360336,
427
+ "regularization/grad_norm_sq": 3925.050048828125,
428
+ "regularization/w2": 0.43326812982559204,
429
+ "rewards/chosen": 0.022810822878128443,
430
+ "rewards/margins": 0.013375084872839225,
431
+ "rewards/rejected": 0.009435738005289218,
432
+ "stability/repetition_rate_mean": 0.3356415629386902,
433
+ "stability/response_length_mean": 30.375,
434
+ "stability/response_length_std": 29.061203002929688,
435
+ "stability/response_length_var": 844.5535888671875,
436
+ "stability/token_entropy_mean": 3.72265625,
437
+ "step": 90
438
+ },
439
+ {
440
+ "epoch": 0.48624440179142675,
441
+ "grad_norm": 0.6163039803504944,
442
+ "kl": 0.15967555344104767,
443
+ "learning_rate": 9.399999999999999e-07,
444
+ "logits/chosen": -50379520.0,
445
+ "logits/rejected": -48967028.938271604,
446
+ "logps/chosen": -314.77383306962025,
447
+ "logps/rejected": -207.04853877314815,
448
+ "loss": 0.9271,
449
+ "loss/base_kto": 0.4984891414642334,
450
+ "metrics/advantage_var": 0.1260511875152588,
451
+ "regularization/grad_norm_sq": 3692.677490234375,
452
+ "regularization/w2": 0.42039623856544495,
453
+ "rewards/chosen": 0.021952728681926485,
454
+ "rewards/margins": 0.012433580661829717,
455
+ "rewards/rejected": 0.009519148020096768,
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.75,
461
+ "step": 95
462
+ },
463
+ {
464
+ "epoch": 0.5118362124120281,
465
+ "grad_norm": 0.6088441014289856,
466
+ "kl": 0.1950296312570572,
467
+ "learning_rate": 9.9e-07,
468
+ "logits/chosen": -54698091.24324324,
469
+ "logits/rejected": -50908255.255813956,
470
+ "logps/chosen": -359.5659311655405,
471
+ "logps/rejected": -216.3930323401163,
472
+ "loss": 0.9328,
473
+ "loss/base_kto": 0.49854350090026855,
474
+ "metrics/advantage_var": 0.13550297915935516,
475
+ "regularization/grad_norm_sq": 3865.565673828125,
476
+ "regularization/w2": 0.42957553267478943,
477
+ "rewards/chosen": 0.03042653444651011,
478
+ "rewards/margins": 0.011843225627781683,
479
+ "rewards/rejected": 0.018583308818728425,
480
+ "stability/repetition_rate_mean": 0.228515625,
481
+ "stability/response_length_mean": 41.25,
482
+ "stability/response_length_std": 31.476749420166016,
483
+ "stability/response_length_var": 990.7857055664062,
484
+ "stability/token_entropy_mean": 4.078125,
485
+ "step": 100
486
+ },
487
+ {
488
+ "epoch": 0.5374280230326296,
489
+ "grad_norm": 0.6745646595954895,
490
+ "kl": 0.21558904647827148,
491
+ "learning_rate": 9.999815554351224e-07,
492
+ "logits/chosen": -59378317.87951807,
493
+ "logits/rejected": -53788419.32467532,
494
+ "logps/chosen": -399.4925169427711,
495
+ "logps/rejected": -209.84361049107142,
496
+ "loss": 0.9365,
497
+ "loss/base_kto": 0.49687233567237854,
498
+ "metrics/advantage_var": 0.2065424919128418,
499
+ "regularization/grad_norm_sq": 3994.716064453125,
500
+ "regularization/w2": 0.4382788836956024,
501
+ "rewards/chosen": 0.04099334004413651,
502
+ "rewards/margins": 0.024971716804247736,
503
+ "rewards/rejected": 0.016021623239888774,
504
+ "stability/repetition_rate_mean": 0.1877790093421936,
505
+ "stability/response_length_mean": 29.0,
506
+ "stability/response_length_std": 29.89505386352539,
507
+ "stability/response_length_var": 893.7142944335938,
508
+ "stability/token_entropy_mean": 3.353515625,
509
+ "step": 105
510
+ },
511
+ {
512
+ "epoch": 0.5630198336532309,
513
+ "grad_norm": 0.6502033472061157,
514
+ "kl": 0.26441773772239685,
515
+ "learning_rate": 9.999066267225444e-07,
516
+ "logits/chosen": -57391930.60240964,
517
+ "logits/rejected": -53613953.66233766,
518
+ "logps/chosen": -378.218938253012,
519
+ "logps/rejected": -205.88195008116884,
520
+ "loss": 0.9259,
521
+ "loss/base_kto": 0.49810346961021423,
522
+ "metrics/advantage_var": 0.21781854331493378,
523
+ "regularization/grad_norm_sq": 3637.52197265625,
524
+ "regularization/w2": 0.42161688208580017,
525
+ "rewards/chosen": 0.0344322733132236,
526
+ "rewards/margins": 0.013813094566021703,
527
+ "rewards/rejected": 0.020619178747201896,
528
+ "stability/repetition_rate_mean": 0.30853456258773804,
529
+ "stability/response_length_mean": 28.875,
530
+ "stability/response_length_std": 29.911476135253906,
531
+ "stability/response_length_var": 894.6964111328125,
532
+ "stability/token_entropy_mean": 4.404296875,
533
+ "step": 110
534
+ },
535
+ {
536
+ "epoch": 0.5886116442738324,
537
+ "grad_norm": 0.6496742367744446,
538
+ "kl": 0.3085666298866272,
539
+ "learning_rate": 9.997740697079592e-07,
540
+ "logits/chosen": -60598233.11392405,
541
+ "logits/rejected": -53416372.14814815,
542
+ "logps/chosen": -364.10173556170884,
543
+ "logps/rejected": -200.97486255787038,
544
+ "loss": 0.9207,
545
+ "loss/base_kto": 0.4965952932834625,
546
+ "metrics/advantage_var": 0.25335976481437683,
547
+ "regularization/grad_norm_sq": 3352.978271484375,
548
+ "regularization/w2": 0.4012783169746399,
549
+ "rewards/chosen": 0.04908096337620216,
550
+ "rewards/margins": 0.02691114084816366,
551
+ "rewards/rejected": 0.022169822528038497,
552
+ "stability/repetition_rate_mean": 0.2194010466337204,
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.75,
557
+ "step": 115
558
+ },
559
+ {
560
+ "epoch": 0.6142034548944337,
561
+ "grad_norm": 0.6193932294845581,
562
+ "kl": 0.3443666994571686,
563
+ "learning_rate": 9.995838996722914e-07,
564
+ "logits/chosen": -57739732.49673203,
565
+ "logits/rejected": -54352828.5508982,
566
+ "logps/chosen": -383.7316687091503,
567
+ "logps/rejected": -211.93726609281438,
568
+ "loss": 0.936,
569
+ "loss/base_kto": 0.49703770875930786,
570
+ "metrics/advantage_var": 0.3692956864833832,
571
+ "regularization/grad_norm_sq": 4454.72216796875,
572
+ "regularization/w2": 0.4518660008907318,
573
+ "rewards/chosen": 0.05132290896247415,
574
+ "rewards/margins": 0.023414049823756954,
575
+ "rewards/rejected": 0.027908859138717195,
576
+ "stability/repetition_rate_mean": 0.15568576753139496,
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.693359375,
581
+ "step": 120
582
+ },
583
+ {
584
+ "epoch": 0.6397952655150352,
585
+ "grad_norm": 0.6110739707946777,
586
+ "kl": 0.3985693156719208,
587
+ "learning_rate": 9.993361385379874e-07,
588
+ "logits/chosen": -60667195.61643836,
589
+ "logits/rejected": -55641405.79310345,
590
+ "logps/chosen": -416.79403895547944,
591
+ "logps/rejected": -216.0777658045977,
592
+ "loss": 0.9231,
593
+ "loss/base_kto": 0.49641838669776917,
594
+ "metrics/advantage_var": 0.559248149394989,
595
+ "regularization/grad_norm_sq": 3774.068115234375,
596
+ "regularization/w2": 0.4254666864871979,
597
+ "rewards/chosen": 0.05853001058918156,
598
+ "rewards/margins": 0.029587951762866566,
599
+ "rewards/rejected": 0.028942058826314992,
600
+ "stability/repetition_rate_mean": 0.19144965708255768,
601
+ "stability/response_length_mean": 23.125,
602
+ "stability/response_length_std": 29.347366333007812,
603
+ "stability/response_length_var": 861.2678833007812,
604
+ "stability/token_entropy_mean": 3.353515625,
605
+ "step": 125
606
+ },
607
+ {
608
+ "epoch": 0.6653870761356366,
609
+ "grad_norm": 0.5931130051612854,
610
+ "kl": 0.45674076676368713,
611
+ "learning_rate": 9.99030814866488e-07,
612
+ "logits/chosen": -57375400.464516126,
613
+ "logits/rejected": -53823680.38787879,
614
+ "logps/chosen": -391.9906754032258,
615
+ "logps/rejected": -183.6497159090909,
616
+ "loss": 0.9394,
617
+ "loss/base_kto": 0.49498748779296875,
618
+ "metrics/advantage_var": 0.7409353256225586,
619
+ "regularization/grad_norm_sq": 3780.29150390625,
620
+ "regularization/w2": 0.42766115069389343,
621
+ "rewards/chosen": 0.06672527559341923,
622
+ "rewards/margins": 0.039806725622272214,
623
+ "rewards/rejected": 0.026918549971147017,
624
+ "stability/repetition_rate_mean": 0.24460937082767487,
625
+ "stability/response_length_mean": 43.25,
626
+ "stability/response_length_std": 29.620214462280273,
627
+ "stability/response_length_var": 877.3571166992188,
628
+ "stability/token_entropy_mean": 3.640625,
629
+ "step": 130
630
+ },
631
+ {
632
+ "epoch": 0.690978886756238,
633
+ "grad_norm": 0.5910015106201172,
634
+ "kl": 0.5136879086494446,
635
+ "learning_rate": 9.986679638549358e-07,
636
+ "logits/chosen": -59843408.09815951,
637
+ "logits/rejected": -55000846.67515924,
638
+ "logps/chosen": -400.98552530674846,
639
+ "logps/rejected": -247.51219148089172,
640
+ "loss": 0.9147,
641
+ "loss/base_kto": 0.49399566650390625,
642
+ "metrics/advantage_var": 0.9681418538093567,
643
+ "regularization/grad_norm_sq": 4315.08056640625,
644
+ "regularization/w2": 0.4519772231578827,
645
+ "rewards/chosen": 0.0830619554578161,
646
+ "rewards/margins": 0.04720748222231525,
647
+ "rewards/rejected": 0.035854473235500846,
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.05078125,
653
+ "step": 135
654
+ },
655
+ {
656
+ "epoch": 0.7165706973768394,
657
+ "grad_norm": 0.7235668301582336,
658
+ "kl": 0.4908495843410492,
659
+ "learning_rate": 9.982476273321175e-07,
660
+ "logits/chosen": -57076500.16969697,
661
+ "logits/rejected": -50077570.477419354,
662
+ "logps/chosen": -366.3874053030303,
663
+ "logps/rejected": -189.92144657258063,
664
+ "loss": 0.93,
665
+ "loss/base_kto": 0.49192824959754944,
666
+ "metrics/advantage_var": 1.9476429224014282,
667
+ "regularization/grad_norm_sq": 5980.30029296875,
668
+ "regularization/w2": 0.48489466309547424,
669
+ "rewards/chosen": 0.08023344097715436,
670
+ "rewards/margins": 0.06893024071686896,
671
+ "rewards/rejected": 0.011303200260285409,
672
+ "stability/repetition_rate_mean": 0.302734375,
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": 5.001953125,
677
+ "step": 140
678
+ },
679
+ {
680
+ "epoch": 0.7421625079974408,
681
+ "grad_norm": 0.6801520586013794,
682
+ "kl": 0.577669084072113,
683
+ "learning_rate": 9.977698537536417e-07,
684
+ "logits/chosen": -51146073.44578313,
685
+ "logits/rejected": -51662515.53246753,
686
+ "logps/chosen": -329.4719267695783,
687
+ "logps/rejected": -199.15390371347402,
688
+ "loss": 0.9176,
689
+ "loss/base_kto": 0.49409326910972595,
690
+ "metrics/advantage_var": 0.8393446207046509,
691
+ "regularization/grad_norm_sq": 3416.243408203125,
692
+ "regularization/w2": 0.40856075286865234,
693
+ "rewards/chosen": 0.0799884566341538,
694
+ "rewards/margins": 0.046587763137053366,
695
+ "rewards/rejected": 0.03340069349710043,
696
+ "stability/repetition_rate_mean": 0.21016408503055573,
697
+ "stability/response_length_mean": 22.625,
698
+ "stability/response_length_std": 26.359804153442383,
699
+ "stability/response_length_var": 694.8392944335938,
700
+ "stability/token_entropy_mean": 5.66015625,
701
+ "step": 145
702
+ },
703
+ {
704
+ "epoch": 0.7677543186180422,
705
+ "grad_norm": 0.6449370384216309,
706
+ "kl": 0.6454542875289917,
707
+ "learning_rate": 9.972346981963546e-07,
708
+ "logits/chosen": -55421090.63529412,
709
+ "logits/rejected": -50187294.72,
710
+ "logps/chosen": -396.8174632352941,
711
+ "logps/rejected": -207.35263020833332,
712
+ "loss": 0.923,
713
+ "loss/base_kto": 0.4903319776058197,
714
+ "metrics/advantage_var": 1.2783325910568237,
715
+ "regularization/grad_norm_sq": 4074.032470703125,
716
+ "regularization/w2": 0.4475216865539551,
717
+ "rewards/chosen": 0.11169673695283777,
718
+ "rewards/margins": 0.0743670695435767,
719
+ "rewards/rejected": 0.037329667409261066,
720
+ "stability/repetition_rate_mean": 0.23066024482250214,
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.6015625,
725
+ "step": 150
726
+ },
727
+ {
728
+ "epoch": 0.7933461292386437,
729
+ "grad_norm": 0.6441305875778198,
730
+ "kl": 0.6456610560417175,
731
+ "learning_rate": 9.966422223519885e-07,
732
+ "logits/chosen": -54003495.152941175,
733
+ "logits/rejected": -49346880.85333333,
734
+ "logps/chosen": -360.09657628676473,
735
+ "logps/rejected": -191.00634114583335,
736
+ "loss": 0.9163,
737
+ "loss/base_kto": 0.4928789734840393,
738
+ "metrics/advantage_var": 2.1478357315063477,
739
+ "regularization/grad_norm_sq": 4929.31494140625,
740
+ "regularization/w2": 0.46441006660461426,
741
+ "rewards/chosen": 0.08927134345559513,
742
+ "rewards/margins": 0.059344200994454185,
743
+ "rewards/rejected": 0.029927142461140952,
744
+ "stability/repetition_rate_mean": 0.2978527545928955,
745
+ "stability/response_length_mean": 58.125,
746
+ "stability/response_length_std": 10.960155487060547,
747
+ "stability/response_length_var": 120.125,
748
+ "stability/token_entropy_mean": 4.56640625,
749
+ "step": 155
750
+ },
751
+ {
752
+ "epoch": 0.818937939859245,
753
+ "grad_norm": 0.6161492466926575,
754
+ "kl": 0.7202507257461548,
755
+ "learning_rate": 9.959924945200523e-07,
756
+ "logits/chosen": -55241313.52380952,
757
+ "logits/rejected": -48956978.526315786,
758
+ "logps/chosen": -415.5804501488095,
759
+ "logps/rejected": -186.47481496710526,
760
+ "loss": 0.9248,
761
+ "loss/base_kto": 0.48859721422195435,
762
+ "metrics/advantage_var": 1.9541778564453125,
763
+ "regularization/grad_norm_sq": 4000.94580078125,
764
+ "regularization/w2": 0.43814727663993835,
765
+ "rewards/chosen": 0.1314907301039923,
766
+ "rewards/margins": 0.08923867576403129,
767
+ "rewards/rejected": 0.042252054339961,
768
+ "stability/repetition_rate_mean": 0.31046873331069946,
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.3720703125,
773
+ "step": 160
774
+ },
775
+ {
776
+ "epoch": 0.8445297504798465,
777
+ "grad_norm": 0.7250444293022156,
778
+ "kl": 0.7532386779785156,
779
+ "learning_rate": 9.952855895999568e-07,
780
+ "logits/chosen": -54405402.48275862,
781
+ "logits/rejected": -49781749.47945205,
782
+ "logps/chosen": -369.750628591954,
783
+ "logps/rejected": -212.1415881849315,
784
+ "loss": 0.9192,
785
+ "loss/base_kto": 0.49109888076782227,
786
+ "metrics/advantage_var": 1.7532415390014648,
787
+ "regularization/grad_norm_sq": 3549.75244140625,
788
+ "regularization/w2": 0.4151502549648285,
789
+ "rewards/chosen": 0.11661315786427465,
790
+ "rewards/margins": 0.07156126962048184,
791
+ "rewards/rejected": 0.04505188824379281,
792
+ "stability/repetition_rate_mean": 0.22421875596046448,
793
+ "stability/response_length_mean": 19.875,
794
+ "stability/response_length_std": 27.771709442138672,
795
+ "stability/response_length_var": 771.2678833007812,
796
+ "stability/token_entropy_mean": 4.890625,
797
+ "step": 165
798
+ },
799
+ {
800
+ "epoch": 0.8701215611004478,
801
+ "grad_norm": 0.6213644742965698,
802
+ "kl": 0.9238977432250977,
803
+ "learning_rate": 9.9452158908238e-07,
804
+ "logits/chosen": -59125432.80473373,
805
+ "logits/rejected": -52567887.682119206,
806
+ "logps/chosen": -439.6600406804734,
807
+ "logps/rejected": -190.58578228476821,
808
+ "loss": 0.905,
809
+ "loss/base_kto": 0.4874550998210907,
810
+ "metrics/advantage_var": 2.416893720626831,
811
+ "regularization/grad_norm_sq": 3930.178955078125,
812
+ "regularization/w2": 0.4287300109863281,
813
+ "rewards/chosen": 0.16818395309899686,
814
+ "rewards/margins": 0.10098015347862745,
815
+ "rewards/rejected": 0.06720379962036942,
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.67822265625,
821
+ "step": 170
822
+ },
823
+ {
824
+ "epoch": 0.8957133717210493,
825
+ "grad_norm": 0.7216498851776123,
826
+ "kl": 0.9429834485054016,
827
+ "learning_rate": 9.937005810398745e-07,
828
+ "logits/chosen": -56652960.38554217,
829
+ "logits/rejected": -48022956.883116886,
830
+ "logps/chosen": -354.89241340361446,
831
+ "logps/rejected": -194.30808644480518,
832
+ "loss": 0.911,
833
+ "loss/base_kto": 0.48693132400512695,
834
+ "metrics/advantage_var": 4.248536586761475,
835
+ "regularization/grad_norm_sq": 4139.484375,
836
+ "regularization/w2": 0.4321208894252777,
837
+ "rewards/chosen": 0.15448007238916603,
838
+ "rewards/margins": 0.1045362072695292,
839
+ "rewards/rejected": 0.04994386511963683,
840
+ "stability/repetition_rate_mean": 0.1976061761379242,
841
+ "stability/response_length_mean": 30.5,
842
+ "stability/response_length_std": 26.42509651184082,
843
+ "stability/response_length_var": 698.2857055664062,
844
+ "stability/token_entropy_mean": 4.8369140625,
845
+ "step": 175
846
+ },
847
+ {
848
+ "epoch": 0.9213051823416507,
849
+ "grad_norm": 0.6428859233856201,
850
+ "kl": 1.0304526090621948,
851
+ "learning_rate": 9.928226601167138e-07,
852
+ "logits/chosen": -52658986.40490798,
853
+ "logits/rejected": -47980801.63057325,
854
+ "logps/chosen": -374.418615797546,
855
+ "logps/rejected": -210.53871417197453,
856
+ "loss": 0.9028,
857
+ "loss/base_kto": 0.4877626597881317,
858
+ "metrics/advantage_var": 4.026914119720459,
859
+ "regularization/grad_norm_sq": 3664.698974609375,
860
+ "regularization/w2": 0.41559115052223206,
861
+ "rewards/chosen": 0.1727198852351838,
862
+ "rewards/margins": 0.09677210547646317,
863
+ "rewards/rejected": 0.07594777975872063,
864
+ "stability/repetition_rate_mean": 0.25664061307907104,
865
+ "stability/response_length_mean": 34.75,
866
+ "stability/response_length_std": 31.54928207397461,
867
+ "stability/response_length_var": 995.3571166992188,
868
+ "stability/token_entropy_mean": 3.3203125,
869
+ "step": 180
870
+ },
871
+ {
872
+ "epoch": 0.946896992962252,
873
+ "grad_norm": 0.6485155820846558,
874
+ "kl": 1.06327223777771,
875
+ "learning_rate": 9.918879275179817e-07,
876
+ "logits/chosen": -54608421.925925925,
877
+ "logits/rejected": -49521022.37974683,
878
+ "logps/chosen": -310.32325424382714,
879
+ "logps/rejected": -196.57655508306962,
880
+ "loss": 0.9317,
881
+ "loss/base_kto": 0.48661017417907715,
882
+ "metrics/advantage_var": 7.680975437164307,
883
+ "regularization/grad_norm_sq": 7077.32763671875,
884
+ "regularization/w2": 0.47685596346855164,
885
+ "rewards/chosen": 0.16781084037121433,
886
+ "rewards/margins": 0.12155084260498517,
887
+ "rewards/rejected": 0.04625999776622917,
888
+ "stability/repetition_rate_mean": 0.19140625,
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.701171875,
893
+ "step": 185
894
+ },
895
+ {
896
+ "epoch": 0.9724888035828535,
897
+ "grad_norm": 0.6963216662406921,
898
+ "kl": 1.1201375722885132,
899
+ "learning_rate": 9.90896490997906e-07,
900
+ "logits/chosen": -53089470.08383234,
901
+ "logits/rejected": -49691681.46405229,
902
+ "logps/chosen": -390.30389221556885,
903
+ "logps/rejected": -210.46195874183007,
904
+ "loss": 0.9237,
905
+ "loss/base_kto": 0.4832589626312256,
906
+ "metrics/advantage_var": 7.02877950668335,
907
+ "regularization/grad_norm_sq": 5314.27880859375,
908
+ "regularization/w2": 0.4580075442790985,
909
+ "rewards/chosen": 0.2101439972837528,
910
+ "rewards/margins": 0.1364806098605055,
911
+ "rewards/rejected": 0.0736633874232473,
912
+ "stability/repetition_rate_mean": 0.1987847238779068,
913
+ "stability/response_length_mean": 19.125,
914
+ "stability/response_length_std": 28.296579360961914,
915
+ "stability/response_length_var": 800.6964111328125,
916
+ "stability/token_entropy_mean": 4.759765625,
917
+ "step": 190
918
+ },
919
+ {
920
+ "epoch": 0.9980806142034548,
921
+ "grad_norm": 0.6389023065567017,
922
+ "kl": 1.1507009267807007,
923
+ "learning_rate": 9.898484648474362e-07,
924
+ "logits/chosen": -60032350.14193548,
925
+ "logits/rejected": -53812130.90909091,
926
+ "logps/chosen": -390.8807459677419,
927
+ "logps/rejected": -197.07857481060606,
928
+ "loss": 0.9173,
929
+ "loss/base_kto": 0.4865249693393707,
930
+ "metrics/advantage_var": 4.4115118980407715,
931
+ "regularization/grad_norm_sq": 3978.581298828125,
932
+ "regularization/w2": 0.43020516633987427,
933
+ "rewards/chosen": 0.1904176281344506,
934
+ "rewards/margins": 0.10634150966521232,
935
+ "rewards/rejected": 0.08407611846923828,
936
+ "stability/repetition_rate_mean": 0.3856026828289032,
937
+ "stability/response_length_mean": 49.0,
938
+ "stability/response_length_std": 27.82085609436035,
939
+ "stability/response_length_var": 774.0,
940
+ "stability/token_entropy_mean": 5.1796875,
941
+ "step": 195
942
+ }
943
+ ],
944
+ "logging_steps": 5,
945
+ "max_steps": 196,
946
+ "num_input_tokens_seen": 0,
947
+ "num_train_epochs": 1,
948
+ "save_steps": 200,
949
+ "stateful_callbacks": {
950
+ "TrainerControl": {
951
+ "args": {
952
+ "should_epoch_stop": false,
953
+ "should_evaluate": false,
954
+ "should_log": false,
955
+ "should_save": true,
956
+ "should_training_stop": true
957
+ },
958
+ "attributes": {}
959
+ }
960
+ },
961
+ "total_flos": 3.1861866257511875e+18,
962
+ "train_batch_size": 8,
963
+ "trial_name": null,
964
+ "trial_params": null
965
+ }
mistral7b_kto_w2_delta0.005/checkpoint-196/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b00a81f45dd8c085139037c534b1aff270699bd4417624f905a02a36fe627e05
3
+ size 8081
mistral7b_kto_w2_delta0.005/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.005/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.005/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.3662109375, "stability/repetition_rate_mean": 0.3492690920829773, "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.7548828125, "stability/repetition_rate_mean": 0.28515625, "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.42578125, "stability/repetition_rate_mean": 0.2096664160490036, "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.75390625, "stability/repetition_rate_mean": 0.18583066761493683, "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.642578125, "stability/repetition_rate_mean": 0.1583891361951828, "step": 30}
6
+ {"stability/response_length_mean": 50.5, "stability/response_length_std": 25.048524856567383, "stability/response_length_var": 627.4285888671875, "stability/token_entropy_mean": 5.58203125, "stability/repetition_rate_mean": 0.3108258843421936, "step": 35}
7
+ {"stability/response_length_mean": 35.0, "stability/response_length_std": 31.518701553344727, "stability/response_length_var": 993.4285888671875, "stability/token_entropy_mean": 4.89453125, "stability/repetition_rate_mean": 0.16694079339504242, "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.771484375, "stability/repetition_rate_mean": 0.1052611693739891, "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": 3.8212890625, "stability/repetition_rate_mean": 0.3655294179916382, "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.3173828125, "stability/repetition_rate_mean": 0.10418051481246948, "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.646484375, "stability/repetition_rate_mean": 0.22545291483402252, "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.55859375, "stability/repetition_rate_mean": 0.19313038885593414, "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.3388671875, "stability/repetition_rate_mean": 0.111328125, "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.130859375, "stability/repetition_rate_mean": 0.10066105425357819, "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.23828125, "stability/repetition_rate_mean": 0.19088542461395264, "step": 80}
16
+ {"stability/response_length_mean": 32.5, "stability/response_length_std": 33.67915725708008, "stability/response_length_var": 1134.2857666015625, "stability/token_entropy_mean": 4.9375, "stability/repetition_rate_mean": 0.103515625, "step": 85}
17
+ {"stability/response_length_mean": 30.375, "stability/response_length_std": 29.061203002929688, "stability/response_length_var": 844.5535888671875, "stability/token_entropy_mean": 3.72265625, "stability/repetition_rate_mean": 0.3356415629386902, "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.75, "stability/repetition_rate_mean": 0.19374233484268188, "step": 95}
19
+ {"stability/response_length_mean": 41.25, "stability/response_length_std": 31.476749420166016, "stability/response_length_var": 990.7857055664062, "stability/token_entropy_mean": 4.078125, "stability/repetition_rate_mean": 0.228515625, "step": 100}
20
+ {"stability/response_length_mean": 29.0, "stability/response_length_std": 29.89505386352539, "stability/response_length_var": 893.7142944335938, "stability/token_entropy_mean": 3.353515625, "stability/repetition_rate_mean": 0.1877790093421936, "step": 105}
21
+ {"stability/response_length_mean": 28.875, "stability/response_length_std": 29.911476135253906, "stability/response_length_var": 894.6964111328125, "stability/token_entropy_mean": 4.404296875, "stability/repetition_rate_mean": 0.30853456258773804, "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.75, "stability/repetition_rate_mean": 0.2194010466337204, "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.693359375, "stability/repetition_rate_mean": 0.15568576753139496, "step": 120}
24
+ {"stability/response_length_mean": 23.125, "stability/response_length_std": 29.347366333007812, "stability/response_length_var": 861.2678833007812, "stability/token_entropy_mean": 3.353515625, "stability/repetition_rate_mean": 0.19144965708255768, "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.640625, "stability/repetition_rate_mean": 0.24460937082767487, "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.05078125, "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": 5.001953125, "stability/repetition_rate_mean": 0.302734375, "step": 140}
28
+ {"stability/response_length_mean": 22.625, "stability/response_length_std": 26.359804153442383, "stability/response_length_var": 694.8392944335938, "stability/token_entropy_mean": 5.66015625, "stability/repetition_rate_mean": 0.21016408503055573, "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.6015625, "stability/repetition_rate_mean": 0.23066024482250214, "step": 150}
30
+ {"stability/response_length_mean": 58.125, "stability/response_length_std": 10.960155487060547, "stability/response_length_var": 120.125, "stability/token_entropy_mean": 4.56640625, "stability/repetition_rate_mean": 0.2978527545928955, "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.3720703125, "stability/repetition_rate_mean": 0.31046873331069946, "step": 160}
32
+ {"stability/response_length_mean": 19.875, "stability/response_length_std": 27.771709442138672, "stability/response_length_var": 771.2678833007812, "stability/token_entropy_mean": 4.890625, "stability/repetition_rate_mean": 0.22421875596046448, "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.67822265625, "stability/repetition_rate_mean": 0.23209978640079498, "step": 170}
34
+ {"stability/response_length_mean": 30.5, "stability/response_length_std": 26.42509651184082, "stability/response_length_var": 698.2857055664062, "stability/token_entropy_mean": 4.8369140625, "stability/repetition_rate_mean": 0.1976061761379242, "step": 175}
35
+ {"stability/response_length_mean": 34.75, "stability/response_length_std": 31.54928207397461, "stability/response_length_var": 995.3571166992188, "stability/token_entropy_mean": 3.3203125, "stability/repetition_rate_mean": 0.25664061307907104, "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.701171875, "stability/repetition_rate_mean": 0.19140625, "step": 185}
37
+ {"stability/response_length_mean": 19.125, "stability/response_length_std": 28.296579360961914, "stability/response_length_var": 800.6964111328125, "stability/token_entropy_mean": 4.759765625, "stability/repetition_rate_mean": 0.1987847238779068, "step": 190}
38
+ {"stability/response_length_mean": 49.0, "stability/response_length_std": 27.82085609436035, "stability/response_length_var": 774.0, "stability/token_entropy_mean": 5.1796875, "stability/repetition_rate_mean": 0.3856026828289032, "step": 195}
mistral7b_kto_w2_delta0.005/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
mistral7b_kto_w2_delta0.005/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.005/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.005/train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 3.1861866257511875e+18,
4
+ "train_loss": 0.9280117068971906,
5
+ "train_runtime": 4303.5052,
6
+ "train_samples_per_second": 23.237,
7
+ "train_steps_per_second": 0.046
8
+ }
mistral7b_kto_w2_delta0.005/trainer_log.jsonl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 5, "total_steps": 196, "loss": 0.9479, "lr": 4e-08, "epoch": 0.025591810620601407, "percentage": 2.55, "elapsed_time": "0:01:49", "remaining_time": "1:09:25", "rewards/chosen": 0.0006774790388973136, "logps/chosen": -439.03885690789474, "logits/chosen": -59718413.473684214, "rewards/rejected": -0.0012884867333230517, "logps/rejected": -198.42229352678572, "logits/rejected": -50413519.23809524, "rewards/margins": 0.0019659657722203654, "regularization/w2": 0.45370370149612427, "regularization/grad_norm_sq": 4334.98388671875, "kl": 0.008340898901224136}
2
+ {"current_steps": 10, "total_steps": 196, "loss": 0.9286, "lr": 9e-08, "epoch": 0.05118362124120281, "percentage": 5.1, "elapsed_time": "0:03:39", "remaining_time": "1:07:56", "rewards/chosen": 0.0011910808744368614, "logps/chosen": -429.92659293831167, "logits/chosen": -59302692.571428575, "rewards/rejected": 0.0016303154000316758, "logps/rejected": -192.85163309487953, "logits/rejected": -50021761.54216868, "rewards/margins": -0.00043923452559481435, "regularization/w2": 0.4279446601867676, "regularization/grad_norm_sq": 3756.94775390625, "kl": 0.016795814037322998, "stability/response_length_mean": 46.125, "stability/response_length_std": 27.231481552124023, "stability/response_length_var": 741.5535888671875, "stability/token_entropy_mean": 3.3662109375, "stability/repetition_rate_mean": 0.3492690920829773}
3
+ {"current_steps": 15, "total_steps": 196, "loss": 0.9272, "lr": 1.4e-07, "epoch": 0.07677543186180422, "percentage": 7.65, "elapsed_time": "0:05:27", "remaining_time": "1:05:54", "rewards/chosen": 0.0009465837117397424, "logps/chosen": -404.12135416666666, "logits/chosen": -56236609.163636364, "rewards/rejected": 0.0015350009164502543, "logps/rejected": -200.67870463709679, "logits/rejected": -51916776.87741935, "rewards/margins": -0.0005884172047105119, "regularization/w2": 0.44162631034851074, "regularization/grad_norm_sq": 4170.2373046875, "kl": 0.020404411479830742, "stability/response_length_mean": 29.375, "stability/response_length_std": 29.92341423034668, "stability/response_length_var": 895.4107055664062, "stability/token_entropy_mean": 3.7548828125, "stability/repetition_rate_mean": 0.28515625}
4
+ {"current_steps": 20, "total_steps": 196, "loss": 0.9324, "lr": 1.8999999999999998e-07, "epoch": 0.10236724248240563, "percentage": 10.2, "elapsed_time": "0:07:19", "remaining_time": "1:04:23", "rewards/chosen": 0.0034450016915798186, "logps/chosen": -343.6622802734375, "logits/chosen": -51675481.6, "rewards/rejected": 0.004709281772375107, "logps/rejected": -225.616259765625, "logits/rejected": -48057888.0, "rewards/margins": -0.001264280080795288, "regularization/w2": 0.42263123393058777, "regularization/grad_norm_sq": 3680.827392578125, "kl": 0.021697884425520897, "stability/response_length_mean": 44.0, "stability/response_length_std": 28.0611572265625, "stability/response_length_var": 787.4285888671875, "stability/token_entropy_mean": 4.42578125, "stability/repetition_rate_mean": 0.2096664160490036}
5
+ {"current_steps": 25, "total_steps": 196, "loss": 0.9391, "lr": 2.4e-07, "epoch": 0.12795905310300704, "percentage": 12.76, "elapsed_time": "0:09:07", "remaining_time": "1:02:26", "rewards/chosen": 0.0047595426954072095, "logps/chosen": -378.4438577586207, "logits/chosen": -56471566.12413793, "rewards/rejected": 0.004253701482500349, "logps/rejected": -202.7503125, "logits/rejected": -52024934.4, "rewards/margins": 0.0005058412129068605, "regularization/w2": 0.4309103488922119, "regularization/grad_norm_sq": 4002.333984375, "kl": 0.018133217468857765, "stability/response_length_mean": 43.375, "stability/response_length_std": 28.54538917541504, "stability/response_length_var": 814.8392944335938, "stability/token_entropy_mean": 4.75390625, "stability/repetition_rate_mean": 0.18583066761493683}
6
+ {"current_steps": 30, "total_steps": 196, "loss": 0.9337, "lr": 2.9e-07, "epoch": 0.15355086372360843, "percentage": 15.31, "elapsed_time": "0:10:57", "remaining_time": "1:00:35", "rewards/chosen": -0.0017742578615278207, "logps/chosen": -468.5989932885906, "logits/chosen": -57729188.939597316, "rewards/rejected": 0.0039528608322143555, "logps/rejected": -198.2083561769006, "logits/rejected": -51520841.35672515, "rewards/margins": -0.005727118693742176, "regularization/w2": 0.45624828338623047, "regularization/grad_norm_sq": 4491.3251953125, "kl": 0.022612739354372025, "stability/response_length_mean": 43.0, "stability/response_length_std": 29.602123260498047, "stability/response_length_var": 876.2857055664062, "stability/token_entropy_mean": 4.642578125, "stability/repetition_rate_mean": 0.1583891361951828}
7
+ {"current_steps": 35, "total_steps": 196, "loss": 0.938, "lr": 3.4000000000000003e-07, "epoch": 0.17914267434420986, "percentage": 17.86, "elapsed_time": "0:12:46", "remaining_time": "0:58:47", "rewards/chosen": 0.001247800886631012, "logps/chosen": -385.9240506329114, "logits/chosen": -57644589.36708861, "rewards/rejected": 0.0008610994727523239, "logps/rejected": -195.117862654321, "logits/rejected": -53911292.83950617, "rewards/margins": 0.0003867014138786881, "regularization/w2": 0.4280441403388977, "regularization/grad_norm_sq": 3758.585205078125, "kl": 0.02071223594248295, "stability/response_length_mean": 50.5, "stability/response_length_std": 25.048524856567383, "stability/response_length_var": 627.4285888671875, "stability/token_entropy_mean": 5.58203125, "stability/repetition_rate_mean": 0.3108258843421936}
8
+ {"current_steps": 40, "total_steps": 196, "loss": 0.9341, "lr": 3.8999999999999997e-07, "epoch": 0.20473448496481125, "percentage": 20.41, "elapsed_time": "0:14:37", "remaining_time": "0:57:01", "rewards/chosen": 0.0003104138188064098, "logps/chosen": -421.899560546875, "logits/chosen": -56634060.8, "rewards/rejected": 0.004448341205716133, "logps/rejected": -219.2647705078125, "logits/rejected": -50219801.6, "rewards/margins": -0.0041379273869097235, "regularization/w2": 0.4727831482887268, "regularization/grad_norm_sq": 5033.30859375, "kl": 0.02293821983039379, "stability/response_length_mean": 35.0, "stability/response_length_std": 31.518701553344727, "stability/response_length_var": 993.4285888671875, "stability/token_entropy_mean": 4.89453125, "stability/repetition_rate_mean": 0.16694079339504242}
9
+ {"current_steps": 45, "total_steps": 196, "loss": 0.9389, "lr": 4.3999999999999997e-07, "epoch": 0.23032629558541268, "percentage": 22.96, "elapsed_time": "0:16:27", "remaining_time": "0:55:13", "rewards/chosen": 0.0053554469306997, "logps/chosen": -352.2749056208054, "logits/chosen": -52707451.70469799, "rewards/rejected": 0.0031691573516667237, "logps/rejected": -243.8424707602339, "logits/rejected": -50772524.9122807, "rewards/margins": 0.0021862895790329766, "regularization/w2": 0.42452260851860046, "regularization/grad_norm_sq": 3936.931640625, "kl": 0.0444142147898674, "stability/response_length_mean": 28.875, "stability/response_length_std": 29.87324333190918, "stability/response_length_var": 892.4107055664062, "stability/token_entropy_mean": 4.771484375, "stability/repetition_rate_mean": 0.1052611693739891}
10
+ {"current_steps": 50, "total_steps": 196, "loss": 0.9201, "lr": 4.9e-07, "epoch": 0.2559181062060141, "percentage": 25.51, "elapsed_time": "0:18:16", "remaining_time": "0:53:22", "rewards/chosen": 0.005941886629834271, "logps/chosen": -375.1397336409396, "logits/chosen": -54037710.17449664, "rewards/rejected": 0.005253165088898954, "logps/rejected": -180.18807108918128, "logits/rejected": -48296085.70760234, "rewards/margins": 0.0006887215409353172, "regularization/w2": 0.4266422390937805, "regularization/grad_norm_sq": 3871.12744140625, "kl": 0.04537983611226082, "stability/response_length_mean": 53.375, "stability/response_length_std": 21.480472564697266, "stability/response_length_var": 461.41070556640625, "stability/token_entropy_mean": 3.8212890625, "stability/repetition_rate_mean": 0.3655294179916382}
11
+ {"current_steps": 55, "total_steps": 196, "loss": 0.9291, "lr": 5.4e-07, "epoch": 0.28150991682661547, "percentage": 28.06, "elapsed_time": "0:20:05", "remaining_time": "0:51:31", "rewards/chosen": 0.0024627199084121987, "logps/chosen": -344.48738354037266, "logits/chosen": -56953277.217391305, "rewards/rejected": 0.006040624477578409, "logps/rejected": -230.3876523191824, "logits/rejected": -49571939.82389937, "rewards/margins": -0.00357790456916621, "regularization/w2": 0.43878814578056335, "regularization/grad_norm_sq": 3976.169921875, "kl": 0.05794268846511841, "stability/response_length_mean": 22.375, "stability/response_length_std": 30.236862182617188, "stability/response_length_var": 914.2678833007812, "stability/token_entropy_mean": 4.3173828125, "stability/repetition_rate_mean": 0.10418051481246948}
12
+ {"current_steps": 60, "total_steps": 196, "loss": 0.933, "lr": 5.9e-07, "epoch": 0.30710172744721687, "percentage": 30.61, "elapsed_time": "0:21:56", "remaining_time": "0:49:44", "rewards/chosen": 0.010837621399850556, "logps/chosen": -359.6124053030303, "logits/chosen": -52678345.696969695, "rewards/rejected": 0.004823949260096396, "logps/rejected": -178.17867943548387, "logits/rejected": -47821840.51612903, "rewards/margins": 0.00601367213975416, "regularization/w2": 0.3937515616416931, "regularization/grad_norm_sq": 3165.790283203125, "kl": 0.05679145082831383, "stability/response_length_mean": 44.625, "stability/response_length_std": 27.8820858001709, "stability/response_length_var": 777.4107055664062, "stability/token_entropy_mean": 4.646484375, "stability/repetition_rate_mean": 0.22545291483402252}
13
+ {"current_steps": 65, "total_steps": 196, "loss": 0.939, "lr": 6.4e-07, "epoch": 0.3326935380678183, "percentage": 33.16, "elapsed_time": "0:23:47", "remaining_time": "0:47:56", "rewards/chosen": 0.008308312200730847, "logps/chosen": -381.86370967741937, "logits/chosen": -57563182.24516129, "rewards/rejected": 0.006429539304791075, "logps/rejected": -183.5180516098485, "logits/rejected": -47268345.7939394, "rewards/margins": 0.001878772895939772, "regularization/w2": 0.4315285384654999, "regularization/grad_norm_sq": 3868.786865234375, "kl": 0.06266746670007706, "stability/response_length_mean": 20.625, "stability/response_length_std": 27.176342010498047, "stability/response_length_var": 738.5535888671875, "stability/token_entropy_mean": 5.55859375, "stability/repetition_rate_mean": 0.19313038885593414}
14
+ {"current_steps": 70, "total_steps": 196, "loss": 0.9497, "lr": 6.9e-07, "epoch": 0.3582853486884197, "percentage": 35.71, "elapsed_time": "0:25:36", "remaining_time": "0:46:04", "rewards/chosen": 0.01309710318042386, "logps/chosen": -378.9974798387097, "logits/chosen": -52753698.68387097, "rewards/rejected": 0.007028058803442753, "logps/rejected": -220.35189393939393, "logits/rejected": -49023162.18181818, "rewards/margins": 0.006069044376981108, "regularization/w2": 0.45682960748672485, "regularization/grad_norm_sq": 4483.40087890625, "kl": 0.08709845691919327, "stability/response_length_mean": 33.875, "stability/response_length_std": 32.36151885986328, "stability/response_length_var": 1047.267822265625, "stability/token_entropy_mean": 5.3388671875, "stability/repetition_rate_mean": 0.111328125}
15
+ {"current_steps": 75, "total_steps": 196, "loss": 0.9402, "lr": 7.4e-07, "epoch": 0.3838771593090211, "percentage": 38.27, "elapsed_time": "0:27:26", "remaining_time": "0:44:16", "rewards/chosen": 0.013092591955855087, "logps/chosen": -314.13988597972974, "logits/chosen": -49498509.83783784, "rewards/rejected": 0.009581702393154765, "logps/rejected": -228.78901707848837, "logits/rejected": -47885377.488372095, "rewards/margins": 0.0035108895627003218, "regularization/w2": 0.42404261231422424, "regularization/grad_norm_sq": 3736.681396484375, "kl": 0.09017860144376755, "stability/response_length_mean": 22.75, "stability/response_length_std": 31.07479476928711, "stability/response_length_var": 965.6428833007812, "stability/token_entropy_mean": 2.130859375, "stability/repetition_rate_mean": 0.10066105425357819}
16
+ {"current_steps": 80, "total_steps": 196, "loss": 0.9316, "lr": 7.9e-07, "epoch": 0.4094689699296225, "percentage": 40.82, "elapsed_time": "0:29:17", "remaining_time": "0:42:28", "rewards/chosen": 0.0159459240389186, "logps/chosen": -403.87065397350995, "logits/chosen": -58626637.98675497, "rewards/rejected": 0.00917972968174861, "logps/rejected": -200.96398853550295, "logits/rejected": -53447752.71005917, "rewards/margins": 0.006766194357169991, "regularization/w2": 0.42037779092788696, "regularization/grad_norm_sq": 3624.650390625, "kl": 0.13238738477230072, "stability/response_length_mean": 42.0, "stability/response_length_std": 30.481843948364258, "stability/response_length_var": 929.1428833007812, "stability/token_entropy_mean": 5.23828125, "stability/repetition_rate_mean": 0.19088542461395264}
17
+ {"current_steps": 85, "total_steps": 196, "loss": 0.9311, "lr": 8.399999999999999e-07, "epoch": 0.4350607805502239, "percentage": 43.37, "elapsed_time": "0:31:07", "remaining_time": "0:40:38", "rewards/chosen": 0.01977017310357863, "logps/chosen": -358.13480342741934, "logits/chosen": -51478686.55483871, "rewards/rejected": 0.008150509631994998, "logps/rejected": -230.34330018939394, "logits/rejected": -47141816.63030303, "rewards/margins": 0.011619663471583632, "regularization/w2": 0.43580102920532227, "regularization/grad_norm_sq": 3923.891357421875, "kl": 0.12365061044692993, "stability/response_length_mean": 32.5, "stability/response_length_std": 33.67915725708008, "stability/response_length_var": 1134.2857666015625, "stability/token_entropy_mean": 4.9375, "stability/repetition_rate_mean": 0.103515625}
18
+ {"current_steps": 90, "total_steps": 196, "loss": 0.9286, "lr": 8.9e-07, "epoch": 0.46065259117082535, "percentage": 45.92, "elapsed_time": "0:32:58", "remaining_time": "0:38:50", "rewards/chosen": 0.022810822878128443, "logps/chosen": -380.5612980769231, "logits/chosen": -58412438.974358976, "rewards/rejected": 0.009435738005289218, "logps/rejected": -187.1324433117378, "logits/rejected": -50588893.65853658, "rewards/margins": 0.013375084872839225, "regularization/w2": 0.43326812982559204, "regularization/grad_norm_sq": 3925.050048828125, "kl": 0.16665403544902802, "stability/response_length_mean": 30.375, "stability/response_length_std": 29.061203002929688, "stability/response_length_var": 844.5535888671875, "stability/token_entropy_mean": 3.72265625, "stability/repetition_rate_mean": 0.3356415629386902}
19
+ {"current_steps": 95, "total_steps": 196, "loss": 0.9271, "lr": 9.399999999999999e-07, "epoch": 0.48624440179142675, "percentage": 48.47, "elapsed_time": "0:34:48", "remaining_time": "0:37:00", "rewards/chosen": 0.021952728681926485, "logps/chosen": -314.77383306962025, "logits/chosen": -50379520.0, "rewards/rejected": 0.009519148020096768, "logps/rejected": -207.04853877314815, "logits/rejected": -48967028.938271604, "rewards/margins": 0.012433580661829717, "regularization/w2": 0.42039623856544495, "regularization/grad_norm_sq": 3692.677490234375, "kl": 0.15967555344104767, "stability/response_length_mean": 27.0, "stability/response_length_std": 31.1264705657959, "stability/response_length_var": 968.8571166992188, "stability/token_entropy_mean": 3.75, "stability/repetition_rate_mean": 0.19374233484268188}
20
+ {"current_steps": 100, "total_steps": 196, "loss": 0.9328, "lr": 9.9e-07, "epoch": 0.5118362124120281, "percentage": 51.02, "elapsed_time": "0:36:38", "remaining_time": "0:35:10", "rewards/chosen": 0.03042653444651011, "logps/chosen": -359.5659311655405, "logits/chosen": -54698091.24324324, "rewards/rejected": 0.018583308818728425, "logps/rejected": -216.3930323401163, "logits/rejected": -50908255.255813956, "rewards/margins": 0.011843225627781683, "regularization/w2": 0.42957553267478943, "regularization/grad_norm_sq": 3865.565673828125, "kl": 0.1950296312570572, "stability/response_length_mean": 41.25, "stability/response_length_std": 31.476749420166016, "stability/response_length_var": 990.7857055664062, "stability/token_entropy_mean": 4.078125, "stability/repetition_rate_mean": 0.228515625}
21
+ {"current_steps": 105, "total_steps": 196, "loss": 0.9365, "lr": 9.999815554351224e-07, "epoch": 0.5374280230326296, "percentage": 53.57, "elapsed_time": "0:38:28", "remaining_time": "0:33:20", "rewards/chosen": 0.04099334004413651, "logps/chosen": -399.4925169427711, "logits/chosen": -59378317.87951807, "rewards/rejected": 0.016021623239888774, "logps/rejected": -209.84361049107142, "logits/rejected": -53788419.32467532, "rewards/margins": 0.024971716804247736, "regularization/w2": 0.4382788836956024, "regularization/grad_norm_sq": 3994.716064453125, "kl": 0.21558904647827148, "stability/response_length_mean": 29.0, "stability/response_length_std": 29.89505386352539, "stability/response_length_var": 893.7142944335938, "stability/token_entropy_mean": 3.353515625, "stability/repetition_rate_mean": 0.1877790093421936}
22
+ {"current_steps": 110, "total_steps": 196, "loss": 0.9259, "lr": 9.999066267225444e-07, "epoch": 0.5630198336532309, "percentage": 56.12, "elapsed_time": "0:40:19", "remaining_time": "0:31:31", "rewards/chosen": 0.0344322733132236, "logps/chosen": -378.218938253012, "logits/chosen": -57391930.60240964, "rewards/rejected": 0.020619178747201896, "logps/rejected": -205.88195008116884, "logits/rejected": -53613953.66233766, "rewards/margins": 0.013813094566021703, "regularization/w2": 0.42161688208580017, "regularization/grad_norm_sq": 3637.52197265625, "kl": 0.26441773772239685, "stability/response_length_mean": 28.875, "stability/response_length_std": 29.911476135253906, "stability/response_length_var": 894.6964111328125, "stability/token_entropy_mean": 4.404296875, "stability/repetition_rate_mean": 0.30853456258773804}
23
+ {"current_steps": 115, "total_steps": 196, "loss": 0.9207, "lr": 9.997740697079592e-07, "epoch": 0.5886116442738324, "percentage": 58.67, "elapsed_time": "0:42:11", "remaining_time": "0:29:42", "rewards/chosen": 0.04908096337620216, "logps/chosen": -364.10173556170884, "logits/chosen": -60598233.11392405, "rewards/rejected": 0.022169822528038497, "logps/rejected": -200.97486255787038, "logits/rejected": -53416372.14814815, "rewards/margins": 0.02691114084816366, "regularization/w2": 0.4012783169746399, "regularization/grad_norm_sq": 3352.978271484375, "kl": 0.3085666298866272, "stability/response_length_mean": 49.25, "stability/response_length_std": 27.316923141479492, "stability/response_length_var": 746.2142944335938, "stability/token_entropy_mean": 4.75, "stability/repetition_rate_mean": 0.2194010466337204}
24
+ {"current_steps": 120, "total_steps": 196, "loss": 0.936, "lr": 9.995838996722914e-07, "epoch": 0.6142034548944337, "percentage": 61.22, "elapsed_time": "0:43:59", "remaining_time": "0:27:51", "rewards/chosen": 0.05132290896247415, "logps/chosen": -383.7316687091503, "logits/chosen": -57739732.49673203, "rewards/rejected": 0.027908859138717195, "logps/rejected": -211.93726609281438, "logits/rejected": -54352828.5508982, "rewards/margins": 0.023414049823756954, "regularization/w2": 0.4518660008907318, "regularization/grad_norm_sq": 4454.72216796875, "kl": 0.3443666994571686, "stability/response_length_mean": 27.625, "stability/response_length_std": 30.486238479614258, "stability/response_length_var": 929.4107055664062, "stability/token_entropy_mean": 4.693359375, "stability/repetition_rate_mean": 0.15568576753139496}
25
+ {"current_steps": 125, "total_steps": 196, "loss": 0.9231, "lr": 9.993361385379874e-07, "epoch": 0.6397952655150352, "percentage": 63.78, "elapsed_time": "0:45:50", "remaining_time": "0:26:02", "rewards/chosen": 0.05853001058918156, "logps/chosen": -416.79403895547944, "logits/chosen": -60667195.61643836, "rewards/rejected": 0.028942058826314992, "logps/rejected": -216.0777658045977, "logits/rejected": -55641405.79310345, "rewards/margins": 0.029587951762866566, "regularization/w2": 0.4254666864871979, "regularization/grad_norm_sq": 3774.068115234375, "kl": 0.3985693156719208, "stability/response_length_mean": 23.125, "stability/response_length_std": 29.347366333007812, "stability/response_length_var": 861.2678833007812, "stability/token_entropy_mean": 3.353515625, "stability/repetition_rate_mean": 0.19144965708255768}
26
+ {"current_steps": 130, "total_steps": 196, "loss": 0.9394, "lr": 9.99030814866488e-07, "epoch": 0.6653870761356366, "percentage": 66.33, "elapsed_time": "0:47:40", "remaining_time": "0:24:12", "rewards/chosen": 0.06672527559341923, "logps/chosen": -391.9906754032258, "logits/chosen": -57375400.464516126, "rewards/rejected": 0.026918549971147017, "logps/rejected": -183.6497159090909, "logits/rejected": -53823680.38787879, "rewards/margins": 0.039806725622272214, "regularization/w2": 0.42766115069389343, "regularization/grad_norm_sq": 3780.29150390625, "kl": 0.45674076676368713, "stability/response_length_mean": 43.25, "stability/response_length_std": 29.620214462280273, "stability/response_length_var": 877.3571166992188, "stability/token_entropy_mean": 3.640625, "stability/repetition_rate_mean": 0.24460937082767487}
27
+ {"current_steps": 135, "total_steps": 196, "loss": 0.9147, "lr": 9.986679638549358e-07, "epoch": 0.690978886756238, "percentage": 68.88, "elapsed_time": "0:49:29", "remaining_time": "0:22:21", "rewards/chosen": 0.0830619554578161, "logps/chosen": -400.98552530674846, "logits/chosen": -59843408.09815951, "rewards/rejected": 0.035854473235500846, "logps/rejected": -247.51219148089172, "logits/rejected": -55000846.67515924, "rewards/margins": 0.04720748222231525, "regularization/w2": 0.4519772231578827, "regularization/grad_norm_sq": 4315.08056640625, "kl": 0.5136879086494446, "stability/response_length_mean": 29.25, "stability/response_length_std": 29.936838150024414, "stability/response_length_var": 896.2142944335938, "stability/token_entropy_mean": 4.05078125, "stability/repetition_rate_mean": 0.2230902761220932}
28
+ {"current_steps": 140, "total_steps": 196, "loss": 0.93, "lr": 9.982476273321175e-07, "epoch": 0.7165706973768394, "percentage": 71.43, "elapsed_time": "0:51:19", "remaining_time": "0:20:31", "rewards/chosen": 0.08023344097715436, "logps/chosen": -366.3874053030303, "logits/chosen": -57076500.16969697, "rewards/rejected": 0.011303200260285409, "logps/rejected": -189.92144657258063, "logits/rejected": -50077570.477419354, "rewards/margins": 0.06893024071686896, "regularization/w2": 0.48489466309547424, "regularization/grad_norm_sq": 5980.30029296875, "kl": 0.4908495843410492, "stability/response_length_mean": 56.25, "stability/response_length_std": 21.920310974121094, "stability/response_length_var": 480.5, "stability/token_entropy_mean": 5.001953125, "stability/repetition_rate_mean": 0.302734375}
29
+ {"current_steps": 145, "total_steps": 196, "loss": 0.9176, "lr": 9.977698537536417e-07, "epoch": 0.7421625079974408, "percentage": 73.98, "elapsed_time": "0:53:08", "remaining_time": "0:18:41", "rewards/chosen": 0.0799884566341538, "logps/chosen": -329.4719267695783, "logits/chosen": -51146073.44578313, "rewards/rejected": 0.03340069349710043, "logps/rejected": -199.15390371347402, "logits/rejected": -51662515.53246753, "rewards/margins": 0.046587763137053366, "regularization/w2": 0.40856075286865234, "regularization/grad_norm_sq": 3416.243408203125, "kl": 0.577669084072113, "stability/response_length_mean": 22.625, "stability/response_length_std": 26.359804153442383, "stability/response_length_var": 694.8392944335938, "stability/token_entropy_mean": 5.66015625, "stability/repetition_rate_mean": 0.21016408503055573}
30
+ {"current_steps": 150, "total_steps": 196, "loss": 0.923, "lr": 9.972346981963546e-07, "epoch": 0.7677543186180422, "percentage": 76.53, "elapsed_time": "0:54:58", "remaining_time": "0:16:51", "rewards/chosen": 0.11169673695283777, "logps/chosen": -396.8174632352941, "logits/chosen": -55421090.63529412, "rewards/rejected": 0.037329667409261066, "logps/rejected": -207.35263020833332, "logits/rejected": -50187294.72, "rewards/margins": 0.0743670695435767, "regularization/w2": 0.4475216865539551, "regularization/grad_norm_sq": 4074.032470703125, "kl": 0.6454542875289917, "stability/response_length_mean": 29.375, "stability/response_length_std": 29.193626403808594, "stability/response_length_var": 852.2678833007812, "stability/token_entropy_mean": 4.6015625, "stability/repetition_rate_mean": 0.23066024482250214}
31
+ {"current_steps": 155, "total_steps": 196, "loss": 0.9163, "lr": 9.966422223519885e-07, "epoch": 0.7933461292386437, "percentage": 79.08, "elapsed_time": "0:56:49", "remaining_time": "0:15:01", "rewards/chosen": 0.08927134345559513, "logps/chosen": -360.09657628676473, "logits/chosen": -54003495.152941175, "rewards/rejected": 0.029927142461140952, "logps/rejected": -191.00634114583335, "logits/rejected": -49346880.85333333, "rewards/margins": 0.059344200994454185, "regularization/w2": 0.46441006660461426, "regularization/grad_norm_sq": 4929.31494140625, "kl": 0.6456610560417175, "stability/response_length_mean": 58.125, "stability/response_length_std": 10.960155487060547, "stability/response_length_var": 120.125, "stability/token_entropy_mean": 4.56640625, "stability/repetition_rate_mean": 0.2978527545928955}
32
+ {"current_steps": 160, "total_steps": 196, "loss": 0.9248, "lr": 9.959924945200523e-07, "epoch": 0.818937939859245, "percentage": 81.63, "elapsed_time": "0:58:39", "remaining_time": "0:13:11", "rewards/chosen": 0.1314907301039923, "logps/chosen": -415.5804501488095, "logits/chosen": -55241313.52380952, "rewards/rejected": 0.042252054339961, "logps/rejected": -186.47481496710526, "logits/rejected": -48956978.526315786, "rewards/margins": 0.08923867576403129, "regularization/w2": 0.43814727663993835, "regularization/grad_norm_sq": 4000.94580078125, "kl": 0.7202507257461548, "stability/response_length_mean": 32.5, "stability/response_length_std": 30.528675079345703, "stability/response_length_var": 932.0, "stability/token_entropy_mean": 4.3720703125, "stability/repetition_rate_mean": 0.31046873331069946}
33
+ {"current_steps": 165, "total_steps": 196, "loss": 0.9192, "lr": 9.952855895999568e-07, "epoch": 0.8445297504798465, "percentage": 84.18, "elapsed_time": "1:00:29", "remaining_time": "0:11:21", "rewards/chosen": 0.11661315786427465, "logps/chosen": -369.750628591954, "logits/chosen": -54405402.48275862, "rewards/rejected": 0.04505188824379281, "logps/rejected": -212.1415881849315, "logits/rejected": -49781749.47945205, "rewards/margins": 0.07156126962048184, "regularization/w2": 0.4151502549648285, "regularization/grad_norm_sq": 3549.75244140625, "kl": 0.7532386779785156, "stability/response_length_mean": 19.875, "stability/response_length_std": 27.771709442138672, "stability/response_length_var": 771.2678833007812, "stability/token_entropy_mean": 4.890625, "stability/repetition_rate_mean": 0.22421875596046448}
34
+ {"current_steps": 170, "total_steps": 196, "loss": 0.905, "lr": 9.9452158908238e-07, "epoch": 0.8701215611004478, "percentage": 86.73, "elapsed_time": "1:02:20", "remaining_time": "0:09:32", "rewards/chosen": 0.16818395309899686, "logps/chosen": -439.6600406804734, "logits/chosen": -59125432.80473373, "rewards/rejected": 0.06720379962036942, "logps/rejected": -190.58578228476821, "logits/rejected": -52567887.682119206, "rewards/margins": 0.10098015347862745, "regularization/w2": 0.4287300109863281, "regularization/grad_norm_sq": 3930.178955078125, "kl": 0.9238977432250977, "stability/response_length_mean": 36.25, "stability/response_length_std": 30.76988410949707, "stability/response_length_var": 946.7857055664062, "stability/token_entropy_mean": 3.67822265625, "stability/repetition_rate_mean": 0.23209978640079498}
35
+ {"current_steps": 175, "total_steps": 196, "loss": 0.911, "lr": 9.937005810398745e-07, "epoch": 0.8957133717210493, "percentage": 89.29, "elapsed_time": "1:04:10", "remaining_time": "0:07:42", "rewards/chosen": 0.15448007238916603, "logps/chosen": -354.89241340361446, "logits/chosen": -56652960.38554217, "rewards/rejected": 0.04994386511963683, "logps/rejected": -194.30808644480518, "logits/rejected": -48022956.883116886, "rewards/margins": 0.1045362072695292, "regularization/w2": 0.4321208894252777, "regularization/grad_norm_sq": 4139.484375, "kl": 0.9429834485054016, "stability/response_length_mean": 30.5, "stability/response_length_std": 26.42509651184082, "stability/response_length_var": 698.2857055664062, "stability/token_entropy_mean": 4.8369140625, "stability/repetition_rate_mean": 0.1976061761379242}
36
+ {"current_steps": 180, "total_steps": 196, "loss": 0.9028, "lr": 9.928226601167138e-07, "epoch": 0.9213051823416507, "percentage": 91.84, "elapsed_time": "1:06:00", "remaining_time": "0:05:52", "rewards/chosen": 0.1727198852351838, "logps/chosen": -374.418615797546, "logits/chosen": -52658986.40490798, "rewards/rejected": 0.07594777975872063, "logps/rejected": -210.53871417197453, "logits/rejected": -47980801.63057325, "rewards/margins": 0.09677210547646317, "regularization/w2": 0.41559115052223206, "regularization/grad_norm_sq": 3664.698974609375, "kl": 1.0304526090621948, "stability/response_length_mean": 34.75, "stability/response_length_std": 31.54928207397461, "stability/response_length_var": 995.3571166992188, "stability/token_entropy_mean": 3.3203125, "stability/repetition_rate_mean": 0.25664061307907104}
37
+ {"current_steps": 185, "total_steps": 196, "loss": 0.9317, "lr": 9.918879275179817e-07, "epoch": 0.946896992962252, "percentage": 94.39, "elapsed_time": "1:07:49", "remaining_time": "0:04:01", "rewards/chosen": 0.16781084037121433, "logps/chosen": -310.32325424382714, "logits/chosen": -54608421.925925925, "rewards/rejected": 0.04625999776622917, "logps/rejected": -196.57655508306962, "logits/rejected": -49521022.37974683, "rewards/margins": 0.12155084260498517, "regularization/w2": 0.47685596346855164, "regularization/grad_norm_sq": 7077.32763671875, "kl": 1.06327223777771, "stability/response_length_mean": 32.875, "stability/response_length_std": 33.30996322631836, "stability/response_length_var": 1109.5535888671875, "stability/token_entropy_mean": 3.701171875, "stability/repetition_rate_mean": 0.19140625}
38
+ {"current_steps": 190, "total_steps": 196, "loss": 0.9237, "lr": 9.90896490997906e-07, "epoch": 0.9724888035828535, "percentage": 96.94, "elapsed_time": "1:09:38", "remaining_time": "0:02:11", "rewards/chosen": 0.2101439972837528, "logps/chosen": -390.30389221556885, "logits/chosen": -53089470.08383234, "rewards/rejected": 0.0736633874232473, "logps/rejected": -210.46195874183007, "logits/rejected": -49691681.46405229, "rewards/margins": 0.1364806098605055, "regularization/w2": 0.4580075442790985, "regularization/grad_norm_sq": 5314.27880859375, "kl": 1.1201375722885132, "stability/response_length_mean": 19.125, "stability/response_length_std": 28.296579360961914, "stability/response_length_var": 800.6964111328125, "stability/token_entropy_mean": 4.759765625, "stability/repetition_rate_mean": 0.1987847238779068}
39
+ {"current_steps": 195, "total_steps": 196, "loss": 0.9173, "lr": 9.898484648474362e-07, "epoch": 0.9980806142034548, "percentage": 99.49, "elapsed_time": "1:11:27", "remaining_time": "0:00:21", "rewards/chosen": 0.1904176281344506, "logps/chosen": -390.8807459677419, "logits/chosen": -60032350.14193548, "rewards/rejected": 0.08407611846923828, "logps/rejected": -197.07857481060606, "logits/rejected": -53812130.90909091, "rewards/margins": 0.10634150966521232, "regularization/w2": 0.43020516633987427, "regularization/grad_norm_sq": 3978.581298828125, "kl": 1.1507009267807007, "stability/response_length_mean": 49.0, "stability/response_length_std": 27.82085609436035, "stability/response_length_var": 774.0, "stability/token_entropy_mean": 5.1796875, "stability/repetition_rate_mean": 0.3856026828289032}
40
+ {"current_steps": 196, "total_steps": 196, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "1:11:43", "remaining_time": "0:00:00"}
mistral7b_kto_w2_delta0.005/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.577160120010376,
15
+ "kl": 0.008340898901224136,
16
+ "learning_rate": 4e-08,
17
+ "logits/chosen": -59718413.473684214,
18
+ "logits/rejected": -50413519.23809524,
19
+ "logps/chosen": -439.03885690789474,
20
+ "logps/rejected": -198.42229352678572,
21
+ "loss": 0.9479,
22
+ "loss/base_kto": 0.4997499883174896,
23
+ "metrics/advantage_var": 0.052478689700365067,
24
+ "regularization/grad_norm_sq": 4334.98388671875,
25
+ "regularization/w2": 0.45370370149612427,
26
+ "rewards/chosen": 0.0006774790388973136,
27
+ "rewards/margins": 0.0019659657722203654,
28
+ "rewards/rejected": -0.0012884867333230517,
29
+ "step": 5
30
+ },
31
+ {
32
+ "epoch": 0.05118362124120281,
33
+ "grad_norm": 0.611538290977478,
34
+ "kl": 0.016795814037322998,
35
+ "learning_rate": 9e-08,
36
+ "logits/chosen": -59302692.571428575,
37
+ "logits/rejected": -50021761.54216868,
38
+ "logps/chosen": -429.92659293831167,
39
+ "logps/rejected": -192.85163309487953,
40
+ "loss": 0.9286,
41
+ "loss/base_kto": 0.5000812411308289,
42
+ "metrics/advantage_var": 0.0676804929971695,
43
+ "regularization/grad_norm_sq": 3756.94775390625,
44
+ "regularization/w2": 0.4279446601867676,
45
+ "rewards/chosen": 0.0011910808744368614,
46
+ "rewards/margins": -0.00043923452559481435,
47
+ "rewards/rejected": 0.0016303154000316758,
48
+ "stability/repetition_rate_mean": 0.3492690920829773,
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.3662109375,
53
+ "step": 10
54
+ },
55
+ {
56
+ "epoch": 0.07677543186180422,
57
+ "grad_norm": 0.6086092591285706,
58
+ "kl": 0.020404411479830742,
59
+ "learning_rate": 1.4e-07,
60
+ "logits/chosen": -56236609.163636364,
61
+ "logits/rejected": -51916776.87741935,
62
+ "logps/chosen": -404.12135416666666,
63
+ "logps/rejected": -200.67870463709679,
64
+ "loss": 0.9272,
65
+ "loss/base_kto": 0.49999886751174927,
66
+ "metrics/advantage_var": 0.05835923179984093,
67
+ "regularization/grad_norm_sq": 4170.2373046875,
68
+ "regularization/w2": 0.44162631034851074,
69
+ "rewards/chosen": 0.0009465837117397424,
70
+ "rewards/margins": -0.0005884172047105119,
71
+ "rewards/rejected": 0.0015350009164502543,
72
+ "stability/repetition_rate_mean": 0.28515625,
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.7548828125,
77
+ "step": 15
78
+ },
79
+ {
80
+ "epoch": 0.10236724248240563,
81
+ "grad_norm": 0.6190893650054932,
82
+ "kl": 0.021697884425520897,
83
+ "learning_rate": 1.8999999999999998e-07,
84
+ "logits/chosen": -51675481.6,
85
+ "logits/rejected": -48057888.0,
86
+ "logps/chosen": -343.6622802734375,
87
+ "logps/rejected": -225.616259765625,
88
+ "loss": 0.9324,
89
+ "loss/base_kto": 0.5001762509346008,
90
+ "metrics/advantage_var": 0.06153888627886772,
91
+ "regularization/grad_norm_sq": 3680.827392578125,
92
+ "regularization/w2": 0.42263123393058777,
93
+ "rewards/chosen": 0.0034450016915798186,
94
+ "rewards/margins": -0.001264280080795288,
95
+ "rewards/rejected": 0.004709281772375107,
96
+ "stability/repetition_rate_mean": 0.2096664160490036,
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.42578125,
101
+ "step": 20
102
+ },
103
+ {
104
+ "epoch": 0.12795905310300704,
105
+ "grad_norm": 0.5808376669883728,
106
+ "kl": 0.018133217468857765,
107
+ "learning_rate": 2.4e-07,
108
+ "logits/chosen": -56471566.12413793,
109
+ "logits/rejected": -52024934.4,
110
+ "logps/chosen": -378.4438577586207,
111
+ "logps/rejected": -202.7503125,
112
+ "loss": 0.9391,
113
+ "loss/base_kto": 0.49999186396598816,
114
+ "metrics/advantage_var": 0.06101418659090996,
115
+ "regularization/grad_norm_sq": 4002.333984375,
116
+ "regularization/w2": 0.4309103488922119,
117
+ "rewards/chosen": 0.0047595426954072095,
118
+ "rewards/margins": 0.0005058412129068605,
119
+ "rewards/rejected": 0.004253701482500349,
120
+ "stability/repetition_rate_mean": 0.18583066761493683,
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.75390625,
125
+ "step": 25
126
+ },
127
+ {
128
+ "epoch": 0.15355086372360843,
129
+ "grad_norm": 0.6033640503883362,
130
+ "kl": 0.022612739354372025,
131
+ "learning_rate": 2.9e-07,
132
+ "logits/chosen": -57729188.939597316,
133
+ "logits/rejected": -51520841.35672515,
134
+ "logps/chosen": -468.5989932885906,
135
+ "logps/rejected": -198.2083561769006,
136
+ "loss": 0.9337,
137
+ "loss/base_kto": 0.5006771683692932,
138
+ "metrics/advantage_var": 0.09293336421251297,
139
+ "regularization/grad_norm_sq": 4491.3251953125,
140
+ "regularization/w2": 0.45624828338623047,
141
+ "rewards/chosen": -0.0017742578615278207,
142
+ "rewards/margins": -0.005727118693742176,
143
+ "rewards/rejected": 0.0039528608322143555,
144
+ "stability/repetition_rate_mean": 0.1583891361951828,
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.642578125,
149
+ "step": 30
150
+ },
151
+ {
152
+ "epoch": 0.17914267434420986,
153
+ "grad_norm": 0.6803989410400391,
154
+ "kl": 0.02071223594248295,
155
+ "learning_rate": 3.4000000000000003e-07,
156
+ "logits/chosen": -57644589.36708861,
157
+ "logits/rejected": -53911292.83950617,
158
+ "logps/chosen": -385.9240506329114,
159
+ "logps/rejected": -195.117862654321,
160
+ "loss": 0.938,
161
+ "loss/base_kto": 0.4999936521053314,
162
+ "metrics/advantage_var": 0.07669314742088318,
163
+ "regularization/grad_norm_sq": 3758.585205078125,
164
+ "regularization/w2": 0.4280441403388977,
165
+ "rewards/chosen": 0.001247800886631012,
166
+ "rewards/margins": 0.0003867014138786881,
167
+ "rewards/rejected": 0.0008610994727523239,
168
+ "stability/repetition_rate_mean": 0.3108258843421936,
169
+ "stability/response_length_mean": 50.5,
170
+ "stability/response_length_std": 25.048524856567383,
171
+ "stability/response_length_var": 627.4285888671875,
172
+ "stability/token_entropy_mean": 5.58203125,
173
+ "step": 35
174
+ },
175
+ {
176
+ "epoch": 0.20473448496481125,
177
+ "grad_norm": 0.5847389698028564,
178
+ "kl": 0.02293821983039379,
179
+ "learning_rate": 3.8999999999999997e-07,
180
+ "logits/chosen": -56634060.8,
181
+ "logits/rejected": -50219801.6,
182
+ "logps/chosen": -421.899560546875,
183
+ "logps/rejected": -219.2647705078125,
184
+ "loss": 0.9341,
185
+ "loss/base_kto": 0.5005573630332947,
186
+ "metrics/advantage_var": 0.06820251047611237,
187
+ "regularization/grad_norm_sq": 5033.30859375,
188
+ "regularization/w2": 0.4727831482887268,
189
+ "rewards/chosen": 0.0003104138188064098,
190
+ "rewards/margins": -0.0041379273869097235,
191
+ "rewards/rejected": 0.004448341205716133,
192
+ "stability/repetition_rate_mean": 0.16694079339504242,
193
+ "stability/response_length_mean": 35.0,
194
+ "stability/response_length_std": 31.518701553344727,
195
+ "stability/response_length_var": 993.4285888671875,
196
+ "stability/token_entropy_mean": 4.89453125,
197
+ "step": 40
198
+ },
199
+ {
200
+ "epoch": 0.23032629558541268,
201
+ "grad_norm": 0.6400073766708374,
202
+ "kl": 0.0444142147898674,
203
+ "learning_rate": 4.3999999999999997e-07,
204
+ "logits/chosen": -52707451.70469799,
205
+ "logits/rejected": -50772524.9122807,
206
+ "logps/chosen": -352.2749056208054,
207
+ "logps/rejected": -243.8424707602339,
208
+ "loss": 0.9389,
209
+ "loss/base_kto": 0.4996757507324219,
210
+ "metrics/advantage_var": 0.06386065483093262,
211
+ "regularization/grad_norm_sq": 3936.931640625,
212
+ "regularization/w2": 0.42452260851860046,
213
+ "rewards/chosen": 0.0053554469306997,
214
+ "rewards/margins": 0.0021862895790329766,
215
+ "rewards/rejected": 0.0031691573516667237,
216
+ "stability/repetition_rate_mean": 0.1052611693739891,
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.771484375,
221
+ "step": 45
222
+ },
223
+ {
224
+ "epoch": 0.2559181062060141,
225
+ "grad_norm": 0.5788847208023071,
226
+ "kl": 0.04537983611226082,
227
+ "learning_rate": 4.9e-07,
228
+ "logits/chosen": -54037710.17449664,
229
+ "logits/rejected": -48296085.70760234,
230
+ "logps/chosen": -375.1397336409396,
231
+ "logps/rejected": -180.18807108918128,
232
+ "loss": 0.9201,
233
+ "loss/base_kto": 0.49983420968055725,
234
+ "metrics/advantage_var": 0.052370816469192505,
235
+ "regularization/grad_norm_sq": 3871.12744140625,
236
+ "regularization/w2": 0.4266422390937805,
237
+ "rewards/chosen": 0.005941886629834271,
238
+ "rewards/margins": 0.0006887215409353172,
239
+ "rewards/rejected": 0.005253165088898954,
240
+ "stability/repetition_rate_mean": 0.3655294179916382,
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": 3.8212890625,
245
+ "step": 50
246
+ },
247
+ {
248
+ "epoch": 0.28150991682661547,
249
+ "grad_norm": 0.6621019244194031,
250
+ "kl": 0.05794268846511841,
251
+ "learning_rate": 5.4e-07,
252
+ "logits/chosen": -56953277.217391305,
253
+ "logits/rejected": -49571939.82389937,
254
+ "logps/chosen": -344.48738354037266,
255
+ "logps/rejected": -230.3876523191824,
256
+ "loss": 0.9291,
257
+ "loss/base_kto": 0.5004059076309204,
258
+ "metrics/advantage_var": 0.05569034814834595,
259
+ "regularization/grad_norm_sq": 3976.169921875,
260
+ "regularization/w2": 0.43878814578056335,
261
+ "rewards/chosen": 0.0024627199084121987,
262
+ "rewards/margins": -0.00357790456916621,
263
+ "rewards/rejected": 0.006040624477578409,
264
+ "stability/repetition_rate_mean": 0.10418051481246948,
265
+ "stability/response_length_mean": 22.375,
266
+ "stability/response_length_std": 30.236862182617188,
267
+ "stability/response_length_var": 914.2678833007812,
268
+ "stability/token_entropy_mean": 4.3173828125,
269
+ "step": 55
270
+ },
271
+ {
272
+ "epoch": 0.30710172744721687,
273
+ "grad_norm": 0.5812336206436157,
274
+ "kl": 0.05679145082831383,
275
+ "learning_rate": 5.9e-07,
276
+ "logits/chosen": -52678345.696969695,
277
+ "logits/rejected": -47821840.51612903,
278
+ "logps/chosen": -359.6124053030303,
279
+ "logps/rejected": -178.17867943548387,
280
+ "loss": 0.933,
281
+ "loss/base_kto": 0.4992280900478363,
282
+ "metrics/advantage_var": 0.057238996028900146,
283
+ "regularization/grad_norm_sq": 3165.790283203125,
284
+ "regularization/w2": 0.3937515616416931,
285
+ "rewards/chosen": 0.010837621399850556,
286
+ "rewards/margins": 0.00601367213975416,
287
+ "rewards/rejected": 0.004823949260096396,
288
+ "stability/repetition_rate_mean": 0.22545291483402252,
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.646484375,
293
+ "step": 60
294
+ },
295
+ {
296
+ "epoch": 0.3326935380678183,
297
+ "grad_norm": 0.5738043785095215,
298
+ "kl": 0.06266746670007706,
299
+ "learning_rate": 6.4e-07,
300
+ "logits/chosen": -57563182.24516129,
301
+ "logits/rejected": -47268345.7939394,
302
+ "logps/chosen": -381.86370967741937,
303
+ "logps/rejected": -183.5180516098485,
304
+ "loss": 0.939,
305
+ "loss/base_kto": 0.4997069537639618,
306
+ "metrics/advantage_var": 0.07446863502264023,
307
+ "regularization/grad_norm_sq": 3868.786865234375,
308
+ "regularization/w2": 0.4315285384654999,
309
+ "rewards/chosen": 0.008308312200730847,
310
+ "rewards/margins": 0.001878772895939772,
311
+ "rewards/rejected": 0.006429539304791075,
312
+ "stability/repetition_rate_mean": 0.19313038885593414,
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.55859375,
317
+ "step": 65
318
+ },
319
+ {
320
+ "epoch": 0.3582853486884197,
321
+ "grad_norm": 0.5531291365623474,
322
+ "kl": 0.08709845691919327,
323
+ "learning_rate": 6.9e-07,
324
+ "logits/chosen": -52753698.68387097,
325
+ "logits/rejected": -49023162.18181818,
326
+ "logps/chosen": -378.9974798387097,
327
+ "logps/rejected": -220.35189393939393,
328
+ "loss": 0.9497,
329
+ "loss/base_kto": 0.49925193190574646,
330
+ "metrics/advantage_var": 0.08100283890962601,
331
+ "regularization/grad_norm_sq": 4483.40087890625,
332
+ "regularization/w2": 0.45682960748672485,
333
+ "rewards/chosen": 0.01309710318042386,
334
+ "rewards/margins": 0.006069044376981108,
335
+ "rewards/rejected": 0.007028058803442753,
336
+ "stability/repetition_rate_mean": 0.111328125,
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.3388671875,
341
+ "step": 70
342
+ },
343
+ {
344
+ "epoch": 0.3838771593090211,
345
+ "grad_norm": 0.611277163028717,
346
+ "kl": 0.09017860144376755,
347
+ "learning_rate": 7.4e-07,
348
+ "logits/chosen": -49498509.83783784,
349
+ "logits/rejected": -47885377.488372095,
350
+ "logps/chosen": -314.13988597972974,
351
+ "logps/rejected": -228.78901707848837,
352
+ "loss": 0.9402,
353
+ "loss/base_kto": 0.49950870871543884,
354
+ "metrics/advantage_var": 0.06859137862920761,
355
+ "regularization/grad_norm_sq": 3736.681396484375,
356
+ "regularization/w2": 0.42404261231422424,
357
+ "rewards/chosen": 0.013092591955855087,
358
+ "rewards/margins": 0.0035108895627003218,
359
+ "rewards/rejected": 0.009581702393154765,
360
+ "stability/repetition_rate_mean": 0.10066105425357819,
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.130859375,
365
+ "step": 75
366
+ },
367
+ {
368
+ "epoch": 0.4094689699296225,
369
+ "grad_norm": 0.6037386655807495,
370
+ "kl": 0.13238738477230072,
371
+ "learning_rate": 7.9e-07,
372
+ "logits/chosen": -58626637.98675497,
373
+ "logits/rejected": -53447752.71005917,
374
+ "logps/chosen": -403.87065397350995,
375
+ "logps/rejected": -200.96398853550295,
376
+ "loss": 0.9316,
377
+ "loss/base_kto": 0.4992172420024872,
378
+ "metrics/advantage_var": 0.07778961956501007,
379
+ "regularization/grad_norm_sq": 3624.650390625,
380
+ "regularization/w2": 0.42037779092788696,
381
+ "rewards/chosen": 0.0159459240389186,
382
+ "rewards/margins": 0.006766194357169991,
383
+ "rewards/rejected": 0.00917972968174861,
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.23828125,
389
+ "step": 80
390
+ },
391
+ {
392
+ "epoch": 0.4350607805502239,
393
+ "grad_norm": 0.6116781234741211,
394
+ "kl": 0.12365061044692993,
395
+ "learning_rate": 8.399999999999999e-07,
396
+ "logits/chosen": -51478686.55483871,
397
+ "logits/rejected": -47141816.63030303,
398
+ "logps/chosen": -358.13480342741934,
399
+ "logps/rejected": -230.34330018939394,
400
+ "loss": 0.9311,
401
+ "loss/base_kto": 0.4985641539096832,
402
+ "metrics/advantage_var": 0.10404322296380997,
403
+ "regularization/grad_norm_sq": 3923.891357421875,
404
+ "regularization/w2": 0.43580102920532227,
405
+ "rewards/chosen": 0.01977017310357863,
406
+ "rewards/margins": 0.011619663471583632,
407
+ "rewards/rejected": 0.008150509631994998,
408
+ "stability/repetition_rate_mean": 0.103515625,
409
+ "stability/response_length_mean": 32.5,
410
+ "stability/response_length_std": 33.67915725708008,
411
+ "stability/response_length_var": 1134.2857666015625,
412
+ "stability/token_entropy_mean": 4.9375,
413
+ "step": 85
414
+ },
415
+ {
416
+ "epoch": 0.46065259117082535,
417
+ "grad_norm": 0.6381218433380127,
418
+ "kl": 0.16665403544902802,
419
+ "learning_rate": 8.9e-07,
420
+ "logits/chosen": -58412438.974358976,
421
+ "logits/rejected": -50588893.65853658,
422
+ "logps/chosen": -380.5612980769231,
423
+ "logps/rejected": -187.1324433117378,
424
+ "loss": 0.9286,
425
+ "loss/base_kto": 0.4982132017612457,
426
+ "metrics/advantage_var": 0.08798178285360336,
427
+ "regularization/grad_norm_sq": 3925.050048828125,
428
+ "regularization/w2": 0.43326812982559204,
429
+ "rewards/chosen": 0.022810822878128443,
430
+ "rewards/margins": 0.013375084872839225,
431
+ "rewards/rejected": 0.009435738005289218,
432
+ "stability/repetition_rate_mean": 0.3356415629386902,
433
+ "stability/response_length_mean": 30.375,
434
+ "stability/response_length_std": 29.061203002929688,
435
+ "stability/response_length_var": 844.5535888671875,
436
+ "stability/token_entropy_mean": 3.72265625,
437
+ "step": 90
438
+ },
439
+ {
440
+ "epoch": 0.48624440179142675,
441
+ "grad_norm": 0.6163039803504944,
442
+ "kl": 0.15967555344104767,
443
+ "learning_rate": 9.399999999999999e-07,
444
+ "logits/chosen": -50379520.0,
445
+ "logits/rejected": -48967028.938271604,
446
+ "logps/chosen": -314.77383306962025,
447
+ "logps/rejected": -207.04853877314815,
448
+ "loss": 0.9271,
449
+ "loss/base_kto": 0.4984891414642334,
450
+ "metrics/advantage_var": 0.1260511875152588,
451
+ "regularization/grad_norm_sq": 3692.677490234375,
452
+ "regularization/w2": 0.42039623856544495,
453
+ "rewards/chosen": 0.021952728681926485,
454
+ "rewards/margins": 0.012433580661829717,
455
+ "rewards/rejected": 0.009519148020096768,
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.75,
461
+ "step": 95
462
+ },
463
+ {
464
+ "epoch": 0.5118362124120281,
465
+ "grad_norm": 0.6088441014289856,
466
+ "kl": 0.1950296312570572,
467
+ "learning_rate": 9.9e-07,
468
+ "logits/chosen": -54698091.24324324,
469
+ "logits/rejected": -50908255.255813956,
470
+ "logps/chosen": -359.5659311655405,
471
+ "logps/rejected": -216.3930323401163,
472
+ "loss": 0.9328,
473
+ "loss/base_kto": 0.49854350090026855,
474
+ "metrics/advantage_var": 0.13550297915935516,
475
+ "regularization/grad_norm_sq": 3865.565673828125,
476
+ "regularization/w2": 0.42957553267478943,
477
+ "rewards/chosen": 0.03042653444651011,
478
+ "rewards/margins": 0.011843225627781683,
479
+ "rewards/rejected": 0.018583308818728425,
480
+ "stability/repetition_rate_mean": 0.228515625,
481
+ "stability/response_length_mean": 41.25,
482
+ "stability/response_length_std": 31.476749420166016,
483
+ "stability/response_length_var": 990.7857055664062,
484
+ "stability/token_entropy_mean": 4.078125,
485
+ "step": 100
486
+ },
487
+ {
488
+ "epoch": 0.5374280230326296,
489
+ "grad_norm": 0.6745646595954895,
490
+ "kl": 0.21558904647827148,
491
+ "learning_rate": 9.999815554351224e-07,
492
+ "logits/chosen": -59378317.87951807,
493
+ "logits/rejected": -53788419.32467532,
494
+ "logps/chosen": -399.4925169427711,
495
+ "logps/rejected": -209.84361049107142,
496
+ "loss": 0.9365,
497
+ "loss/base_kto": 0.49687233567237854,
498
+ "metrics/advantage_var": 0.2065424919128418,
499
+ "regularization/grad_norm_sq": 3994.716064453125,
500
+ "regularization/w2": 0.4382788836956024,
501
+ "rewards/chosen": 0.04099334004413651,
502
+ "rewards/margins": 0.024971716804247736,
503
+ "rewards/rejected": 0.016021623239888774,
504
+ "stability/repetition_rate_mean": 0.1877790093421936,
505
+ "stability/response_length_mean": 29.0,
506
+ "stability/response_length_std": 29.89505386352539,
507
+ "stability/response_length_var": 893.7142944335938,
508
+ "stability/token_entropy_mean": 3.353515625,
509
+ "step": 105
510
+ },
511
+ {
512
+ "epoch": 0.5630198336532309,
513
+ "grad_norm": 0.6502033472061157,
514
+ "kl": 0.26441773772239685,
515
+ "learning_rate": 9.999066267225444e-07,
516
+ "logits/chosen": -57391930.60240964,
517
+ "logits/rejected": -53613953.66233766,
518
+ "logps/chosen": -378.218938253012,
519
+ "logps/rejected": -205.88195008116884,
520
+ "loss": 0.9259,
521
+ "loss/base_kto": 0.49810346961021423,
522
+ "metrics/advantage_var": 0.21781854331493378,
523
+ "regularization/grad_norm_sq": 3637.52197265625,
524
+ "regularization/w2": 0.42161688208580017,
525
+ "rewards/chosen": 0.0344322733132236,
526
+ "rewards/margins": 0.013813094566021703,
527
+ "rewards/rejected": 0.020619178747201896,
528
+ "stability/repetition_rate_mean": 0.30853456258773804,
529
+ "stability/response_length_mean": 28.875,
530
+ "stability/response_length_std": 29.911476135253906,
531
+ "stability/response_length_var": 894.6964111328125,
532
+ "stability/token_entropy_mean": 4.404296875,
533
+ "step": 110
534
+ },
535
+ {
536
+ "epoch": 0.5886116442738324,
537
+ "grad_norm": 0.6496742367744446,
538
+ "kl": 0.3085666298866272,
539
+ "learning_rate": 9.997740697079592e-07,
540
+ "logits/chosen": -60598233.11392405,
541
+ "logits/rejected": -53416372.14814815,
542
+ "logps/chosen": -364.10173556170884,
543
+ "logps/rejected": -200.97486255787038,
544
+ "loss": 0.9207,
545
+ "loss/base_kto": 0.4965952932834625,
546
+ "metrics/advantage_var": 0.25335976481437683,
547
+ "regularization/grad_norm_sq": 3352.978271484375,
548
+ "regularization/w2": 0.4012783169746399,
549
+ "rewards/chosen": 0.04908096337620216,
550
+ "rewards/margins": 0.02691114084816366,
551
+ "rewards/rejected": 0.022169822528038497,
552
+ "stability/repetition_rate_mean": 0.2194010466337204,
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.75,
557
+ "step": 115
558
+ },
559
+ {
560
+ "epoch": 0.6142034548944337,
561
+ "grad_norm": 0.6193932294845581,
562
+ "kl": 0.3443666994571686,
563
+ "learning_rate": 9.995838996722914e-07,
564
+ "logits/chosen": -57739732.49673203,
565
+ "logits/rejected": -54352828.5508982,
566
+ "logps/chosen": -383.7316687091503,
567
+ "logps/rejected": -211.93726609281438,
568
+ "loss": 0.936,
569
+ "loss/base_kto": 0.49703770875930786,
570
+ "metrics/advantage_var": 0.3692956864833832,
571
+ "regularization/grad_norm_sq": 4454.72216796875,
572
+ "regularization/w2": 0.4518660008907318,
573
+ "rewards/chosen": 0.05132290896247415,
574
+ "rewards/margins": 0.023414049823756954,
575
+ "rewards/rejected": 0.027908859138717195,
576
+ "stability/repetition_rate_mean": 0.15568576753139496,
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.693359375,
581
+ "step": 120
582
+ },
583
+ {
584
+ "epoch": 0.6397952655150352,
585
+ "grad_norm": 0.6110739707946777,
586
+ "kl": 0.3985693156719208,
587
+ "learning_rate": 9.993361385379874e-07,
588
+ "logits/chosen": -60667195.61643836,
589
+ "logits/rejected": -55641405.79310345,
590
+ "logps/chosen": -416.79403895547944,
591
+ "logps/rejected": -216.0777658045977,
592
+ "loss": 0.9231,
593
+ "loss/base_kto": 0.49641838669776917,
594
+ "metrics/advantage_var": 0.559248149394989,
595
+ "regularization/grad_norm_sq": 3774.068115234375,
596
+ "regularization/w2": 0.4254666864871979,
597
+ "rewards/chosen": 0.05853001058918156,
598
+ "rewards/margins": 0.029587951762866566,
599
+ "rewards/rejected": 0.028942058826314992,
600
+ "stability/repetition_rate_mean": 0.19144965708255768,
601
+ "stability/response_length_mean": 23.125,
602
+ "stability/response_length_std": 29.347366333007812,
603
+ "stability/response_length_var": 861.2678833007812,
604
+ "stability/token_entropy_mean": 3.353515625,
605
+ "step": 125
606
+ },
607
+ {
608
+ "epoch": 0.6653870761356366,
609
+ "grad_norm": 0.5931130051612854,
610
+ "kl": 0.45674076676368713,
611
+ "learning_rate": 9.99030814866488e-07,
612
+ "logits/chosen": -57375400.464516126,
613
+ "logits/rejected": -53823680.38787879,
614
+ "logps/chosen": -391.9906754032258,
615
+ "logps/rejected": -183.6497159090909,
616
+ "loss": 0.9394,
617
+ "loss/base_kto": 0.49498748779296875,
618
+ "metrics/advantage_var": 0.7409353256225586,
619
+ "regularization/grad_norm_sq": 3780.29150390625,
620
+ "regularization/w2": 0.42766115069389343,
621
+ "rewards/chosen": 0.06672527559341923,
622
+ "rewards/margins": 0.039806725622272214,
623
+ "rewards/rejected": 0.026918549971147017,
624
+ "stability/repetition_rate_mean": 0.24460937082767487,
625
+ "stability/response_length_mean": 43.25,
626
+ "stability/response_length_std": 29.620214462280273,
627
+ "stability/response_length_var": 877.3571166992188,
628
+ "stability/token_entropy_mean": 3.640625,
629
+ "step": 130
630
+ },
631
+ {
632
+ "epoch": 0.690978886756238,
633
+ "grad_norm": 0.5910015106201172,
634
+ "kl": 0.5136879086494446,
635
+ "learning_rate": 9.986679638549358e-07,
636
+ "logits/chosen": -59843408.09815951,
637
+ "logits/rejected": -55000846.67515924,
638
+ "logps/chosen": -400.98552530674846,
639
+ "logps/rejected": -247.51219148089172,
640
+ "loss": 0.9147,
641
+ "loss/base_kto": 0.49399566650390625,
642
+ "metrics/advantage_var": 0.9681418538093567,
643
+ "regularization/grad_norm_sq": 4315.08056640625,
644
+ "regularization/w2": 0.4519772231578827,
645
+ "rewards/chosen": 0.0830619554578161,
646
+ "rewards/margins": 0.04720748222231525,
647
+ "rewards/rejected": 0.035854473235500846,
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.05078125,
653
+ "step": 135
654
+ },
655
+ {
656
+ "epoch": 0.7165706973768394,
657
+ "grad_norm": 0.7235668301582336,
658
+ "kl": 0.4908495843410492,
659
+ "learning_rate": 9.982476273321175e-07,
660
+ "logits/chosen": -57076500.16969697,
661
+ "logits/rejected": -50077570.477419354,
662
+ "logps/chosen": -366.3874053030303,
663
+ "logps/rejected": -189.92144657258063,
664
+ "loss": 0.93,
665
+ "loss/base_kto": 0.49192824959754944,
666
+ "metrics/advantage_var": 1.9476429224014282,
667
+ "regularization/grad_norm_sq": 5980.30029296875,
668
+ "regularization/w2": 0.48489466309547424,
669
+ "rewards/chosen": 0.08023344097715436,
670
+ "rewards/margins": 0.06893024071686896,
671
+ "rewards/rejected": 0.011303200260285409,
672
+ "stability/repetition_rate_mean": 0.302734375,
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": 5.001953125,
677
+ "step": 140
678
+ },
679
+ {
680
+ "epoch": 0.7421625079974408,
681
+ "grad_norm": 0.6801520586013794,
682
+ "kl": 0.577669084072113,
683
+ "learning_rate": 9.977698537536417e-07,
684
+ "logits/chosen": -51146073.44578313,
685
+ "logits/rejected": -51662515.53246753,
686
+ "logps/chosen": -329.4719267695783,
687
+ "logps/rejected": -199.15390371347402,
688
+ "loss": 0.9176,
689
+ "loss/base_kto": 0.49409326910972595,
690
+ "metrics/advantage_var": 0.8393446207046509,
691
+ "regularization/grad_norm_sq": 3416.243408203125,
692
+ "regularization/w2": 0.40856075286865234,
693
+ "rewards/chosen": 0.0799884566341538,
694
+ "rewards/margins": 0.046587763137053366,
695
+ "rewards/rejected": 0.03340069349710043,
696
+ "stability/repetition_rate_mean": 0.21016408503055573,
697
+ "stability/response_length_mean": 22.625,
698
+ "stability/response_length_std": 26.359804153442383,
699
+ "stability/response_length_var": 694.8392944335938,
700
+ "stability/token_entropy_mean": 5.66015625,
701
+ "step": 145
702
+ },
703
+ {
704
+ "epoch": 0.7677543186180422,
705
+ "grad_norm": 0.6449370384216309,
706
+ "kl": 0.6454542875289917,
707
+ "learning_rate": 9.972346981963546e-07,
708
+ "logits/chosen": -55421090.63529412,
709
+ "logits/rejected": -50187294.72,
710
+ "logps/chosen": -396.8174632352941,
711
+ "logps/rejected": -207.35263020833332,
712
+ "loss": 0.923,
713
+ "loss/base_kto": 0.4903319776058197,
714
+ "metrics/advantage_var": 1.2783325910568237,
715
+ "regularization/grad_norm_sq": 4074.032470703125,
716
+ "regularization/w2": 0.4475216865539551,
717
+ "rewards/chosen": 0.11169673695283777,
718
+ "rewards/margins": 0.0743670695435767,
719
+ "rewards/rejected": 0.037329667409261066,
720
+ "stability/repetition_rate_mean": 0.23066024482250214,
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.6015625,
725
+ "step": 150
726
+ },
727
+ {
728
+ "epoch": 0.7933461292386437,
729
+ "grad_norm": 0.6441305875778198,
730
+ "kl": 0.6456610560417175,
731
+ "learning_rate": 9.966422223519885e-07,
732
+ "logits/chosen": -54003495.152941175,
733
+ "logits/rejected": -49346880.85333333,
734
+ "logps/chosen": -360.09657628676473,
735
+ "logps/rejected": -191.00634114583335,
736
+ "loss": 0.9163,
737
+ "loss/base_kto": 0.4928789734840393,
738
+ "metrics/advantage_var": 2.1478357315063477,
739
+ "regularization/grad_norm_sq": 4929.31494140625,
740
+ "regularization/w2": 0.46441006660461426,
741
+ "rewards/chosen": 0.08927134345559513,
742
+ "rewards/margins": 0.059344200994454185,
743
+ "rewards/rejected": 0.029927142461140952,
744
+ "stability/repetition_rate_mean": 0.2978527545928955,
745
+ "stability/response_length_mean": 58.125,
746
+ "stability/response_length_std": 10.960155487060547,
747
+ "stability/response_length_var": 120.125,
748
+ "stability/token_entropy_mean": 4.56640625,
749
+ "step": 155
750
+ },
751
+ {
752
+ "epoch": 0.818937939859245,
753
+ "grad_norm": 0.6161492466926575,
754
+ "kl": 0.7202507257461548,
755
+ "learning_rate": 9.959924945200523e-07,
756
+ "logits/chosen": -55241313.52380952,
757
+ "logits/rejected": -48956978.526315786,
758
+ "logps/chosen": -415.5804501488095,
759
+ "logps/rejected": -186.47481496710526,
760
+ "loss": 0.9248,
761
+ "loss/base_kto": 0.48859721422195435,
762
+ "metrics/advantage_var": 1.9541778564453125,
763
+ "regularization/grad_norm_sq": 4000.94580078125,
764
+ "regularization/w2": 0.43814727663993835,
765
+ "rewards/chosen": 0.1314907301039923,
766
+ "rewards/margins": 0.08923867576403129,
767
+ "rewards/rejected": 0.042252054339961,
768
+ "stability/repetition_rate_mean": 0.31046873331069946,
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.3720703125,
773
+ "step": 160
774
+ },
775
+ {
776
+ "epoch": 0.8445297504798465,
777
+ "grad_norm": 0.7250444293022156,
778
+ "kl": 0.7532386779785156,
779
+ "learning_rate": 9.952855895999568e-07,
780
+ "logits/chosen": -54405402.48275862,
781
+ "logits/rejected": -49781749.47945205,
782
+ "logps/chosen": -369.750628591954,
783
+ "logps/rejected": -212.1415881849315,
784
+ "loss": 0.9192,
785
+ "loss/base_kto": 0.49109888076782227,
786
+ "metrics/advantage_var": 1.7532415390014648,
787
+ "regularization/grad_norm_sq": 3549.75244140625,
788
+ "regularization/w2": 0.4151502549648285,
789
+ "rewards/chosen": 0.11661315786427465,
790
+ "rewards/margins": 0.07156126962048184,
791
+ "rewards/rejected": 0.04505188824379281,
792
+ "stability/repetition_rate_mean": 0.22421875596046448,
793
+ "stability/response_length_mean": 19.875,
794
+ "stability/response_length_std": 27.771709442138672,
795
+ "stability/response_length_var": 771.2678833007812,
796
+ "stability/token_entropy_mean": 4.890625,
797
+ "step": 165
798
+ },
799
+ {
800
+ "epoch": 0.8701215611004478,
801
+ "grad_norm": 0.6213644742965698,
802
+ "kl": 0.9238977432250977,
803
+ "learning_rate": 9.9452158908238e-07,
804
+ "logits/chosen": -59125432.80473373,
805
+ "logits/rejected": -52567887.682119206,
806
+ "logps/chosen": -439.6600406804734,
807
+ "logps/rejected": -190.58578228476821,
808
+ "loss": 0.905,
809
+ "loss/base_kto": 0.4874550998210907,
810
+ "metrics/advantage_var": 2.416893720626831,
811
+ "regularization/grad_norm_sq": 3930.178955078125,
812
+ "regularization/w2": 0.4287300109863281,
813
+ "rewards/chosen": 0.16818395309899686,
814
+ "rewards/margins": 0.10098015347862745,
815
+ "rewards/rejected": 0.06720379962036942,
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.67822265625,
821
+ "step": 170
822
+ },
823
+ {
824
+ "epoch": 0.8957133717210493,
825
+ "grad_norm": 0.7216498851776123,
826
+ "kl": 0.9429834485054016,
827
+ "learning_rate": 9.937005810398745e-07,
828
+ "logits/chosen": -56652960.38554217,
829
+ "logits/rejected": -48022956.883116886,
830
+ "logps/chosen": -354.89241340361446,
831
+ "logps/rejected": -194.30808644480518,
832
+ "loss": 0.911,
833
+ "loss/base_kto": 0.48693132400512695,
834
+ "metrics/advantage_var": 4.248536586761475,
835
+ "regularization/grad_norm_sq": 4139.484375,
836
+ "regularization/w2": 0.4321208894252777,
837
+ "rewards/chosen": 0.15448007238916603,
838
+ "rewards/margins": 0.1045362072695292,
839
+ "rewards/rejected": 0.04994386511963683,
840
+ "stability/repetition_rate_mean": 0.1976061761379242,
841
+ "stability/response_length_mean": 30.5,
842
+ "stability/response_length_std": 26.42509651184082,
843
+ "stability/response_length_var": 698.2857055664062,
844
+ "stability/token_entropy_mean": 4.8369140625,
845
+ "step": 175
846
+ },
847
+ {
848
+ "epoch": 0.9213051823416507,
849
+ "grad_norm": 0.6428859233856201,
850
+ "kl": 1.0304526090621948,
851
+ "learning_rate": 9.928226601167138e-07,
852
+ "logits/chosen": -52658986.40490798,
853
+ "logits/rejected": -47980801.63057325,
854
+ "logps/chosen": -374.418615797546,
855
+ "logps/rejected": -210.53871417197453,
856
+ "loss": 0.9028,
857
+ "loss/base_kto": 0.4877626597881317,
858
+ "metrics/advantage_var": 4.026914119720459,
859
+ "regularization/grad_norm_sq": 3664.698974609375,
860
+ "regularization/w2": 0.41559115052223206,
861
+ "rewards/chosen": 0.1727198852351838,
862
+ "rewards/margins": 0.09677210547646317,
863
+ "rewards/rejected": 0.07594777975872063,
864
+ "stability/repetition_rate_mean": 0.25664061307907104,
865
+ "stability/response_length_mean": 34.75,
866
+ "stability/response_length_std": 31.54928207397461,
867
+ "stability/response_length_var": 995.3571166992188,
868
+ "stability/token_entropy_mean": 3.3203125,
869
+ "step": 180
870
+ },
871
+ {
872
+ "epoch": 0.946896992962252,
873
+ "grad_norm": 0.6485155820846558,
874
+ "kl": 1.06327223777771,
875
+ "learning_rate": 9.918879275179817e-07,
876
+ "logits/chosen": -54608421.925925925,
877
+ "logits/rejected": -49521022.37974683,
878
+ "logps/chosen": -310.32325424382714,
879
+ "logps/rejected": -196.57655508306962,
880
+ "loss": 0.9317,
881
+ "loss/base_kto": 0.48661017417907715,
882
+ "metrics/advantage_var": 7.680975437164307,
883
+ "regularization/grad_norm_sq": 7077.32763671875,
884
+ "regularization/w2": 0.47685596346855164,
885
+ "rewards/chosen": 0.16781084037121433,
886
+ "rewards/margins": 0.12155084260498517,
887
+ "rewards/rejected": 0.04625999776622917,
888
+ "stability/repetition_rate_mean": 0.19140625,
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.701171875,
893
+ "step": 185
894
+ },
895
+ {
896
+ "epoch": 0.9724888035828535,
897
+ "grad_norm": 0.6963216662406921,
898
+ "kl": 1.1201375722885132,
899
+ "learning_rate": 9.90896490997906e-07,
900
+ "logits/chosen": -53089470.08383234,
901
+ "logits/rejected": -49691681.46405229,
902
+ "logps/chosen": -390.30389221556885,
903
+ "logps/rejected": -210.46195874183007,
904
+ "loss": 0.9237,
905
+ "loss/base_kto": 0.4832589626312256,
906
+ "metrics/advantage_var": 7.02877950668335,
907
+ "regularization/grad_norm_sq": 5314.27880859375,
908
+ "regularization/w2": 0.4580075442790985,
909
+ "rewards/chosen": 0.2101439972837528,
910
+ "rewards/margins": 0.1364806098605055,
911
+ "rewards/rejected": 0.0736633874232473,
912
+ "stability/repetition_rate_mean": 0.1987847238779068,
913
+ "stability/response_length_mean": 19.125,
914
+ "stability/response_length_std": 28.296579360961914,
915
+ "stability/response_length_var": 800.6964111328125,
916
+ "stability/token_entropy_mean": 4.759765625,
917
+ "step": 190
918
+ },
919
+ {
920
+ "epoch": 0.9980806142034548,
921
+ "grad_norm": 0.6389023065567017,
922
+ "kl": 1.1507009267807007,
923
+ "learning_rate": 9.898484648474362e-07,
924
+ "logits/chosen": -60032350.14193548,
925
+ "logits/rejected": -53812130.90909091,
926
+ "logps/chosen": -390.8807459677419,
927
+ "logps/rejected": -197.07857481060606,
928
+ "loss": 0.9173,
929
+ "loss/base_kto": 0.4865249693393707,
930
+ "metrics/advantage_var": 4.4115118980407715,
931
+ "regularization/grad_norm_sq": 3978.581298828125,
932
+ "regularization/w2": 0.43020516633987427,
933
+ "rewards/chosen": 0.1904176281344506,
934
+ "rewards/margins": 0.10634150966521232,
935
+ "rewards/rejected": 0.08407611846923828,
936
+ "stability/repetition_rate_mean": 0.3856026828289032,
937
+ "stability/response_length_mean": 49.0,
938
+ "stability/response_length_std": 27.82085609436035,
939
+ "stability/response_length_var": 774.0,
940
+ "stability/token_entropy_mean": 5.1796875,
941
+ "step": 195
942
+ },
943
+ {
944
+ "epoch": 1.0,
945
+ "step": 196,
946
+ "total_flos": 3.1861866257511875e+18,
947
+ "train_loss": 0.9280117068971906,
948
+ "train_runtime": 4303.5052,
949
+ "train_samples_per_second": 23.237,
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.005/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b00a81f45dd8c085139037c534b1aff270699bd4417624f905a02a36fe627e05
3
+ size 8081
mistral7b_kto_w2_delta0.005/training_loss.png ADDED
mistral7b_kto_w2_delta0.005/training_loss_base_kto.png ADDED
mistral7b_kto_w2_delta0.005/training_rewards_chosen.png ADDED
mistral7b_kto_w2_delta0.005/training_rewards_margins.png ADDED
mistral7b_kto_w2_delta0.005/training_rewards_rejected.png ADDED