Upload folder using huggingface_hub
Browse files- mistral7b_kto_simple/README.md +64 -0
- mistral7b_kto_simple/adapter_config.json +42 -0
- mistral7b_kto_simple/adapter_model.safetensors +3 -0
- mistral7b_kto_simple/all_results.json +8 -0
- mistral7b_kto_simple/chat_template.jinja +3 -0
- mistral7b_kto_simple/checkpoint-196/README.md +208 -0
- mistral7b_kto_simple/checkpoint-196/adapter_config.json +42 -0
- mistral7b_kto_simple/checkpoint-196/adapter_model.safetensors +3 -0
- mistral7b_kto_simple/checkpoint-196/chat_template.jinja +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/global_step196/mp_rank_00_model_states.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/latest +1 -0
- mistral7b_kto_simple/checkpoint-196/rng_state_0.pth +3 -0
- mistral7b_kto_simple/checkpoint-196/rng_state_1.pth +3 -0
- mistral7b_kto_simple/checkpoint-196/rng_state_2.pth +3 -0
- mistral7b_kto_simple/checkpoint-196/rng_state_3.pth +3 -0
- mistral7b_kto_simple/checkpoint-196/rng_state_4.pth +3 -0
- mistral7b_kto_simple/checkpoint-196/rng_state_5.pth +3 -0
- mistral7b_kto_simple/checkpoint-196/rng_state_6.pth +3 -0
- mistral7b_kto_simple/checkpoint-196/rng_state_7.pth +3 -0
- mistral7b_kto_simple/checkpoint-196/scheduler.pt +3 -0
- mistral7b_kto_simple/checkpoint-196/special_tokens_map.json +24 -0
- mistral7b_kto_simple/checkpoint-196/tokenizer.json +0 -0
- mistral7b_kto_simple/checkpoint-196/tokenizer.model +3 -0
- mistral7b_kto_simple/checkpoint-196/tokenizer_config.json +46 -0
- mistral7b_kto_simple/checkpoint-196/trainer_state.json +848 -0
- mistral7b_kto_simple/checkpoint-196/training_args.bin +3 -0
- mistral7b_kto_simple/checkpoint-196/zero_to_fp32.py +604 -0
- mistral7b_kto_simple/special_tokens_map.json +24 -0
- mistral7b_kto_simple/tokenizer.json +0 -0
- mistral7b_kto_simple/tokenizer.model +3 -0
- mistral7b_kto_simple/tokenizer_config.json +46 -0
- mistral7b_kto_simple/train_results.json +8 -0
- mistral7b_kto_simple/trainer_log.jsonl +40 -0
- mistral7b_kto_simple/trainer_state.json +857 -0
- mistral7b_kto_simple/training_args.bin +3 -0
- mistral7b_kto_simple/training_loss.png +0 -0
- mistral7b_kto_simple/training_loss_base_kto.png +0 -0
- mistral7b_kto_simple/training_rewards_chosen.png +0 -0
- mistral7b_kto_simple/training_rewards_margins.png +0 -0
- mistral7b_kto_simple/training_rewards_rejected.png +0 -0
mistral7b_kto_simple/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_simple
|
| 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_simple
|
| 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_simple/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 |
+
"down_proj",
|
| 29 |
+
"gate_proj",
|
| 30 |
+
"v_proj",
|
| 31 |
+
"up_proj",
|
| 32 |
+
"k_proj",
|
| 33 |
+
"o_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_simple/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5544a3a84bd8dc923678c6961615880b549a38cafdde54b75d73e67b650e2329
|
| 3 |
+
size 42002584
|
mistral7b_kto_simple/all_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 1.0,
|
| 3 |
+
"total_flos": 3.1861866257511875e+18,
|
| 4 |
+
"train_loss": 0.4956757848968311,
|
| 5 |
+
"train_runtime": 3145.5892,
|
| 6 |
+
"train_samples_per_second": 31.791,
|
| 7 |
+
"train_steps_per_second": 0.062
|
| 8 |
+
}
|
mistral7b_kto_simple/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_simple/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_simple/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 |
+
"down_proj",
|
| 29 |
+
"gate_proj",
|
| 30 |
+
"v_proj",
|
| 31 |
+
"up_proj",
|
| 32 |
+
"k_proj",
|
| 33 |
+
"o_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_simple/checkpoint-196/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5544a3a84bd8dc923678c6961615880b549a38cafdde54b75d73e67b650e2329
|
| 3 |
+
size 42002584
|
mistral7b_kto_simple/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_simple/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:2155d12f095dd96e8f7d2c9a6034f6d4c096981be3dc093ad067a71826fb7d5b
|
| 3 |
+
size 31467333
|
mistral7b_kto_simple/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:2037c2dcd8461d550ba8b4abb1ed488ddf6263dd115cc5d99d426fa1e863f2a7
|
| 3 |
+
size 31467333
|
mistral7b_kto_simple/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:c3826dad26098f571242e2ab2d1d1ae834e43185dfa47141182b28d59898c782
|
| 3 |
+
size 31467333
|
mistral7b_kto_simple/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:b4c9a0df6c03f60b32ebbc4e8e8f5c05e649e3c9e883d4709540561f809b2da0
|
| 3 |
+
size 31467397
|
mistral7b_kto_simple/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:eb5e5f1369a513586db7ebcf22c4662857127b6988d9cfc4bf3eb1aeb06ae243
|
| 3 |
+
size 31467397
|
mistral7b_kto_simple/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:753857dbf7d831dcd4426226cd7c4a39d798a148fa90fdc7b8baf5399502af0f
|
| 3 |
+
size 31467397
|
mistral7b_kto_simple/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:2baee89de6d255f1404c1525d84cd7b8037c15be5b006dd2476fd0a36fd10b83
|
| 3 |
+
size 31467397
|
mistral7b_kto_simple/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:29bb2b13fde10c3a7085f09558d67817b02cd50df65e0d63bfad34bebf768543
|
| 3 |
+
size 31467397
|
mistral7b_kto_simple/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:5cf055cacbb4c8d05fedc1cd84ed557bac1056867f5cdd3ed85b9defb0e5d4a6
|
| 3 |
+
size 42288409
|
mistral7b_kto_simple/checkpoint-196/latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step196
|
mistral7b_kto_simple/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_simple/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_simple/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_simple/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_simple/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_simple/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_simple/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_simple/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_simple/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_simple/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_simple/checkpoint-196/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mistral7b_kto_simple/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_simple/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_simple/checkpoint-196/trainer_state.json
ADDED
|
@@ -0,0 +1,848 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.5772594809532166,
|
| 15 |
+
"kl": 0.006305641960352659,
|
| 16 |
+
"learning_rate": 4e-08,
|
| 17 |
+
"logits/chosen": -59718379.78947368,
|
| 18 |
+
"logits/rejected": -50413504.0,
|
| 19 |
+
"logps/chosen": -439.03207236842104,
|
| 20 |
+
"logps/rejected": -198.4214332217262,
|
| 21 |
+
"loss": 0.5,
|
| 22 |
+
"loss/base_kto": 0.49969324469566345,
|
| 23 |
+
"rewards/chosen": 0.0013566404385002035,
|
| 24 |
+
"rewards/margins": 0.0025594215466638558,
|
| 25 |
+
"rewards/rejected": -0.001202781108163652,
|
| 26 |
+
"step": 5
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"epoch": 0.05118362124120281,
|
| 30 |
+
"grad_norm": 0.6031567454338074,
|
| 31 |
+
"kl": 0.028230074793100357,
|
| 32 |
+
"learning_rate": 9e-08,
|
| 33 |
+
"logits/chosen": -59308962.90909091,
|
| 34 |
+
"logits/rejected": -50030080.0,
|
| 35 |
+
"logps/chosen": -429.9140625,
|
| 36 |
+
"logps/rejected": -192.86823465737953,
|
| 37 |
+
"loss": 0.5001,
|
| 38 |
+
"loss/base_kto": 0.49971267580986023,
|
| 39 |
+
"rewards/chosen": 0.002450463833746972,
|
| 40 |
+
"rewards/margins": 0.0024800021542366484,
|
| 41 |
+
"rewards/rejected": -2.95383204896766e-05,
|
| 42 |
+
"stability/repetition_rate_mean": 0.3664148449897766,
|
| 43 |
+
"stability/response_length_mean": 44.25,
|
| 44 |
+
"stability/response_length_std": 28.13614845275879,
|
| 45 |
+
"stability/response_length_var": 791.6428833007812,
|
| 46 |
+
"stability/token_entropy_mean": 3.4755859375,
|
| 47 |
+
"step": 10
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"epoch": 0.07677543186180422,
|
| 51 |
+
"grad_norm": 0.609616219997406,
|
| 52 |
+
"kl": 0.012302148155868053,
|
| 53 |
+
"learning_rate": 1.4e-07,
|
| 54 |
+
"logits/chosen": -56221720.82424243,
|
| 55 |
+
"logits/rejected": -51918762.11612903,
|
| 56 |
+
"logps/chosen": -404.1202651515151,
|
| 57 |
+
"logps/rejected": -200.68004032258065,
|
| 58 |
+
"loss": 0.4998,
|
| 59 |
+
"loss/base_kto": 0.500029981136322,
|
| 60 |
+
"rewards/chosen": 0.001057231787479285,
|
| 61 |
+
"rewards/margins": -0.00034482885199441484,
|
| 62 |
+
"rewards/rejected": 0.0014020606394736998,
|
| 63 |
+
"stability/repetition_rate_mean": 0.2929687201976776,
|
| 64 |
+
"stability/response_length_mean": 29.375,
|
| 65 |
+
"stability/response_length_std": 29.92341423034668,
|
| 66 |
+
"stability/response_length_var": 895.4107055664062,
|
| 67 |
+
"stability/token_entropy_mean": 3.7001953125,
|
| 68 |
+
"step": 15
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"epoch": 0.10236724248240563,
|
| 72 |
+
"grad_norm": 0.6197210550308228,
|
| 73 |
+
"kl": 0.016423773020505905,
|
| 74 |
+
"learning_rate": 1.8999999999999998e-07,
|
| 75 |
+
"logits/chosen": -51663750.4,
|
| 76 |
+
"logits/rejected": -48055072.0,
|
| 77 |
+
"logps/chosen": -343.6933349609375,
|
| 78 |
+
"logps/rejected": -225.6587890625,
|
| 79 |
+
"loss": 0.5004,
|
| 80 |
+
"loss/base_kto": 0.5000466704368591,
|
| 81 |
+
"rewards/chosen": 0.00033793365582823753,
|
| 82 |
+
"rewards/margins": -0.00011792583391070368,
|
| 83 |
+
"rewards/rejected": 0.0004558594897389412,
|
| 84 |
+
"stability/repetition_rate_mean": 0.2155257910490036,
|
| 85 |
+
"stability/response_length_mean": 44.0,
|
| 86 |
+
"stability/response_length_std": 28.0611572265625,
|
| 87 |
+
"stability/response_length_var": 787.4285888671875,
|
| 88 |
+
"stability/token_entropy_mean": 4.42578125,
|
| 89 |
+
"step": 20
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"epoch": 0.12795905310300704,
|
| 93 |
+
"grad_norm": 0.5772079229354858,
|
| 94 |
+
"kl": 0.01958128809928894,
|
| 95 |
+
"learning_rate": 2.4e-07,
|
| 96 |
+
"logits/chosen": -56465217.32413793,
|
| 97 |
+
"logits/rejected": -52019422.35428572,
|
| 98 |
+
"logps/chosen": -378.4753232758621,
|
| 99 |
+
"logps/rejected": -202.7753125,
|
| 100 |
+
"loss": 0.5001,
|
| 101 |
+
"loss/base_kto": 0.49998876452445984,
|
| 102 |
+
"rewards/chosen": 0.0016139640890318772,
|
| 103 |
+
"rewards/margins": -0.00013830620079792184,
|
| 104 |
+
"rewards/rejected": 0.001752270289829799,
|
| 105 |
+
"stability/repetition_rate_mean": 0.19711539149284363,
|
| 106 |
+
"stability/response_length_mean": 50.25,
|
| 107 |
+
"stability/response_length_std": 25.549671173095703,
|
| 108 |
+
"stability/response_length_var": 652.7857055664062,
|
| 109 |
+
"stability/token_entropy_mean": 4.5234375,
|
| 110 |
+
"step": 25
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"epoch": 0.15355086372360843,
|
| 114 |
+
"grad_norm": 0.6031031012535095,
|
| 115 |
+
"kl": 0.020890694111585617,
|
| 116 |
+
"learning_rate": 2.9e-07,
|
| 117 |
+
"logits/chosen": -57728749.10067114,
|
| 118 |
+
"logits/rejected": -51514302.12865497,
|
| 119 |
+
"logps/chosen": -468.5621854026846,
|
| 120 |
+
"logps/rejected": -198.23862390350877,
|
| 121 |
+
"loss": 0.5002,
|
| 122 |
+
"loss/base_kto": 0.49984827637672424,
|
| 123 |
+
"rewards/chosen": 0.0019035963404098613,
|
| 124 |
+
"rewards/margins": 0.000978329737129632,
|
| 125 |
+
"rewards/rejected": 0.0009252666032802292,
|
| 126 |
+
"stability/repetition_rate_mean": 0.1525297611951828,
|
| 127 |
+
"stability/response_length_mean": 43.0,
|
| 128 |
+
"stability/response_length_std": 29.602123260498047,
|
| 129 |
+
"stability/response_length_var": 876.2857055664062,
|
| 130 |
+
"stability/token_entropy_mean": 4.568359375,
|
| 131 |
+
"step": 30
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 0.17914267434420986,
|
| 135 |
+
"grad_norm": 0.6770267486572266,
|
| 136 |
+
"kl": 0.031000053510069847,
|
| 137 |
+
"learning_rate": 3.4000000000000003e-07,
|
| 138 |
+
"logits/chosen": -57633195.74683544,
|
| 139 |
+
"logits/rejected": -53898088.2962963,
|
| 140 |
+
"logps/chosen": -385.922245846519,
|
| 141 |
+
"logps/rejected": -195.10961612654322,
|
| 142 |
+
"loss": 0.4998,
|
| 143 |
+
"loss/base_kto": 0.5000401139259338,
|
| 144 |
+
"rewards/chosen": 0.0014279391380805004,
|
| 145 |
+
"rewards/margins": -0.0002580981845407863,
|
| 146 |
+
"rewards/rejected": 0.0016860373226212867,
|
| 147 |
+
"stability/repetition_rate_mean": 0.3030133843421936,
|
| 148 |
+
"stability/response_length_mean": 56.875,
|
| 149 |
+
"stability/response_length_std": 20.152544021606445,
|
| 150 |
+
"stability/response_length_var": 406.125,
|
| 151 |
+
"stability/token_entropy_mean": 5.474609375,
|
| 152 |
+
"step": 35
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"epoch": 0.20473448496481125,
|
| 156 |
+
"grad_norm": 0.587213933467865,
|
| 157 |
+
"kl": 0.0245906300842762,
|
| 158 |
+
"learning_rate": 3.8999999999999997e-07,
|
| 159 |
+
"logits/chosen": -56631648.0,
|
| 160 |
+
"logits/rejected": -50232096.0,
|
| 161 |
+
"logps/chosen": -421.8708984375,
|
| 162 |
+
"logps/rejected": -219.26767578125,
|
| 163 |
+
"loss": 0.4998,
|
| 164 |
+
"loss/base_kto": 0.50019770860672,
|
| 165 |
+
"rewards/chosen": 0.003170560672879219,
|
| 166 |
+
"rewards/margins": -0.0009862679988145826,
|
| 167 |
+
"rewards/rejected": 0.004156828671693802,
|
| 168 |
+
"stability/repetition_rate_mean": 0.15522204339504242,
|
| 169 |
+
"stability/response_length_mean": 35.0,
|
| 170 |
+
"stability/response_length_std": 31.518701553344727,
|
| 171 |
+
"stability/response_length_var": 993.4285888671875,
|
| 172 |
+
"stability/token_entropy_mean": 4.7880859375,
|
| 173 |
+
"step": 40
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"epoch": 0.23032629558541268,
|
| 177 |
+
"grad_norm": 0.640202522277832,
|
| 178 |
+
"kl": 0.038881849497556686,
|
| 179 |
+
"learning_rate": 4.3999999999999997e-07,
|
| 180 |
+
"logits/chosen": -52691122.684563756,
|
| 181 |
+
"logits/rejected": -50773704.60818713,
|
| 182 |
+
"logps/chosen": -352.2867030201342,
|
| 183 |
+
"logps/rejected": -243.83422423245614,
|
| 184 |
+
"loss": 0.4998,
|
| 185 |
+
"loss/base_kto": 0.4999396800994873,
|
| 186 |
+
"rewards/chosen": 0.004177153910566497,
|
| 187 |
+
"rewards/margins": 0.0001828821414053836,
|
| 188 |
+
"rewards/rejected": 0.003994271769161113,
|
| 189 |
+
"stability/repetition_rate_mean": 0.0859469324350357,
|
| 190 |
+
"stability/response_length_mean": 22.375,
|
| 191 |
+
"stability/response_length_std": 26.52189064025879,
|
| 192 |
+
"stability/response_length_var": 703.4107055664062,
|
| 193 |
+
"stability/token_entropy_mean": 4.9140625,
|
| 194 |
+
"step": 45
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"epoch": 0.2559181062060141,
|
| 198 |
+
"grad_norm": 0.5786681175231934,
|
| 199 |
+
"kl": 0.04716196283698082,
|
| 200 |
+
"learning_rate": 4.9e-07,
|
| 201 |
+
"logits/chosen": -54047022.389261745,
|
| 202 |
+
"logits/rejected": -48305211.883040935,
|
| 203 |
+
"logps/chosen": -375.11949454697987,
|
| 204 |
+
"logps/rejected": -180.19741410818713,
|
| 205 |
+
"loss": 0.4999,
|
| 206 |
+
"loss/base_kto": 0.499483197927475,
|
| 207 |
+
"rewards/chosen": 0.007963991005148663,
|
| 208 |
+
"rewards/margins": 0.0036445832186064505,
|
| 209 |
+
"rewards/rejected": 0.004319407786542212,
|
| 210 |
+
"stability/repetition_rate_mean": 0.4108419120311737,
|
| 211 |
+
"stability/response_length_mean": 55.375,
|
| 212 |
+
"stability/response_length_std": 16.361431121826172,
|
| 213 |
+
"stability/response_length_var": 267.6964416503906,
|
| 214 |
+
"stability/token_entropy_mean": 3.81640625,
|
| 215 |
+
"step": 50
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"epoch": 0.28150991682661547,
|
| 219 |
+
"grad_norm": 0.663858950138092,
|
| 220 |
+
"kl": 0.0537404902279377,
|
| 221 |
+
"learning_rate": 5.4e-07,
|
| 222 |
+
"logits/chosen": -56946357.26708075,
|
| 223 |
+
"logits/rejected": -49559825.710691825,
|
| 224 |
+
"logps/chosen": -344.4793769409938,
|
| 225 |
+
"logps/rejected": -230.40548840408806,
|
| 226 |
+
"loss": 0.4996,
|
| 227 |
+
"loss/base_kto": 0.5001100897789001,
|
| 228 |
+
"rewards/chosen": 0.003263072937912082,
|
| 229 |
+
"rewards/margins": -0.0009928640175938652,
|
| 230 |
+
"rewards/rejected": 0.004255936955505947,
|
| 231 |
+
"stability/repetition_rate_mean": 0.107421875,
|
| 232 |
+
"stability/response_length_mean": 24.5,
|
| 233 |
+
"stability/response_length_std": 32.710853576660156,
|
| 234 |
+
"stability/response_length_var": 1070.0,
|
| 235 |
+
"stability/token_entropy_mean": 4.41015625,
|
| 236 |
+
"step": 55
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"epoch": 0.30710172744721687,
|
| 240 |
+
"grad_norm": 0.5810667276382446,
|
| 241 |
+
"kl": 0.05833861976861954,
|
| 242 |
+
"learning_rate": 5.9e-07,
|
| 243 |
+
"logits/chosen": -52670401.93939394,
|
| 244 |
+
"logits/rejected": -47818137.6,
|
| 245 |
+
"logps/chosen": -359.6366477272727,
|
| 246 |
+
"logps/rejected": -178.17121975806452,
|
| 247 |
+
"loss": 0.4997,
|
| 248 |
+
"loss/base_kto": 0.499610960483551,
|
| 249 |
+
"rewards/chosen": 0.008416923609646883,
|
| 250 |
+
"rewards/margins": 0.002847369465310552,
|
| 251 |
+
"rewards/rejected": 0.005569554144336331,
|
| 252 |
+
"stability/repetition_rate_mean": 0.18834353983402252,
|
| 253 |
+
"stability/response_length_mean": 44.625,
|
| 254 |
+
"stability/response_length_std": 27.8820858001709,
|
| 255 |
+
"stability/response_length_var": 777.4107055664062,
|
| 256 |
+
"stability/token_entropy_mean": 4.666015625,
|
| 257 |
+
"step": 60
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"epoch": 0.3326935380678183,
|
| 261 |
+
"grad_norm": 0.5759316682815552,
|
| 262 |
+
"kl": 0.07869795709848404,
|
| 263 |
+
"learning_rate": 6.4e-07,
|
| 264 |
+
"logits/chosen": -57552697.80645161,
|
| 265 |
+
"logits/rejected": -47262831.70909091,
|
| 266 |
+
"logps/chosen": -381.796875,
|
| 267 |
+
"logps/rejected": -183.53030303030303,
|
| 268 |
+
"loss": 0.4996,
|
| 269 |
+
"loss/base_kto": 0.4987983703613281,
|
| 270 |
+
"rewards/chosen": 0.014990917328865297,
|
| 271 |
+
"rewards/margins": 0.009785529548704684,
|
| 272 |
+
"rewards/rejected": 0.005205387780160615,
|
| 273 |
+
"stability/repetition_rate_mean": 0.19731052219867706,
|
| 274 |
+
"stability/response_length_mean": 21.125,
|
| 275 |
+
"stability/response_length_std": 28.027729034423828,
|
| 276 |
+
"stability/response_length_var": 785.5535888671875,
|
| 277 |
+
"stability/token_entropy_mean": 5.58984375,
|
| 278 |
+
"step": 65
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"epoch": 0.3582853486884197,
|
| 282 |
+
"grad_norm": 0.5528621673583984,
|
| 283 |
+
"kl": 0.08887721598148346,
|
| 284 |
+
"learning_rate": 6.9e-07,
|
| 285 |
+
"logits/chosen": -52767777.03225806,
|
| 286 |
+
"logits/rejected": -49031406.93333333,
|
| 287 |
+
"logps/chosen": -379.00811491935485,
|
| 288 |
+
"logps/rejected": -220.3328125,
|
| 289 |
+
"loss": 0.4992,
|
| 290 |
+
"loss/base_kto": 0.49963781237602234,
|
| 291 |
+
"rewards/chosen": 0.012032072005733366,
|
| 292 |
+
"rewards/margins": 0.0030974022221122426,
|
| 293 |
+
"rewards/rejected": 0.008934669783621124,
|
| 294 |
+
"stability/repetition_rate_mean": 0.185546875,
|
| 295 |
+
"stability/response_length_mean": 33.875,
|
| 296 |
+
"stability/response_length_std": 32.36151885986328,
|
| 297 |
+
"stability/response_length_var": 1047.267822265625,
|
| 298 |
+
"stability/token_entropy_mean": 5.7265625,
|
| 299 |
+
"step": 70
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"epoch": 0.3838771593090211,
|
| 303 |
+
"grad_norm": 0.6098544001579285,
|
| 304 |
+
"kl": 0.09266681969165802,
|
| 305 |
+
"learning_rate": 7.4e-07,
|
| 306 |
+
"logits/chosen": -49499744.86486486,
|
| 307 |
+
"logits/rejected": -47894179.72093023,
|
| 308 |
+
"logps/chosen": -314.1058910472973,
|
| 309 |
+
"logps/rejected": -228.81817768895348,
|
| 310 |
+
"loss": 0.4993,
|
| 311 |
+
"loss/base_kto": 0.49878960847854614,
|
| 312 |
+
"rewards/chosen": 0.016490372451576026,
|
| 313 |
+
"rewards/margins": 0.009822355097453599,
|
| 314 |
+
"rewards/rejected": 0.006668017354122428,
|
| 315 |
+
"stability/repetition_rate_mean": 0.08308292925357819,
|
| 316 |
+
"stability/response_length_mean": 22.75,
|
| 317 |
+
"stability/response_length_std": 31.07479476928711,
|
| 318 |
+
"stability/response_length_var": 965.6428833007812,
|
| 319 |
+
"stability/token_entropy_mean": 2.146484375,
|
| 320 |
+
"step": 75
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"epoch": 0.4094689699296225,
|
| 324 |
+
"grad_norm": 0.6027852892875671,
|
| 325 |
+
"kl": 0.12336266040802002,
|
| 326 |
+
"learning_rate": 7.9e-07,
|
| 327 |
+
"logits/chosen": -58629587.9205298,
|
| 328 |
+
"logits/rejected": -53451757.82248521,
|
| 329 |
+
"logps/chosen": -403.85350269039736,
|
| 330 |
+
"logps/rejected": -200.96463572485206,
|
| 331 |
+
"loss": 0.4991,
|
| 332 |
+
"loss/base_kto": 0.4989641308784485,
|
| 333 |
+
"rewards/chosen": 0.017660609933714204,
|
| 334 |
+
"rewards/margins": 0.008543980056680181,
|
| 335 |
+
"rewards/rejected": 0.009116629877034023,
|
| 336 |
+
"stability/repetition_rate_mean": 0.18541666865348816,
|
| 337 |
+
"stability/response_length_mean": 39.0,
|
| 338 |
+
"stability/response_length_std": 29.159658432006836,
|
| 339 |
+
"stability/response_length_var": 850.2857055664062,
|
| 340 |
+
"stability/token_entropy_mean": 5.22265625,
|
| 341 |
+
"step": 80
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"epoch": 0.4350607805502239,
|
| 345 |
+
"grad_norm": 0.6124152541160583,
|
| 346 |
+
"kl": 0.125388041138649,
|
| 347 |
+
"learning_rate": 8.399999999999999e-07,
|
| 348 |
+
"logits/chosen": -51481851.04516129,
|
| 349 |
+
"logits/rejected": -47137016.24242424,
|
| 350 |
+
"logps/chosen": -358.1038306451613,
|
| 351 |
+
"logps/rejected": -230.3265625,
|
| 352 |
+
"loss": 0.4988,
|
| 353 |
+
"loss/base_kto": 0.4984590709209442,
|
| 354 |
+
"rewards/chosen": 0.022868017996511152,
|
| 355 |
+
"rewards/margins": 0.013043898081849399,
|
| 356 |
+
"rewards/rejected": 0.009824119914661754,
|
| 357 |
+
"stability/repetition_rate_mean": 0.12302795797586441,
|
| 358 |
+
"stability/response_length_mean": 27.375,
|
| 359 |
+
"stability/response_length_std": 30.39707374572754,
|
| 360 |
+
"stability/response_length_var": 923.9821166992188,
|
| 361 |
+
"stability/token_entropy_mean": 4.92578125,
|
| 362 |
+
"step": 85
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"epoch": 0.46065259117082535,
|
| 366 |
+
"grad_norm": 0.6379120945930481,
|
| 367 |
+
"kl": 0.17190246284008026,
|
| 368 |
+
"learning_rate": 8.9e-07,
|
| 369 |
+
"logits/chosen": -58409432.615384616,
|
| 370 |
+
"logits/rejected": -50583776.780487806,
|
| 371 |
+
"logps/chosen": -380.54447115384613,
|
| 372 |
+
"logps/rejected": -187.12595274390245,
|
| 373 |
+
"loss": 0.4984,
|
| 374 |
+
"loss/base_kto": 0.4981650412082672,
|
| 375 |
+
"rewards/chosen": 0.024491310119628906,
|
| 376 |
+
"rewards/margins": 0.014406566939702848,
|
| 377 |
+
"rewards/rejected": 0.010084743179926059,
|
| 378 |
+
"stability/repetition_rate_mean": 0.2374526560306549,
|
| 379 |
+
"stability/response_length_mean": 35.625,
|
| 380 |
+
"stability/response_length_std": 31.057262420654297,
|
| 381 |
+
"stability/response_length_var": 964.5535888671875,
|
| 382 |
+
"stability/token_entropy_mean": 3.7021484375,
|
| 383 |
+
"step": 90
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"epoch": 0.48624440179142675,
|
| 387 |
+
"grad_norm": 0.6159020066261292,
|
| 388 |
+
"kl": 0.15860331058502197,
|
| 389 |
+
"learning_rate": 9.399999999999999e-07,
|
| 390 |
+
"logits/chosen": -50396399.79746836,
|
| 391 |
+
"logits/rejected": -48982038.12345679,
|
| 392 |
+
"logps/chosen": -314.7759592563291,
|
| 393 |
+
"logps/rejected": -207.06117380401236,
|
| 394 |
+
"loss": 0.4982,
|
| 395 |
+
"loss/base_kto": 0.49839383363723755,
|
| 396 |
+
"rewards/chosen": 0.021742636644387546,
|
| 397 |
+
"rewards/margins": 0.013488207203948062,
|
| 398 |
+
"rewards/rejected": 0.008254429440439484,
|
| 399 |
+
"stability/repetition_rate_mean": 0.09133065491914749,
|
| 400 |
+
"stability/response_length_mean": 21.875,
|
| 401 |
+
"stability/response_length_std": 27.304826736450195,
|
| 402 |
+
"stability/response_length_var": 745.5535888671875,
|
| 403 |
+
"stability/token_entropy_mean": 4.076171875,
|
| 404 |
+
"step": 95
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"epoch": 0.5118362124120281,
|
| 408 |
+
"grad_norm": 0.6105856895446777,
|
| 409 |
+
"kl": 0.2014942169189453,
|
| 410 |
+
"learning_rate": 9.9e-07,
|
| 411 |
+
"logits/chosen": -54708237.83783784,
|
| 412 |
+
"logits/rejected": -50898551.069767445,
|
| 413 |
+
"logps/chosen": -359.57057643581084,
|
| 414 |
+
"logps/rejected": -216.38419785610466,
|
| 415 |
+
"loss": 0.4981,
|
| 416 |
+
"loss/base_kto": 0.49866095185279846,
|
| 417 |
+
"rewards/chosen": 0.029960999617705476,
|
| 418 |
+
"rewards/margins": 0.010491025964843637,
|
| 419 |
+
"rewards/rejected": 0.01946997365286184,
|
| 420 |
+
"stability/repetition_rate_mean": 0.22838345170021057,
|
| 421 |
+
"stability/response_length_mean": 37.875,
|
| 422 |
+
"stability/response_length_std": 30.248672485351562,
|
| 423 |
+
"stability/response_length_var": 914.9821166992188,
|
| 424 |
+
"stability/token_entropy_mean": 4.185546875,
|
| 425 |
+
"step": 100
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"epoch": 0.5374280230326296,
|
| 429 |
+
"grad_norm": 0.6785591244697571,
|
| 430 |
+
"kl": 0.22638840973377228,
|
| 431 |
+
"learning_rate": 9.999815554351224e-07,
|
| 432 |
+
"logits/chosen": -59369200.578313254,
|
| 433 |
+
"logits/rejected": -53790852.98701299,
|
| 434 |
+
"logps/chosen": -399.54828689759034,
|
| 435 |
+
"logps/rejected": -209.8457538555195,
|
| 436 |
+
"loss": 0.4975,
|
| 437 |
+
"loss/base_kto": 0.49753338098526,
|
| 438 |
+
"rewards/chosen": 0.03542007021157138,
|
| 439 |
+
"rewards/margins": 0.01961183469632369,
|
| 440 |
+
"rewards/rejected": 0.015808235515247692,
|
| 441 |
+
"stability/repetition_rate_mean": 0.1897321343421936,
|
| 442 |
+
"stability/response_length_mean": 29.0,
|
| 443 |
+
"stability/response_length_std": 29.89505386352539,
|
| 444 |
+
"stability/response_length_var": 893.7142944335938,
|
| 445 |
+
"stability/token_entropy_mean": 3.349609375,
|
| 446 |
+
"step": 105
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"epoch": 0.5630198336532309,
|
| 450 |
+
"grad_norm": 0.6502929925918579,
|
| 451 |
+
"kl": 0.266899973154068,
|
| 452 |
+
"learning_rate": 9.999066267225444e-07,
|
| 453 |
+
"logits/chosen": -57387927.13253012,
|
| 454 |
+
"logits/rejected": -53615536.20779221,
|
| 455 |
+
"logps/chosen": -378.2028661521084,
|
| 456 |
+
"logps/rejected": -205.8787413758117,
|
| 457 |
+
"loss": 0.4975,
|
| 458 |
+
"loss/base_kto": 0.49790263175964355,
|
| 459 |
+
"rewards/chosen": 0.03603898760784103,
|
| 460 |
+
"rewards/margins": 0.015099021306975758,
|
| 461 |
+
"rewards/rejected": 0.02093996630086527,
|
| 462 |
+
"stability/repetition_rate_mean": 0.31048768758773804,
|
| 463 |
+
"stability/response_length_mean": 28.875,
|
| 464 |
+
"stability/response_length_std": 29.911476135253906,
|
| 465 |
+
"stability/response_length_var": 894.6964111328125,
|
| 466 |
+
"stability/token_entropy_mean": 4.357421875,
|
| 467 |
+
"step": 110
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"epoch": 0.5886116442738324,
|
| 471 |
+
"grad_norm": 0.6486251950263977,
|
| 472 |
+
"kl": 0.32395443320274353,
|
| 473 |
+
"learning_rate": 9.997740697079592e-07,
|
| 474 |
+
"logits/chosen": -60606632.50632911,
|
| 475 |
+
"logits/rejected": -53405677.03703704,
|
| 476 |
+
"logps/chosen": -364.0806467563291,
|
| 477 |
+
"logps/rejected": -200.9707995756173,
|
| 478 |
+
"loss": 0.4965,
|
| 479 |
+
"loss/base_kto": 0.4963931143283844,
|
| 480 |
+
"rewards/chosen": 0.05118938035602811,
|
| 481 |
+
"rewards/margins": 0.0286137355568074,
|
| 482 |
+
"rewards/rejected": 0.02257564479922071,
|
| 483 |
+
"stability/repetition_rate_mean": 0.2749515473842621,
|
| 484 |
+
"stability/response_length_mean": 38.75,
|
| 485 |
+
"stability/response_length_std": 29.936838150024414,
|
| 486 |
+
"stability/response_length_var": 896.2142944335938,
|
| 487 |
+
"stability/token_entropy_mean": 4.966796875,
|
| 488 |
+
"step": 115
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"epoch": 0.6142034548944337,
|
| 492 |
+
"grad_norm": 0.6199327111244202,
|
| 493 |
+
"kl": 0.3587552011013031,
|
| 494 |
+
"learning_rate": 9.995838996722914e-07,
|
| 495 |
+
"logits/chosen": -57752502.37908497,
|
| 496 |
+
"logits/rejected": -54366698.53892215,
|
| 497 |
+
"logps/chosen": -383.6620710784314,
|
| 498 |
+
"logps/rejected": -211.94790886976048,
|
| 499 |
+
"loss": 0.4959,
|
| 500 |
+
"loss/base_kto": 0.4960261285305023,
|
| 501 |
+
"rewards/chosen": 0.05828505871342678,
|
| 502 |
+
"rewards/margins": 0.03143982054748571,
|
| 503 |
+
"rewards/rejected": 0.026845238165941067,
|
| 504 |
+
"stability/repetition_rate_mean": 0.1723366528749466,
|
| 505 |
+
"stability/response_length_mean": 27.875,
|
| 506 |
+
"stability/response_length_std": 30.31943130493164,
|
| 507 |
+
"stability/response_length_var": 919.2678833007812,
|
| 508 |
+
"stability/token_entropy_mean": 4.640625,
|
| 509 |
+
"step": 120
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"epoch": 0.6397952655150352,
|
| 513 |
+
"grad_norm": 0.6118870377540588,
|
| 514 |
+
"kl": 0.3919747769832611,
|
| 515 |
+
"learning_rate": 9.993361385379874e-07,
|
| 516 |
+
"logits/chosen": -60696351.56164384,
|
| 517 |
+
"logits/rejected": -55669807.08045977,
|
| 518 |
+
"logps/chosen": -416.76867508561645,
|
| 519 |
+
"logps/rejected": -216.09132543103448,
|
| 520 |
+
"loss": 0.4961,
|
| 521 |
+
"loss/base_kto": 0.4960012435913086,
|
| 522 |
+
"rewards/chosen": 0.061065817532474045,
|
| 523 |
+
"rewards/margins": 0.033479519105111495,
|
| 524 |
+
"rewards/rejected": 0.02758629842736255,
|
| 525 |
+
"stability/repetition_rate_mean": 0.15937499701976776,
|
| 526 |
+
"stability/response_length_mean": 15.875,
|
| 527 |
+
"stability/response_length_std": 24.584766387939453,
|
| 528 |
+
"stability/response_length_var": 604.4107055664062,
|
| 529 |
+
"stability/token_entropy_mean": 3.49609375,
|
| 530 |
+
"step": 125
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"epoch": 0.6653870761356366,
|
| 534 |
+
"grad_norm": 0.5947321653366089,
|
| 535 |
+
"kl": 0.45393142104148865,
|
| 536 |
+
"learning_rate": 9.99030814866488e-07,
|
| 537 |
+
"logits/chosen": -57384028.49032258,
|
| 538 |
+
"logits/rejected": -53841212.50909091,
|
| 539 |
+
"logps/chosen": -391.96595262096776,
|
| 540 |
+
"logps/rejected": -183.6536221590909,
|
| 541 |
+
"loss": 0.4954,
|
| 542 |
+
"loss/base_kto": 0.49458155035972595,
|
| 543 |
+
"rewards/chosen": 0.06919794390278478,
|
| 544 |
+
"rewards/margins": 0.042669391818526664,
|
| 545 |
+
"rewards/rejected": 0.026528552084258108,
|
| 546 |
+
"stability/repetition_rate_mean": 0.25242185592651367,
|
| 547 |
+
"stability/response_length_mean": 43.25,
|
| 548 |
+
"stability/response_length_std": 29.620214462280273,
|
| 549 |
+
"stability/response_length_var": 877.3571166992188,
|
| 550 |
+
"stability/token_entropy_mean": 3.7138671875,
|
| 551 |
+
"step": 130
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"epoch": 0.690978886756238,
|
| 555 |
+
"grad_norm": 0.5941182971000671,
|
| 556 |
+
"kl": 0.501304566860199,
|
| 557 |
+
"learning_rate": 9.986679638549358e-07,
|
| 558 |
+
"logits/chosen": -59851254.57668712,
|
| 559 |
+
"logits/rejected": -55000540.12738854,
|
| 560 |
+
"logps/chosen": -400.9979629984663,
|
| 561 |
+
"logps/rejected": -247.54722332802547,
|
| 562 |
+
"loss": 0.4945,
|
| 563 |
+
"loss/base_kto": 0.4937683045864105,
|
| 564 |
+
"rewards/chosen": 0.08181942898802962,
|
| 565 |
+
"rewards/margins": 0.049467831888482444,
|
| 566 |
+
"rewards/rejected": 0.03235159709954717,
|
| 567 |
+
"stability/repetition_rate_mean": 0.2230902761220932,
|
| 568 |
+
"stability/response_length_mean": 29.25,
|
| 569 |
+
"stability/response_length_std": 29.936838150024414,
|
| 570 |
+
"stability/response_length_var": 896.2142944335938,
|
| 571 |
+
"stability/token_entropy_mean": 4.072265625,
|
| 572 |
+
"step": 135
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"epoch": 0.7165706973768394,
|
| 576 |
+
"grad_norm": 0.7290944457054138,
|
| 577 |
+
"kl": 0.4828576147556305,
|
| 578 |
+
"learning_rate": 9.982476273321175e-07,
|
| 579 |
+
"logits/chosen": -57085976.82424243,
|
| 580 |
+
"logits/rejected": -50076896.61935484,
|
| 581 |
+
"logps/chosen": -366.3819128787879,
|
| 582 |
+
"logps/rejected": -189.91817036290323,
|
| 583 |
+
"loss": 0.4937,
|
| 584 |
+
"loss/base_kto": 0.4917580187320709,
|
| 585 |
+
"rewards/chosen": 0.08078298857717803,
|
| 586 |
+
"rewards/margins": 0.06915265418450736,
|
| 587 |
+
"rewards/rejected": 0.011630334392670662,
|
| 588 |
+
"stability/repetition_rate_mean": 0.2265625,
|
| 589 |
+
"stability/response_length_mean": 56.25,
|
| 590 |
+
"stability/response_length_std": 21.920310974121094,
|
| 591 |
+
"stability/response_length_var": 480.5,
|
| 592 |
+
"stability/token_entropy_mean": 5.150390625,
|
| 593 |
+
"step": 140
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"epoch": 0.7421625079974408,
|
| 597 |
+
"grad_norm": 0.6742141246795654,
|
| 598 |
+
"kl": 0.5725060105323792,
|
| 599 |
+
"learning_rate": 9.977698537536417e-07,
|
| 600 |
+
"logits/chosen": -51148522.409638554,
|
| 601 |
+
"logits/rejected": -51662778.18181818,
|
| 602 |
+
"logps/chosen": -329.4726327183735,
|
| 603 |
+
"logps/rejected": -199.14629413555195,
|
| 604 |
+
"loss": 0.4932,
|
| 605 |
+
"loss/base_kto": 0.49420061707496643,
|
| 606 |
+
"rewards/chosen": 0.07991740789758153,
|
| 607 |
+
"rewards/margins": 0.04575571016309556,
|
| 608 |
+
"rewards/rejected": 0.03416169773448597,
|
| 609 |
+
"stability/repetition_rate_mean": 0.25424888730049133,
|
| 610 |
+
"stability/response_length_mean": 28.875,
|
| 611 |
+
"stability/response_length_std": 29.73423957824707,
|
| 612 |
+
"stability/response_length_var": 884.125,
|
| 613 |
+
"stability/token_entropy_mean": 5.2734375,
|
| 614 |
+
"step": 145
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"epoch": 0.7677543186180422,
|
| 618 |
+
"grad_norm": 0.6416594386100769,
|
| 619 |
+
"kl": 0.638058602809906,
|
| 620 |
+
"learning_rate": 9.972346981963546e-07,
|
| 621 |
+
"logits/chosen": -55423500.04705882,
|
| 622 |
+
"logits/rejected": -50200978.77333333,
|
| 623 |
+
"logps/chosen": -396.80946691176473,
|
| 624 |
+
"logps/rejected": -207.36325520833333,
|
| 625 |
+
"loss": 0.493,
|
| 626 |
+
"loss/base_kto": 0.49001631140708923,
|
| 627 |
+
"rewards/chosen": 0.11249845168169807,
|
| 628 |
+
"rewards/margins": 0.0762304780997482,
|
| 629 |
+
"rewards/rejected": 0.03626797358194987,
|
| 630 |
+
"stability/repetition_rate_mean": 0.23066024482250214,
|
| 631 |
+
"stability/response_length_mean": 29.375,
|
| 632 |
+
"stability/response_length_std": 29.193626403808594,
|
| 633 |
+
"stability/response_length_var": 852.2678833007812,
|
| 634 |
+
"stability/token_entropy_mean": 4.6015625,
|
| 635 |
+
"step": 150
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"epoch": 0.7933461292386437,
|
| 639 |
+
"grad_norm": 0.6336647272109985,
|
| 640 |
+
"kl": 0.6403493881225586,
|
| 641 |
+
"learning_rate": 9.966422223519885e-07,
|
| 642 |
+
"logits/chosen": -54021613.92941176,
|
| 643 |
+
"logits/rejected": -49351734.61333334,
|
| 644 |
+
"logps/chosen": -360.1190487132353,
|
| 645 |
+
"logps/rejected": -191.01639322916665,
|
| 646 |
+
"loss": 0.4925,
|
| 647 |
+
"loss/base_kto": 0.4930504858493805,
|
| 648 |
+
"rewards/chosen": 0.0870250758002786,
|
| 649 |
+
"rewards/margins": 0.058103303161321895,
|
| 650 |
+
"rewards/rejected": 0.028921772638956705,
|
| 651 |
+
"stability/repetition_rate_mean": 0.3113190531730652,
|
| 652 |
+
"stability/response_length_mean": 61.375,
|
| 653 |
+
"stability/response_length_std": 7.424621105194092,
|
| 654 |
+
"stability/response_length_var": 55.125,
|
| 655 |
+
"stability/token_entropy_mean": 4.529296875,
|
| 656 |
+
"step": 155
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"epoch": 0.818937939859245,
|
| 660 |
+
"grad_norm": 0.6168467402458191,
|
| 661 |
+
"kl": 0.7161628603935242,
|
| 662 |
+
"learning_rate": 9.959924945200523e-07,
|
| 663 |
+
"logits/chosen": -55242325.333333336,
|
| 664 |
+
"logits/rejected": -48961121.684210524,
|
| 665 |
+
"logps/chosen": -415.55738467261904,
|
| 666 |
+
"logps/rejected": -186.4566072162829,
|
| 667 |
+
"loss": 0.4911,
|
| 668 |
+
"loss/base_kto": 0.4885805547237396,
|
| 669 |
+
"rewards/chosen": 0.13379353568667457,
|
| 670 |
+
"rewards/margins": 0.08971994144277165,
|
| 671 |
+
"rewards/rejected": 0.04407359424390291,
|
| 672 |
+
"stability/repetition_rate_mean": 0.30851560831069946,
|
| 673 |
+
"stability/response_length_mean": 32.5,
|
| 674 |
+
"stability/response_length_std": 30.528675079345703,
|
| 675 |
+
"stability/response_length_var": 932.0,
|
| 676 |
+
"stability/token_entropy_mean": 4.474609375,
|
| 677 |
+
"step": 160
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"epoch": 0.8445297504798465,
|
| 681 |
+
"grad_norm": 0.7232491374015808,
|
| 682 |
+
"kl": 0.7498390078544617,
|
| 683 |
+
"learning_rate": 9.952855895999568e-07,
|
| 684 |
+
"logits/chosen": -54396980.96551724,
|
| 685 |
+
"logits/rejected": -49794756.38356164,
|
| 686 |
+
"logps/chosen": -369.75480423850576,
|
| 687 |
+
"logps/rejected": -212.1316486515411,
|
| 688 |
+
"loss": 0.4894,
|
| 689 |
+
"loss/base_kto": 0.49128732085227966,
|
| 690 |
+
"rewards/chosen": 0.11619376040053093,
|
| 691 |
+
"rewards/margins": 0.07014617738226721,
|
| 692 |
+
"rewards/rejected": 0.04604758301826373,
|
| 693 |
+
"stability/repetition_rate_mean": 0.2411106526851654,
|
| 694 |
+
"stability/response_length_mean": 22.5,
|
| 695 |
+
"stability/response_length_std": 28.33977508544922,
|
| 696 |
+
"stability/response_length_var": 803.1428833007812,
|
| 697 |
+
"stability/token_entropy_mean": 4.86328125,
|
| 698 |
+
"step": 165
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"epoch": 0.8701215611004478,
|
| 702 |
+
"grad_norm": 0.6223028302192688,
|
| 703 |
+
"kl": 0.9178180694580078,
|
| 704 |
+
"learning_rate": 9.9452158908238e-07,
|
| 705 |
+
"logits/chosen": -59141307.834319524,
|
| 706 |
+
"logits/rejected": -52591744.84768212,
|
| 707 |
+
"logps/chosen": -439.69304733727813,
|
| 708 |
+
"logps/rejected": -190.61025455298014,
|
| 709 |
+
"loss": 0.4881,
|
| 710 |
+
"loss/base_kto": 0.48755979537963867,
|
| 711 |
+
"rewards/chosen": 0.16488214075212648,
|
| 712 |
+
"rewards/margins": 0.10012487574960424,
|
| 713 |
+
"rewards/rejected": 0.06475726500252224,
|
| 714 |
+
"stability/repetition_rate_mean": 0.3434279263019562,
|
| 715 |
+
"stability/response_length_mean": 44.125,
|
| 716 |
+
"stability/response_length_std": 28.43256378173828,
|
| 717 |
+
"stability/response_length_var": 808.4107055664062,
|
| 718 |
+
"stability/token_entropy_mean": 3.70166015625,
|
| 719 |
+
"step": 170
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"epoch": 0.8957133717210493,
|
| 723 |
+
"grad_norm": 0.7227226495742798,
|
| 724 |
+
"kl": 0.937430202960968,
|
| 725 |
+
"learning_rate": 9.937005810398745e-07,
|
| 726 |
+
"logits/chosen": -56671336.86746988,
|
| 727 |
+
"logits/rejected": -48043027.948051944,
|
| 728 |
+
"logps/chosen": -354.8946018448795,
|
| 729 |
+
"logps/rejected": -194.3057528409091,
|
| 730 |
+
"loss": 0.4875,
|
| 731 |
+
"loss/base_kto": 0.48688632249832153,
|
| 732 |
+
"rewards/chosen": 0.154259325510048,
|
| 733 |
+
"rewards/margins": 0.10408077600360047,
|
| 734 |
+
"rewards/rejected": 0.05017854950644753,
|
| 735 |
+
"stability/repetition_rate_mean": 0.18430830538272858,
|
| 736 |
+
"stability/response_length_mean": 27.0,
|
| 737 |
+
"stability/response_length_std": 25.773740768432617,
|
| 738 |
+
"stability/response_length_var": 664.2857055664062,
|
| 739 |
+
"stability/token_entropy_mean": 4.8564453125,
|
| 740 |
+
"step": 175
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"epoch": 0.9213051823416507,
|
| 744 |
+
"grad_norm": 0.6434662938117981,
|
| 745 |
+
"kl": 1.026900291442871,
|
| 746 |
+
"learning_rate": 9.928226601167138e-07,
|
| 747 |
+
"logits/chosen": -52659602.06134969,
|
| 748 |
+
"logits/rejected": -47986926.06369427,
|
| 749 |
+
"logps/chosen": -374.42537384969324,
|
| 750 |
+
"logps/rejected": -210.55354299363057,
|
| 751 |
+
"loss": 0.4865,
|
| 752 |
+
"loss/base_kto": 0.4877110421657562,
|
| 753 |
+
"rewards/chosen": 0.17204565504577263,
|
| 754 |
+
"rewards/margins": 0.09757829369276705,
|
| 755 |
+
"rewards/rejected": 0.07446736135300558,
|
| 756 |
+
"stability/repetition_rate_mean": 0.16679687798023224,
|
| 757 |
+
"stability/response_length_mean": 34.75,
|
| 758 |
+
"stability/response_length_std": 31.54928207397461,
|
| 759 |
+
"stability/response_length_var": 995.3571166992188,
|
| 760 |
+
"stability/token_entropy_mean": 3.541015625,
|
| 761 |
+
"step": 180
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"epoch": 0.946896992962252,
|
| 765 |
+
"grad_norm": 0.6501672863960266,
|
| 766 |
+
"kl": 1.079397439956665,
|
| 767 |
+
"learning_rate": 9.918879275179817e-07,
|
| 768 |
+
"logits/chosen": -54617631.60493827,
|
| 769 |
+
"logits/rejected": -49526434.025316454,
|
| 770 |
+
"logps/chosen": -310.3054108796296,
|
| 771 |
+
"logps/rejected": -196.56382268591773,
|
| 772 |
+
"loss": 0.4857,
|
| 773 |
+
"loss/base_kto": 0.4866374433040619,
|
| 774 |
+
"rewards/chosen": 0.16959618933406878,
|
| 775 |
+
"rewards/margins": 0.12206393268857642,
|
| 776 |
+
"rewards/rejected": 0.04753225664549236,
|
| 777 |
+
"stability/repetition_rate_mean": 0.205078125,
|
| 778 |
+
"stability/response_length_mean": 32.875,
|
| 779 |
+
"stability/response_length_std": 33.30996322631836,
|
| 780 |
+
"stability/response_length_var": 1109.5535888671875,
|
| 781 |
+
"stability/token_entropy_mean": 3.732421875,
|
| 782 |
+
"step": 185
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"epoch": 0.9724888035828535,
|
| 786 |
+
"grad_norm": 0.6943851113319397,
|
| 787 |
+
"kl": 1.1196650266647339,
|
| 788 |
+
"learning_rate": 9.90896490997906e-07,
|
| 789 |
+
"logits/chosen": -53094718.8502994,
|
| 790 |
+
"logits/rejected": -49691517.49019608,
|
| 791 |
+
"logps/chosen": -390.31998502994014,
|
| 792 |
+
"logps/rejected": -210.46075878267973,
|
| 793 |
+
"loss": 0.484,
|
| 794 |
+
"loss/base_kto": 0.48342210054397583,
|
| 795 |
+
"rewards/chosen": 0.2085319564727966,
|
| 796 |
+
"rewards/margins": 0.13474922263035827,
|
| 797 |
+
"rewards/rejected": 0.07378273384243834,
|
| 798 |
+
"stability/repetition_rate_mean": 0.18919041752815247,
|
| 799 |
+
"stability/response_length_mean": 18.625,
|
| 800 |
+
"stability/response_length_std": 26.52189064025879,
|
| 801 |
+
"stability/response_length_var": 703.4107055664062,
|
| 802 |
+
"stability/token_entropy_mean": 4.5703125,
|
| 803 |
+
"step": 190
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"epoch": 0.9980806142034548,
|
| 807 |
+
"grad_norm": 0.6349285244941711,
|
| 808 |
+
"kl": 1.1486577987670898,
|
| 809 |
+
"learning_rate": 9.898484648474362e-07,
|
| 810 |
+
"logits/chosen": -60025334.090322584,
|
| 811 |
+
"logits/rejected": -53795740.7030303,
|
| 812 |
+
"logps/chosen": -390.8627268145161,
|
| 813 |
+
"logps/rejected": -197.078125,
|
| 814 |
+
"loss": 0.4843,
|
| 815 |
+
"loss/base_kto": 0.4863618016242981,
|
| 816 |
+
"rewards/chosen": 0.1922200725924584,
|
| 817 |
+
"rewards/margins": 0.10809968629540585,
|
| 818 |
+
"rewards/rejected": 0.08412038629705255,
|
| 819 |
+
"stability/repetition_rate_mean": 0.341796875,
|
| 820 |
+
"stability/response_length_mean": 48.5,
|
| 821 |
+
"stability/response_length_std": 28.705400466918945,
|
| 822 |
+
"stability/response_length_var": 824.0,
|
| 823 |
+
"stability/token_entropy_mean": 5.171875,
|
| 824 |
+
"step": 195
|
| 825 |
+
}
|
| 826 |
+
],
|
| 827 |
+
"logging_steps": 5,
|
| 828 |
+
"max_steps": 196,
|
| 829 |
+
"num_input_tokens_seen": 0,
|
| 830 |
+
"num_train_epochs": 1,
|
| 831 |
+
"save_steps": 200,
|
| 832 |
+
"stateful_callbacks": {
|
| 833 |
+
"TrainerControl": {
|
| 834 |
+
"args": {
|
| 835 |
+
"should_epoch_stop": false,
|
| 836 |
+
"should_evaluate": false,
|
| 837 |
+
"should_log": false,
|
| 838 |
+
"should_save": true,
|
| 839 |
+
"should_training_stop": true
|
| 840 |
+
},
|
| 841 |
+
"attributes": {}
|
| 842 |
+
}
|
| 843 |
+
},
|
| 844 |
+
"total_flos": 3.1861866257511875e+18,
|
| 845 |
+
"train_batch_size": 8,
|
| 846 |
+
"trial_name": null,
|
| 847 |
+
"trial_params": null
|
| 848 |
+
}
|
mistral7b_kto_simple/checkpoint-196/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cca02ae9ad4d71243fc18608eed865018fb06c94becd454c7ce13581852dd3e2
|
| 3 |
+
size 8017
|
mistral7b_kto_simple/checkpoint-196/zero_to_fp32.py
ADDED
|
@@ -0,0 +1,604 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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ts 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_simple/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_simple/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mistral7b_kto_simple/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_simple/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_simple/train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 1.0,
|
| 3 |
+
"total_flos": 3.1861866257511875e+18,
|
| 4 |
+
"train_loss": 0.4956757848968311,
|
| 5 |
+
"train_runtime": 3145.5892,
|
| 6 |
+
"train_samples_per_second": 31.791,
|
| 7 |
+
"train_steps_per_second": 0.062
|
| 8 |
+
}
|
mistral7b_kto_simple/trainer_log.jsonl
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"current_steps": 5, "total_steps": 196, "loss": 0.5, "lr": 4e-08, "epoch": 0.025591810620601407, "percentage": 2.55, "elapsed_time": "0:01:17", "remaining_time": "0:49:34", "rewards/chosen": 0.0013566404385002035, "logps/chosen": -439.03207236842104, "logits/chosen": -59718379.78947368, "rewards/rejected": -0.001202781108163652, "logps/rejected": -198.4214332217262, "logits/rejected": -50413504.0, "rewards/margins": 0.0025594215466638558, "kl": 0.006305641960352659}
|
| 2 |
+
{"current_steps": 10, "total_steps": 196, "loss": 0.5001, "lr": 9e-08, "epoch": 0.05118362124120281, "percentage": 5.1, "elapsed_time": "0:02:38", "remaining_time": "0:49:09", "rewards/chosen": 0.002450463833746972, "logps/chosen": -429.9140625, "logits/chosen": -59308962.90909091, "rewards/rejected": -2.95383204896766e-05, "logps/rejected": -192.86823465737953, "logits/rejected": -50030080.0, "rewards/margins": 0.0024800021542366484, "kl": 0.028230074793100357, "stability/response_length_mean": 44.25, "stability/response_length_std": 28.13614845275879, "stability/response_length_var": 791.6428833007812, "stability/token_entropy_mean": 3.4755859375, "stability/repetition_rate_mean": 0.3664148449897766}
|
| 3 |
+
{"current_steps": 15, "total_steps": 196, "loss": 0.4998, "lr": 1.4e-07, "epoch": 0.07677543186180422, "percentage": 7.65, "elapsed_time": "0:03:58", "remaining_time": "0:47:54", "rewards/chosen": 0.001057231787479285, "logps/chosen": -404.1202651515151, "logits/chosen": -56221720.82424243, "rewards/rejected": 0.0014020606394736998, "logps/rejected": -200.68004032258065, "logits/rejected": -51918762.11612903, "rewards/margins": -0.00034482885199441484, "kl": 0.012302148155868053, "stability/response_length_mean": 29.375, "stability/response_length_std": 29.92341423034668, "stability/response_length_var": 895.4107055664062, "stability/token_entropy_mean": 3.7001953125, "stability/repetition_rate_mean": 0.2929687201976776}
|
| 4 |
+
{"current_steps": 20, "total_steps": 196, "loss": 0.5004, "lr": 1.8999999999999998e-07, "epoch": 0.10236724248240563, "percentage": 10.2, "elapsed_time": "0:05:19", "remaining_time": "0:46:51", "rewards/chosen": 0.00033793365582823753, "logps/chosen": -343.6933349609375, "logits/chosen": -51663750.4, "rewards/rejected": 0.0004558594897389412, "logps/rejected": -225.6587890625, "logits/rejected": -48055072.0, "rewards/margins": -0.00011792583391070368, "kl": 0.016423773020505905, "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.2155257910490036}
|
| 5 |
+
{"current_steps": 25, "total_steps": 196, "loss": 0.5001, "lr": 2.4e-07, "epoch": 0.12795905310300704, "percentage": 12.76, "elapsed_time": "0:06:39", "remaining_time": "0:45:30", "rewards/chosen": 0.0016139640890318772, "logps/chosen": -378.4753232758621, "logits/chosen": -56465217.32413793, "rewards/rejected": 0.001752270289829799, "logps/rejected": -202.7753125, "logits/rejected": -52019422.35428572, "rewards/margins": -0.00013830620079792184, "kl": 0.01958128809928894, "stability/response_length_mean": 50.25, "stability/response_length_std": 25.549671173095703, "stability/response_length_var": 652.7857055664062, "stability/token_entropy_mean": 4.5234375, "stability/repetition_rate_mean": 0.19711539149284363}
|
| 6 |
+
{"current_steps": 30, "total_steps": 196, "loss": 0.5002, "lr": 2.9e-07, "epoch": 0.15355086372360843, "percentage": 15.31, "elapsed_time": "0:07:59", "remaining_time": "0:44:11", "rewards/chosen": 0.0019035963404098613, "logps/chosen": -468.5621854026846, "logits/chosen": -57728749.10067114, "rewards/rejected": 0.0009252666032802292, "logps/rejected": -198.23862390350877, "logits/rejected": -51514302.12865497, "rewards/margins": 0.000978329737129632, "kl": 0.020890694111585617, "stability/response_length_mean": 43.0, "stability/response_length_std": 29.602123260498047, "stability/response_length_var": 876.2857055664062, "stability/token_entropy_mean": 4.568359375, "stability/repetition_rate_mean": 0.1525297611951828}
|
| 7 |
+
{"current_steps": 35, "total_steps": 196, "loss": 0.4998, "lr": 3.4000000000000003e-07, "epoch": 0.17914267434420986, "percentage": 17.86, "elapsed_time": "0:09:20", "remaining_time": "0:42:57", "rewards/chosen": 0.0014279391380805004, "logps/chosen": -385.922245846519, "logits/chosen": -57633195.74683544, "rewards/rejected": 0.0016860373226212867, "logps/rejected": -195.10961612654322, "logits/rejected": -53898088.2962963, "rewards/margins": -0.0002580981845407863, "kl": 0.031000053510069847, "stability/response_length_mean": 56.875, "stability/response_length_std": 20.152544021606445, "stability/response_length_var": 406.125, "stability/token_entropy_mean": 5.474609375, "stability/repetition_rate_mean": 0.3030133843421936}
|
| 8 |
+
{"current_steps": 40, "total_steps": 196, "loss": 0.4998, "lr": 3.8999999999999997e-07, "epoch": 0.20473448496481125, "percentage": 20.41, "elapsed_time": "0:10:40", "remaining_time": "0:41:39", "rewards/chosen": 0.003170560672879219, "logps/chosen": -421.8708984375, "logits/chosen": -56631648.0, "rewards/rejected": 0.004156828671693802, "logps/rejected": -219.26767578125, "logits/rejected": -50232096.0, "rewards/margins": -0.0009862679988145826, "kl": 0.0245906300842762, "stability/response_length_mean": 35.0, "stability/response_length_std": 31.518701553344727, "stability/response_length_var": 993.4285888671875, "stability/token_entropy_mean": 4.7880859375, "stability/repetition_rate_mean": 0.15522204339504242}
|
| 9 |
+
{"current_steps": 45, "total_steps": 196, "loss": 0.4998, "lr": 4.3999999999999997e-07, "epoch": 0.23032629558541268, "percentage": 22.96, "elapsed_time": "0:12:01", "remaining_time": "0:40:20", "rewards/chosen": 0.004177153910566497, "logps/chosen": -352.2867030201342, "logits/chosen": -52691122.684563756, "rewards/rejected": 0.003994271769161113, "logps/rejected": -243.83422423245614, "logits/rejected": -50773704.60818713, "rewards/margins": 0.0001828821414053836, "kl": 0.038881849497556686, "stability/response_length_mean": 22.375, "stability/response_length_std": 26.52189064025879, "stability/response_length_var": 703.4107055664062, "stability/token_entropy_mean": 4.9140625, "stability/repetition_rate_mean": 0.0859469324350357}
|
| 10 |
+
{"current_steps": 50, "total_steps": 196, "loss": 0.4999, "lr": 4.9e-07, "epoch": 0.2559181062060141, "percentage": 25.51, "elapsed_time": "0:13:21", "remaining_time": "0:38:59", "rewards/chosen": 0.007963991005148663, "logps/chosen": -375.11949454697987, "logits/chosen": -54047022.389261745, "rewards/rejected": 0.004319407786542212, "logps/rejected": -180.19741410818713, "logits/rejected": -48305211.883040935, "rewards/margins": 0.0036445832186064505, "kl": 0.04716196283698082, "stability/response_length_mean": 55.375, "stability/response_length_std": 16.361431121826172, "stability/response_length_var": 267.6964416503906, "stability/token_entropy_mean": 3.81640625, "stability/repetition_rate_mean": 0.4108419120311737}
|
| 11 |
+
{"current_steps": 55, "total_steps": 196, "loss": 0.4996, "lr": 5.4e-07, "epoch": 0.28150991682661547, "percentage": 28.06, "elapsed_time": "0:14:40", "remaining_time": "0:37:38", "rewards/chosen": 0.003263072937912082, "logps/chosen": -344.4793769409938, "logits/chosen": -56946357.26708075, "rewards/rejected": 0.004255936955505947, "logps/rejected": -230.40548840408806, "logits/rejected": -49559825.710691825, "rewards/margins": -0.0009928640175938652, "kl": 0.0537404902279377, "stability/response_length_mean": 24.5, "stability/response_length_std": 32.710853576660156, "stability/response_length_var": 1070.0, "stability/token_entropy_mean": 4.41015625, "stability/repetition_rate_mean": 0.107421875}
|
| 12 |
+
{"current_steps": 60, "total_steps": 196, "loss": 0.4997, "lr": 5.9e-07, "epoch": 0.30710172744721687, "percentage": 30.61, "elapsed_time": "0:16:02", "remaining_time": "0:36:20", "rewards/chosen": 0.008416923609646883, "logps/chosen": -359.6366477272727, "logits/chosen": -52670401.93939394, "rewards/rejected": 0.005569554144336331, "logps/rejected": -178.17121975806452, "logits/rejected": -47818137.6, "rewards/margins": 0.002847369465310552, "kl": 0.05833861976861954, "stability/response_length_mean": 44.625, "stability/response_length_std": 27.8820858001709, "stability/response_length_var": 777.4107055664062, "stability/token_entropy_mean": 4.666015625, "stability/repetition_rate_mean": 0.18834353983402252}
|
| 13 |
+
{"current_steps": 65, "total_steps": 196, "loss": 0.4996, "lr": 6.4e-07, "epoch": 0.3326935380678183, "percentage": 33.16, "elapsed_time": "0:17:22", "remaining_time": "0:35:01", "rewards/chosen": 0.014990917328865297, "logps/chosen": -381.796875, "logits/chosen": -57552697.80645161, "rewards/rejected": 0.005205387780160615, "logps/rejected": -183.53030303030303, "logits/rejected": -47262831.70909091, "rewards/margins": 0.009785529548704684, "kl": 0.07869795709848404, "stability/response_length_mean": 21.125, "stability/response_length_std": 28.027729034423828, "stability/response_length_var": 785.5535888671875, "stability/token_entropy_mean": 5.58984375, "stability/repetition_rate_mean": 0.19731052219867706}
|
| 14 |
+
{"current_steps": 70, "total_steps": 196, "loss": 0.4992, "lr": 6.9e-07, "epoch": 0.3582853486884197, "percentage": 35.71, "elapsed_time": "0:18:42", "remaining_time": "0:33:40", "rewards/chosen": 0.012032072005733366, "logps/chosen": -379.00811491935485, "logits/chosen": -52767777.03225806, "rewards/rejected": 0.008934669783621124, "logps/rejected": -220.3328125, "logits/rejected": -49031406.93333333, "rewards/margins": 0.0030974022221122426, "kl": 0.08887721598148346, "stability/response_length_mean": 33.875, "stability/response_length_std": 32.36151885986328, "stability/response_length_var": 1047.267822265625, "stability/token_entropy_mean": 5.7265625, "stability/repetition_rate_mean": 0.185546875}
|
| 15 |
+
{"current_steps": 75, "total_steps": 196, "loss": 0.4993, "lr": 7.4e-07, "epoch": 0.3838771593090211, "percentage": 38.27, "elapsed_time": "0:20:03", "remaining_time": "0:32:21", "rewards/chosen": 0.016490372451576026, "logps/chosen": -314.1058910472973, "logits/chosen": -49499744.86486486, "rewards/rejected": 0.006668017354122428, "logps/rejected": -228.81817768895348, "logits/rejected": -47894179.72093023, "rewards/margins": 0.009822355097453599, "kl": 0.09266681969165802, "stability/response_length_mean": 22.75, "stability/response_length_std": 31.07479476928711, "stability/response_length_var": 965.6428833007812, "stability/token_entropy_mean": 2.146484375, "stability/repetition_rate_mean": 0.08308292925357819}
|
| 16 |
+
{"current_steps": 80, "total_steps": 196, "loss": 0.4991, "lr": 7.9e-07, "epoch": 0.4094689699296225, "percentage": 40.82, "elapsed_time": "0:21:24", "remaining_time": "0:31:01", "rewards/chosen": 0.017660609933714204, "logps/chosen": -403.85350269039736, "logits/chosen": -58629587.9205298, "rewards/rejected": 0.009116629877034023, "logps/rejected": -200.96463572485206, "logits/rejected": -53451757.82248521, "rewards/margins": 0.008543980056680181, "kl": 0.12336266040802002, "stability/response_length_mean": 39.0, "stability/response_length_std": 29.159658432006836, "stability/response_length_var": 850.2857055664062, "stability/token_entropy_mean": 5.22265625, "stability/repetition_rate_mean": 0.18541666865348816}
|
| 17 |
+
{"current_steps": 85, "total_steps": 196, "loss": 0.4988, "lr": 8.399999999999999e-07, "epoch": 0.4350607805502239, "percentage": 43.37, "elapsed_time": "0:22:44", "remaining_time": "0:29:41", "rewards/chosen": 0.022868017996511152, "logps/chosen": -358.1038306451613, "logits/chosen": -51481851.04516129, "rewards/rejected": 0.009824119914661754, "logps/rejected": -230.3265625, "logits/rejected": -47137016.24242424, "rewards/margins": 0.013043898081849399, "kl": 0.125388041138649, "stability/response_length_mean": 27.375, "stability/response_length_std": 30.39707374572754, "stability/response_length_var": 923.9821166992188, "stability/token_entropy_mean": 4.92578125, "stability/repetition_rate_mean": 0.12302795797586441}
|
| 18 |
+
{"current_steps": 90, "total_steps": 196, "loss": 0.4984, "lr": 8.9e-07, "epoch": 0.46065259117082535, "percentage": 45.92, "elapsed_time": "0:24:05", "remaining_time": "0:28:21", "rewards/chosen": 0.024491310119628906, "logps/chosen": -380.54447115384613, "logits/chosen": -58409432.615384616, "rewards/rejected": 0.010084743179926059, "logps/rejected": -187.12595274390245, "logits/rejected": -50583776.780487806, "rewards/margins": 0.014406566939702848, "kl": 0.17190246284008026, "stability/response_length_mean": 35.625, "stability/response_length_std": 31.057262420654297, "stability/response_length_var": 964.5535888671875, "stability/token_entropy_mean": 3.7021484375, "stability/repetition_rate_mean": 0.2374526560306549}
|
| 19 |
+
{"current_steps": 95, "total_steps": 196, "loss": 0.4982, "lr": 9.399999999999999e-07, "epoch": 0.48624440179142675, "percentage": 48.47, "elapsed_time": "0:25:24", "remaining_time": "0:27:01", "rewards/chosen": 0.021742636644387546, "logps/chosen": -314.7759592563291, "logits/chosen": -50396399.79746836, "rewards/rejected": 0.008254429440439484, "logps/rejected": -207.06117380401236, "logits/rejected": -48982038.12345679, "rewards/margins": 0.013488207203948062, "kl": 0.15860331058502197, "stability/response_length_mean": 21.875, "stability/response_length_std": 27.304826736450195, "stability/response_length_var": 745.5535888671875, "stability/token_entropy_mean": 4.076171875, "stability/repetition_rate_mean": 0.09133065491914749}
|
| 20 |
+
{"current_steps": 100, "total_steps": 196, "loss": 0.4981, "lr": 9.9e-07, "epoch": 0.5118362124120281, "percentage": 51.02, "elapsed_time": "0:26:45", "remaining_time": "0:25:41", "rewards/chosen": 0.029960999617705476, "logps/chosen": -359.57057643581084, "logits/chosen": -54708237.83783784, "rewards/rejected": 0.01946997365286184, "logps/rejected": -216.38419785610466, "logits/rejected": -50898551.069767445, "rewards/margins": 0.010491025964843637, "kl": 0.2014942169189453, "stability/response_length_mean": 37.875, "stability/response_length_std": 30.248672485351562, "stability/response_length_var": 914.9821166992188, "stability/token_entropy_mean": 4.185546875, "stability/repetition_rate_mean": 0.22838345170021057}
|
| 21 |
+
{"current_steps": 105, "total_steps": 196, "loss": 0.4975, "lr": 9.999815554351224e-07, "epoch": 0.5374280230326296, "percentage": 53.57, "elapsed_time": "0:28:05", "remaining_time": "0:24:21", "rewards/chosen": 0.03542007021157138, "logps/chosen": -399.54828689759034, "logits/chosen": -59369200.578313254, "rewards/rejected": 0.015808235515247692, "logps/rejected": -209.8457538555195, "logits/rejected": -53790852.98701299, "rewards/margins": 0.01961183469632369, "kl": 0.22638840973377228, "stability/response_length_mean": 29.0, "stability/response_length_std": 29.89505386352539, "stability/response_length_var": 893.7142944335938, "stability/token_entropy_mean": 3.349609375, "stability/repetition_rate_mean": 0.1897321343421936}
|
| 22 |
+
{"current_steps": 110, "total_steps": 196, "loss": 0.4975, "lr": 9.999066267225444e-07, "epoch": 0.5630198336532309, "percentage": 56.12, "elapsed_time": "0:29:27", "remaining_time": "0:23:01", "rewards/chosen": 0.03603898760784103, "logps/chosen": -378.2028661521084, "logits/chosen": -57387927.13253012, "rewards/rejected": 0.02093996630086527, "logps/rejected": -205.8787413758117, "logits/rejected": -53615536.20779221, "rewards/margins": 0.015099021306975758, "kl": 0.266899973154068, "stability/response_length_mean": 28.875, "stability/response_length_std": 29.911476135253906, "stability/response_length_var": 894.6964111328125, "stability/token_entropy_mean": 4.357421875, "stability/repetition_rate_mean": 0.31048768758773804}
|
| 23 |
+
{"current_steps": 115, "total_steps": 196, "loss": 0.4965, "lr": 9.997740697079592e-07, "epoch": 0.5886116442738324, "percentage": 58.67, "elapsed_time": "0:30:48", "remaining_time": "0:21:41", "rewards/chosen": 0.05118938035602811, "logps/chosen": -364.0806467563291, "logits/chosen": -60606632.50632911, "rewards/rejected": 0.02257564479922071, "logps/rejected": -200.9707995756173, "logits/rejected": -53405677.03703704, "rewards/margins": 0.0286137355568074, "kl": 0.32395443320274353, "stability/response_length_mean": 38.75, "stability/response_length_std": 29.936838150024414, "stability/response_length_var": 896.2142944335938, "stability/token_entropy_mean": 4.966796875, "stability/repetition_rate_mean": 0.2749515473842621}
|
| 24 |
+
{"current_steps": 120, "total_steps": 196, "loss": 0.4959, "lr": 9.995838996722914e-07, "epoch": 0.6142034548944337, "percentage": 61.22, "elapsed_time": "0:32:07", "remaining_time": "0:20:20", "rewards/chosen": 0.05828505871342678, "logps/chosen": -383.6620710784314, "logits/chosen": -57752502.37908497, "rewards/rejected": 0.026845238165941067, "logps/rejected": -211.94790886976048, "logits/rejected": -54366698.53892215, "rewards/margins": 0.03143982054748571, "kl": 0.3587552011013031, "stability/response_length_mean": 27.875, "stability/response_length_std": 30.31943130493164, "stability/response_length_var": 919.2678833007812, "stability/token_entropy_mean": 4.640625, "stability/repetition_rate_mean": 0.1723366528749466}
|
| 25 |
+
{"current_steps": 125, "total_steps": 196, "loss": 0.4961, "lr": 9.993361385379874e-07, "epoch": 0.6397952655150352, "percentage": 63.78, "elapsed_time": "0:33:28", "remaining_time": "0:19:00", "rewards/chosen": 0.061065817532474045, "logps/chosen": -416.76867508561645, "logits/chosen": -60696351.56164384, "rewards/rejected": 0.02758629842736255, "logps/rejected": -216.09132543103448, "logits/rejected": -55669807.08045977, "rewards/margins": 0.033479519105111495, "kl": 0.3919747769832611, "stability/response_length_mean": 15.875, "stability/response_length_std": 24.584766387939453, "stability/response_length_var": 604.4107055664062, "stability/token_entropy_mean": 3.49609375, "stability/repetition_rate_mean": 0.15937499701976776}
|
| 26 |
+
{"current_steps": 130, "total_steps": 196, "loss": 0.4954, "lr": 9.99030814866488e-07, "epoch": 0.6653870761356366, "percentage": 66.33, "elapsed_time": "0:34:48", "remaining_time": "0:17:40", "rewards/chosen": 0.06919794390278478, "logps/chosen": -391.96595262096776, "logits/chosen": -57384028.49032258, "rewards/rejected": 0.026528552084258108, "logps/rejected": -183.6536221590909, "logits/rejected": -53841212.50909091, "rewards/margins": 0.042669391818526664, "kl": 0.45393142104148865, "stability/response_length_mean": 43.25, "stability/response_length_std": 29.620214462280273, "stability/response_length_var": 877.3571166992188, "stability/token_entropy_mean": 3.7138671875, "stability/repetition_rate_mean": 0.25242185592651367}
|
| 27 |
+
{"current_steps": 135, "total_steps": 196, "loss": 0.4945, "lr": 9.986679638549358e-07, "epoch": 0.690978886756238, "percentage": 68.88, "elapsed_time": "0:36:07", "remaining_time": "0:16:19", "rewards/chosen": 0.08181942898802962, "logps/chosen": -400.9979629984663, "logits/chosen": -59851254.57668712, "rewards/rejected": 0.03235159709954717, "logps/rejected": -247.54722332802547, "logits/rejected": -55000540.12738854, "rewards/margins": 0.049467831888482444, "kl": 0.501304566860199, "stability/response_length_mean": 29.25, "stability/response_length_std": 29.936838150024414, "stability/response_length_var": 896.2142944335938, "stability/token_entropy_mean": 4.072265625, "stability/repetition_rate_mean": 0.2230902761220932}
|
| 28 |
+
{"current_steps": 140, "total_steps": 196, "loss": 0.4937, "lr": 9.982476273321175e-07, "epoch": 0.7165706973768394, "percentage": 71.43, "elapsed_time": "0:37:28", "remaining_time": "0:14:59", "rewards/chosen": 0.08078298857717803, "logps/chosen": -366.3819128787879, "logits/chosen": -57085976.82424243, "rewards/rejected": 0.011630334392670662, "logps/rejected": -189.91817036290323, "logits/rejected": -50076896.61935484, "rewards/margins": 0.06915265418450736, "kl": 0.4828576147556305, "stability/response_length_mean": 56.25, "stability/response_length_std": 21.920310974121094, "stability/response_length_var": 480.5, "stability/token_entropy_mean": 5.150390625, "stability/repetition_rate_mean": 0.2265625}
|
| 29 |
+
{"current_steps": 145, "total_steps": 196, "loss": 0.4932, "lr": 9.977698537536417e-07, "epoch": 0.7421625079974408, "percentage": 73.98, "elapsed_time": "0:38:48", "remaining_time": "0:13:38", "rewards/chosen": 0.07991740789758153, "logps/chosen": -329.4726327183735, "logits/chosen": -51148522.409638554, "rewards/rejected": 0.03416169773448597, "logps/rejected": -199.14629413555195, "logits/rejected": -51662778.18181818, "rewards/margins": 0.04575571016309556, "kl": 0.5725060105323792, "stability/response_length_mean": 28.875, "stability/response_length_std": 29.73423957824707, "stability/response_length_var": 884.125, "stability/token_entropy_mean": 5.2734375, "stability/repetition_rate_mean": 0.25424888730049133}
|
| 30 |
+
{"current_steps": 150, "total_steps": 196, "loss": 0.493, "lr": 9.972346981963546e-07, "epoch": 0.7677543186180422, "percentage": 76.53, "elapsed_time": "0:40:08", "remaining_time": "0:12:18", "rewards/chosen": 0.11249845168169807, "logps/chosen": -396.80946691176473, "logits/chosen": -55423500.04705882, "rewards/rejected": 0.03626797358194987, "logps/rejected": -207.36325520833333, "logits/rejected": -50200978.77333333, "rewards/margins": 0.0762304780997482, "kl": 0.638058602809906, "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.4925, "lr": 9.966422223519885e-07, "epoch": 0.7933461292386437, "percentage": 79.08, "elapsed_time": "0:41:30", "remaining_time": "0:10:58", "rewards/chosen": 0.0870250758002786, "logps/chosen": -360.1190487132353, "logits/chosen": -54021613.92941176, "rewards/rejected": 0.028921772638956705, "logps/rejected": -191.01639322916665, "logits/rejected": -49351734.61333334, "rewards/margins": 0.058103303161321895, "kl": 0.6403493881225586, "stability/response_length_mean": 61.375, "stability/response_length_std": 7.424621105194092, "stability/response_length_var": 55.125, "stability/token_entropy_mean": 4.529296875, "stability/repetition_rate_mean": 0.3113190531730652}
|
| 32 |
+
{"current_steps": 160, "total_steps": 196, "loss": 0.4911, "lr": 9.959924945200523e-07, "epoch": 0.818937939859245, "percentage": 81.63, "elapsed_time": "0:42:50", "remaining_time": "0:09:38", "rewards/chosen": 0.13379353568667457, "logps/chosen": -415.55738467261904, "logits/chosen": -55242325.333333336, "rewards/rejected": 0.04407359424390291, "logps/rejected": -186.4566072162829, "logits/rejected": -48961121.684210524, "rewards/margins": 0.08971994144277165, "kl": 0.7161628603935242, "stability/response_length_mean": 32.5, "stability/response_length_std": 30.528675079345703, "stability/response_length_var": 932.0, "stability/token_entropy_mean": 4.474609375, "stability/repetition_rate_mean": 0.30851560831069946}
|
| 33 |
+
{"current_steps": 165, "total_steps": 196, "loss": 0.4894, "lr": 9.952855895999568e-07, "epoch": 0.8445297504798465, "percentage": 84.18, "elapsed_time": "0:44:10", "remaining_time": "0:08:17", "rewards/chosen": 0.11619376040053093, "logps/chosen": -369.75480423850576, "logits/chosen": -54396980.96551724, "rewards/rejected": 0.04604758301826373, "logps/rejected": -212.1316486515411, "logits/rejected": -49794756.38356164, "rewards/margins": 0.07014617738226721, "kl": 0.7498390078544617, "stability/response_length_mean": 22.5, "stability/response_length_std": 28.33977508544922, "stability/response_length_var": 803.1428833007812, "stability/token_entropy_mean": 4.86328125, "stability/repetition_rate_mean": 0.2411106526851654}
|
| 34 |
+
{"current_steps": 170, "total_steps": 196, "loss": 0.4881, "lr": 9.9452158908238e-07, "epoch": 0.8701215611004478, "percentage": 86.73, "elapsed_time": "0:45:31", "remaining_time": "0:06:57", "rewards/chosen": 0.16488214075212648, "logps/chosen": -439.69304733727813, "logits/chosen": -59141307.834319524, "rewards/rejected": 0.06475726500252224, "logps/rejected": -190.61025455298014, "logits/rejected": -52591744.84768212, "rewards/margins": 0.10012487574960424, "kl": 0.9178180694580078, "stability/response_length_mean": 44.125, "stability/response_length_std": 28.43256378173828, "stability/response_length_var": 808.4107055664062, "stability/token_entropy_mean": 3.70166015625, "stability/repetition_rate_mean": 0.3434279263019562}
|
| 35 |
+
{"current_steps": 175, "total_steps": 196, "loss": 0.4875, "lr": 9.937005810398745e-07, "epoch": 0.8957133717210493, "percentage": 89.29, "elapsed_time": "0:46:51", "remaining_time": "0:05:37", "rewards/chosen": 0.154259325510048, "logps/chosen": -354.8946018448795, "logits/chosen": -56671336.86746988, "rewards/rejected": 0.05017854950644753, "logps/rejected": -194.3057528409091, "logits/rejected": -48043027.948051944, "rewards/margins": 0.10408077600360047, "kl": 0.937430202960968, "stability/response_length_mean": 27.0, "stability/response_length_std": 25.773740768432617, "stability/response_length_var": 664.2857055664062, "stability/token_entropy_mean": 4.8564453125, "stability/repetition_rate_mean": 0.18430830538272858}
|
| 36 |
+
{"current_steps": 180, "total_steps": 196, "loss": 0.4865, "lr": 9.928226601167138e-07, "epoch": 0.9213051823416507, "percentage": 91.84, "elapsed_time": "0:48:12", "remaining_time": "0:04:17", "rewards/chosen": 0.17204565504577263, "logps/chosen": -374.42537384969324, "logits/chosen": -52659602.06134969, "rewards/rejected": 0.07446736135300558, "logps/rejected": -210.55354299363057, "logits/rejected": -47986926.06369427, "rewards/margins": 0.09757829369276705, "kl": 1.026900291442871, "stability/response_length_mean": 34.75, "stability/response_length_std": 31.54928207397461, "stability/response_length_var": 995.3571166992188, "stability/token_entropy_mean": 3.541015625, "stability/repetition_rate_mean": 0.16679687798023224}
|
| 37 |
+
{"current_steps": 185, "total_steps": 196, "loss": 0.4857, "lr": 9.918879275179817e-07, "epoch": 0.946896992962252, "percentage": 94.39, "elapsed_time": "0:49:31", "remaining_time": "0:02:56", "rewards/chosen": 0.16959618933406878, "logps/chosen": -310.3054108796296, "logits/chosen": -54617631.60493827, "rewards/rejected": 0.04753225664549236, "logps/rejected": -196.56382268591773, "logits/rejected": -49526434.025316454, "rewards/margins": 0.12206393268857642, "kl": 1.079397439956665, "stability/response_length_mean": 32.875, "stability/response_length_std": 33.30996322631836, "stability/response_length_var": 1109.5535888671875, "stability/token_entropy_mean": 3.732421875, "stability/repetition_rate_mean": 0.205078125}
|
| 38 |
+
{"current_steps": 190, "total_steps": 196, "loss": 0.484, "lr": 9.90896490997906e-07, "epoch": 0.9724888035828535, "percentage": 96.94, "elapsed_time": "0:50:51", "remaining_time": "0:01:36", "rewards/chosen": 0.2085319564727966, "logps/chosen": -390.31998502994014, "logits/chosen": -53094718.8502994, "rewards/rejected": 0.07378273384243834, "logps/rejected": -210.46075878267973, "logits/rejected": -49691517.49019608, "rewards/margins": 0.13474922263035827, "kl": 1.1196650266647339, "stability/response_length_mean": 18.625, "stability/response_length_std": 26.52189064025879, "stability/response_length_var": 703.4107055664062, "stability/token_entropy_mean": 4.5703125, "stability/repetition_rate_mean": 0.18919041752815247}
|
| 39 |
+
{"current_steps": 195, "total_steps": 196, "loss": 0.4843, "lr": 9.898484648474362e-07, "epoch": 0.9980806142034548, "percentage": 99.49, "elapsed_time": "0:52:12", "remaining_time": "0:00:16", "rewards/chosen": 0.1922200725924584, "logps/chosen": -390.8627268145161, "logits/chosen": -60025334.090322584, "rewards/rejected": 0.08412038629705255, "logps/rejected": -197.078125, "logits/rejected": -53795740.7030303, "rewards/margins": 0.10809968629540585, "kl": 1.1486577987670898, "stability/response_length_mean": 48.5, "stability/response_length_std": 28.705400466918945, "stability/response_length_var": 824.0, "stability/token_entropy_mean": 5.171875, "stability/repetition_rate_mean": 0.341796875}
|
| 40 |
+
{"current_steps": 196, "total_steps": 196, "epoch": 1.0, "percentage": 100.0, "elapsed_time": "0:52:25", "remaining_time": "0:00:00"}
|
mistral7b_kto_simple/trainer_state.json
ADDED
|
@@ -0,0 +1,857 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.5772594809532166,
|
| 15 |
+
"kl": 0.006305641960352659,
|
| 16 |
+
"learning_rate": 4e-08,
|
| 17 |
+
"logits/chosen": -59718379.78947368,
|
| 18 |
+
"logits/rejected": -50413504.0,
|
| 19 |
+
"logps/chosen": -439.03207236842104,
|
| 20 |
+
"logps/rejected": -198.4214332217262,
|
| 21 |
+
"loss": 0.5,
|
| 22 |
+
"loss/base_kto": 0.49969324469566345,
|
| 23 |
+
"rewards/chosen": 0.0013566404385002035,
|
| 24 |
+
"rewards/margins": 0.0025594215466638558,
|
| 25 |
+
"rewards/rejected": -0.001202781108163652,
|
| 26 |
+
"step": 5
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"epoch": 0.05118362124120281,
|
| 30 |
+
"grad_norm": 0.6031567454338074,
|
| 31 |
+
"kl": 0.028230074793100357,
|
| 32 |
+
"learning_rate": 9e-08,
|
| 33 |
+
"logits/chosen": -59308962.90909091,
|
| 34 |
+
"logits/rejected": -50030080.0,
|
| 35 |
+
"logps/chosen": -429.9140625,
|
| 36 |
+
"logps/rejected": -192.86823465737953,
|
| 37 |
+
"loss": 0.5001,
|
| 38 |
+
"loss/base_kto": 0.49971267580986023,
|
| 39 |
+
"rewards/chosen": 0.002450463833746972,
|
| 40 |
+
"rewards/margins": 0.0024800021542366484,
|
| 41 |
+
"rewards/rejected": -2.95383204896766e-05,
|
| 42 |
+
"stability/repetition_rate_mean": 0.3664148449897766,
|
| 43 |
+
"stability/response_length_mean": 44.25,
|
| 44 |
+
"stability/response_length_std": 28.13614845275879,
|
| 45 |
+
"stability/response_length_var": 791.6428833007812,
|
| 46 |
+
"stability/token_entropy_mean": 3.4755859375,
|
| 47 |
+
"step": 10
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"epoch": 0.07677543186180422,
|
| 51 |
+
"grad_norm": 0.609616219997406,
|
| 52 |
+
"kl": 0.012302148155868053,
|
| 53 |
+
"learning_rate": 1.4e-07,
|
| 54 |
+
"logits/chosen": -56221720.82424243,
|
| 55 |
+
"logits/rejected": -51918762.11612903,
|
| 56 |
+
"logps/chosen": -404.1202651515151,
|
| 57 |
+
"logps/rejected": -200.68004032258065,
|
| 58 |
+
"loss": 0.4998,
|
| 59 |
+
"loss/base_kto": 0.500029981136322,
|
| 60 |
+
"rewards/chosen": 0.001057231787479285,
|
| 61 |
+
"rewards/margins": -0.00034482885199441484,
|
| 62 |
+
"rewards/rejected": 0.0014020606394736998,
|
| 63 |
+
"stability/repetition_rate_mean": 0.2929687201976776,
|
| 64 |
+
"stability/response_length_mean": 29.375,
|
| 65 |
+
"stability/response_length_std": 29.92341423034668,
|
| 66 |
+
"stability/response_length_var": 895.4107055664062,
|
| 67 |
+
"stability/token_entropy_mean": 3.7001953125,
|
| 68 |
+
"step": 15
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"epoch": 0.10236724248240563,
|
| 72 |
+
"grad_norm": 0.6197210550308228,
|
| 73 |
+
"kl": 0.016423773020505905,
|
| 74 |
+
"learning_rate": 1.8999999999999998e-07,
|
| 75 |
+
"logits/chosen": -51663750.4,
|
| 76 |
+
"logits/rejected": -48055072.0,
|
| 77 |
+
"logps/chosen": -343.6933349609375,
|
| 78 |
+
"logps/rejected": -225.6587890625,
|
| 79 |
+
"loss": 0.5004,
|
| 80 |
+
"loss/base_kto": 0.5000466704368591,
|
| 81 |
+
"rewards/chosen": 0.00033793365582823753,
|
| 82 |
+
"rewards/margins": -0.00011792583391070368,
|
| 83 |
+
"rewards/rejected": 0.0004558594897389412,
|
| 84 |
+
"stability/repetition_rate_mean": 0.2155257910490036,
|
| 85 |
+
"stability/response_length_mean": 44.0,
|
| 86 |
+
"stability/response_length_std": 28.0611572265625,
|
| 87 |
+
"stability/response_length_var": 787.4285888671875,
|
| 88 |
+
"stability/token_entropy_mean": 4.42578125,
|
| 89 |
+
"step": 20
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"epoch": 0.12795905310300704,
|
| 93 |
+
"grad_norm": 0.5772079229354858,
|
| 94 |
+
"kl": 0.01958128809928894,
|
| 95 |
+
"learning_rate": 2.4e-07,
|
| 96 |
+
"logits/chosen": -56465217.32413793,
|
| 97 |
+
"logits/rejected": -52019422.35428572,
|
| 98 |
+
"logps/chosen": -378.4753232758621,
|
| 99 |
+
"logps/rejected": -202.7753125,
|
| 100 |
+
"loss": 0.5001,
|
| 101 |
+
"loss/base_kto": 0.49998876452445984,
|
| 102 |
+
"rewards/chosen": 0.0016139640890318772,
|
| 103 |
+
"rewards/margins": -0.00013830620079792184,
|
| 104 |
+
"rewards/rejected": 0.001752270289829799,
|
| 105 |
+
"stability/repetition_rate_mean": 0.19711539149284363,
|
| 106 |
+
"stability/response_length_mean": 50.25,
|
| 107 |
+
"stability/response_length_std": 25.549671173095703,
|
| 108 |
+
"stability/response_length_var": 652.7857055664062,
|
| 109 |
+
"stability/token_entropy_mean": 4.5234375,
|
| 110 |
+
"step": 25
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"epoch": 0.15355086372360843,
|
| 114 |
+
"grad_norm": 0.6031031012535095,
|
| 115 |
+
"kl": 0.020890694111585617,
|
| 116 |
+
"learning_rate": 2.9e-07,
|
| 117 |
+
"logits/chosen": -57728749.10067114,
|
| 118 |
+
"logits/rejected": -51514302.12865497,
|
| 119 |
+
"logps/chosen": -468.5621854026846,
|
| 120 |
+
"logps/rejected": -198.23862390350877,
|
| 121 |
+
"loss": 0.5002,
|
| 122 |
+
"loss/base_kto": 0.49984827637672424,
|
| 123 |
+
"rewards/chosen": 0.0019035963404098613,
|
| 124 |
+
"rewards/margins": 0.000978329737129632,
|
| 125 |
+
"rewards/rejected": 0.0009252666032802292,
|
| 126 |
+
"stability/repetition_rate_mean": 0.1525297611951828,
|
| 127 |
+
"stability/response_length_mean": 43.0,
|
| 128 |
+
"stability/response_length_std": 29.602123260498047,
|
| 129 |
+
"stability/response_length_var": 876.2857055664062,
|
| 130 |
+
"stability/token_entropy_mean": 4.568359375,
|
| 131 |
+
"step": 30
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 0.17914267434420986,
|
| 135 |
+
"grad_norm": 0.6770267486572266,
|
| 136 |
+
"kl": 0.031000053510069847,
|
| 137 |
+
"learning_rate": 3.4000000000000003e-07,
|
| 138 |
+
"logits/chosen": -57633195.74683544,
|
| 139 |
+
"logits/rejected": -53898088.2962963,
|
| 140 |
+
"logps/chosen": -385.922245846519,
|
| 141 |
+
"logps/rejected": -195.10961612654322,
|
| 142 |
+
"loss": 0.4998,
|
| 143 |
+
"loss/base_kto": 0.5000401139259338,
|
| 144 |
+
"rewards/chosen": 0.0014279391380805004,
|
| 145 |
+
"rewards/margins": -0.0002580981845407863,
|
| 146 |
+
"rewards/rejected": 0.0016860373226212867,
|
| 147 |
+
"stability/repetition_rate_mean": 0.3030133843421936,
|
| 148 |
+
"stability/response_length_mean": 56.875,
|
| 149 |
+
"stability/response_length_std": 20.152544021606445,
|
| 150 |
+
"stability/response_length_var": 406.125,
|
| 151 |
+
"stability/token_entropy_mean": 5.474609375,
|
| 152 |
+
"step": 35
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"epoch": 0.20473448496481125,
|
| 156 |
+
"grad_norm": 0.587213933467865,
|
| 157 |
+
"kl": 0.0245906300842762,
|
| 158 |
+
"learning_rate": 3.8999999999999997e-07,
|
| 159 |
+
"logits/chosen": -56631648.0,
|
| 160 |
+
"logits/rejected": -50232096.0,
|
| 161 |
+
"logps/chosen": -421.8708984375,
|
| 162 |
+
"logps/rejected": -219.26767578125,
|
| 163 |
+
"loss": 0.4998,
|
| 164 |
+
"loss/base_kto": 0.50019770860672,
|
| 165 |
+
"rewards/chosen": 0.003170560672879219,
|
| 166 |
+
"rewards/margins": -0.0009862679988145826,
|
| 167 |
+
"rewards/rejected": 0.004156828671693802,
|
| 168 |
+
"stability/repetition_rate_mean": 0.15522204339504242,
|
| 169 |
+
"stability/response_length_mean": 35.0,
|
| 170 |
+
"stability/response_length_std": 31.518701553344727,
|
| 171 |
+
"stability/response_length_var": 993.4285888671875,
|
| 172 |
+
"stability/token_entropy_mean": 4.7880859375,
|
| 173 |
+
"step": 40
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"epoch": 0.23032629558541268,
|
| 177 |
+
"grad_norm": 0.640202522277832,
|
| 178 |
+
"kl": 0.038881849497556686,
|
| 179 |
+
"learning_rate": 4.3999999999999997e-07,
|
| 180 |
+
"logits/chosen": -52691122.684563756,
|
| 181 |
+
"logits/rejected": -50773704.60818713,
|
| 182 |
+
"logps/chosen": -352.2867030201342,
|
| 183 |
+
"logps/rejected": -243.83422423245614,
|
| 184 |
+
"loss": 0.4998,
|
| 185 |
+
"loss/base_kto": 0.4999396800994873,
|
| 186 |
+
"rewards/chosen": 0.004177153910566497,
|
| 187 |
+
"rewards/margins": 0.0001828821414053836,
|
| 188 |
+
"rewards/rejected": 0.003994271769161113,
|
| 189 |
+
"stability/repetition_rate_mean": 0.0859469324350357,
|
| 190 |
+
"stability/response_length_mean": 22.375,
|
| 191 |
+
"stability/response_length_std": 26.52189064025879,
|
| 192 |
+
"stability/response_length_var": 703.4107055664062,
|
| 193 |
+
"stability/token_entropy_mean": 4.9140625,
|
| 194 |
+
"step": 45
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"epoch": 0.2559181062060141,
|
| 198 |
+
"grad_norm": 0.5786681175231934,
|
| 199 |
+
"kl": 0.04716196283698082,
|
| 200 |
+
"learning_rate": 4.9e-07,
|
| 201 |
+
"logits/chosen": -54047022.389261745,
|
| 202 |
+
"logits/rejected": -48305211.883040935,
|
| 203 |
+
"logps/chosen": -375.11949454697987,
|
| 204 |
+
"logps/rejected": -180.19741410818713,
|
| 205 |
+
"loss": 0.4999,
|
| 206 |
+
"loss/base_kto": 0.499483197927475,
|
| 207 |
+
"rewards/chosen": 0.007963991005148663,
|
| 208 |
+
"rewards/margins": 0.0036445832186064505,
|
| 209 |
+
"rewards/rejected": 0.004319407786542212,
|
| 210 |
+
"stability/repetition_rate_mean": 0.4108419120311737,
|
| 211 |
+
"stability/response_length_mean": 55.375,
|
| 212 |
+
"stability/response_length_std": 16.361431121826172,
|
| 213 |
+
"stability/response_length_var": 267.6964416503906,
|
| 214 |
+
"stability/token_entropy_mean": 3.81640625,
|
| 215 |
+
"step": 50
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"epoch": 0.28150991682661547,
|
| 219 |
+
"grad_norm": 0.663858950138092,
|
| 220 |
+
"kl": 0.0537404902279377,
|
| 221 |
+
"learning_rate": 5.4e-07,
|
| 222 |
+
"logits/chosen": -56946357.26708075,
|
| 223 |
+
"logits/rejected": -49559825.710691825,
|
| 224 |
+
"logps/chosen": -344.4793769409938,
|
| 225 |
+
"logps/rejected": -230.40548840408806,
|
| 226 |
+
"loss": 0.4996,
|
| 227 |
+
"loss/base_kto": 0.5001100897789001,
|
| 228 |
+
"rewards/chosen": 0.003263072937912082,
|
| 229 |
+
"rewards/margins": -0.0009928640175938652,
|
| 230 |
+
"rewards/rejected": 0.004255936955505947,
|
| 231 |
+
"stability/repetition_rate_mean": 0.107421875,
|
| 232 |
+
"stability/response_length_mean": 24.5,
|
| 233 |
+
"stability/response_length_std": 32.710853576660156,
|
| 234 |
+
"stability/response_length_var": 1070.0,
|
| 235 |
+
"stability/token_entropy_mean": 4.41015625,
|
| 236 |
+
"step": 55
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"epoch": 0.30710172744721687,
|
| 240 |
+
"grad_norm": 0.5810667276382446,
|
| 241 |
+
"kl": 0.05833861976861954,
|
| 242 |
+
"learning_rate": 5.9e-07,
|
| 243 |
+
"logits/chosen": -52670401.93939394,
|
| 244 |
+
"logits/rejected": -47818137.6,
|
| 245 |
+
"logps/chosen": -359.6366477272727,
|
| 246 |
+
"logps/rejected": -178.17121975806452,
|
| 247 |
+
"loss": 0.4997,
|
| 248 |
+
"loss/base_kto": 0.499610960483551,
|
| 249 |
+
"rewards/chosen": 0.008416923609646883,
|
| 250 |
+
"rewards/margins": 0.002847369465310552,
|
| 251 |
+
"rewards/rejected": 0.005569554144336331,
|
| 252 |
+
"stability/repetition_rate_mean": 0.18834353983402252,
|
| 253 |
+
"stability/response_length_mean": 44.625,
|
| 254 |
+
"stability/response_length_std": 27.8820858001709,
|
| 255 |
+
"stability/response_length_var": 777.4107055664062,
|
| 256 |
+
"stability/token_entropy_mean": 4.666015625,
|
| 257 |
+
"step": 60
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"epoch": 0.3326935380678183,
|
| 261 |
+
"grad_norm": 0.5759316682815552,
|
| 262 |
+
"kl": 0.07869795709848404,
|
| 263 |
+
"learning_rate": 6.4e-07,
|
| 264 |
+
"logits/chosen": -57552697.80645161,
|
| 265 |
+
"logits/rejected": -47262831.70909091,
|
| 266 |
+
"logps/chosen": -381.796875,
|
| 267 |
+
"logps/rejected": -183.53030303030303,
|
| 268 |
+
"loss": 0.4996,
|
| 269 |
+
"loss/base_kto": 0.4987983703613281,
|
| 270 |
+
"rewards/chosen": 0.014990917328865297,
|
| 271 |
+
"rewards/margins": 0.009785529548704684,
|
| 272 |
+
"rewards/rejected": 0.005205387780160615,
|
| 273 |
+
"stability/repetition_rate_mean": 0.19731052219867706,
|
| 274 |
+
"stability/response_length_mean": 21.125,
|
| 275 |
+
"stability/response_length_std": 28.027729034423828,
|
| 276 |
+
"stability/response_length_var": 785.5535888671875,
|
| 277 |
+
"stability/token_entropy_mean": 5.58984375,
|
| 278 |
+
"step": 65
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"epoch": 0.3582853486884197,
|
| 282 |
+
"grad_norm": 0.5528621673583984,
|
| 283 |
+
"kl": 0.08887721598148346,
|
| 284 |
+
"learning_rate": 6.9e-07,
|
| 285 |
+
"logits/chosen": -52767777.03225806,
|
| 286 |
+
"logits/rejected": -49031406.93333333,
|
| 287 |
+
"logps/chosen": -379.00811491935485,
|
| 288 |
+
"logps/rejected": -220.3328125,
|
| 289 |
+
"loss": 0.4992,
|
| 290 |
+
"loss/base_kto": 0.49963781237602234,
|
| 291 |
+
"rewards/chosen": 0.012032072005733366,
|
| 292 |
+
"rewards/margins": 0.0030974022221122426,
|
| 293 |
+
"rewards/rejected": 0.008934669783621124,
|
| 294 |
+
"stability/repetition_rate_mean": 0.185546875,
|
| 295 |
+
"stability/response_length_mean": 33.875,
|
| 296 |
+
"stability/response_length_std": 32.36151885986328,
|
| 297 |
+
"stability/response_length_var": 1047.267822265625,
|
| 298 |
+
"stability/token_entropy_mean": 5.7265625,
|
| 299 |
+
"step": 70
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"epoch": 0.3838771593090211,
|
| 303 |
+
"grad_norm": 0.6098544001579285,
|
| 304 |
+
"kl": 0.09266681969165802,
|
| 305 |
+
"learning_rate": 7.4e-07,
|
| 306 |
+
"logits/chosen": -49499744.86486486,
|
| 307 |
+
"logits/rejected": -47894179.72093023,
|
| 308 |
+
"logps/chosen": -314.1058910472973,
|
| 309 |
+
"logps/rejected": -228.81817768895348,
|
| 310 |
+
"loss": 0.4993,
|
| 311 |
+
"loss/base_kto": 0.49878960847854614,
|
| 312 |
+
"rewards/chosen": 0.016490372451576026,
|
| 313 |
+
"rewards/margins": 0.009822355097453599,
|
| 314 |
+
"rewards/rejected": 0.006668017354122428,
|
| 315 |
+
"stability/repetition_rate_mean": 0.08308292925357819,
|
| 316 |
+
"stability/response_length_mean": 22.75,
|
| 317 |
+
"stability/response_length_std": 31.07479476928711,
|
| 318 |
+
"stability/response_length_var": 965.6428833007812,
|
| 319 |
+
"stability/token_entropy_mean": 2.146484375,
|
| 320 |
+
"step": 75
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"epoch": 0.4094689699296225,
|
| 324 |
+
"grad_norm": 0.6027852892875671,
|
| 325 |
+
"kl": 0.12336266040802002,
|
| 326 |
+
"learning_rate": 7.9e-07,
|
| 327 |
+
"logits/chosen": -58629587.9205298,
|
| 328 |
+
"logits/rejected": -53451757.82248521,
|
| 329 |
+
"logps/chosen": -403.85350269039736,
|
| 330 |
+
"logps/rejected": -200.96463572485206,
|
| 331 |
+
"loss": 0.4991,
|
| 332 |
+
"loss/base_kto": 0.4989641308784485,
|
| 333 |
+
"rewards/chosen": 0.017660609933714204,
|
| 334 |
+
"rewards/margins": 0.008543980056680181,
|
| 335 |
+
"rewards/rejected": 0.009116629877034023,
|
| 336 |
+
"stability/repetition_rate_mean": 0.18541666865348816,
|
| 337 |
+
"stability/response_length_mean": 39.0,
|
| 338 |
+
"stability/response_length_std": 29.159658432006836,
|
| 339 |
+
"stability/response_length_var": 850.2857055664062,
|
| 340 |
+
"stability/token_entropy_mean": 5.22265625,
|
| 341 |
+
"step": 80
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"epoch": 0.4350607805502239,
|
| 345 |
+
"grad_norm": 0.6124152541160583,
|
| 346 |
+
"kl": 0.125388041138649,
|
| 347 |
+
"learning_rate": 8.399999999999999e-07,
|
| 348 |
+
"logits/chosen": -51481851.04516129,
|
| 349 |
+
"logits/rejected": -47137016.24242424,
|
| 350 |
+
"logps/chosen": -358.1038306451613,
|
| 351 |
+
"logps/rejected": -230.3265625,
|
| 352 |
+
"loss": 0.4988,
|
| 353 |
+
"loss/base_kto": 0.4984590709209442,
|
| 354 |
+
"rewards/chosen": 0.022868017996511152,
|
| 355 |
+
"rewards/margins": 0.013043898081849399,
|
| 356 |
+
"rewards/rejected": 0.009824119914661754,
|
| 357 |
+
"stability/repetition_rate_mean": 0.12302795797586441,
|
| 358 |
+
"stability/response_length_mean": 27.375,
|
| 359 |
+
"stability/response_length_std": 30.39707374572754,
|
| 360 |
+
"stability/response_length_var": 923.9821166992188,
|
| 361 |
+
"stability/token_entropy_mean": 4.92578125,
|
| 362 |
+
"step": 85
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"epoch": 0.46065259117082535,
|
| 366 |
+
"grad_norm": 0.6379120945930481,
|
| 367 |
+
"kl": 0.17190246284008026,
|
| 368 |
+
"learning_rate": 8.9e-07,
|
| 369 |
+
"logits/chosen": -58409432.615384616,
|
| 370 |
+
"logits/rejected": -50583776.780487806,
|
| 371 |
+
"logps/chosen": -380.54447115384613,
|
| 372 |
+
"logps/rejected": -187.12595274390245,
|
| 373 |
+
"loss": 0.4984,
|
| 374 |
+
"loss/base_kto": 0.4981650412082672,
|
| 375 |
+
"rewards/chosen": 0.024491310119628906,
|
| 376 |
+
"rewards/margins": 0.014406566939702848,
|
| 377 |
+
"rewards/rejected": 0.010084743179926059,
|
| 378 |
+
"stability/repetition_rate_mean": 0.2374526560306549,
|
| 379 |
+
"stability/response_length_mean": 35.625,
|
| 380 |
+
"stability/response_length_std": 31.057262420654297,
|
| 381 |
+
"stability/response_length_var": 964.5535888671875,
|
| 382 |
+
"stability/token_entropy_mean": 3.7021484375,
|
| 383 |
+
"step": 90
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"epoch": 0.48624440179142675,
|
| 387 |
+
"grad_norm": 0.6159020066261292,
|
| 388 |
+
"kl": 0.15860331058502197,
|
| 389 |
+
"learning_rate": 9.399999999999999e-07,
|
| 390 |
+
"logits/chosen": -50396399.79746836,
|
| 391 |
+
"logits/rejected": -48982038.12345679,
|
| 392 |
+
"logps/chosen": -314.7759592563291,
|
| 393 |
+
"logps/rejected": -207.06117380401236,
|
| 394 |
+
"loss": 0.4982,
|
| 395 |
+
"loss/base_kto": 0.49839383363723755,
|
| 396 |
+
"rewards/chosen": 0.021742636644387546,
|
| 397 |
+
"rewards/margins": 0.013488207203948062,
|
| 398 |
+
"rewards/rejected": 0.008254429440439484,
|
| 399 |
+
"stability/repetition_rate_mean": 0.09133065491914749,
|
| 400 |
+
"stability/response_length_mean": 21.875,
|
| 401 |
+
"stability/response_length_std": 27.304826736450195,
|
| 402 |
+
"stability/response_length_var": 745.5535888671875,
|
| 403 |
+
"stability/token_entropy_mean": 4.076171875,
|
| 404 |
+
"step": 95
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"epoch": 0.5118362124120281,
|
| 408 |
+
"grad_norm": 0.6105856895446777,
|
| 409 |
+
"kl": 0.2014942169189453,
|
| 410 |
+
"learning_rate": 9.9e-07,
|
| 411 |
+
"logits/chosen": -54708237.83783784,
|
| 412 |
+
"logits/rejected": -50898551.069767445,
|
| 413 |
+
"logps/chosen": -359.57057643581084,
|
| 414 |
+
"logps/rejected": -216.38419785610466,
|
| 415 |
+
"loss": 0.4981,
|
| 416 |
+
"loss/base_kto": 0.49866095185279846,
|
| 417 |
+
"rewards/chosen": 0.029960999617705476,
|
| 418 |
+
"rewards/margins": 0.010491025964843637,
|
| 419 |
+
"rewards/rejected": 0.01946997365286184,
|
| 420 |
+
"stability/repetition_rate_mean": 0.22838345170021057,
|
| 421 |
+
"stability/response_length_mean": 37.875,
|
| 422 |
+
"stability/response_length_std": 30.248672485351562,
|
| 423 |
+
"stability/response_length_var": 914.9821166992188,
|
| 424 |
+
"stability/token_entropy_mean": 4.185546875,
|
| 425 |
+
"step": 100
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"epoch": 0.5374280230326296,
|
| 429 |
+
"grad_norm": 0.6785591244697571,
|
| 430 |
+
"kl": 0.22638840973377228,
|
| 431 |
+
"learning_rate": 9.999815554351224e-07,
|
| 432 |
+
"logits/chosen": -59369200.578313254,
|
| 433 |
+
"logits/rejected": -53790852.98701299,
|
| 434 |
+
"logps/chosen": -399.54828689759034,
|
| 435 |
+
"logps/rejected": -209.8457538555195,
|
| 436 |
+
"loss": 0.4975,
|
| 437 |
+
"loss/base_kto": 0.49753338098526,
|
| 438 |
+
"rewards/chosen": 0.03542007021157138,
|
| 439 |
+
"rewards/margins": 0.01961183469632369,
|
| 440 |
+
"rewards/rejected": 0.015808235515247692,
|
| 441 |
+
"stability/repetition_rate_mean": 0.1897321343421936,
|
| 442 |
+
"stability/response_length_mean": 29.0,
|
| 443 |
+
"stability/response_length_std": 29.89505386352539,
|
| 444 |
+
"stability/response_length_var": 893.7142944335938,
|
| 445 |
+
"stability/token_entropy_mean": 3.349609375,
|
| 446 |
+
"step": 105
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"epoch": 0.5630198336532309,
|
| 450 |
+
"grad_norm": 0.6502929925918579,
|
| 451 |
+
"kl": 0.266899973154068,
|
| 452 |
+
"learning_rate": 9.999066267225444e-07,
|
| 453 |
+
"logits/chosen": -57387927.13253012,
|
| 454 |
+
"logits/rejected": -53615536.20779221,
|
| 455 |
+
"logps/chosen": -378.2028661521084,
|
| 456 |
+
"logps/rejected": -205.8787413758117,
|
| 457 |
+
"loss": 0.4975,
|
| 458 |
+
"loss/base_kto": 0.49790263175964355,
|
| 459 |
+
"rewards/chosen": 0.03603898760784103,
|
| 460 |
+
"rewards/margins": 0.015099021306975758,
|
| 461 |
+
"rewards/rejected": 0.02093996630086527,
|
| 462 |
+
"stability/repetition_rate_mean": 0.31048768758773804,
|
| 463 |
+
"stability/response_length_mean": 28.875,
|
| 464 |
+
"stability/response_length_std": 29.911476135253906,
|
| 465 |
+
"stability/response_length_var": 894.6964111328125,
|
| 466 |
+
"stability/token_entropy_mean": 4.357421875,
|
| 467 |
+
"step": 110
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"epoch": 0.5886116442738324,
|
| 471 |
+
"grad_norm": 0.6486251950263977,
|
| 472 |
+
"kl": 0.32395443320274353,
|
| 473 |
+
"learning_rate": 9.997740697079592e-07,
|
| 474 |
+
"logits/chosen": -60606632.50632911,
|
| 475 |
+
"logits/rejected": -53405677.03703704,
|
| 476 |
+
"logps/chosen": -364.0806467563291,
|
| 477 |
+
"logps/rejected": -200.9707995756173,
|
| 478 |
+
"loss": 0.4965,
|
| 479 |
+
"loss/base_kto": 0.4963931143283844,
|
| 480 |
+
"rewards/chosen": 0.05118938035602811,
|
| 481 |
+
"rewards/margins": 0.0286137355568074,
|
| 482 |
+
"rewards/rejected": 0.02257564479922071,
|
| 483 |
+
"stability/repetition_rate_mean": 0.2749515473842621,
|
| 484 |
+
"stability/response_length_mean": 38.75,
|
| 485 |
+
"stability/response_length_std": 29.936838150024414,
|
| 486 |
+
"stability/response_length_var": 896.2142944335938,
|
| 487 |
+
"stability/token_entropy_mean": 4.966796875,
|
| 488 |
+
"step": 115
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"epoch": 0.6142034548944337,
|
| 492 |
+
"grad_norm": 0.6199327111244202,
|
| 493 |
+
"kl": 0.3587552011013031,
|
| 494 |
+
"learning_rate": 9.995838996722914e-07,
|
| 495 |
+
"logits/chosen": -57752502.37908497,
|
| 496 |
+
"logits/rejected": -54366698.53892215,
|
| 497 |
+
"logps/chosen": -383.6620710784314,
|
| 498 |
+
"logps/rejected": -211.94790886976048,
|
| 499 |
+
"loss": 0.4959,
|
| 500 |
+
"loss/base_kto": 0.4960261285305023,
|
| 501 |
+
"rewards/chosen": 0.05828505871342678,
|
| 502 |
+
"rewards/margins": 0.03143982054748571,
|
| 503 |
+
"rewards/rejected": 0.026845238165941067,
|
| 504 |
+
"stability/repetition_rate_mean": 0.1723366528749466,
|
| 505 |
+
"stability/response_length_mean": 27.875,
|
| 506 |
+
"stability/response_length_std": 30.31943130493164,
|
| 507 |
+
"stability/response_length_var": 919.2678833007812,
|
| 508 |
+
"stability/token_entropy_mean": 4.640625,
|
| 509 |
+
"step": 120
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"epoch": 0.6397952655150352,
|
| 513 |
+
"grad_norm": 0.6118870377540588,
|
| 514 |
+
"kl": 0.3919747769832611,
|
| 515 |
+
"learning_rate": 9.993361385379874e-07,
|
| 516 |
+
"logits/chosen": -60696351.56164384,
|
| 517 |
+
"logits/rejected": -55669807.08045977,
|
| 518 |
+
"logps/chosen": -416.76867508561645,
|
| 519 |
+
"logps/rejected": -216.09132543103448,
|
| 520 |
+
"loss": 0.4961,
|
| 521 |
+
"loss/base_kto": 0.4960012435913086,
|
| 522 |
+
"rewards/chosen": 0.061065817532474045,
|
| 523 |
+
"rewards/margins": 0.033479519105111495,
|
| 524 |
+
"rewards/rejected": 0.02758629842736255,
|
| 525 |
+
"stability/repetition_rate_mean": 0.15937499701976776,
|
| 526 |
+
"stability/response_length_mean": 15.875,
|
| 527 |
+
"stability/response_length_std": 24.584766387939453,
|
| 528 |
+
"stability/response_length_var": 604.4107055664062,
|
| 529 |
+
"stability/token_entropy_mean": 3.49609375,
|
| 530 |
+
"step": 125
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"epoch": 0.6653870761356366,
|
| 534 |
+
"grad_norm": 0.5947321653366089,
|
| 535 |
+
"kl": 0.45393142104148865,
|
| 536 |
+
"learning_rate": 9.99030814866488e-07,
|
| 537 |
+
"logits/chosen": -57384028.49032258,
|
| 538 |
+
"logits/rejected": -53841212.50909091,
|
| 539 |
+
"logps/chosen": -391.96595262096776,
|
| 540 |
+
"logps/rejected": -183.6536221590909,
|
| 541 |
+
"loss": 0.4954,
|
| 542 |
+
"loss/base_kto": 0.49458155035972595,
|
| 543 |
+
"rewards/chosen": 0.06919794390278478,
|
| 544 |
+
"rewards/margins": 0.042669391818526664,
|
| 545 |
+
"rewards/rejected": 0.026528552084258108,
|
| 546 |
+
"stability/repetition_rate_mean": 0.25242185592651367,
|
| 547 |
+
"stability/response_length_mean": 43.25,
|
| 548 |
+
"stability/response_length_std": 29.620214462280273,
|
| 549 |
+
"stability/response_length_var": 877.3571166992188,
|
| 550 |
+
"stability/token_entropy_mean": 3.7138671875,
|
| 551 |
+
"step": 130
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"epoch": 0.690978886756238,
|
| 555 |
+
"grad_norm": 0.5941182971000671,
|
| 556 |
+
"kl": 0.501304566860199,
|
| 557 |
+
"learning_rate": 9.986679638549358e-07,
|
| 558 |
+
"logits/chosen": -59851254.57668712,
|
| 559 |
+
"logits/rejected": -55000540.12738854,
|
| 560 |
+
"logps/chosen": -400.9979629984663,
|
| 561 |
+
"logps/rejected": -247.54722332802547,
|
| 562 |
+
"loss": 0.4945,
|
| 563 |
+
"loss/base_kto": 0.4937683045864105,
|
| 564 |
+
"rewards/chosen": 0.08181942898802962,
|
| 565 |
+
"rewards/margins": 0.049467831888482444,
|
| 566 |
+
"rewards/rejected": 0.03235159709954717,
|
| 567 |
+
"stability/repetition_rate_mean": 0.2230902761220932,
|
| 568 |
+
"stability/response_length_mean": 29.25,
|
| 569 |
+
"stability/response_length_std": 29.936838150024414,
|
| 570 |
+
"stability/response_length_var": 896.2142944335938,
|
| 571 |
+
"stability/token_entropy_mean": 4.072265625,
|
| 572 |
+
"step": 135
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"epoch": 0.7165706973768394,
|
| 576 |
+
"grad_norm": 0.7290944457054138,
|
| 577 |
+
"kl": 0.4828576147556305,
|
| 578 |
+
"learning_rate": 9.982476273321175e-07,
|
| 579 |
+
"logits/chosen": -57085976.82424243,
|
| 580 |
+
"logits/rejected": -50076896.61935484,
|
| 581 |
+
"logps/chosen": -366.3819128787879,
|
| 582 |
+
"logps/rejected": -189.91817036290323,
|
| 583 |
+
"loss": 0.4937,
|
| 584 |
+
"loss/base_kto": 0.4917580187320709,
|
| 585 |
+
"rewards/chosen": 0.08078298857717803,
|
| 586 |
+
"rewards/margins": 0.06915265418450736,
|
| 587 |
+
"rewards/rejected": 0.011630334392670662,
|
| 588 |
+
"stability/repetition_rate_mean": 0.2265625,
|
| 589 |
+
"stability/response_length_mean": 56.25,
|
| 590 |
+
"stability/response_length_std": 21.920310974121094,
|
| 591 |
+
"stability/response_length_var": 480.5,
|
| 592 |
+
"stability/token_entropy_mean": 5.150390625,
|
| 593 |
+
"step": 140
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"epoch": 0.7421625079974408,
|
| 597 |
+
"grad_norm": 0.6742141246795654,
|
| 598 |
+
"kl": 0.5725060105323792,
|
| 599 |
+
"learning_rate": 9.977698537536417e-07,
|
| 600 |
+
"logits/chosen": -51148522.409638554,
|
| 601 |
+
"logits/rejected": -51662778.18181818,
|
| 602 |
+
"logps/chosen": -329.4726327183735,
|
| 603 |
+
"logps/rejected": -199.14629413555195,
|
| 604 |
+
"loss": 0.4932,
|
| 605 |
+
"loss/base_kto": 0.49420061707496643,
|
| 606 |
+
"rewards/chosen": 0.07991740789758153,
|
| 607 |
+
"rewards/margins": 0.04575571016309556,
|
| 608 |
+
"rewards/rejected": 0.03416169773448597,
|
| 609 |
+
"stability/repetition_rate_mean": 0.25424888730049133,
|
| 610 |
+
"stability/response_length_mean": 28.875,
|
| 611 |
+
"stability/response_length_std": 29.73423957824707,
|
| 612 |
+
"stability/response_length_var": 884.125,
|
| 613 |
+
"stability/token_entropy_mean": 5.2734375,
|
| 614 |
+
"step": 145
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"epoch": 0.7677543186180422,
|
| 618 |
+
"grad_norm": 0.6416594386100769,
|
| 619 |
+
"kl": 0.638058602809906,
|
| 620 |
+
"learning_rate": 9.972346981963546e-07,
|
| 621 |
+
"logits/chosen": -55423500.04705882,
|
| 622 |
+
"logits/rejected": -50200978.77333333,
|
| 623 |
+
"logps/chosen": -396.80946691176473,
|
| 624 |
+
"logps/rejected": -207.36325520833333,
|
| 625 |
+
"loss": 0.493,
|
| 626 |
+
"loss/base_kto": 0.49001631140708923,
|
| 627 |
+
"rewards/chosen": 0.11249845168169807,
|
| 628 |
+
"rewards/margins": 0.0762304780997482,
|
| 629 |
+
"rewards/rejected": 0.03626797358194987,
|
| 630 |
+
"stability/repetition_rate_mean": 0.23066024482250214,
|
| 631 |
+
"stability/response_length_mean": 29.375,
|
| 632 |
+
"stability/response_length_std": 29.193626403808594,
|
| 633 |
+
"stability/response_length_var": 852.2678833007812,
|
| 634 |
+
"stability/token_entropy_mean": 4.6015625,
|
| 635 |
+
"step": 150
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"epoch": 0.7933461292386437,
|
| 639 |
+
"grad_norm": 0.6336647272109985,
|
| 640 |
+
"kl": 0.6403493881225586,
|
| 641 |
+
"learning_rate": 9.966422223519885e-07,
|
| 642 |
+
"logits/chosen": -54021613.92941176,
|
| 643 |
+
"logits/rejected": -49351734.61333334,
|
| 644 |
+
"logps/chosen": -360.1190487132353,
|
| 645 |
+
"logps/rejected": -191.01639322916665,
|
| 646 |
+
"loss": 0.4925,
|
| 647 |
+
"loss/base_kto": 0.4930504858493805,
|
| 648 |
+
"rewards/chosen": 0.0870250758002786,
|
| 649 |
+
"rewards/margins": 0.058103303161321895,
|
| 650 |
+
"rewards/rejected": 0.028921772638956705,
|
| 651 |
+
"stability/repetition_rate_mean": 0.3113190531730652,
|
| 652 |
+
"stability/response_length_mean": 61.375,
|
| 653 |
+
"stability/response_length_std": 7.424621105194092,
|
| 654 |
+
"stability/response_length_var": 55.125,
|
| 655 |
+
"stability/token_entropy_mean": 4.529296875,
|
| 656 |
+
"step": 155
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"epoch": 0.818937939859245,
|
| 660 |
+
"grad_norm": 0.6168467402458191,
|
| 661 |
+
"kl": 0.7161628603935242,
|
| 662 |
+
"learning_rate": 9.959924945200523e-07,
|
| 663 |
+
"logits/chosen": -55242325.333333336,
|
| 664 |
+
"logits/rejected": -48961121.684210524,
|
| 665 |
+
"logps/chosen": -415.55738467261904,
|
| 666 |
+
"logps/rejected": -186.4566072162829,
|
| 667 |
+
"loss": 0.4911,
|
| 668 |
+
"loss/base_kto": 0.4885805547237396,
|
| 669 |
+
"rewards/chosen": 0.13379353568667457,
|
| 670 |
+
"rewards/margins": 0.08971994144277165,
|
| 671 |
+
"rewards/rejected": 0.04407359424390291,
|
| 672 |
+
"stability/repetition_rate_mean": 0.30851560831069946,
|
| 673 |
+
"stability/response_length_mean": 32.5,
|
| 674 |
+
"stability/response_length_std": 30.528675079345703,
|
| 675 |
+
"stability/response_length_var": 932.0,
|
| 676 |
+
"stability/token_entropy_mean": 4.474609375,
|
| 677 |
+
"step": 160
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"epoch": 0.8445297504798465,
|
| 681 |
+
"grad_norm": 0.7232491374015808,
|
| 682 |
+
"kl": 0.7498390078544617,
|
| 683 |
+
"learning_rate": 9.952855895999568e-07,
|
| 684 |
+
"logits/chosen": -54396980.96551724,
|
| 685 |
+
"logits/rejected": -49794756.38356164,
|
| 686 |
+
"logps/chosen": -369.75480423850576,
|
| 687 |
+
"logps/rejected": -212.1316486515411,
|
| 688 |
+
"loss": 0.4894,
|
| 689 |
+
"loss/base_kto": 0.49128732085227966,
|
| 690 |
+
"rewards/chosen": 0.11619376040053093,
|
| 691 |
+
"rewards/margins": 0.07014617738226721,
|
| 692 |
+
"rewards/rejected": 0.04604758301826373,
|
| 693 |
+
"stability/repetition_rate_mean": 0.2411106526851654,
|
| 694 |
+
"stability/response_length_mean": 22.5,
|
| 695 |
+
"stability/response_length_std": 28.33977508544922,
|
| 696 |
+
"stability/response_length_var": 803.1428833007812,
|
| 697 |
+
"stability/token_entropy_mean": 4.86328125,
|
| 698 |
+
"step": 165
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"epoch": 0.8701215611004478,
|
| 702 |
+
"grad_norm": 0.6223028302192688,
|
| 703 |
+
"kl": 0.9178180694580078,
|
| 704 |
+
"learning_rate": 9.9452158908238e-07,
|
| 705 |
+
"logits/chosen": -59141307.834319524,
|
| 706 |
+
"logits/rejected": -52591744.84768212,
|
| 707 |
+
"logps/chosen": -439.69304733727813,
|
| 708 |
+
"logps/rejected": -190.61025455298014,
|
| 709 |
+
"loss": 0.4881,
|
| 710 |
+
"loss/base_kto": 0.48755979537963867,
|
| 711 |
+
"rewards/chosen": 0.16488214075212648,
|
| 712 |
+
"rewards/margins": 0.10012487574960424,
|
| 713 |
+
"rewards/rejected": 0.06475726500252224,
|
| 714 |
+
"stability/repetition_rate_mean": 0.3434279263019562,
|
| 715 |
+
"stability/response_length_mean": 44.125,
|
| 716 |
+
"stability/response_length_std": 28.43256378173828,
|
| 717 |
+
"stability/response_length_var": 808.4107055664062,
|
| 718 |
+
"stability/token_entropy_mean": 3.70166015625,
|
| 719 |
+
"step": 170
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"epoch": 0.8957133717210493,
|
| 723 |
+
"grad_norm": 0.7227226495742798,
|
| 724 |
+
"kl": 0.937430202960968,
|
| 725 |
+
"learning_rate": 9.937005810398745e-07,
|
| 726 |
+
"logits/chosen": -56671336.86746988,
|
| 727 |
+
"logits/rejected": -48043027.948051944,
|
| 728 |
+
"logps/chosen": -354.8946018448795,
|
| 729 |
+
"logps/rejected": -194.3057528409091,
|
| 730 |
+
"loss": 0.4875,
|
| 731 |
+
"loss/base_kto": 0.48688632249832153,
|
| 732 |
+
"rewards/chosen": 0.154259325510048,
|
| 733 |
+
"rewards/margins": 0.10408077600360047,
|
| 734 |
+
"rewards/rejected": 0.05017854950644753,
|
| 735 |
+
"stability/repetition_rate_mean": 0.18430830538272858,
|
| 736 |
+
"stability/response_length_mean": 27.0,
|
| 737 |
+
"stability/response_length_std": 25.773740768432617,
|
| 738 |
+
"stability/response_length_var": 664.2857055664062,
|
| 739 |
+
"stability/token_entropy_mean": 4.8564453125,
|
| 740 |
+
"step": 175
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"epoch": 0.9213051823416507,
|
| 744 |
+
"grad_norm": 0.6434662938117981,
|
| 745 |
+
"kl": 1.026900291442871,
|
| 746 |
+
"learning_rate": 9.928226601167138e-07,
|
| 747 |
+
"logits/chosen": -52659602.06134969,
|
| 748 |
+
"logits/rejected": -47986926.06369427,
|
| 749 |
+
"logps/chosen": -374.42537384969324,
|
| 750 |
+
"logps/rejected": -210.55354299363057,
|
| 751 |
+
"loss": 0.4865,
|
| 752 |
+
"loss/base_kto": 0.4877110421657562,
|
| 753 |
+
"rewards/chosen": 0.17204565504577263,
|
| 754 |
+
"rewards/margins": 0.09757829369276705,
|
| 755 |
+
"rewards/rejected": 0.07446736135300558,
|
| 756 |
+
"stability/repetition_rate_mean": 0.16679687798023224,
|
| 757 |
+
"stability/response_length_mean": 34.75,
|
| 758 |
+
"stability/response_length_std": 31.54928207397461,
|
| 759 |
+
"stability/response_length_var": 995.3571166992188,
|
| 760 |
+
"stability/token_entropy_mean": 3.541015625,
|
| 761 |
+
"step": 180
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"epoch": 0.946896992962252,
|
| 765 |
+
"grad_norm": 0.6501672863960266,
|
| 766 |
+
"kl": 1.079397439956665,
|
| 767 |
+
"learning_rate": 9.918879275179817e-07,
|
| 768 |
+
"logits/chosen": -54617631.60493827,
|
| 769 |
+
"logits/rejected": -49526434.025316454,
|
| 770 |
+
"logps/chosen": -310.3054108796296,
|
| 771 |
+
"logps/rejected": -196.56382268591773,
|
| 772 |
+
"loss": 0.4857,
|
| 773 |
+
"loss/base_kto": 0.4866374433040619,
|
| 774 |
+
"rewards/chosen": 0.16959618933406878,
|
| 775 |
+
"rewards/margins": 0.12206393268857642,
|
| 776 |
+
"rewards/rejected": 0.04753225664549236,
|
| 777 |
+
"stability/repetition_rate_mean": 0.205078125,
|
| 778 |
+
"stability/response_length_mean": 32.875,
|
| 779 |
+
"stability/response_length_std": 33.30996322631836,
|
| 780 |
+
"stability/response_length_var": 1109.5535888671875,
|
| 781 |
+
"stability/token_entropy_mean": 3.732421875,
|
| 782 |
+
"step": 185
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"epoch": 0.9724888035828535,
|
| 786 |
+
"grad_norm": 0.6943851113319397,
|
| 787 |
+
"kl": 1.1196650266647339,
|
| 788 |
+
"learning_rate": 9.90896490997906e-07,
|
| 789 |
+
"logits/chosen": -53094718.8502994,
|
| 790 |
+
"logits/rejected": -49691517.49019608,
|
| 791 |
+
"logps/chosen": -390.31998502994014,
|
| 792 |
+
"logps/rejected": -210.46075878267973,
|
| 793 |
+
"loss": 0.484,
|
| 794 |
+
"loss/base_kto": 0.48342210054397583,
|
| 795 |
+
"rewards/chosen": 0.2085319564727966,
|
| 796 |
+
"rewards/margins": 0.13474922263035827,
|
| 797 |
+
"rewards/rejected": 0.07378273384243834,
|
| 798 |
+
"stability/repetition_rate_mean": 0.18919041752815247,
|
| 799 |
+
"stability/response_length_mean": 18.625,
|
| 800 |
+
"stability/response_length_std": 26.52189064025879,
|
| 801 |
+
"stability/response_length_var": 703.4107055664062,
|
| 802 |
+
"stability/token_entropy_mean": 4.5703125,
|
| 803 |
+
"step": 190
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"epoch": 0.9980806142034548,
|
| 807 |
+
"grad_norm": 0.6349285244941711,
|
| 808 |
+
"kl": 1.1486577987670898,
|
| 809 |
+
"learning_rate": 9.898484648474362e-07,
|
| 810 |
+
"logits/chosen": -60025334.090322584,
|
| 811 |
+
"logits/rejected": -53795740.7030303,
|
| 812 |
+
"logps/chosen": -390.8627268145161,
|
| 813 |
+
"logps/rejected": -197.078125,
|
| 814 |
+
"loss": 0.4843,
|
| 815 |
+
"loss/base_kto": 0.4863618016242981,
|
| 816 |
+
"rewards/chosen": 0.1922200725924584,
|
| 817 |
+
"rewards/margins": 0.10809968629540585,
|
| 818 |
+
"rewards/rejected": 0.08412038629705255,
|
| 819 |
+
"stability/repetition_rate_mean": 0.341796875,
|
| 820 |
+
"stability/response_length_mean": 48.5,
|
| 821 |
+
"stability/response_length_std": 28.705400466918945,
|
| 822 |
+
"stability/response_length_var": 824.0,
|
| 823 |
+
"stability/token_entropy_mean": 5.171875,
|
| 824 |
+
"step": 195
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"epoch": 1.0,
|
| 828 |
+
"step": 196,
|
| 829 |
+
"total_flos": 3.1861866257511875e+18,
|
| 830 |
+
"train_loss": 0.4956757848968311,
|
| 831 |
+
"train_runtime": 3145.5892,
|
| 832 |
+
"train_samples_per_second": 31.791,
|
| 833 |
+
"train_steps_per_second": 0.062
|
| 834 |
+
}
|
| 835 |
+
],
|
| 836 |
+
"logging_steps": 5,
|
| 837 |
+
"max_steps": 196,
|
| 838 |
+
"num_input_tokens_seen": 0,
|
| 839 |
+
"num_train_epochs": 1,
|
| 840 |
+
"save_steps": 200,
|
| 841 |
+
"stateful_callbacks": {
|
| 842 |
+
"TrainerControl": {
|
| 843 |
+
"args": {
|
| 844 |
+
"should_epoch_stop": false,
|
| 845 |
+
"should_evaluate": false,
|
| 846 |
+
"should_log": false,
|
| 847 |
+
"should_save": true,
|
| 848 |
+
"should_training_stop": true
|
| 849 |
+
},
|
| 850 |
+
"attributes": {}
|
| 851 |
+
}
|
| 852 |
+
},
|
| 853 |
+
"total_flos": 3.1861866257511875e+18,
|
| 854 |
+
"train_batch_size": 8,
|
| 855 |
+
"trial_name": null,
|
| 856 |
+
"trial_params": null
|
| 857 |
+
}
|
mistral7b_kto_simple/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cca02ae9ad4d71243fc18608eed865018fb06c94becd454c7ce13581852dd3e2
|
| 3 |
+
size 8017
|
mistral7b_kto_simple/training_loss.png
ADDED
|
mistral7b_kto_simple/training_loss_base_kto.png
ADDED
|
mistral7b_kto_simple/training_rewards_chosen.png
ADDED
|
mistral7b_kto_simple/training_rewards_margins.png
ADDED
|
mistral7b_kto_simple/training_rewards_rejected.png
ADDED
|