Instructions to use cragtmp/task0.5rd2-150 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cragtmp/task0.5rd2-150 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/data1/chenjiazun/LLM/Llama-3.2-11B-Vision-Instruct") model = PeftModel.from_pretrained(base_model, "cragtmp/task0.5rd2-150") - Notebooks
- Google Colab
- Kaggle
chen commited on
Upload folder using huggingface_hub
Browse files- README.md +202 -0
- adapter_config.json +31 -0
- adapter_model.safetensors +3 -0
- additional_config.json +1 -0
- args.json +440 -0
- latest +1 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- trainer_state.json +2734 -0
- training_args.bin +3 -0
- zero_to_fp32.py +760 -0
README.md
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: meta-llama/Llama-3.2-11B-Vision-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Model Card for Model ID
|
| 7 |
+
|
| 8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Model Details
|
| 13 |
+
|
| 14 |
+
### Model Description
|
| 15 |
+
|
| 16 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
- **Developed by:** [More Information Needed]
|
| 21 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
+
- **Model type:** [More Information Needed]
|
| 24 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
+
- **License:** [More Information Needed]
|
| 26 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
+
|
| 28 |
+
### Model Sources [optional]
|
| 29 |
+
|
| 30 |
+
<!-- Provide the basic links for the model. -->
|
| 31 |
+
|
| 32 |
+
- **Repository:** [More Information Needed]
|
| 33 |
+
- **Paper [optional]:** [More Information Needed]
|
| 34 |
+
- **Demo [optional]:** [More Information Needed]
|
| 35 |
+
|
| 36 |
+
## Uses
|
| 37 |
+
|
| 38 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
+
|
| 40 |
+
### Direct Use
|
| 41 |
+
|
| 42 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 43 |
+
|
| 44 |
+
[More Information Needed]
|
| 45 |
+
|
| 46 |
+
### Downstream Use [optional]
|
| 47 |
+
|
| 48 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
+
|
| 50 |
+
[More Information Needed]
|
| 51 |
+
|
| 52 |
+
### Out-of-Scope Use
|
| 53 |
+
|
| 54 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 55 |
+
|
| 56 |
+
[More Information Needed]
|
| 57 |
+
|
| 58 |
+
## Bias, Risks, and Limitations
|
| 59 |
+
|
| 60 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 61 |
+
|
| 62 |
+
[More Information Needed]
|
| 63 |
+
|
| 64 |
+
### Recommendations
|
| 65 |
+
|
| 66 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 67 |
+
|
| 68 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
+
|
| 70 |
+
## How to Get Started with the Model
|
| 71 |
+
|
| 72 |
+
Use the code below to get started with the model.
|
| 73 |
+
|
| 74 |
+
[More Information Needed]
|
| 75 |
+
|
| 76 |
+
## Training Details
|
| 77 |
+
|
| 78 |
+
### Training Data
|
| 79 |
+
|
| 80 |
+
<!-- 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. -->
|
| 81 |
+
|
| 82 |
+
[More Information Needed]
|
| 83 |
+
|
| 84 |
+
### Training Procedure
|
| 85 |
+
|
| 86 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 87 |
+
|
| 88 |
+
#### Preprocessing [optional]
|
| 89 |
+
|
| 90 |
+
[More Information Needed]
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
#### Training Hyperparameters
|
| 94 |
+
|
| 95 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
+
|
| 97 |
+
#### Speeds, Sizes, Times [optional]
|
| 98 |
+
|
| 99 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
+
|
| 101 |
+
[More Information Needed]
|
| 102 |
+
|
| 103 |
+
## Evaluation
|
| 104 |
+
|
| 105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
+
|
| 107 |
+
### Testing Data, Factors & Metrics
|
| 108 |
+
|
| 109 |
+
#### Testing Data
|
| 110 |
+
|
| 111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
+
|
| 113 |
+
[More Information Needed]
|
| 114 |
+
|
| 115 |
+
#### Factors
|
| 116 |
+
|
| 117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
+
|
| 119 |
+
[More Information Needed]
|
| 120 |
+
|
| 121 |
+
#### Metrics
|
| 122 |
+
|
| 123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
+
|
| 125 |
+
[More Information Needed]
|
| 126 |
+
|
| 127 |
+
### Results
|
| 128 |
+
|
| 129 |
+
[More Information Needed]
|
| 130 |
+
|
| 131 |
+
#### Summary
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
## Model Examination [optional]
|
| 136 |
+
|
| 137 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
+
|
| 139 |
+
[More Information Needed]
|
| 140 |
+
|
| 141 |
+
## Environmental Impact
|
| 142 |
+
|
| 143 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
+
|
| 145 |
+
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).
|
| 146 |
+
|
| 147 |
+
- **Hardware Type:** [More Information Needed]
|
| 148 |
+
- **Hours used:** [More Information Needed]
|
| 149 |
+
- **Cloud Provider:** [More Information Needed]
|
| 150 |
+
- **Compute Region:** [More Information Needed]
|
| 151 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
+
|
| 153 |
+
## Technical Specifications [optional]
|
| 154 |
+
|
| 155 |
+
### Model Architecture and Objective
|
| 156 |
+
|
| 157 |
+
[More Information Needed]
|
| 158 |
+
|
| 159 |
+
### Compute Infrastructure
|
| 160 |
+
|
| 161 |
+
[More Information Needed]
|
| 162 |
+
|
| 163 |
+
#### Hardware
|
| 164 |
+
|
| 165 |
+
[More Information Needed]
|
| 166 |
+
|
| 167 |
+
#### Software
|
| 168 |
+
|
| 169 |
+
[More Information Needed]
|
| 170 |
+
|
| 171 |
+
## Citation [optional]
|
| 172 |
+
|
| 173 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
+
|
| 175 |
+
**BibTeX:**
|
| 176 |
+
|
| 177 |
+
[More Information Needed]
|
| 178 |
+
|
| 179 |
+
**APA:**
|
| 180 |
+
|
| 181 |
+
[More Information Needed]
|
| 182 |
+
|
| 183 |
+
## Glossary [optional]
|
| 184 |
+
|
| 185 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
+
|
| 187 |
+
[More Information Needed]
|
| 188 |
+
|
| 189 |
+
## More Information [optional]
|
| 190 |
+
|
| 191 |
+
[More Information Needed]
|
| 192 |
+
|
| 193 |
+
## Model Card Authors [optional]
|
| 194 |
+
|
| 195 |
+
[More Information Needed]
|
| 196 |
+
|
| 197 |
+
## Model Card Contact
|
| 198 |
+
|
| 199 |
+
[More Information Needed]
|
| 200 |
+
### Framework versions
|
| 201 |
+
|
| 202 |
+
- PEFT 0.15.2
|
adapter_config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "/data1/chenjiazun/LLM/Llama-3.2-11B-Vision-Instruct",
|
| 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": 32,
|
| 17 |
+
"lora_bias": false,
|
| 18 |
+
"lora_dropout": 0.05,
|
| 19 |
+
"megatron_config": null,
|
| 20 |
+
"megatron_core": "megatron.core",
|
| 21 |
+
"modules_to_save": [],
|
| 22 |
+
"peft_type": "LORA",
|
| 23 |
+
"r": 8,
|
| 24 |
+
"rank_pattern": {},
|
| 25 |
+
"revision": null,
|
| 26 |
+
"target_modules": "^(language_model).*\\.(down_proj|gate_proj|o_proj|up_proj|k_proj|v_proj|q_proj)$",
|
| 27 |
+
"task_type": "CAUSAL_LM",
|
| 28 |
+
"trainable_token_indices": null,
|
| 29 |
+
"use_dora": false,
|
| 30 |
+
"use_rslora": false
|
| 31 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:877b64be7d79ab80c6f8c771abacd982c2c37c3397db1e5180ead3a725e32462
|
| 3 |
+
size 52511776
|
additional_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lora_dtype": null, "lorap_lr_ratio": null, "lorap_emb_lr": 1e-06}
|
args.json
ADDED
|
@@ -0,0 +1,440 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/data1/chenjiazun/LLM/Llama-3.2-11B-Vision-Instruct",
|
| 3 |
+
"model_type": "llama3_2_vision",
|
| 4 |
+
"model_revision": null,
|
| 5 |
+
"task_type": "causal_lm",
|
| 6 |
+
"torch_dtype": "bfloat16",
|
| 7 |
+
"attn_impl": null,
|
| 8 |
+
"num_labels": null,
|
| 9 |
+
"problem_type": null,
|
| 10 |
+
"rope_scaling": null,
|
| 11 |
+
"device_map": null,
|
| 12 |
+
"max_memory": {},
|
| 13 |
+
"local_repo_path": null,
|
| 14 |
+
"template": "llama3_2_vision",
|
| 15 |
+
"system": "You are a helpful assistant that truthfully answers user questions about the provided image.",
|
| 16 |
+
"max_length": 2048,
|
| 17 |
+
"truncation_strategy": "delete",
|
| 18 |
+
"max_pixels": null,
|
| 19 |
+
"agent_template": null,
|
| 20 |
+
"norm_bbox": null,
|
| 21 |
+
"response_prefix": null,
|
| 22 |
+
"padding_side": "right",
|
| 23 |
+
"loss_scale": "last_round",
|
| 24 |
+
"sequence_parallel_size": 1,
|
| 25 |
+
"use_chat_template": true,
|
| 26 |
+
"template_backend": "swift",
|
| 27 |
+
"dataset": [
|
| 28 |
+
"json_files/task1_dpo_round2_0dot9_0603.json"
|
| 29 |
+
],
|
| 30 |
+
"val_dataset": [],
|
| 31 |
+
"split_dataset_ratio": 0.01,
|
| 32 |
+
"data_seed": 42,
|
| 33 |
+
"dataset_num_proc": 4,
|
| 34 |
+
"dataset_shuffle": true,
|
| 35 |
+
"val_dataset_shuffle": false,
|
| 36 |
+
"streaming": false,
|
| 37 |
+
"interleave_prob": null,
|
| 38 |
+
"stopping_strategy": "first_exhausted",
|
| 39 |
+
"shuffle_buffer_size": 1000,
|
| 40 |
+
"enable_cache": false,
|
| 41 |
+
"download_mode": "reuse_dataset_if_exists",
|
| 42 |
+
"columns": {},
|
| 43 |
+
"strict": false,
|
| 44 |
+
"remove_unused_columns": true,
|
| 45 |
+
"model_name": [
|
| 46 |
+
null,
|
| 47 |
+
null
|
| 48 |
+
],
|
| 49 |
+
"model_author": [
|
| 50 |
+
null,
|
| 51 |
+
null
|
| 52 |
+
],
|
| 53 |
+
"custom_dataset_info": [],
|
| 54 |
+
"quant_method": null,
|
| 55 |
+
"quant_bits": null,
|
| 56 |
+
"hqq_axis": null,
|
| 57 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 58 |
+
"bnb_4bit_quant_type": "nf4",
|
| 59 |
+
"bnb_4bit_use_double_quant": true,
|
| 60 |
+
"bnb_4bit_quant_storage": null,
|
| 61 |
+
"max_new_tokens": 64,
|
| 62 |
+
"temperature": 0.9,
|
| 63 |
+
"top_k": 50,
|
| 64 |
+
"top_p": 0.9,
|
| 65 |
+
"repetition_penalty": 1.0,
|
| 66 |
+
"num_beams": 1,
|
| 67 |
+
"stream": false,
|
| 68 |
+
"stop_words": [],
|
| 69 |
+
"logprobs": false,
|
| 70 |
+
"top_logprobs": null,
|
| 71 |
+
"ckpt_dir": "/data2/kdd/crag/cjz/output/task1_dpo_absgt10_noidk__pari0.5_0602_p2prompt/v1-20250603-021349/checkpoint-200",
|
| 72 |
+
"load_dataset_config": null,
|
| 73 |
+
"lora_modules": [],
|
| 74 |
+
"tuner_backend": "peft",
|
| 75 |
+
"train_type": "lora",
|
| 76 |
+
"adapters": [
|
| 77 |
+
"/data2/kdd/crag/cjz/output/task1_dpo_absgt10_noidk__pari0.5_0602_p2prompt/v1-20250603-021349/checkpoint-200"
|
| 78 |
+
],
|
| 79 |
+
"external_plugins": [],
|
| 80 |
+
"seed": 42,
|
| 81 |
+
"model_kwargs": {},
|
| 82 |
+
"load_args": false,
|
| 83 |
+
"load_data_args": false,
|
| 84 |
+
"use_hf": false,
|
| 85 |
+
"hub_token": null,
|
| 86 |
+
"custom_register_path": [],
|
| 87 |
+
"ignore_args_error": false,
|
| 88 |
+
"use_swift_lora": false,
|
| 89 |
+
"output_dir": "/data2/kdd/crag/cjz/output/task1_dpo_round2_0dot9_0603/v1-20250603-223558",
|
| 90 |
+
"overwrite_output_dir": false,
|
| 91 |
+
"do_train": false,
|
| 92 |
+
"do_eval": false,
|
| 93 |
+
"do_predict": false,
|
| 94 |
+
"eval_strategy": "steps",
|
| 95 |
+
"prediction_loss_only": false,
|
| 96 |
+
"per_device_train_batch_size": 2,
|
| 97 |
+
"per_device_eval_batch_size": 2,
|
| 98 |
+
"per_gpu_train_batch_size": null,
|
| 99 |
+
"per_gpu_eval_batch_size": null,
|
| 100 |
+
"gradient_accumulation_steps": 16,
|
| 101 |
+
"eval_accumulation_steps": null,
|
| 102 |
+
"eval_delay": 0,
|
| 103 |
+
"torch_empty_cache_steps": null,
|
| 104 |
+
"learning_rate": 0.0002,
|
| 105 |
+
"weight_decay": 0.1,
|
| 106 |
+
"adam_beta1": 0.9,
|
| 107 |
+
"adam_beta2": 0.95,
|
| 108 |
+
"adam_epsilon": 1e-08,
|
| 109 |
+
"max_grad_norm": 1.0,
|
| 110 |
+
"num_train_epochs": 3.0,
|
| 111 |
+
"max_steps": -1,
|
| 112 |
+
"lr_scheduler_type": "cosine",
|
| 113 |
+
"lr_scheduler_kwargs": null,
|
| 114 |
+
"warmup_ratio": 0.05,
|
| 115 |
+
"warmup_steps": 0,
|
| 116 |
+
"log_level": "passive",
|
| 117 |
+
"log_level_replica": "warning",
|
| 118 |
+
"log_on_each_node": true,
|
| 119 |
+
"logging_dir": "/data2/kdd/crag/cjz/output/task1_dpo_round2_0dot9_0603/v1-20250603-223558/runs",
|
| 120 |
+
"logging_strategy": "steps",
|
| 121 |
+
"logging_first_step": true,
|
| 122 |
+
"logging_steps": 1,
|
| 123 |
+
"logging_nan_inf_filter": true,
|
| 124 |
+
"save_strategy": "steps",
|
| 125 |
+
"save_steps": 50.0,
|
| 126 |
+
"save_total_limit": null,
|
| 127 |
+
"save_safetensors": true,
|
| 128 |
+
"save_on_each_node": false,
|
| 129 |
+
"save_only_model": false,
|
| 130 |
+
"restore_callback_states_from_checkpoint": false,
|
| 131 |
+
"no_cuda": false,
|
| 132 |
+
"use_cpu": false,
|
| 133 |
+
"use_mps_device": false,
|
| 134 |
+
"jit_mode_eval": false,
|
| 135 |
+
"use_ipex": false,
|
| 136 |
+
"bf16": true,
|
| 137 |
+
"fp16": false,
|
| 138 |
+
"fp16_opt_level": "O1",
|
| 139 |
+
"half_precision_backend": "auto",
|
| 140 |
+
"bf16_full_eval": false,
|
| 141 |
+
"fp16_full_eval": false,
|
| 142 |
+
"tf32": null,
|
| 143 |
+
"local_rank": 0,
|
| 144 |
+
"ddp_backend": null,
|
| 145 |
+
"tpu_num_cores": null,
|
| 146 |
+
"tpu_metrics_debug": false,
|
| 147 |
+
"debug": null,
|
| 148 |
+
"dataloader_drop_last": false,
|
| 149 |
+
"eval_steps": 300.0,
|
| 150 |
+
"dataloader_num_workers": 4,
|
| 151 |
+
"dataloader_prefetch_factor": null,
|
| 152 |
+
"past_index": -1,
|
| 153 |
+
"run_name": null,
|
| 154 |
+
"disable_tqdm": null,
|
| 155 |
+
"label_names": null,
|
| 156 |
+
"load_best_model_at_end": false,
|
| 157 |
+
"metric_for_best_model": "loss",
|
| 158 |
+
"greater_is_better": false,
|
| 159 |
+
"ignore_data_skip": false,
|
| 160 |
+
"fsdp": "",
|
| 161 |
+
"fsdp_min_num_params": 0,
|
| 162 |
+
"fsdp_config": null,
|
| 163 |
+
"tp_size": 0,
|
| 164 |
+
"fsdp_transformer_layer_cls_to_wrap": null,
|
| 165 |
+
"accelerator_config": {
|
| 166 |
+
"dispatch_batches": false
|
| 167 |
+
},
|
| 168 |
+
"deepspeed": {
|
| 169 |
+
"fp16": {
|
| 170 |
+
"enabled": "auto",
|
| 171 |
+
"loss_scale": 0,
|
| 172 |
+
"loss_scale_window": 1000,
|
| 173 |
+
"initial_scale_power": 16,
|
| 174 |
+
"hysteresis": 2,
|
| 175 |
+
"min_loss_scale": 1
|
| 176 |
+
},
|
| 177 |
+
"bf16": {
|
| 178 |
+
"enabled": "auto"
|
| 179 |
+
},
|
| 180 |
+
"zero_optimization": {
|
| 181 |
+
"stage": 2,
|
| 182 |
+
"offload_optimizer": {
|
| 183 |
+
"device": "none",
|
| 184 |
+
"pin_memory": true
|
| 185 |
+
},
|
| 186 |
+
"allgather_partitions": true,
|
| 187 |
+
"allgather_bucket_size": 200000000.0,
|
| 188 |
+
"overlap_comm": false,
|
| 189 |
+
"reduce_scatter": true,
|
| 190 |
+
"reduce_bucket_size": 200000000.0,
|
| 191 |
+
"contiguous_gradients": true
|
| 192 |
+
},
|
| 193 |
+
"gradient_accumulation_steps": "auto",
|
| 194 |
+
"gradient_clipping": "auto",
|
| 195 |
+
"steps_per_print": 2000,
|
| 196 |
+
"train_batch_size": "auto",
|
| 197 |
+
"train_micro_batch_size_per_gpu": "auto",
|
| 198 |
+
"wall_clock_breakdown": false
|
| 199 |
+
},
|
| 200 |
+
"label_smoothing_factor": 0.0,
|
| 201 |
+
"optim": "adamw_torch",
|
| 202 |
+
"optim_args": null,
|
| 203 |
+
"adafactor": false,
|
| 204 |
+
"group_by_length": false,
|
| 205 |
+
"length_column_name": "length",
|
| 206 |
+
"report_to": [
|
| 207 |
+
"tensorboard"
|
| 208 |
+
],
|
| 209 |
+
"ddp_find_unused_parameters": null,
|
| 210 |
+
"ddp_bucket_cap_mb": null,
|
| 211 |
+
"ddp_broadcast_buffers": null,
|
| 212 |
+
"dataloader_pin_memory": true,
|
| 213 |
+
"dataloader_persistent_workers": false,
|
| 214 |
+
"skip_memory_metrics": true,
|
| 215 |
+
"use_legacy_prediction_loop": false,
|
| 216 |
+
"push_to_hub": false,
|
| 217 |
+
"resume_from_checkpoint": "/data2/kdd/crag/cjz/output/task1_dpo_absgt10_noidk__pari0.5_0602_p2prompt/v1-20250603-021349/checkpoint-200",
|
| 218 |
+
"hub_model_id": null,
|
| 219 |
+
"hub_strategy": "every_save",
|
| 220 |
+
"hub_private_repo": null,
|
| 221 |
+
"hub_always_push": false,
|
| 222 |
+
"gradient_checkpointing": true,
|
| 223 |
+
"gradient_checkpointing_kwargs": null,
|
| 224 |
+
"include_inputs_for_metrics": false,
|
| 225 |
+
"include_for_metrics": [],
|
| 226 |
+
"eval_do_concat_batches": true,
|
| 227 |
+
"fp16_backend": "auto",
|
| 228 |
+
"push_to_hub_model_id": null,
|
| 229 |
+
"push_to_hub_organization": null,
|
| 230 |
+
"push_to_hub_token": null,
|
| 231 |
+
"mp_parameters": "",
|
| 232 |
+
"auto_find_batch_size": false,
|
| 233 |
+
"full_determinism": false,
|
| 234 |
+
"torchdynamo": null,
|
| 235 |
+
"ray_scope": "last",
|
| 236 |
+
"ddp_timeout": 1800,
|
| 237 |
+
"torch_compile": false,
|
| 238 |
+
"torch_compile_backend": null,
|
| 239 |
+
"torch_compile_mode": null,
|
| 240 |
+
"include_tokens_per_second": false,
|
| 241 |
+
"include_num_input_tokens_seen": false,
|
| 242 |
+
"neftune_noise_alpha": null,
|
| 243 |
+
"optim_target_modules": null,
|
| 244 |
+
"batch_eval_metrics": false,
|
| 245 |
+
"eval_on_start": false,
|
| 246 |
+
"use_liger_kernel": false,
|
| 247 |
+
"eval_use_gather_object": false,
|
| 248 |
+
"average_tokens_across_devices": false,
|
| 249 |
+
"sortish_sampler": false,
|
| 250 |
+
"predict_with_generate": false,
|
| 251 |
+
"generation_max_length": null,
|
| 252 |
+
"generation_num_beams": null,
|
| 253 |
+
"generation_config": null,
|
| 254 |
+
"check_model": true,
|
| 255 |
+
"acc_strategy": "token",
|
| 256 |
+
"train_dataloader_shuffle": true,
|
| 257 |
+
"metric_warmup_step": 0,
|
| 258 |
+
"fsdp_num": 1,
|
| 259 |
+
"acc_steps": 1,
|
| 260 |
+
"eval_use_evalscope": false,
|
| 261 |
+
"eval_datasets": [],
|
| 262 |
+
"eval_limit": null,
|
| 263 |
+
"eval_datasets_args": null,
|
| 264 |
+
"eval_generation_config": null,
|
| 265 |
+
"freeze_parameters": [
|
| 266 |
+
"vision_model",
|
| 267 |
+
"multi_modal_projector"
|
| 268 |
+
],
|
| 269 |
+
"freeze_parameters_ratio": 0.0,
|
| 270 |
+
"trainable_parameters": [],
|
| 271 |
+
"freeze_llm": false,
|
| 272 |
+
"freeze_vit": true,
|
| 273 |
+
"freeze_aligner": true,
|
| 274 |
+
"target_modules": [
|
| 275 |
+
"all-linear"
|
| 276 |
+
],
|
| 277 |
+
"target_regex": null,
|
| 278 |
+
"modules_to_save": [],
|
| 279 |
+
"lora_rank": 8,
|
| 280 |
+
"lora_alpha": 32,
|
| 281 |
+
"lora_dropout": 0.05,
|
| 282 |
+
"lora_bias": "none",
|
| 283 |
+
"lora_dtype": null,
|
| 284 |
+
"lorap_lr_ratio": null,
|
| 285 |
+
"use_rslora": false,
|
| 286 |
+
"use_dora": false,
|
| 287 |
+
"lora_ga_batch_size": 2,
|
| 288 |
+
"lora_ga_iters": 2,
|
| 289 |
+
"lora_ga_max_length": 1024,
|
| 290 |
+
"lora_ga_direction": "ArB2r",
|
| 291 |
+
"lora_ga_scale": "stable",
|
| 292 |
+
"lora_ga_stable_gamma": 16,
|
| 293 |
+
"init_weights": true,
|
| 294 |
+
"fourier_n_frequency": 2000,
|
| 295 |
+
"fourier_scaling": 300.0,
|
| 296 |
+
"boft_block_size": 4,
|
| 297 |
+
"boft_block_num": 0,
|
| 298 |
+
"boft_n_butterfly_factor": 1,
|
| 299 |
+
"boft_dropout": 0.0,
|
| 300 |
+
"vera_rank": 256,
|
| 301 |
+
"vera_projection_prng_key": 0,
|
| 302 |
+
"vera_dropout": 0.0,
|
| 303 |
+
"vera_d_initial": 0.1,
|
| 304 |
+
"adapter_act": "gelu",
|
| 305 |
+
"adapter_length": 128,
|
| 306 |
+
"use_galore": false,
|
| 307 |
+
"galore_target_modules": null,
|
| 308 |
+
"galore_rank": 128,
|
| 309 |
+
"galore_update_proj_gap": 50,
|
| 310 |
+
"galore_scale": 1.0,
|
| 311 |
+
"galore_proj_type": "std",
|
| 312 |
+
"galore_optim_per_parameter": false,
|
| 313 |
+
"galore_with_embedding": false,
|
| 314 |
+
"galore_quantization": false,
|
| 315 |
+
"galore_proj_quant": false,
|
| 316 |
+
"galore_proj_bits": 4,
|
| 317 |
+
"galore_proj_group_size": 256,
|
| 318 |
+
"galore_cos_threshold": 0.4,
|
| 319 |
+
"galore_gamma_proj": 2,
|
| 320 |
+
"galore_queue_size": 5,
|
| 321 |
+
"adalora_target_r": 8,
|
| 322 |
+
"adalora_init_r": 12,
|
| 323 |
+
"adalora_tinit": 0,
|
| 324 |
+
"adalora_tfinal": 0,
|
| 325 |
+
"adalora_deltaT": 1,
|
| 326 |
+
"adalora_beta1": 0.85,
|
| 327 |
+
"adalora_beta2": 0.85,
|
| 328 |
+
"adalora_orth_reg_weight": 0.5,
|
| 329 |
+
"llamapro_num_new_blocks": 4,
|
| 330 |
+
"llamapro_num_groups": null,
|
| 331 |
+
"lisa_activated_layers": 0,
|
| 332 |
+
"lisa_step_interval": 20,
|
| 333 |
+
"reft_layer_key": null,
|
| 334 |
+
"reft_layers": null,
|
| 335 |
+
"reft_rank": 4,
|
| 336 |
+
"reft_intervention_type": "LoreftIntervention",
|
| 337 |
+
"reft_args": null,
|
| 338 |
+
"swanlab_token": null,
|
| 339 |
+
"swanlab_project": null,
|
| 340 |
+
"swanlab_workspace": null,
|
| 341 |
+
"swanlab_exp_name": null,
|
| 342 |
+
"swanlab_mode": "cloud",
|
| 343 |
+
"add_version": true,
|
| 344 |
+
"resume_only_model": true,
|
| 345 |
+
"create_checkpoint_symlink": false,
|
| 346 |
+
"packing": false,
|
| 347 |
+
"lazy_tokenize": true,
|
| 348 |
+
"loss_type": "sigmoid",
|
| 349 |
+
"optimizer": null,
|
| 350 |
+
"metric": null,
|
| 351 |
+
"zero_hpz_partition_size": null,
|
| 352 |
+
"reward_model": null,
|
| 353 |
+
"reward_adapters": [],
|
| 354 |
+
"reward_model_type": null,
|
| 355 |
+
"reward_model_revision": null,
|
| 356 |
+
"num_ppo_epochs": 4,
|
| 357 |
+
"whiten_rewards": false,
|
| 358 |
+
"kl_coef": 0.05,
|
| 359 |
+
"cliprange": 0.2,
|
| 360 |
+
"vf_coef": 0.1,
|
| 361 |
+
"cliprange_value": 0.2,
|
| 362 |
+
"gamma": 1.0,
|
| 363 |
+
"lam": 0.95,
|
| 364 |
+
"num_mini_batches": 1,
|
| 365 |
+
"local_rollout_forward_batch_size": 64,
|
| 366 |
+
"num_sample_generations": 10,
|
| 367 |
+
"response_length": 512,
|
| 368 |
+
"missing_eos_penalty": null,
|
| 369 |
+
"epsilon": 0.2,
|
| 370 |
+
"epsilon_high": null,
|
| 371 |
+
"num_infer_workers": 1,
|
| 372 |
+
"vllm_device": [
|
| 373 |
+
"auto"
|
| 374 |
+
],
|
| 375 |
+
"vllm_gpu_memory_utilization": 0.9,
|
| 376 |
+
"vllm_max_model_len": null,
|
| 377 |
+
"vllm_max_num_seqs": 256,
|
| 378 |
+
"vllm_enforce_eager": false,
|
| 379 |
+
"vllm_limit_mm_per_prompt": null,
|
| 380 |
+
"vllm_enable_prefix_caching": true,
|
| 381 |
+
"cosine_min_len_value_wrong": -0.5,
|
| 382 |
+
"cosine_max_len_value_wrong": 0.0,
|
| 383 |
+
"cosine_min_len_value_correct": 1.0,
|
| 384 |
+
"cosine_max_len_value_correct": 0.5,
|
| 385 |
+
"cosine_max_len": null,
|
| 386 |
+
"repetition_n_grams": 3,
|
| 387 |
+
"repetition_max_penalty": -1.0,
|
| 388 |
+
"use_lmdeploy": false,
|
| 389 |
+
"lmdeploy_device": "auto",
|
| 390 |
+
"lmdeploy_session_len": null,
|
| 391 |
+
"lmdeploy_cache_max_entry_count": 0.8,
|
| 392 |
+
"async_generate": false,
|
| 393 |
+
"tensor_parallel_size": 1,
|
| 394 |
+
"sleep_level": 0,
|
| 395 |
+
"move_model_batches": null,
|
| 396 |
+
"offload_optimizer": false,
|
| 397 |
+
"offload_model": false,
|
| 398 |
+
"gc_collect_after_offload": false,
|
| 399 |
+
"multi_turn_func": null,
|
| 400 |
+
"dynamic_sample": false,
|
| 401 |
+
"max_resample_times": 3,
|
| 402 |
+
"overlong_filter": false,
|
| 403 |
+
"soft_max_length": null,
|
| 404 |
+
"soft_cache_length": null,
|
| 405 |
+
"scale_rewards": true,
|
| 406 |
+
"wandb_log_unique_prompts": null,
|
| 407 |
+
"vllm_server_host": null,
|
| 408 |
+
"vllm_server_port": 8000,
|
| 409 |
+
"vllm_server_timeout": 240.0,
|
| 410 |
+
"num_generations": 8,
|
| 411 |
+
"max_completion_length": 512,
|
| 412 |
+
"ds3_gather_for_generation": true,
|
| 413 |
+
"reward_funcs": [],
|
| 414 |
+
"reward_weights": null,
|
| 415 |
+
"log_completions": false,
|
| 416 |
+
"use_vllm": false,
|
| 417 |
+
"num_iterations": 1,
|
| 418 |
+
"rlhf_type": "dpo",
|
| 419 |
+
"ref_model": null,
|
| 420 |
+
"ref_model_type": null,
|
| 421 |
+
"ref_model_revision": null,
|
| 422 |
+
"beta": 0.1,
|
| 423 |
+
"label_smoothing": 0,
|
| 424 |
+
"rpo_alpha": 1.0,
|
| 425 |
+
"cpo_alpha": 1.0,
|
| 426 |
+
"simpo_gamma": 1,
|
| 427 |
+
"desirable_weight": 1.0,
|
| 428 |
+
"undesirable_weight": 1.0,
|
| 429 |
+
"center_rewards_coefficient": null,
|
| 430 |
+
"rank": 0,
|
| 431 |
+
"global_world_size": 1,
|
| 432 |
+
"local_world_size": 1,
|
| 433 |
+
"model_suffix": "Llama-3.2-11B-Vision-Instruct",
|
| 434 |
+
"model_info": "ModelInfo(model_type='llama3_2_vision', model_dir='/data1/chenjiazun/LLM/Llama-3.2-11B-Vision-Instruct', torch_dtype=torch.bfloat16, max_model_len=131072, quant_method=None, quant_bits=None, rope_scaling={'factor': 8.0, 'high_freq_factor': 4.0, 'low_freq_factor': 1.0, 'original_max_position_embeddings': 8192, 'rope_type': 'llama3'}, config=None, task_type='causal_lm', num_labels=None)",
|
| 435 |
+
"model_meta": "ModelMeta(model_type='llama3_2_vision', model_groups=[ModelGroup(models=[Model(ms_model_id='LLM-Research/Llama-3.2-11B-Vision-Instruct', hf_model_id='meta-llama/Llama-3.2-11B-Vision-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='LLM-Research/Llama-3.2-90B-Vision-Instruct', hf_model_id='meta-llama/Llama-3.2-90B-Vision-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='LLM-Research/Llama-3.2-11B-Vision', hf_model_id='meta-llama/Llama-3.2-11B-Vision', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='LLM-Research/Llama-3.2-90B-Vision', hf_model_id='meta-llama/Llama-3.2-90B-Vision', model_path=None, ms_revision=None, hf_revision=None)], ignore_patterns=None, requires=None, tags=[])], template='llama3_2_vision', get_function=<function get_model_tokenizer_llama3_2_vision at 0x7174495470a0>, model_arch='llama3_2_vision', architectures=['MllamaForConditionalGeneration'], additional_saved_files=[], torch_dtype=None, is_multimodal=True, is_reward=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.45'], tags=[])",
|
| 436 |
+
"model_dir": "/data1/chenjiazun/LLM/Llama-3.2-11B-Vision-Instruct",
|
| 437 |
+
"hub": "<class 'swift.hub.hub.MSHub'>",
|
| 438 |
+
"evaluation_strategy": "steps",
|
| 439 |
+
"training_args": "DPOConfig(output_dir='/data2/kdd/crag/cjz/output/task1_dpo_round2_0dot9_0603/v1-20250603-223558', overwrite_output_dir=False, do_train=False, do_eval=True, do_predict=False, eval_strategy=<IntervalStrategy.STEPS: 'steps'>, prediction_loss_only=False, per_device_train_batch_size=2, per_device_eval_batch_size=2, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=16, eval_accumulation_steps=None, eval_delay=0, torch_empty_cache_steps=None, learning_rate=0.0002, weight_decay=0.1, adam_beta1=0.9, adam_beta2=0.95, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=3.0, max_steps=-1, lr_scheduler_type=<SchedulerType.COSINE: 'cosine'>, lr_scheduler_kwargs=None, warmup_ratio=0.05, warmup_steps=0, log_level='passive', log_level_replica='warning', log_on_each_node=True, logging_dir='/data2/kdd/crag/cjz/output/task1_dpo_round2_0dot9_0603/v1-20250603-223558/runs', logging_strategy=<IntervalStrategy.STEPS: 'steps'>, logging_first_step=True, logging_steps=1, logging_nan_inf_filter=True, save_strategy=<SaveStrategy.STEPS: 'steps'>, save_steps=50, save_total_limit=None, save_safetensors=True, save_on_each_node=False, save_only_model=False, restore_callback_states_from_checkpoint=False, no_cuda=False, use_cpu=False, use_mps_device=False, seed=42, data_seed=42, jit_mode_eval=False, use_ipex=False, bf16=True, fp16=False, fp16_opt_level='O1', half_precision_backend='auto', bf16_full_eval=False, fp16_full_eval=False, tf32=None, local_rank=0, ddp_backend=None, tpu_num_cores=None, tpu_metrics_debug=False, debug=[], dataloader_drop_last=False, eval_steps=300, dataloader_num_workers=4, dataloader_prefetch_factor=10, past_index=-1, run_name='/data2/kdd/crag/cjz/output/task1_dpo_round2_0dot9_0603/v1-20250603-223558', disable_tqdm=False, remove_unused_columns=False, label_names=None, load_best_model_at_end=False, metric_for_best_model='loss', greater_is_better=False, ignore_data_skip=False, fsdp=[], fsdp_min_num_params=0, fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}, tp_size=0, fsdp_transformer_layer_cls_to_wrap=None, accelerator_config=AcceleratorConfig(split_batches=False, dispatch_batches=False, even_batches=True, use_seedable_sampler=True, non_blocking=False, gradient_accumulation_kwargs=None, use_configured_state=False), deepspeed={'fp16': {'enabled': 'auto', 'loss_scale': 0, 'loss_scale_window': 1000, 'initial_scale_power': 16, 'hysteresis': 2, 'min_loss_scale': 1}, 'bf16': {'enabled': 'auto'}, 'zero_optimization': {'stage': 2, 'offload_optimizer': {'device': 'none', 'pin_memory': True}, 'allgather_partitions': True, 'allgather_bucket_size': 200000000.0, 'overlap_comm': False, 'reduce_scatter': True, 'reduce_bucket_size': 200000000.0, 'contiguous_gradients': True}, 'gradient_accumulation_steps': 'auto', 'gradient_clipping': 'auto', 'steps_per_print': 2000, 'train_batch_size': 'auto', 'train_micro_batch_size_per_gpu': 'auto', 'wall_clock_breakdown': False}, label_smoothing_factor=0.0, optim=<OptimizerNames.ADAMW_TORCH: 'adamw_torch'>, optim_args=None, adafactor=False, group_by_length=False, length_column_name='length', report_to=['tensorboard'], ddp_find_unused_parameters=None, ddp_bucket_cap_mb=None, ddp_broadcast_buffers=None, dataloader_pin_memory=True, dataloader_persistent_workers=False, skip_memory_metrics=True, use_legacy_prediction_loop=False, push_to_hub=False, resume_from_checkpoint='/data2/kdd/crag/cjz/output/task1_dpo_absgt10_noidk__pari0.5_0602_p2prompt/v1-20250603-021349/checkpoint-200', hub_model_id=None, hub_strategy=<HubStrategy.EVERY_SAVE: 'every_save'>, hub_token=None, hub_private_repo=None, hub_always_push=False, gradient_checkpointing=True, gradient_checkpointing_kwargs=None, include_inputs_for_metrics=False, include_for_metrics=[], eval_do_concat_batches=True, fp16_backend='auto', push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=None, mp_parameters='', auto_find_batch_size=False, full_determinism=False, torchdynamo=None, ray_scope='last', ddp_timeout=1800, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, include_tokens_per_second=None, include_num_input_tokens_seen=None, neftune_noise_alpha=None, optim_target_modules=None, batch_eval_metrics=False, eval_on_start=False, use_liger_kernel=False, eval_use_gather_object=False, average_tokens_across_devices=None, model_init_kwargs=None, ref_model_init_kwargs=None, model_adapter_name=None, ref_adapter_name=None, force_use_ref_model=False, disable_dropout=True, use_logits_to_keep=False, dataset_num_proc=4, padding_value=None, label_pad_token_id=None, max_prompt_length=512, max_completion_length=512, max_length=2048, truncation_mode='keep_end', padding_free=False, precompute_ref_log_probs=False, precompute_ref_batch_size=None, tools=None, loss_type='sigmoid', beta=0.1, f_divergence_type=<FDivergenceType.REVERSE_KL: 'reverse_kl'>, f_alpha_divergence_coef=1.0, reference_free=False, label_smoothing=0, use_weighting=False, rpo_alpha=1.0, discopop_tau=0.05, sync_ref_model=False, ref_model_mixup_alpha=0.6, ref_model_sync_steps=512, generate_during_eval=False, check_model=True, acc_strategy='token', train_dataloader_shuffle=True, metric_warmup_step=0, fsdp_num=1, acc_steps=1, eval_use_evalscope=False, eval_datasets=[], eval_limit=None, eval_datasets_args=None, eval_generation_config=None, train_type='lora', optimizer=None, local_repo_path=None, galore_config=None)"
|
| 440 |
+
}
|
latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step150
|
rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:835f869ea325fd6edf27b48b589309fb66641cb92b45f2fc13d1bb6e8814106c
|
| 3 |
+
size 14244
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:144a71cf3ee27ab02ab4817315e219784a2027923546fabe822e1b16d032b3df
|
| 3 |
+
size 1064
|
trainer_state.json
ADDED
|
@@ -0,0 +1,2734 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.8648648648648649,
|
| 6 |
+
"eval_steps": 300,
|
| 7 |
+
"global_step": 150,
|
| 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.005765765765765766,
|
| 14 |
+
"grad_norm": 2.1474921703338623,
|
| 15 |
+
"learning_rate": 7.692307692307694e-06,
|
| 16 |
+
"logits/chosen": -0.4285973310470581,
|
| 17 |
+
"logits/rejected": -0.721319854259491,
|
| 18 |
+
"logps/chosen": -2.468954086303711,
|
| 19 |
+
"logps/rejected": -59.87730407714844,
|
| 20 |
+
"loss": 0.22946561872959137,
|
| 21 |
+
"memory(GiB)": 30.65,
|
| 22 |
+
"nll_loss": 0.13756254315376282,
|
| 23 |
+
"rewards/accuracies": 0.96875,
|
| 24 |
+
"rewards/chosen": 0.23724405467510223,
|
| 25 |
+
"rewards/margins": 3.9806408882141113,
|
| 26 |
+
"rewards/rejected": -3.743396759033203,
|
| 27 |
+
"step": 1,
|
| 28 |
+
"train_speed(iter/s)": 0.01022
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"epoch": 0.011531531531531532,
|
| 32 |
+
"grad_norm": 2.328110456466675,
|
| 33 |
+
"learning_rate": 1.5384615384615387e-05,
|
| 34 |
+
"logits/chosen": -0.3982561528682709,
|
| 35 |
+
"logits/rejected": -0.7214521169662476,
|
| 36 |
+
"logps/chosen": -3.335645914077759,
|
| 37 |
+
"logps/rejected": -60.79209899902344,
|
| 38 |
+
"loss": 0.3770241439342499,
|
| 39 |
+
"memory(GiB)": 30.65,
|
| 40 |
+
"nll_loss": 0.23075783252716064,
|
| 41 |
+
"rewards/accuracies": 0.96875,
|
| 42 |
+
"rewards/chosen": 0.10687967389822006,
|
| 43 |
+
"rewards/margins": 3.9392333030700684,
|
| 44 |
+
"rewards/rejected": -3.832353353500366,
|
| 45 |
+
"step": 2,
|
| 46 |
+
"train_speed(iter/s)": 0.010488
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"epoch": 0.017297297297297298,
|
| 50 |
+
"grad_norm": 14.568985939025879,
|
| 51 |
+
"learning_rate": 2.307692307692308e-05,
|
| 52 |
+
"logits/chosen": -0.43175598978996277,
|
| 53 |
+
"logits/rejected": -0.6921666264533997,
|
| 54 |
+
"logps/chosen": -5.190546035766602,
|
| 55 |
+
"logps/rejected": -51.33646011352539,
|
| 56 |
+
"loss": 0.9886025786399841,
|
| 57 |
+
"memory(GiB)": 34.1,
|
| 58 |
+
"nll_loss": 0.6371194124221802,
|
| 59 |
+
"rewards/accuracies": 0.84375,
|
| 60 |
+
"rewards/chosen": -0.034887176007032394,
|
| 61 |
+
"rewards/margins": 3.2021734714508057,
|
| 62 |
+
"rewards/rejected": -3.237060785293579,
|
| 63 |
+
"step": 3,
|
| 64 |
+
"train_speed(iter/s)": 0.010581
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"epoch": 0.023063063063063063,
|
| 68 |
+
"grad_norm": 13.817249298095703,
|
| 69 |
+
"learning_rate": 3.0769230769230774e-05,
|
| 70 |
+
"logits/chosen": -0.4616771340370178,
|
| 71 |
+
"logits/rejected": -0.6264235973358154,
|
| 72 |
+
"logps/chosen": -3.2552552223205566,
|
| 73 |
+
"logps/rejected": -51.25586700439453,
|
| 74 |
+
"loss": 0.5021163821220398,
|
| 75 |
+
"memory(GiB)": 37.58,
|
| 76 |
+
"nll_loss": 0.26375898718833923,
|
| 77 |
+
"rewards/accuracies": 0.875,
|
| 78 |
+
"rewards/chosen": 0.06816040724515915,
|
| 79 |
+
"rewards/margins": 3.5297036170959473,
|
| 80 |
+
"rewards/rejected": -3.461543083190918,
|
| 81 |
+
"step": 4,
|
| 82 |
+
"train_speed(iter/s)": 0.010625
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"epoch": 0.02882882882882883,
|
| 86 |
+
"grad_norm": 2.363553524017334,
|
| 87 |
+
"learning_rate": 3.846153846153846e-05,
|
| 88 |
+
"logits/chosen": -0.48805952072143555,
|
| 89 |
+
"logits/rejected": -0.7040677070617676,
|
| 90 |
+
"logps/chosen": -6.89398717880249,
|
| 91 |
+
"logps/rejected": -59.37879943847656,
|
| 92 |
+
"loss": 0.39657193422317505,
|
| 93 |
+
"memory(GiB)": 37.58,
|
| 94 |
+
"nll_loss": 0.2818652391433716,
|
| 95 |
+
"rewards/accuracies": 0.96875,
|
| 96 |
+
"rewards/chosen": 0.1999940723180771,
|
| 97 |
+
"rewards/margins": 4.230030059814453,
|
| 98 |
+
"rewards/rejected": -4.030035495758057,
|
| 99 |
+
"step": 5,
|
| 100 |
+
"train_speed(iter/s)": 0.010659
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 0.034594594594594595,
|
| 104 |
+
"grad_norm": 4.551424026489258,
|
| 105 |
+
"learning_rate": 4.615384615384616e-05,
|
| 106 |
+
"logits/chosen": -0.39471542835235596,
|
| 107 |
+
"logits/rejected": -0.6508359909057617,
|
| 108 |
+
"logps/chosen": -6.633285999298096,
|
| 109 |
+
"logps/rejected": -58.268653869628906,
|
| 110 |
+
"loss": 0.5636770129203796,
|
| 111 |
+
"memory(GiB)": 41.24,
|
| 112 |
+
"nll_loss": 0.41472452878952026,
|
| 113 |
+
"rewards/accuracies": 0.96875,
|
| 114 |
+
"rewards/chosen": 0.1396198272705078,
|
| 115 |
+
"rewards/margins": 3.7723348140716553,
|
| 116 |
+
"rewards/rejected": -3.6327152252197266,
|
| 117 |
+
"step": 6,
|
| 118 |
+
"train_speed(iter/s)": 0.010667
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"epoch": 0.04036036036036036,
|
| 122 |
+
"grad_norm": 4.302145481109619,
|
| 123 |
+
"learning_rate": 5.384615384615385e-05,
|
| 124 |
+
"logits/chosen": -0.42404329776763916,
|
| 125 |
+
"logits/rejected": -0.7084805369377136,
|
| 126 |
+
"logps/chosen": -4.09792947769165,
|
| 127 |
+
"logps/rejected": -69.69088745117188,
|
| 128 |
+
"loss": 0.5202179551124573,
|
| 129 |
+
"memory(GiB)": 41.24,
|
| 130 |
+
"nll_loss": 0.3875095546245575,
|
| 131 |
+
"rewards/accuracies": 0.9375,
|
| 132 |
+
"rewards/chosen": -0.018997177481651306,
|
| 133 |
+
"rewards/margins": 5.0437703132629395,
|
| 134 |
+
"rewards/rejected": -5.062767505645752,
|
| 135 |
+
"step": 7,
|
| 136 |
+
"train_speed(iter/s)": 0.010685
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"epoch": 0.04612612612612613,
|
| 140 |
+
"grad_norm": 4.475785255432129,
|
| 141 |
+
"learning_rate": 6.153846153846155e-05,
|
| 142 |
+
"logits/chosen": -0.4411894977092743,
|
| 143 |
+
"logits/rejected": -0.6594015955924988,
|
| 144 |
+
"logps/chosen": -6.067828178405762,
|
| 145 |
+
"logps/rejected": -52.161441802978516,
|
| 146 |
+
"loss": 0.8079419136047363,
|
| 147 |
+
"memory(GiB)": 41.24,
|
| 148 |
+
"nll_loss": 0.5527109503746033,
|
| 149 |
+
"rewards/accuracies": 0.875,
|
| 150 |
+
"rewards/chosen": 0.13843362033367157,
|
| 151 |
+
"rewards/margins": 3.638244390487671,
|
| 152 |
+
"rewards/rejected": -3.4998104572296143,
|
| 153 |
+
"step": 8,
|
| 154 |
+
"train_speed(iter/s)": 0.010699
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"epoch": 0.05189189189189189,
|
| 158 |
+
"grad_norm": 7.412286281585693,
|
| 159 |
+
"learning_rate": 6.923076923076924e-05,
|
| 160 |
+
"logits/chosen": -0.4308490753173828,
|
| 161 |
+
"logits/rejected": -0.6868806481361389,
|
| 162 |
+
"logps/chosen": -4.5601372718811035,
|
| 163 |
+
"logps/rejected": -75.88018798828125,
|
| 164 |
+
"loss": 0.3704576790332794,
|
| 165 |
+
"memory(GiB)": 41.24,
|
| 166 |
+
"nll_loss": 0.23506566882133484,
|
| 167 |
+
"rewards/accuracies": 0.9375,
|
| 168 |
+
"rewards/chosen": 0.1938612163066864,
|
| 169 |
+
"rewards/margins": 5.914104461669922,
|
| 170 |
+
"rewards/rejected": -5.720243453979492,
|
| 171 |
+
"step": 9,
|
| 172 |
+
"train_speed(iter/s)": 0.010708
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"epoch": 0.05765765765765766,
|
| 176 |
+
"grad_norm": 2.0841763019561768,
|
| 177 |
+
"learning_rate": 7.692307692307693e-05,
|
| 178 |
+
"logits/chosen": -0.4546598792076111,
|
| 179 |
+
"logits/rejected": -0.7517622113227844,
|
| 180 |
+
"logps/chosen": -1.471292495727539,
|
| 181 |
+
"logps/rejected": -70.88200378417969,
|
| 182 |
+
"loss": 0.2737431526184082,
|
| 183 |
+
"memory(GiB)": 41.24,
|
| 184 |
+
"nll_loss": 0.14067727327346802,
|
| 185 |
+
"rewards/accuracies": 0.9375,
|
| 186 |
+
"rewards/chosen": 0.13278257846832275,
|
| 187 |
+
"rewards/margins": 5.628582000732422,
|
| 188 |
+
"rewards/rejected": -5.495799541473389,
|
| 189 |
+
"step": 10,
|
| 190 |
+
"train_speed(iter/s)": 0.010721
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"epoch": 0.06342342342342343,
|
| 194 |
+
"grad_norm": 5.912591457366943,
|
| 195 |
+
"learning_rate": 8.461538461538461e-05,
|
| 196 |
+
"logits/chosen": -0.4128813147544861,
|
| 197 |
+
"logits/rejected": -0.5927000045776367,
|
| 198 |
+
"logps/chosen": -7.319942474365234,
|
| 199 |
+
"logps/rejected": -61.27806091308594,
|
| 200 |
+
"loss": 0.5680095553398132,
|
| 201 |
+
"memory(GiB)": 41.24,
|
| 202 |
+
"nll_loss": 0.3753523826599121,
|
| 203 |
+
"rewards/accuracies": 0.90625,
|
| 204 |
+
"rewards/chosen": 0.07616602629423141,
|
| 205 |
+
"rewards/margins": 4.830938816070557,
|
| 206 |
+
"rewards/rejected": -4.754772663116455,
|
| 207 |
+
"step": 11,
|
| 208 |
+
"train_speed(iter/s)": 0.010727
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"epoch": 0.06918918918918919,
|
| 212 |
+
"grad_norm": 2.5374209880828857,
|
| 213 |
+
"learning_rate": 9.230769230769232e-05,
|
| 214 |
+
"logits/chosen": -0.349031925201416,
|
| 215 |
+
"logits/rejected": -0.6373917460441589,
|
| 216 |
+
"logps/chosen": -4.199922561645508,
|
| 217 |
+
"logps/rejected": -72.83607482910156,
|
| 218 |
+
"loss": 0.34027042984962463,
|
| 219 |
+
"memory(GiB)": 41.24,
|
| 220 |
+
"nll_loss": 0.22808796167373657,
|
| 221 |
+
"rewards/accuracies": 0.96875,
|
| 222 |
+
"rewards/chosen": 0.20608201622962952,
|
| 223 |
+
"rewards/margins": 5.424815654754639,
|
| 224 |
+
"rewards/rejected": -5.218733787536621,
|
| 225 |
+
"step": 12,
|
| 226 |
+
"train_speed(iter/s)": 0.010728
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"epoch": 0.07495495495495495,
|
| 230 |
+
"grad_norm": 2.7130517959594727,
|
| 231 |
+
"learning_rate": 0.0001,
|
| 232 |
+
"logits/chosen": -0.3631379306316376,
|
| 233 |
+
"logits/rejected": -0.6601940989494324,
|
| 234 |
+
"logps/chosen": -3.3938565254211426,
|
| 235 |
+
"logps/rejected": -65.2313232421875,
|
| 236 |
+
"loss": 0.4514213800430298,
|
| 237 |
+
"memory(GiB)": 41.24,
|
| 238 |
+
"nll_loss": 0.30333614349365234,
|
| 239 |
+
"rewards/accuracies": 0.9375,
|
| 240 |
+
"rewards/chosen": 0.06806281208992004,
|
| 241 |
+
"rewards/margins": 4.726724624633789,
|
| 242 |
+
"rewards/rejected": -4.658661365509033,
|
| 243 |
+
"step": 13,
|
| 244 |
+
"train_speed(iter/s)": 0.010733
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"epoch": 0.08072072072072072,
|
| 248 |
+
"grad_norm": 1.5474798679351807,
|
| 249 |
+
"learning_rate": 0.0001076923076923077,
|
| 250 |
+
"logits/chosen": -0.4096493124961853,
|
| 251 |
+
"logits/rejected": -0.6515597105026245,
|
| 252 |
+
"logps/chosen": -2.300206184387207,
|
| 253 |
+
"logps/rejected": -57.26811218261719,
|
| 254 |
+
"loss": 0.3060320019721985,
|
| 255 |
+
"memory(GiB)": 41.24,
|
| 256 |
+
"nll_loss": 0.1727571338415146,
|
| 257 |
+
"rewards/accuracies": 0.9375,
|
| 258 |
+
"rewards/chosen": 0.08898697793483734,
|
| 259 |
+
"rewards/margins": 4.1406354904174805,
|
| 260 |
+
"rewards/rejected": -4.0516486167907715,
|
| 261 |
+
"step": 14,
|
| 262 |
+
"train_speed(iter/s)": 0.010737
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"epoch": 0.08648648648648649,
|
| 266 |
+
"grad_norm": 1.628075361251831,
|
| 267 |
+
"learning_rate": 0.00011538461538461538,
|
| 268 |
+
"logits/chosen": -0.4402551054954529,
|
| 269 |
+
"logits/rejected": -0.6672070622444153,
|
| 270 |
+
"logps/chosen": -2.9995224475860596,
|
| 271 |
+
"logps/rejected": -53.87057113647461,
|
| 272 |
+
"loss": 0.3575773239135742,
|
| 273 |
+
"memory(GiB)": 41.24,
|
| 274 |
+
"nll_loss": 0.2217392474412918,
|
| 275 |
+
"rewards/accuracies": 0.9375,
|
| 276 |
+
"rewards/chosen": 0.20550209283828735,
|
| 277 |
+
"rewards/margins": 3.6874935626983643,
|
| 278 |
+
"rewards/rejected": -3.4819912910461426,
|
| 279 |
+
"step": 15,
|
| 280 |
+
"train_speed(iter/s)": 0.010742
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"epoch": 0.09225225225225225,
|
| 284 |
+
"grad_norm": 1.838375449180603,
|
| 285 |
+
"learning_rate": 0.0001230769230769231,
|
| 286 |
+
"logits/chosen": -0.3547935485839844,
|
| 287 |
+
"logits/rejected": -0.6626885533332825,
|
| 288 |
+
"logps/chosen": -4.558413982391357,
|
| 289 |
+
"logps/rejected": -64.36922454833984,
|
| 290 |
+
"loss": 0.45015937089920044,
|
| 291 |
+
"memory(GiB)": 41.24,
|
| 292 |
+
"nll_loss": 0.3128659129142761,
|
| 293 |
+
"rewards/accuracies": 0.96875,
|
| 294 |
+
"rewards/chosen": 0.14241908490657806,
|
| 295 |
+
"rewards/margins": 4.83186149597168,
|
| 296 |
+
"rewards/rejected": -4.689442157745361,
|
| 297 |
+
"step": 16,
|
| 298 |
+
"train_speed(iter/s)": 0.010745
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"epoch": 0.09801801801801802,
|
| 302 |
+
"grad_norm": 3.119417667388916,
|
| 303 |
+
"learning_rate": 0.00013076923076923077,
|
| 304 |
+
"logits/chosen": -0.3334687352180481,
|
| 305 |
+
"logits/rejected": -0.6293997168540955,
|
| 306 |
+
"logps/chosen": -5.949204444885254,
|
| 307 |
+
"logps/rejected": -74.25395965576172,
|
| 308 |
+
"loss": 0.6850419044494629,
|
| 309 |
+
"memory(GiB)": 41.24,
|
| 310 |
+
"nll_loss": 0.5004001259803772,
|
| 311 |
+
"rewards/accuracies": 0.9375,
|
| 312 |
+
"rewards/chosen": 0.07516612857580185,
|
| 313 |
+
"rewards/margins": 4.788809776306152,
|
| 314 |
+
"rewards/rejected": -4.713644027709961,
|
| 315 |
+
"step": 17,
|
| 316 |
+
"train_speed(iter/s)": 0.010741
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"epoch": 0.10378378378378378,
|
| 320 |
+
"grad_norm": 1.6356091499328613,
|
| 321 |
+
"learning_rate": 0.00013846153846153847,
|
| 322 |
+
"logits/chosen": -0.3526935875415802,
|
| 323 |
+
"logits/rejected": -0.6357190608978271,
|
| 324 |
+
"logps/chosen": -2.911073923110962,
|
| 325 |
+
"logps/rejected": -66.46131896972656,
|
| 326 |
+
"loss": 0.32070592045783997,
|
| 327 |
+
"memory(GiB)": 41.24,
|
| 328 |
+
"nll_loss": 0.18397927284240723,
|
| 329 |
+
"rewards/accuracies": 0.9375,
|
| 330 |
+
"rewards/chosen": 0.09694083034992218,
|
| 331 |
+
"rewards/margins": 5.153117656707764,
|
| 332 |
+
"rewards/rejected": -5.056177139282227,
|
| 333 |
+
"step": 18,
|
| 334 |
+
"train_speed(iter/s)": 0.010741
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"epoch": 0.10954954954954955,
|
| 338 |
+
"grad_norm": 2.7403504848480225,
|
| 339 |
+
"learning_rate": 0.00014615384615384615,
|
| 340 |
+
"logits/chosen": -0.3763662278652191,
|
| 341 |
+
"logits/rejected": -0.586420476436615,
|
| 342 |
+
"logps/chosen": -4.417596340179443,
|
| 343 |
+
"logps/rejected": -58.99639892578125,
|
| 344 |
+
"loss": 0.4634058177471161,
|
| 345 |
+
"memory(GiB)": 41.24,
|
| 346 |
+
"nll_loss": 0.28715017437934875,
|
| 347 |
+
"rewards/accuracies": 0.9375,
|
| 348 |
+
"rewards/chosen": 0.1435782015323639,
|
| 349 |
+
"rewards/margins": 4.609218120574951,
|
| 350 |
+
"rewards/rejected": -4.465640068054199,
|
| 351 |
+
"step": 19,
|
| 352 |
+
"train_speed(iter/s)": 0.010743
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"epoch": 0.11531531531531532,
|
| 356 |
+
"grad_norm": 1.982851266860962,
|
| 357 |
+
"learning_rate": 0.00015384615384615385,
|
| 358 |
+
"logits/chosen": -0.3701193332672119,
|
| 359 |
+
"logits/rejected": -0.6088087558746338,
|
| 360 |
+
"logps/chosen": -4.619842529296875,
|
| 361 |
+
"logps/rejected": -68.1020278930664,
|
| 362 |
+
"loss": 0.4344192445278168,
|
| 363 |
+
"memory(GiB)": 41.24,
|
| 364 |
+
"nll_loss": 0.26591166853904724,
|
| 365 |
+
"rewards/accuracies": 0.9375,
|
| 366 |
+
"rewards/chosen": 0.10610304027795792,
|
| 367 |
+
"rewards/margins": 5.044137954711914,
|
| 368 |
+
"rewards/rejected": -4.938034534454346,
|
| 369 |
+
"step": 20,
|
| 370 |
+
"train_speed(iter/s)": 0.010745
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"epoch": 0.12108108108108108,
|
| 374 |
+
"grad_norm": 3.175961494445801,
|
| 375 |
+
"learning_rate": 0.00016153846153846155,
|
| 376 |
+
"logits/chosen": -0.40009674429893494,
|
| 377 |
+
"logits/rejected": -0.642030656337738,
|
| 378 |
+
"logps/chosen": -3.357761859893799,
|
| 379 |
+
"logps/rejected": -65.21231842041016,
|
| 380 |
+
"loss": 0.40142354369163513,
|
| 381 |
+
"memory(GiB)": 41.24,
|
| 382 |
+
"nll_loss": 0.2889588177204132,
|
| 383 |
+
"rewards/accuracies": 0.9375,
|
| 384 |
+
"rewards/chosen": 0.1323939859867096,
|
| 385 |
+
"rewards/margins": 5.234187602996826,
|
| 386 |
+
"rewards/rejected": -5.1017937660217285,
|
| 387 |
+
"step": 21,
|
| 388 |
+
"train_speed(iter/s)": 0.010748
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"epoch": 0.12684684684684686,
|
| 392 |
+
"grad_norm": 1.9400721788406372,
|
| 393 |
+
"learning_rate": 0.00016923076923076923,
|
| 394 |
+
"logits/chosen": -0.3025435209274292,
|
| 395 |
+
"logits/rejected": -0.6950021386146545,
|
| 396 |
+
"logps/chosen": -2.492130994796753,
|
| 397 |
+
"logps/rejected": -107.03312683105469,
|
| 398 |
+
"loss": 0.2920421361923218,
|
| 399 |
+
"memory(GiB)": 41.24,
|
| 400 |
+
"nll_loss": 0.19772115349769592,
|
| 401 |
+
"rewards/accuracies": 0.96875,
|
| 402 |
+
"rewards/chosen": 0.19073158502578735,
|
| 403 |
+
"rewards/margins": 8.599780082702637,
|
| 404 |
+
"rewards/rejected": -8.409048080444336,
|
| 405 |
+
"step": 22,
|
| 406 |
+
"train_speed(iter/s)": 0.010746
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"epoch": 0.13261261261261262,
|
| 410 |
+
"grad_norm": 1.3099267482757568,
|
| 411 |
+
"learning_rate": 0.00017692307692307693,
|
| 412 |
+
"logits/chosen": -0.36498135328292847,
|
| 413 |
+
"logits/rejected": -0.6359634399414062,
|
| 414 |
+
"logps/chosen": -2.421377658843994,
|
| 415 |
+
"logps/rejected": -74.05368041992188,
|
| 416 |
+
"loss": 0.20869436860084534,
|
| 417 |
+
"memory(GiB)": 41.24,
|
| 418 |
+
"nll_loss": 0.11023169010877609,
|
| 419 |
+
"rewards/accuracies": 1.0,
|
| 420 |
+
"rewards/chosen": 0.18500684201717377,
|
| 421 |
+
"rewards/margins": 5.958514213562012,
|
| 422 |
+
"rewards/rejected": -5.773507118225098,
|
| 423 |
+
"step": 23,
|
| 424 |
+
"train_speed(iter/s)": 0.010747
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"epoch": 0.13837837837837838,
|
| 428 |
+
"grad_norm": 1.9334064722061157,
|
| 429 |
+
"learning_rate": 0.00018461538461538463,
|
| 430 |
+
"logits/chosen": -0.45037421584129333,
|
| 431 |
+
"logits/rejected": -0.7719848155975342,
|
| 432 |
+
"logps/chosen": -2.6665430068969727,
|
| 433 |
+
"logps/rejected": -94.5350570678711,
|
| 434 |
+
"loss": 0.3057625889778137,
|
| 435 |
+
"memory(GiB)": 41.24,
|
| 436 |
+
"nll_loss": 0.2374470978975296,
|
| 437 |
+
"rewards/accuracies": 0.96875,
|
| 438 |
+
"rewards/chosen": 0.09573014080524445,
|
| 439 |
+
"rewards/margins": 8.040020942687988,
|
| 440 |
+
"rewards/rejected": -7.944291114807129,
|
| 441 |
+
"step": 24,
|
| 442 |
+
"train_speed(iter/s)": 0.010749
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"epoch": 0.14414414414414414,
|
| 446 |
+
"grad_norm": 7.789314270019531,
|
| 447 |
+
"learning_rate": 0.00019230769230769233,
|
| 448 |
+
"logits/chosen": -0.3473276197910309,
|
| 449 |
+
"logits/rejected": -0.6793957352638245,
|
| 450 |
+
"logps/chosen": -4.235269069671631,
|
| 451 |
+
"logps/rejected": -109.01844024658203,
|
| 452 |
+
"loss": 0.42337244749069214,
|
| 453 |
+
"memory(GiB)": 41.24,
|
| 454 |
+
"nll_loss": 0.21255403757095337,
|
| 455 |
+
"rewards/accuracies": 0.96875,
|
| 456 |
+
"rewards/chosen": 0.009569963440299034,
|
| 457 |
+
"rewards/margins": 8.769816398620605,
|
| 458 |
+
"rewards/rejected": -8.760246276855469,
|
| 459 |
+
"step": 25,
|
| 460 |
+
"train_speed(iter/s)": 0.010747
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"epoch": 0.1499099099099099,
|
| 464 |
+
"grad_norm": 1.970948338508606,
|
| 465 |
+
"learning_rate": 0.0002,
|
| 466 |
+
"logits/chosen": -0.40258127450942993,
|
| 467 |
+
"logits/rejected": -0.7479668259620667,
|
| 468 |
+
"logps/chosen": -2.0013341903686523,
|
| 469 |
+
"logps/rejected": -85.51154327392578,
|
| 470 |
+
"loss": 0.4197818636894226,
|
| 471 |
+
"memory(GiB)": 41.24,
|
| 472 |
+
"nll_loss": 0.2574591636657715,
|
| 473 |
+
"rewards/accuracies": 1.0,
|
| 474 |
+
"rewards/chosen": 0.16396881639957428,
|
| 475 |
+
"rewards/margins": 7.033238410949707,
|
| 476 |
+
"rewards/rejected": -6.869269847869873,
|
| 477 |
+
"step": 26,
|
| 478 |
+
"train_speed(iter/s)": 0.010746
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"epoch": 0.15567567567567567,
|
| 482 |
+
"grad_norm": 11.3534574508667,
|
| 483 |
+
"learning_rate": 0.00019999796963348897,
|
| 484 |
+
"logits/chosen": -0.5246711373329163,
|
| 485 |
+
"logits/rejected": -0.7294141054153442,
|
| 486 |
+
"logps/chosen": -11.85606575012207,
|
| 487 |
+
"logps/rejected": -76.03211975097656,
|
| 488 |
+
"loss": 0.8875234127044678,
|
| 489 |
+
"memory(GiB)": 41.24,
|
| 490 |
+
"nll_loss": 0.575400710105896,
|
| 491 |
+
"rewards/accuracies": 0.90625,
|
| 492 |
+
"rewards/chosen": -0.2269383817911148,
|
| 493 |
+
"rewards/margins": 5.498793125152588,
|
| 494 |
+
"rewards/rejected": -5.725731372833252,
|
| 495 |
+
"step": 27,
|
| 496 |
+
"train_speed(iter/s)": 0.010747
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"epoch": 0.16144144144144143,
|
| 500 |
+
"grad_norm": 2.0314371585845947,
|
| 501 |
+
"learning_rate": 0.00019999187861640362,
|
| 502 |
+
"logits/chosen": -0.5284671187400818,
|
| 503 |
+
"logits/rejected": -0.7846834063529968,
|
| 504 |
+
"logps/chosen": -4.434022426605225,
|
| 505 |
+
"logps/rejected": -87.89623260498047,
|
| 506 |
+
"loss": 0.3868662416934967,
|
| 507 |
+
"memory(GiB)": 41.24,
|
| 508 |
+
"nll_loss": 0.30320096015930176,
|
| 509 |
+
"rewards/accuracies": 0.96875,
|
| 510 |
+
"rewards/chosen": 0.07812386751174927,
|
| 511 |
+
"rewards/margins": 7.374299049377441,
|
| 512 |
+
"rewards/rejected": -7.296175479888916,
|
| 513 |
+
"step": 28,
|
| 514 |
+
"train_speed(iter/s)": 0.010748
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"epoch": 0.16720720720720722,
|
| 518 |
+
"grad_norm": 6.089433193206787,
|
| 519 |
+
"learning_rate": 0.0001999817271960839,
|
| 520 |
+
"logits/chosen": -0.4792092442512512,
|
| 521 |
+
"logits/rejected": -0.7371792793273926,
|
| 522 |
+
"logps/chosen": -3.6791412830352783,
|
| 523 |
+
"logps/rejected": -80.48262023925781,
|
| 524 |
+
"loss": 0.34335166215896606,
|
| 525 |
+
"memory(GiB)": 41.24,
|
| 526 |
+
"nll_loss": 0.22308313846588135,
|
| 527 |
+
"rewards/accuracies": 0.96875,
|
| 528 |
+
"rewards/chosen": -0.049518827348947525,
|
| 529 |
+
"rewards/margins": 6.395692825317383,
|
| 530 |
+
"rewards/rejected": -6.445211410522461,
|
| 531 |
+
"step": 29,
|
| 532 |
+
"train_speed(iter/s)": 0.010751
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"epoch": 0.17297297297297298,
|
| 536 |
+
"grad_norm": 1.8896535634994507,
|
| 537 |
+
"learning_rate": 0.00019996751578475186,
|
| 538 |
+
"logits/chosen": -0.44468259811401367,
|
| 539 |
+
"logits/rejected": -0.7023504972457886,
|
| 540 |
+
"logps/chosen": -3.048004388809204,
|
| 541 |
+
"logps/rejected": -80.6348648071289,
|
| 542 |
+
"loss": 0.30949145555496216,
|
| 543 |
+
"memory(GiB)": 41.24,
|
| 544 |
+
"nll_loss": 0.1800393909215927,
|
| 545 |
+
"rewards/accuracies": 1.0,
|
| 546 |
+
"rewards/chosen": 0.15738406777381897,
|
| 547 |
+
"rewards/margins": 5.8682780265808105,
|
| 548 |
+
"rewards/rejected": -5.710893630981445,
|
| 549 |
+
"step": 30,
|
| 550 |
+
"train_speed(iter/s)": 0.010749
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"epoch": 0.17873873873873874,
|
| 554 |
+
"grad_norm": 2.7516067028045654,
|
| 555 |
+
"learning_rate": 0.00019994924495949504,
|
| 556 |
+
"logits/chosen": -0.4754641652107239,
|
| 557 |
+
"logits/rejected": -0.7408227920532227,
|
| 558 |
+
"logps/chosen": -5.943354606628418,
|
| 559 |
+
"logps/rejected": -79.13115692138672,
|
| 560 |
+
"loss": 0.6435320973396301,
|
| 561 |
+
"memory(GiB)": 41.24,
|
| 562 |
+
"nll_loss": 0.4586246609687805,
|
| 563 |
+
"rewards/accuracies": 0.875,
|
| 564 |
+
"rewards/chosen": 0.0629303902387619,
|
| 565 |
+
"rewards/margins": 6.110820293426514,
|
| 566 |
+
"rewards/rejected": -6.0478901863098145,
|
| 567 |
+
"step": 31,
|
| 568 |
+
"train_speed(iter/s)": 0.01075
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"epoch": 0.1845045045045045,
|
| 572 |
+
"grad_norm": 5.854465007781982,
|
| 573 |
+
"learning_rate": 0.00019992691546224278,
|
| 574 |
+
"logits/chosen": -0.45127877593040466,
|
| 575 |
+
"logits/rejected": -0.7568551898002625,
|
| 576 |
+
"logps/chosen": -2.736678123474121,
|
| 577 |
+
"logps/rejected": -66.9885025024414,
|
| 578 |
+
"loss": 0.3652667701244354,
|
| 579 |
+
"memory(GiB)": 41.24,
|
| 580 |
+
"nll_loss": 0.16899552941322327,
|
| 581 |
+
"rewards/accuracies": 0.875,
|
| 582 |
+
"rewards/chosen": 0.050895966589450836,
|
| 583 |
+
"rewards/margins": 4.933393478393555,
|
| 584 |
+
"rewards/rejected": -4.882497310638428,
|
| 585 |
+
"step": 32,
|
| 586 |
+
"train_speed(iter/s)": 0.01075
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"epoch": 0.19027027027027027,
|
| 590 |
+
"grad_norm": 1.3124663829803467,
|
| 591 |
+
"learning_rate": 0.00019990052819973642,
|
| 592 |
+
"logits/chosen": -0.3465266227722168,
|
| 593 |
+
"logits/rejected": -0.6685288548469543,
|
| 594 |
+
"logps/chosen": -3.301164388656616,
|
| 595 |
+
"logps/rejected": -85.9378662109375,
|
| 596 |
+
"loss": 0.3046538233757019,
|
| 597 |
+
"memory(GiB)": 41.24,
|
| 598 |
+
"nll_loss": 0.1670866757631302,
|
| 599 |
+
"rewards/accuracies": 0.96875,
|
| 600 |
+
"rewards/chosen": 0.17874348163604736,
|
| 601 |
+
"rewards/margins": 6.709518909454346,
|
| 602 |
+
"rewards/rejected": -6.530775547027588,
|
| 603 |
+
"step": 33,
|
| 604 |
+
"train_speed(iter/s)": 0.010748
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"epoch": 0.19603603603603603,
|
| 608 |
+
"grad_norm": 2.341381549835205,
|
| 609 |
+
"learning_rate": 0.00019987008424349225,
|
| 610 |
+
"logits/chosen": -0.38037875294685364,
|
| 611 |
+
"logits/rejected": -0.699614405632019,
|
| 612 |
+
"logps/chosen": -1.5970546007156372,
|
| 613 |
+
"logps/rejected": -74.28025817871094,
|
| 614 |
+
"loss": 0.20820346474647522,
|
| 615 |
+
"memory(GiB)": 41.24,
|
| 616 |
+
"nll_loss": 0.10679290443658829,
|
| 617 |
+
"rewards/accuracies": 0.9375,
|
| 618 |
+
"rewards/chosen": 0.11616384983062744,
|
| 619 |
+
"rewards/margins": 5.825808048248291,
|
| 620 |
+
"rewards/rejected": -5.709644794464111,
|
| 621 |
+
"step": 34,
|
| 622 |
+
"train_speed(iter/s)": 0.010749
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"epoch": 0.2018018018018018,
|
| 626 |
+
"grad_norm": 5.144662380218506,
|
| 627 |
+
"learning_rate": 0.00019983558482975799,
|
| 628 |
+
"logits/chosen": -0.46614986658096313,
|
| 629 |
+
"logits/rejected": -0.6599275469779968,
|
| 630 |
+
"logps/chosen": -5.982501983642578,
|
| 631 |
+
"logps/rejected": -67.7139892578125,
|
| 632 |
+
"loss": 0.5879941582679749,
|
| 633 |
+
"memory(GiB)": 41.24,
|
| 634 |
+
"nll_loss": 0.4303022027015686,
|
| 635 |
+
"rewards/accuracies": 0.9375,
|
| 636 |
+
"rewards/chosen": 0.16055577993392944,
|
| 637 |
+
"rewards/margins": 5.052016258239746,
|
| 638 |
+
"rewards/rejected": -4.89146089553833,
|
| 639 |
+
"step": 35,
|
| 640 |
+
"train_speed(iter/s)": 0.010749
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"epoch": 0.20756756756756756,
|
| 644 |
+
"grad_norm": 1.990370273590088,
|
| 645 |
+
"learning_rate": 0.00019979703135946278,
|
| 646 |
+
"logits/chosen": -0.4655105471611023,
|
| 647 |
+
"logits/rejected": -0.6668959856033325,
|
| 648 |
+
"logps/chosen": -4.062808036804199,
|
| 649 |
+
"logps/rejected": -72.87210845947266,
|
| 650 |
+
"loss": 0.4453062415122986,
|
| 651 |
+
"memory(GiB)": 41.24,
|
| 652 |
+
"nll_loss": 0.25426411628723145,
|
| 653 |
+
"rewards/accuracies": 0.875,
|
| 654 |
+
"rewards/chosen": 0.09591292589902878,
|
| 655 |
+
"rewards/margins": 5.528655052185059,
|
| 656 |
+
"rewards/rejected": -5.432741641998291,
|
| 657 |
+
"step": 36,
|
| 658 |
+
"train_speed(iter/s)": 0.010749
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"epoch": 0.21333333333333335,
|
| 662 |
+
"grad_norm": 2.0748369693756104,
|
| 663 |
+
"learning_rate": 0.00019975442539816012,
|
| 664 |
+
"logits/chosen": -0.4139191210269928,
|
| 665 |
+
"logits/rejected": -0.7536109685897827,
|
| 666 |
+
"logps/chosen": -5.956673622131348,
|
| 667 |
+
"logps/rejected": -66.99488830566406,
|
| 668 |
+
"loss": 0.5514004826545715,
|
| 669 |
+
"memory(GiB)": 41.24,
|
| 670 |
+
"nll_loss": 0.3969358503818512,
|
| 671 |
+
"rewards/accuracies": 0.96875,
|
| 672 |
+
"rewards/chosen": 0.33245787024497986,
|
| 673 |
+
"rewards/margins": 5.0754570960998535,
|
| 674 |
+
"rewards/rejected": -4.742999076843262,
|
| 675 |
+
"step": 37,
|
| 676 |
+
"train_speed(iter/s)": 0.01075
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"epoch": 0.2190990990990991,
|
| 680 |
+
"grad_norm": 1.6668081283569336,
|
| 681 |
+
"learning_rate": 0.0001997077686759643,
|
| 682 |
+
"logits/chosen": -0.42306363582611084,
|
| 683 |
+
"logits/rejected": -0.6915761232376099,
|
| 684 |
+
"logps/chosen": -3.814265727996826,
|
| 685 |
+
"logps/rejected": -82.30941772460938,
|
| 686 |
+
"loss": 0.3710038363933563,
|
| 687 |
+
"memory(GiB)": 41.24,
|
| 688 |
+
"nll_loss": 0.22380009293556213,
|
| 689 |
+
"rewards/accuracies": 0.9375,
|
| 690 |
+
"rewards/chosen": 0.06087161600589752,
|
| 691 |
+
"rewards/margins": 6.076653957366943,
|
| 692 |
+
"rewards/rejected": -6.015782356262207,
|
| 693 |
+
"step": 38,
|
| 694 |
+
"train_speed(iter/s)": 0.01075
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"epoch": 0.22486486486486487,
|
| 698 |
+
"grad_norm": 13.827637672424316,
|
| 699 |
+
"learning_rate": 0.00019965706308748028,
|
| 700 |
+
"logits/chosen": -0.49769100546836853,
|
| 701 |
+
"logits/rejected": -0.7370949983596802,
|
| 702 |
+
"logps/chosen": -3.956310272216797,
|
| 703 |
+
"logps/rejected": -79.41323852539062,
|
| 704 |
+
"loss": 0.6633445620536804,
|
| 705 |
+
"memory(GiB)": 41.24,
|
| 706 |
+
"nll_loss": 0.3870386779308319,
|
| 707 |
+
"rewards/accuracies": 0.90625,
|
| 708 |
+
"rewards/chosen": -0.13494591414928436,
|
| 709 |
+
"rewards/margins": 6.147372722625732,
|
| 710 |
+
"rewards/rejected": -6.282319068908691,
|
| 711 |
+
"step": 39,
|
| 712 |
+
"train_speed(iter/s)": 0.010751
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"epoch": 0.23063063063063063,
|
| 716 |
+
"grad_norm": 2.19854474067688,
|
| 717 |
+
"learning_rate": 0.0001996023106917267,
|
| 718 |
+
"logits/chosen": -0.44343504309654236,
|
| 719 |
+
"logits/rejected": -0.6730125546455383,
|
| 720 |
+
"logps/chosen": -2.9238576889038086,
|
| 721 |
+
"logps/rejected": -77.40494537353516,
|
| 722 |
+
"loss": 0.3453696668148041,
|
| 723 |
+
"memory(GiB)": 41.24,
|
| 724 |
+
"nll_loss": 0.19069285690784454,
|
| 725 |
+
"rewards/accuracies": 0.9375,
|
| 726 |
+
"rewards/chosen": 0.14595907926559448,
|
| 727 |
+
"rewards/margins": 6.002254486083984,
|
| 728 |
+
"rewards/rejected": -5.856295108795166,
|
| 729 |
+
"step": 40,
|
| 730 |
+
"train_speed(iter/s)": 0.010752
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"epoch": 0.2363963963963964,
|
| 734 |
+
"grad_norm": 6.0794596672058105,
|
| 735 |
+
"learning_rate": 0.00019954351371205203,
|
| 736 |
+
"logits/chosen": -0.47579658031463623,
|
| 737 |
+
"logits/rejected": -0.6826990842819214,
|
| 738 |
+
"logps/chosen": -5.335310935974121,
|
| 739 |
+
"logps/rejected": -75.78384399414062,
|
| 740 |
+
"loss": 0.575509250164032,
|
| 741 |
+
"memory(GiB)": 41.24,
|
| 742 |
+
"nll_loss": 0.4477939307689667,
|
| 743 |
+
"rewards/accuracies": 0.96875,
|
| 744 |
+
"rewards/chosen": 0.2103371024131775,
|
| 745 |
+
"rewards/margins": 6.012211322784424,
|
| 746 |
+
"rewards/rejected": -5.801875114440918,
|
| 747 |
+
"step": 41,
|
| 748 |
+
"train_speed(iter/s)": 0.010754
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"epoch": 0.24216216216216216,
|
| 752 |
+
"grad_norm": 1.4152264595031738,
|
| 753 |
+
"learning_rate": 0.00019948067453604473,
|
| 754 |
+
"logits/chosen": -0.49620914459228516,
|
| 755 |
+
"logits/rejected": -0.7446714043617249,
|
| 756 |
+
"logps/chosen": -3.284031867980957,
|
| 757 |
+
"logps/rejected": -77.9183349609375,
|
| 758 |
+
"loss": 0.29828324913978577,
|
| 759 |
+
"memory(GiB)": 41.24,
|
| 760 |
+
"nll_loss": 0.21160344779491425,
|
| 761 |
+
"rewards/accuracies": 0.96875,
|
| 762 |
+
"rewards/chosen": 0.18678154051303864,
|
| 763 |
+
"rewards/margins": 6.247434616088867,
|
| 764 |
+
"rewards/rejected": -6.060652732849121,
|
| 765 |
+
"step": 42,
|
| 766 |
+
"train_speed(iter/s)": 0.010755
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"epoch": 0.24792792792792792,
|
| 770 |
+
"grad_norm": 2.9591963291168213,
|
| 771 |
+
"learning_rate": 0.00019941379571543596,
|
| 772 |
+
"logits/chosen": -0.4777877628803253,
|
| 773 |
+
"logits/rejected": -0.6974171996116638,
|
| 774 |
+
"logps/chosen": -2.9466118812561035,
|
| 775 |
+
"logps/rejected": -66.2719497680664,
|
| 776 |
+
"loss": 0.35521066188812256,
|
| 777 |
+
"memory(GiB)": 41.24,
|
| 778 |
+
"nll_loss": 0.22793087363243103,
|
| 779 |
+
"rewards/accuracies": 0.9375,
|
| 780 |
+
"rewards/chosen": 0.27246373891830444,
|
| 781 |
+
"rewards/margins": 5.403186798095703,
|
| 782 |
+
"rewards/rejected": -5.130722999572754,
|
| 783 |
+
"step": 43,
|
| 784 |
+
"train_speed(iter/s)": 0.010756
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"epoch": 0.2536936936936937,
|
| 788 |
+
"grad_norm": 4.199843883514404,
|
| 789 |
+
"learning_rate": 0.00019934287996599607,
|
| 790 |
+
"logits/chosen": -0.4372207522392273,
|
| 791 |
+
"logits/rejected": -0.700534462928772,
|
| 792 |
+
"logps/chosen": -3.31451416015625,
|
| 793 |
+
"logps/rejected": -70.0909194946289,
|
| 794 |
+
"loss": 0.3793654143810272,
|
| 795 |
+
"memory(GiB)": 41.24,
|
| 796 |
+
"nll_loss": 0.20433279871940613,
|
| 797 |
+
"rewards/accuracies": 0.9375,
|
| 798 |
+
"rewards/chosen": 0.059201404452323914,
|
| 799 |
+
"rewards/margins": 4.912087917327881,
|
| 800 |
+
"rewards/rejected": -4.852885723114014,
|
| 801 |
+
"step": 44,
|
| 802 |
+
"train_speed(iter/s)": 0.010756
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"epoch": 0.2594594594594595,
|
| 806 |
+
"grad_norm": 0.7397028803825378,
|
| 807 |
+
"learning_rate": 0.00019926793016742435,
|
| 808 |
+
"logits/chosen": -0.42062634229660034,
|
| 809 |
+
"logits/rejected": -0.7593384981155396,
|
| 810 |
+
"logps/chosen": -1.404799222946167,
|
| 811 |
+
"logps/rejected": -102.4892349243164,
|
| 812 |
+
"loss": 0.1313902586698532,
|
| 813 |
+
"memory(GiB)": 41.24,
|
| 814 |
+
"nll_loss": 0.09521690011024475,
|
| 815 |
+
"rewards/accuracies": 1.0,
|
| 816 |
+
"rewards/chosen": 0.12229674309492111,
|
| 817 |
+
"rewards/margins": 8.041703224182129,
|
| 818 |
+
"rewards/rejected": -7.919405937194824,
|
| 819 |
+
"step": 45,
|
| 820 |
+
"train_speed(iter/s)": 0.010754
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"epoch": 0.26522522522522524,
|
| 824 |
+
"grad_norm": 5.14201545715332,
|
| 825 |
+
"learning_rate": 0.00019918894936323195,
|
| 826 |
+
"logits/chosen": -0.3798273205757141,
|
| 827 |
+
"logits/rejected": -0.5865642428398132,
|
| 828 |
+
"logps/chosen": -6.911247730255127,
|
| 829 |
+
"logps/rejected": -72.06941223144531,
|
| 830 |
+
"loss": 0.49299517273902893,
|
| 831 |
+
"memory(GiB)": 41.24,
|
| 832 |
+
"nll_loss": 0.27924880385398865,
|
| 833 |
+
"rewards/accuracies": 0.875,
|
| 834 |
+
"rewards/chosen": 0.1307646483182907,
|
| 835 |
+
"rewards/margins": 5.647462368011475,
|
| 836 |
+
"rewards/rejected": -5.516696929931641,
|
| 837 |
+
"step": 46,
|
| 838 |
+
"train_speed(iter/s)": 0.010753
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"epoch": 0.270990990990991,
|
| 842 |
+
"grad_norm": 1.6439752578735352,
|
| 843 |
+
"learning_rate": 0.00019910594076061853,
|
| 844 |
+
"logits/chosen": -0.4431299567222595,
|
| 845 |
+
"logits/rejected": -0.7268660664558411,
|
| 846 |
+
"logps/chosen": -2.0275888442993164,
|
| 847 |
+
"logps/rejected": -81.84529876708984,
|
| 848 |
+
"loss": 0.23740296065807343,
|
| 849 |
+
"memory(GiB)": 41.24,
|
| 850 |
+
"nll_loss": 0.14832313358783722,
|
| 851 |
+
"rewards/accuracies": 0.96875,
|
| 852 |
+
"rewards/chosen": 0.06923090666532516,
|
| 853 |
+
"rewards/margins": 6.1783928871154785,
|
| 854 |
+
"rewards/rejected": -6.109161376953125,
|
| 855 |
+
"step": 47,
|
| 856 |
+
"train_speed(iter/s)": 0.010753
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"epoch": 0.27675675675675676,
|
| 860 |
+
"grad_norm": 6.499570846557617,
|
| 861 |
+
"learning_rate": 0.0001990189077303418,
|
| 862 |
+
"logits/chosen": -0.45142635703086853,
|
| 863 |
+
"logits/rejected": -0.7249264121055603,
|
| 864 |
+
"logps/chosen": -5.794652938842773,
|
| 865 |
+
"logps/rejected": -78.53363800048828,
|
| 866 |
+
"loss": 0.46158841252326965,
|
| 867 |
+
"memory(GiB)": 41.24,
|
| 868 |
+
"nll_loss": 0.3398270010948181,
|
| 869 |
+
"rewards/accuracies": 0.96875,
|
| 870 |
+
"rewards/chosen": 0.24555836617946625,
|
| 871 |
+
"rewards/margins": 6.308343887329102,
|
| 872 |
+
"rewards/rejected": -6.062786102294922,
|
| 873 |
+
"step": 48,
|
| 874 |
+
"train_speed(iter/s)": 0.010753
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"epoch": 0.2825225225225225,
|
| 878 |
+
"grad_norm": 5.58511209487915,
|
| 879 |
+
"learning_rate": 0.00019892785380658078,
|
| 880 |
+
"logits/chosen": -0.4099079370498657,
|
| 881 |
+
"logits/rejected": -0.6898340582847595,
|
| 882 |
+
"logps/chosen": -7.449429035186768,
|
| 883 |
+
"logps/rejected": -92.18098449707031,
|
| 884 |
+
"loss": 0.5815075039863586,
|
| 885 |
+
"memory(GiB)": 41.24,
|
| 886 |
+
"nll_loss": 0.41358357667922974,
|
| 887 |
+
"rewards/accuracies": 0.9375,
|
| 888 |
+
"rewards/chosen": -0.053265977650880814,
|
| 889 |
+
"rewards/margins": 7.150655269622803,
|
| 890 |
+
"rewards/rejected": -7.203920841217041,
|
| 891 |
+
"step": 49,
|
| 892 |
+
"train_speed(iter/s)": 0.010752
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"epoch": 0.2882882882882883,
|
| 896 |
+
"grad_norm": 1.5411535501480103,
|
| 897 |
+
"learning_rate": 0.00019883278268679216,
|
| 898 |
+
"logits/chosen": -0.4670988917350769,
|
| 899 |
+
"logits/rejected": -0.6586328148841858,
|
| 900 |
+
"logps/chosen": -6.984646320343018,
|
| 901 |
+
"logps/rejected": -89.9208755493164,
|
| 902 |
+
"loss": 0.45735102891921997,
|
| 903 |
+
"memory(GiB)": 41.24,
|
| 904 |
+
"nll_loss": 0.28862154483795166,
|
| 905 |
+
"rewards/accuracies": 0.90625,
|
| 906 |
+
"rewards/chosen": 0.1682412177324295,
|
| 907 |
+
"rewards/margins": 7.457679748535156,
|
| 908 |
+
"rewards/rejected": -7.289438247680664,
|
| 909 |
+
"step": 50,
|
| 910 |
+
"train_speed(iter/s)": 0.01075
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"epoch": 0.29405405405405405,
|
| 914 |
+
"grad_norm": 6.264907360076904,
|
| 915 |
+
"learning_rate": 0.00019873369823156036,
|
| 916 |
+
"logits/chosen": -0.35443419218063354,
|
| 917 |
+
"logits/rejected": -0.7265148758888245,
|
| 918 |
+
"logps/chosen": -5.11212158203125,
|
| 919 |
+
"logps/rejected": -97.37500762939453,
|
| 920 |
+
"loss": 0.648152232170105,
|
| 921 |
+
"memory(GiB)": 41.24,
|
| 922 |
+
"nll_loss": 0.5091428756713867,
|
| 923 |
+
"rewards/accuracies": 0.9375,
|
| 924 |
+
"rewards/chosen": -0.03551238775253296,
|
| 925 |
+
"rewards/margins": 7.55380392074585,
|
| 926 |
+
"rewards/rejected": -7.589317321777344,
|
| 927 |
+
"step": 51,
|
| 928 |
+
"train_speed(iter/s)": 0.010707
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"epoch": 0.2998198198198198,
|
| 932 |
+
"grad_norm": 2.1848013401031494,
|
| 933 |
+
"learning_rate": 0.00019863060446444054,
|
| 934 |
+
"logits/chosen": -0.5179776549339294,
|
| 935 |
+
"logits/rejected": -0.7255269289016724,
|
| 936 |
+
"logps/chosen": -6.782817363739014,
|
| 937 |
+
"logps/rejected": -86.8519515991211,
|
| 938 |
+
"loss": 0.5702924728393555,
|
| 939 |
+
"memory(GiB)": 41.24,
|
| 940 |
+
"nll_loss": 0.3926149308681488,
|
| 941 |
+
"rewards/accuracies": 0.90625,
|
| 942 |
+
"rewards/chosen": 0.05346503108739853,
|
| 943 |
+
"rewards/margins": 7.021766185760498,
|
| 944 |
+
"rewards/rejected": -6.968300819396973,
|
| 945 |
+
"step": 52,
|
| 946 |
+
"train_speed(iter/s)": 0.010708
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"epoch": 0.3055855855855856,
|
| 950 |
+
"grad_norm": 3.3478569984436035,
|
| 951 |
+
"learning_rate": 0.00019852350557179538,
|
| 952 |
+
"logits/chosen": -0.5434097051620483,
|
| 953 |
+
"logits/rejected": -0.8009167313575745,
|
| 954 |
+
"logps/chosen": -4.053906440734863,
|
| 955 |
+
"logps/rejected": -105.9520263671875,
|
| 956 |
+
"loss": 0.4421282112598419,
|
| 957 |
+
"memory(GiB)": 41.24,
|
| 958 |
+
"nll_loss": 0.3492012917995453,
|
| 959 |
+
"rewards/accuracies": 0.96875,
|
| 960 |
+
"rewards/chosen": 0.1857108175754547,
|
| 961 |
+
"rewards/margins": 9.035101890563965,
|
| 962 |
+
"rewards/rejected": -8.849390983581543,
|
| 963 |
+
"step": 53,
|
| 964 |
+
"train_speed(iter/s)": 0.010709
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"epoch": 0.31135135135135134,
|
| 968 |
+
"grad_norm": 0.8761724829673767,
|
| 969 |
+
"learning_rate": 0.00019841240590262493,
|
| 970 |
+
"logits/chosen": -0.45293307304382324,
|
| 971 |
+
"logits/rejected": -0.7608242034912109,
|
| 972 |
+
"logps/chosen": -0.6350191831588745,
|
| 973 |
+
"logps/rejected": -91.82192993164062,
|
| 974 |
+
"loss": 0.11042662709951401,
|
| 975 |
+
"memory(GiB)": 41.24,
|
| 976 |
+
"nll_loss": 0.06284812837839127,
|
| 977 |
+
"rewards/accuracies": 1.0,
|
| 978 |
+
"rewards/chosen": 0.1965743899345398,
|
| 979 |
+
"rewards/margins": 7.520632743835449,
|
| 980 |
+
"rewards/rejected": -7.324058532714844,
|
| 981 |
+
"step": 54,
|
| 982 |
+
"train_speed(iter/s)": 0.01071
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"epoch": 0.3171171171171171,
|
| 986 |
+
"grad_norm": 5.344722747802734,
|
| 987 |
+
"learning_rate": 0.0001982973099683902,
|
| 988 |
+
"logits/chosen": -0.5431379675865173,
|
| 989 |
+
"logits/rejected": -0.8100754022598267,
|
| 990 |
+
"logps/chosen": -1.98147714138031,
|
| 991 |
+
"logps/rejected": -91.00532531738281,
|
| 992 |
+
"loss": 0.3004758059978485,
|
| 993 |
+
"memory(GiB)": 41.24,
|
| 994 |
+
"nll_loss": 0.1778518110513687,
|
| 995 |
+
"rewards/accuracies": 0.96875,
|
| 996 |
+
"rewards/chosen": 0.1774783581495285,
|
| 997 |
+
"rewards/margins": 7.744819641113281,
|
| 998 |
+
"rewards/rejected": -7.567340850830078,
|
| 999 |
+
"step": 55,
|
| 1000 |
+
"train_speed(iter/s)": 0.010711
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"epoch": 0.32288288288288286,
|
| 1004 |
+
"grad_norm": 5.424385070800781,
|
| 1005 |
+
"learning_rate": 0.00019817822244282973,
|
| 1006 |
+
"logits/chosen": -0.48769453167915344,
|
| 1007 |
+
"logits/rejected": -0.7255769371986389,
|
| 1008 |
+
"logps/chosen": -3.6506757736206055,
|
| 1009 |
+
"logps/rejected": -84.81509399414062,
|
| 1010 |
+
"loss": 0.4457959830760956,
|
| 1011 |
+
"memory(GiB)": 41.24,
|
| 1012 |
+
"nll_loss": 0.23988068103790283,
|
| 1013 |
+
"rewards/accuracies": 0.875,
|
| 1014 |
+
"rewards/chosen": 0.11002250760793686,
|
| 1015 |
+
"rewards/margins": 6.652472019195557,
|
| 1016 |
+
"rewards/rejected": -6.542449951171875,
|
| 1017 |
+
"step": 56,
|
| 1018 |
+
"train_speed(iter/s)": 0.010711
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"epoch": 0.3286486486486486,
|
| 1022 |
+
"grad_norm": 2.3812549114227295,
|
| 1023 |
+
"learning_rate": 0.00019805514816177006,
|
| 1024 |
+
"logits/chosen": -0.556337833404541,
|
| 1025 |
+
"logits/rejected": -0.7923259735107422,
|
| 1026 |
+
"logps/chosen": -5.455251693725586,
|
| 1027 |
+
"logps/rejected": -89.06196594238281,
|
| 1028 |
+
"loss": 0.4395422339439392,
|
| 1029 |
+
"memory(GiB)": 41.24,
|
| 1030 |
+
"nll_loss": 0.29659417271614075,
|
| 1031 |
+
"rewards/accuracies": 0.9375,
|
| 1032 |
+
"rewards/chosen": -0.01958906650543213,
|
| 1033 |
+
"rewards/margins": 6.816771984100342,
|
| 1034 |
+
"rewards/rejected": -6.836360931396484,
|
| 1035 |
+
"step": 57,
|
| 1036 |
+
"train_speed(iter/s)": 0.01071
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"epoch": 0.33441441441441444,
|
| 1040 |
+
"grad_norm": 8.72442626953125,
|
| 1041 |
+
"learning_rate": 0.00019792809212292912,
|
| 1042 |
+
"logits/chosen": -0.6302639842033386,
|
| 1043 |
+
"logits/rejected": -0.9231972098350525,
|
| 1044 |
+
"logps/chosen": -5.753312110900879,
|
| 1045 |
+
"logps/rejected": -103.71651458740234,
|
| 1046 |
+
"loss": 1.1447618007659912,
|
| 1047 |
+
"memory(GiB)": 41.24,
|
| 1048 |
+
"nll_loss": 0.6733683943748474,
|
| 1049 |
+
"rewards/accuracies": 0.96875,
|
| 1050 |
+
"rewards/chosen": -0.26626041531562805,
|
| 1051 |
+
"rewards/margins": 8.245807647705078,
|
| 1052 |
+
"rewards/rejected": -8.512067794799805,
|
| 1053 |
+
"step": 58,
|
| 1054 |
+
"train_speed(iter/s)": 0.010711
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"epoch": 0.3401801801801802,
|
| 1058 |
+
"grad_norm": 2.6023576259613037,
|
| 1059 |
+
"learning_rate": 0.00019779705948571346,
|
| 1060 |
+
"logits/chosen": -0.5867213010787964,
|
| 1061 |
+
"logits/rejected": -0.8538931608200073,
|
| 1062 |
+
"logps/chosen": -3.069394111633301,
|
| 1063 |
+
"logps/rejected": -96.5278091430664,
|
| 1064 |
+
"loss": 0.3167837858200073,
|
| 1065 |
+
"memory(GiB)": 41.24,
|
| 1066 |
+
"nll_loss": 0.20217999815940857,
|
| 1067 |
+
"rewards/accuracies": 0.9375,
|
| 1068 |
+
"rewards/chosen": 0.10776210576295853,
|
| 1069 |
+
"rewards/margins": 8.32030963897705,
|
| 1070 |
+
"rewards/rejected": -8.21254825592041,
|
| 1071 |
+
"step": 59,
|
| 1072 |
+
"train_speed(iter/s)": 0.010712
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"epoch": 0.34594594594594597,
|
| 1076 |
+
"grad_norm": 2.678529977798462,
|
| 1077 |
+
"learning_rate": 0.00019766205557100868,
|
| 1078 |
+
"logits/chosen": -0.6138476133346558,
|
| 1079 |
+
"logits/rejected": -0.7842435836791992,
|
| 1080 |
+
"logps/chosen": -6.119746208190918,
|
| 1081 |
+
"logps/rejected": -88.4565658569336,
|
| 1082 |
+
"loss": 0.44386592507362366,
|
| 1083 |
+
"memory(GiB)": 41.24,
|
| 1084 |
+
"nll_loss": 0.2780015468597412,
|
| 1085 |
+
"rewards/accuracies": 0.96875,
|
| 1086 |
+
"rewards/chosen": 0.06730165332555771,
|
| 1087 |
+
"rewards/margins": 7.516484260559082,
|
| 1088 |
+
"rewards/rejected": -7.449182987213135,
|
| 1089 |
+
"step": 60,
|
| 1090 |
+
"train_speed(iter/s)": 0.010713
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"epoch": 0.3517117117117117,
|
| 1094 |
+
"grad_norm": 2.223165512084961,
|
| 1095 |
+
"learning_rate": 0.00019752308586096326,
|
| 1096 |
+
"logits/chosen": -0.5360291004180908,
|
| 1097 |
+
"logits/rejected": -0.894256591796875,
|
| 1098 |
+
"logps/chosen": -1.3611795902252197,
|
| 1099 |
+
"logps/rejected": -122.1118392944336,
|
| 1100 |
+
"loss": 0.13098187744617462,
|
| 1101 |
+
"memory(GiB)": 41.24,
|
| 1102 |
+
"nll_loss": 0.07775433361530304,
|
| 1103 |
+
"rewards/accuracies": 1.0,
|
| 1104 |
+
"rewards/chosen": 0.12457617372274399,
|
| 1105 |
+
"rewards/margins": 10.008496284484863,
|
| 1106 |
+
"rewards/rejected": -9.883918762207031,
|
| 1107 |
+
"step": 61,
|
| 1108 |
+
"train_speed(iter/s)": 0.010713
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"epoch": 0.3574774774774775,
|
| 1112 |
+
"grad_norm": 10.891358375549316,
|
| 1113 |
+
"learning_rate": 0.0001973801559987661,
|
| 1114 |
+
"logits/chosen": -0.7173175811767578,
|
| 1115 |
+
"logits/rejected": -0.8792683482170105,
|
| 1116 |
+
"logps/chosen": -12.6211519241333,
|
| 1117 |
+
"logps/rejected": -73.51658630371094,
|
| 1118 |
+
"loss": 1.0753252506256104,
|
| 1119 |
+
"memory(GiB)": 41.24,
|
| 1120 |
+
"nll_loss": 0.9100903868675232,
|
| 1121 |
+
"rewards/accuracies": 0.9375,
|
| 1122 |
+
"rewards/chosen": -0.495037317276001,
|
| 1123 |
+
"rewards/margins": 5.504097938537598,
|
| 1124 |
+
"rewards/rejected": -5.9991350173950195,
|
| 1125 |
+
"step": 62,
|
| 1126 |
+
"train_speed(iter/s)": 0.010715
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"epoch": 0.36324324324324325,
|
| 1130 |
+
"grad_norm": 26.432544708251953,
|
| 1131 |
+
"learning_rate": 0.00019723327178841743,
|
| 1132 |
+
"logits/chosen": -0.6629639267921448,
|
| 1133 |
+
"logits/rejected": -0.8958379030227661,
|
| 1134 |
+
"logps/chosen": -5.678650856018066,
|
| 1135 |
+
"logps/rejected": -81.07159423828125,
|
| 1136 |
+
"loss": 0.6158818602561951,
|
| 1137 |
+
"memory(GiB)": 41.24,
|
| 1138 |
+
"nll_loss": 0.4310333728790283,
|
| 1139 |
+
"rewards/accuracies": 0.875,
|
| 1140 |
+
"rewards/chosen": 0.02597002126276493,
|
| 1141 |
+
"rewards/margins": 6.523518085479736,
|
| 1142 |
+
"rewards/rejected": -6.497547149658203,
|
| 1143 |
+
"step": 63,
|
| 1144 |
+
"train_speed(iter/s)": 0.010716
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"epoch": 0.369009009009009,
|
| 1148 |
+
"grad_norm": 4.643962860107422,
|
| 1149 |
+
"learning_rate": 0.0001970824391944927,
|
| 1150 |
+
"logits/chosen": -0.6061327457427979,
|
| 1151 |
+
"logits/rejected": -0.8394734859466553,
|
| 1152 |
+
"logps/chosen": -6.52767276763916,
|
| 1153 |
+
"logps/rejected": -74.48380279541016,
|
| 1154 |
+
"loss": 0.5795359015464783,
|
| 1155 |
+
"memory(GiB)": 41.24,
|
| 1156 |
+
"nll_loss": 0.414874792098999,
|
| 1157 |
+
"rewards/accuracies": 0.9375,
|
| 1158 |
+
"rewards/chosen": 0.0007130205631256104,
|
| 1159 |
+
"rewards/margins": 5.6362080574035645,
|
| 1160 |
+
"rewards/rejected": -5.635494709014893,
|
| 1161 |
+
"step": 64,
|
| 1162 |
+
"train_speed(iter/s)": 0.010716
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"epoch": 0.3747747747747748,
|
| 1166 |
+
"grad_norm": 1.8694281578063965,
|
| 1167 |
+
"learning_rate": 0.00019692766434190105,
|
| 1168 |
+
"logits/chosen": -0.6322288513183594,
|
| 1169 |
+
"logits/rejected": -0.8566944003105164,
|
| 1170 |
+
"logps/chosen": -1.9187999963760376,
|
| 1171 |
+
"logps/rejected": -56.726871490478516,
|
| 1172 |
+
"loss": 0.26561087369918823,
|
| 1173 |
+
"memory(GiB)": 41.24,
|
| 1174 |
+
"nll_loss": 0.12671466171741486,
|
| 1175 |
+
"rewards/accuracies": 0.9375,
|
| 1176 |
+
"rewards/chosen": 0.17268410325050354,
|
| 1177 |
+
"rewards/margins": 4.417227268218994,
|
| 1178 |
+
"rewards/rejected": -4.244543075561523,
|
| 1179 |
+
"step": 65,
|
| 1180 |
+
"train_speed(iter/s)": 0.010717
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"epoch": 0.38054054054054054,
|
| 1184 |
+
"grad_norm": 2.3087944984436035,
|
| 1185 |
+
"learning_rate": 0.00019676895351563588,
|
| 1186 |
+
"logits/chosen": -0.6048943996429443,
|
| 1187 |
+
"logits/rejected": -0.8088940382003784,
|
| 1188 |
+
"logps/chosen": -4.430207252502441,
|
| 1189 |
+
"logps/rejected": -64.05681610107422,
|
| 1190 |
+
"loss": 0.33754763007164,
|
| 1191 |
+
"memory(GiB)": 41.24,
|
| 1192 |
+
"nll_loss": 0.22767014801502228,
|
| 1193 |
+
"rewards/accuracies": 0.96875,
|
| 1194 |
+
"rewards/chosen": 0.025299668312072754,
|
| 1195 |
+
"rewards/margins": 4.6934709548950195,
|
| 1196 |
+
"rewards/rejected": -4.668170928955078,
|
| 1197 |
+
"step": 66,
|
| 1198 |
+
"train_speed(iter/s)": 0.010717
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"epoch": 0.3863063063063063,
|
| 1202 |
+
"grad_norm": 2.2111432552337646,
|
| 1203 |
+
"learning_rate": 0.00019660631316052021,
|
| 1204 |
+
"logits/chosen": -0.623546838760376,
|
| 1205 |
+
"logits/rejected": -0.811290979385376,
|
| 1206 |
+
"logps/chosen": -6.471018314361572,
|
| 1207 |
+
"logps/rejected": -57.678314208984375,
|
| 1208 |
+
"loss": 0.4503980875015259,
|
| 1209 |
+
"memory(GiB)": 41.24,
|
| 1210 |
+
"nll_loss": 0.34320953488349915,
|
| 1211 |
+
"rewards/accuracies": 0.96875,
|
| 1212 |
+
"rewards/chosen": -0.06837636232376099,
|
| 1213 |
+
"rewards/margins": 4.10473108291626,
|
| 1214 |
+
"rewards/rejected": -4.173107624053955,
|
| 1215 |
+
"step": 67,
|
| 1216 |
+
"train_speed(iter/s)": 0.010718
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"epoch": 0.39207207207207206,
|
| 1220 |
+
"grad_norm": 1.7001421451568604,
|
| 1221 |
+
"learning_rate": 0.00019643974988094458,
|
| 1222 |
+
"logits/chosen": -0.5895470380783081,
|
| 1223 |
+
"logits/rejected": -0.7888103723526001,
|
| 1224 |
+
"logps/chosen": -5.163002014160156,
|
| 1225 |
+
"logps/rejected": -45.541908264160156,
|
| 1226 |
+
"loss": 0.42964497208595276,
|
| 1227 |
+
"memory(GiB)": 41.24,
|
| 1228 |
+
"nll_loss": 0.3103106617927551,
|
| 1229 |
+
"rewards/accuracies": 1.0,
|
| 1230 |
+
"rewards/chosen": 0.3456801772117615,
|
| 1231 |
+
"rewards/margins": 3.432896614074707,
|
| 1232 |
+
"rewards/rejected": -3.08721661567688,
|
| 1233 |
+
"step": 68,
|
| 1234 |
+
"train_speed(iter/s)": 0.01072
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"epoch": 0.3978378378378378,
|
| 1238 |
+
"grad_norm": 3.909360885620117,
|
| 1239 |
+
"learning_rate": 0.00019626927044059914,
|
| 1240 |
+
"logits/chosen": -0.6134467124938965,
|
| 1241 |
+
"logits/rejected": -0.7660009860992432,
|
| 1242 |
+
"logps/chosen": -5.3520307540893555,
|
| 1243 |
+
"logps/rejected": -49.259185791015625,
|
| 1244 |
+
"loss": 0.5181165337562561,
|
| 1245 |
+
"memory(GiB)": 41.24,
|
| 1246 |
+
"nll_loss": 0.30421963334083557,
|
| 1247 |
+
"rewards/accuracies": 0.9375,
|
| 1248 |
+
"rewards/chosen": 0.014049924910068512,
|
| 1249 |
+
"rewards/margins": 3.3693478107452393,
|
| 1250 |
+
"rewards/rejected": -3.355297565460205,
|
| 1251 |
+
"step": 69,
|
| 1252 |
+
"train_speed(iter/s)": 0.01072
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"epoch": 0.4036036036036036,
|
| 1256 |
+
"grad_norm": 2.67299485206604,
|
| 1257 |
+
"learning_rate": 0.00019609488176219886,
|
| 1258 |
+
"logits/chosen": -0.6107767820358276,
|
| 1259 |
+
"logits/rejected": -0.7868641018867493,
|
| 1260 |
+
"logps/chosen": -3.616837501525879,
|
| 1261 |
+
"logps/rejected": -50.11117172241211,
|
| 1262 |
+
"loss": 0.3146559000015259,
|
| 1263 |
+
"memory(GiB)": 41.24,
|
| 1264 |
+
"nll_loss": 0.21267317235469818,
|
| 1265 |
+
"rewards/accuracies": 1.0,
|
| 1266 |
+
"rewards/chosen": 0.13358786702156067,
|
| 1267 |
+
"rewards/margins": 3.8761374950408936,
|
| 1268 |
+
"rewards/rejected": -3.742549419403076,
|
| 1269 |
+
"step": 70,
|
| 1270 |
+
"train_speed(iter/s)": 0.010721
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"epoch": 0.40936936936936935,
|
| 1274 |
+
"grad_norm": 7.013823509216309,
|
| 1275 |
+
"learning_rate": 0.00019591659092720227,
|
| 1276 |
+
"logits/chosen": -0.5896518230438232,
|
| 1277 |
+
"logits/rejected": -0.858326256275177,
|
| 1278 |
+
"logps/chosen": -2.8418002128601074,
|
| 1279 |
+
"logps/rejected": -64.546630859375,
|
| 1280 |
+
"loss": 0.37414392828941345,
|
| 1281 |
+
"memory(GiB)": 41.24,
|
| 1282 |
+
"nll_loss": 0.25448697805404663,
|
| 1283 |
+
"rewards/accuracies": 0.96875,
|
| 1284 |
+
"rewards/chosen": 0.024522263556718826,
|
| 1285 |
+
"rewards/margins": 4.37087345123291,
|
| 1286 |
+
"rewards/rejected": -4.346351623535156,
|
| 1287 |
+
"step": 71,
|
| 1288 |
+
"train_speed(iter/s)": 0.010722
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"epoch": 0.4151351351351351,
|
| 1292 |
+
"grad_norm": 2.0888102054595947,
|
| 1293 |
+
"learning_rate": 0.00019573440517552427,
|
| 1294 |
+
"logits/chosen": -0.5669695138931274,
|
| 1295 |
+
"logits/rejected": -0.7572087049484253,
|
| 1296 |
+
"logps/chosen": -2.418893337249756,
|
| 1297 |
+
"logps/rejected": -50.858699798583984,
|
| 1298 |
+
"loss": 0.3724361062049866,
|
| 1299 |
+
"memory(GiB)": 41.24,
|
| 1300 |
+
"nll_loss": 0.20290419459342957,
|
| 1301 |
+
"rewards/accuracies": 0.90625,
|
| 1302 |
+
"rewards/chosen": 0.16552519798278809,
|
| 1303 |
+
"rewards/margins": 3.5489120483398438,
|
| 1304 |
+
"rewards/rejected": -3.3833868503570557,
|
| 1305 |
+
"step": 72,
|
| 1306 |
+
"train_speed(iter/s)": 0.010723
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"epoch": 0.4209009009009009,
|
| 1310 |
+
"grad_norm": 1.9631896018981934,
|
| 1311 |
+
"learning_rate": 0.00019554833190524182,
|
| 1312 |
+
"logits/chosen": -0.575507402420044,
|
| 1313 |
+
"logits/rejected": -0.7697166204452515,
|
| 1314 |
+
"logps/chosen": -3.5829074382781982,
|
| 1315 |
+
"logps/rejected": -52.79640197753906,
|
| 1316 |
+
"loss": 0.400629460811615,
|
| 1317 |
+
"memory(GiB)": 41.24,
|
| 1318 |
+
"nll_loss": 0.2976799011230469,
|
| 1319 |
+
"rewards/accuracies": 0.96875,
|
| 1320 |
+
"rewards/chosen": 0.17720367014408112,
|
| 1321 |
+
"rewards/margins": 4.019702434539795,
|
| 1322 |
+
"rewards/rejected": -3.842499017715454,
|
| 1323 |
+
"step": 73,
|
| 1324 |
+
"train_speed(iter/s)": 0.010724
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"epoch": 0.4266666666666667,
|
| 1328 |
+
"grad_norm": 3.227459192276001,
|
| 1329 |
+
"learning_rate": 0.00019535837867229363,
|
| 1330 |
+
"logits/chosen": -0.6866841316223145,
|
| 1331 |
+
"logits/rejected": -0.8467439413070679,
|
| 1332 |
+
"logps/chosen": -1.4898688793182373,
|
| 1333 |
+
"logps/rejected": -52.35246276855469,
|
| 1334 |
+
"loss": 0.2691449224948883,
|
| 1335 |
+
"memory(GiB)": 41.24,
|
| 1336 |
+
"nll_loss": 0.16896064579486847,
|
| 1337 |
+
"rewards/accuracies": 1.0,
|
| 1338 |
+
"rewards/chosen": 0.20350010693073273,
|
| 1339 |
+
"rewards/margins": 4.1118974685668945,
|
| 1340 |
+
"rewards/rejected": -3.9083974361419678,
|
| 1341 |
+
"step": 74,
|
| 1342 |
+
"train_speed(iter/s)": 0.010726
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"epoch": 0.43243243243243246,
|
| 1346 |
+
"grad_norm": 2.0599851608276367,
|
| 1347 |
+
"learning_rate": 0.0001951645531901734,
|
| 1348 |
+
"logits/chosen": -0.6125411987304688,
|
| 1349 |
+
"logits/rejected": -0.8178025484085083,
|
| 1350 |
+
"logps/chosen": -5.753840923309326,
|
| 1351 |
+
"logps/rejected": -60.490638732910156,
|
| 1352 |
+
"loss": 0.4720686376094818,
|
| 1353 |
+
"memory(GiB)": 41.24,
|
| 1354 |
+
"nll_loss": 0.2955226004123688,
|
| 1355 |
+
"rewards/accuracies": 0.875,
|
| 1356 |
+
"rewards/chosen": 0.02442253567278385,
|
| 1357 |
+
"rewards/margins": 4.439631462097168,
|
| 1358 |
+
"rewards/rejected": -4.41520881652832,
|
| 1359 |
+
"step": 75,
|
| 1360 |
+
"train_speed(iter/s)": 0.010726
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"epoch": 0.4381981981981982,
|
| 1364 |
+
"grad_norm": 1.8315515518188477,
|
| 1365 |
+
"learning_rate": 0.00019496686332961646,
|
| 1366 |
+
"logits/chosen": -0.5511488914489746,
|
| 1367 |
+
"logits/rejected": -0.8103834390640259,
|
| 1368 |
+
"logps/chosen": -2.737548828125,
|
| 1369 |
+
"logps/rejected": -72.79937744140625,
|
| 1370 |
+
"loss": 0.2598808705806732,
|
| 1371 |
+
"memory(GiB)": 41.24,
|
| 1372 |
+
"nll_loss": 0.20735348761081696,
|
| 1373 |
+
"rewards/accuracies": 1.0,
|
| 1374 |
+
"rewards/chosen": 0.20416659116744995,
|
| 1375 |
+
"rewards/margins": 5.639776706695557,
|
| 1376 |
+
"rewards/rejected": -5.435609817504883,
|
| 1377 |
+
"step": 76,
|
| 1378 |
+
"train_speed(iter/s)": 0.010726
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"epoch": 0.443963963963964,
|
| 1382 |
+
"grad_norm": 4.658299922943115,
|
| 1383 |
+
"learning_rate": 0.00019476531711828027,
|
| 1384 |
+
"logits/chosen": -0.5621539354324341,
|
| 1385 |
+
"logits/rejected": -0.817601203918457,
|
| 1386 |
+
"logps/chosen": -2.554128646850586,
|
| 1387 |
+
"logps/rejected": -75.40179443359375,
|
| 1388 |
+
"loss": 0.29839468002319336,
|
| 1389 |
+
"memory(GiB)": 41.24,
|
| 1390 |
+
"nll_loss": 0.21096321940422058,
|
| 1391 |
+
"rewards/accuracies": 0.9375,
|
| 1392 |
+
"rewards/chosen": 0.11831088364124298,
|
| 1393 |
+
"rewards/margins": 5.797797679901123,
|
| 1394 |
+
"rewards/rejected": -5.679486274719238,
|
| 1395 |
+
"step": 77,
|
| 1396 |
+
"train_speed(iter/s)": 0.010727
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"epoch": 0.44972972972972974,
|
| 1400 |
+
"grad_norm": 7.5920844078063965,
|
| 1401 |
+
"learning_rate": 0.00019455992274041835,
|
| 1402 |
+
"logits/chosen": -0.5446800589561462,
|
| 1403 |
+
"logits/rejected": -0.7866684794425964,
|
| 1404 |
+
"logps/chosen": -5.180241584777832,
|
| 1405 |
+
"logps/rejected": -80.02595520019531,
|
| 1406 |
+
"loss": 0.4992501735687256,
|
| 1407 |
+
"memory(GiB)": 41.24,
|
| 1408 |
+
"nll_loss": 0.4071677029132843,
|
| 1409 |
+
"rewards/accuracies": 0.9375,
|
| 1410 |
+
"rewards/chosen": 0.006200561299920082,
|
| 1411 |
+
"rewards/margins": 6.354435920715332,
|
| 1412 |
+
"rewards/rejected": -6.348235607147217,
|
| 1413 |
+
"step": 78,
|
| 1414 |
+
"train_speed(iter/s)": 0.010728
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"epoch": 0.4554954954954955,
|
| 1418 |
+
"grad_norm": 2.045180082321167,
|
| 1419 |
+
"learning_rate": 0.00019435068853654807,
|
| 1420 |
+
"logits/chosen": -0.5892366170883179,
|
| 1421 |
+
"logits/rejected": -0.782485842704773,
|
| 1422 |
+
"logps/chosen": -7.082699775695801,
|
| 1423 |
+
"logps/rejected": -76.8997573852539,
|
| 1424 |
+
"loss": 0.4684464931488037,
|
| 1425 |
+
"memory(GiB)": 41.24,
|
| 1426 |
+
"nll_loss": 0.38624832034111023,
|
| 1427 |
+
"rewards/accuracies": 0.9375,
|
| 1428 |
+
"rewards/chosen": 0.03203499689698219,
|
| 1429 |
+
"rewards/margins": 5.84527587890625,
|
| 1430 |
+
"rewards/rejected": -5.813241004943848,
|
| 1431 |
+
"step": 79,
|
| 1432 |
+
"train_speed(iter/s)": 0.010728
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"epoch": 0.46126126126126127,
|
| 1436 |
+
"grad_norm": 6.412923812866211,
|
| 1437 |
+
"learning_rate": 0.00019413762300311182,
|
| 1438 |
+
"logits/chosen": -0.6524518728256226,
|
| 1439 |
+
"logits/rejected": -0.8889943957328796,
|
| 1440 |
+
"logps/chosen": -6.470341682434082,
|
| 1441 |
+
"logps/rejected": -86.74302673339844,
|
| 1442 |
+
"loss": 0.7839629650115967,
|
| 1443 |
+
"memory(GiB)": 41.24,
|
| 1444 |
+
"nll_loss": 0.6858316659927368,
|
| 1445 |
+
"rewards/accuracies": 0.9375,
|
| 1446 |
+
"rewards/chosen": -0.10852594673633575,
|
| 1447 |
+
"rewards/margins": 6.819857120513916,
|
| 1448 |
+
"rewards/rejected": -6.928382873535156,
|
| 1449 |
+
"step": 80,
|
| 1450 |
+
"train_speed(iter/s)": 0.010729
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"epoch": 0.46702702702702703,
|
| 1454 |
+
"grad_norm": 2.171276807785034,
|
| 1455 |
+
"learning_rate": 0.00019392073479213213,
|
| 1456 |
+
"logits/chosen": -0.5607702136039734,
|
| 1457 |
+
"logits/rejected": -0.7560180425643921,
|
| 1458 |
+
"logps/chosen": -6.120340347290039,
|
| 1459 |
+
"logps/rejected": -81.5516128540039,
|
| 1460 |
+
"loss": 0.575468897819519,
|
| 1461 |
+
"memory(GiB)": 41.24,
|
| 1462 |
+
"nll_loss": 0.3079308271408081,
|
| 1463 |
+
"rewards/accuracies": 0.9375,
|
| 1464 |
+
"rewards/chosen": -0.05391833186149597,
|
| 1465 |
+
"rewards/margins": 5.951426029205322,
|
| 1466 |
+
"rewards/rejected": -6.005344390869141,
|
| 1467 |
+
"step": 81,
|
| 1468 |
+
"train_speed(iter/s)": 0.010729
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"epoch": 0.4727927927927928,
|
| 1472 |
+
"grad_norm": 1.5074808597564697,
|
| 1473 |
+
"learning_rate": 0.0001937000327108601,
|
| 1474 |
+
"logits/chosen": -0.5817635655403137,
|
| 1475 |
+
"logits/rejected": -0.8122580051422119,
|
| 1476 |
+
"logps/chosen": -3.3293583393096924,
|
| 1477 |
+
"logps/rejected": -76.75574493408203,
|
| 1478 |
+
"loss": 0.27197888493537903,
|
| 1479 |
+
"memory(GiB)": 41.24,
|
| 1480 |
+
"nll_loss": 0.1920165866613388,
|
| 1481 |
+
"rewards/accuracies": 0.96875,
|
| 1482 |
+
"rewards/chosen": 0.04472556710243225,
|
| 1483 |
+
"rewards/margins": 6.159332275390625,
|
| 1484 |
+
"rewards/rejected": -6.114606857299805,
|
| 1485 |
+
"step": 82,
|
| 1486 |
+
"train_speed(iter/s)": 0.01073
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"epoch": 0.47855855855855856,
|
| 1490 |
+
"grad_norm": 8.971928596496582,
|
| 1491 |
+
"learning_rate": 0.0001934755257214181,
|
| 1492 |
+
"logits/chosen": -0.5557482838630676,
|
| 1493 |
+
"logits/rejected": -0.791240930557251,
|
| 1494 |
+
"logps/chosen": -5.363508701324463,
|
| 1495 |
+
"logps/rejected": -71.66944122314453,
|
| 1496 |
+
"loss": 0.8509294986724854,
|
| 1497 |
+
"memory(GiB)": 41.24,
|
| 1498 |
+
"nll_loss": 0.7254281640052795,
|
| 1499 |
+
"rewards/accuracies": 0.9375,
|
| 1500 |
+
"rewards/chosen": -0.1657000482082367,
|
| 1501 |
+
"rewards/margins": 5.284771919250488,
|
| 1502 |
+
"rewards/rejected": -5.450472354888916,
|
| 1503 |
+
"step": 83,
|
| 1504 |
+
"train_speed(iter/s)": 0.010731
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"epoch": 0.4843243243243243,
|
| 1508 |
+
"grad_norm": 3.7317609786987305,
|
| 1509 |
+
"learning_rate": 0.00019324722294043558,
|
| 1510 |
+
"logits/chosen": -0.49631816148757935,
|
| 1511 |
+
"logits/rejected": -0.7238998413085938,
|
| 1512 |
+
"logps/chosen": -5.0319366455078125,
|
| 1513 |
+
"logps/rejected": -55.3072395324707,
|
| 1514 |
+
"loss": 0.4805355668067932,
|
| 1515 |
+
"memory(GiB)": 41.24,
|
| 1516 |
+
"nll_loss": 0.30268925428390503,
|
| 1517 |
+
"rewards/accuracies": 0.90625,
|
| 1518 |
+
"rewards/chosen": 0.16919195652008057,
|
| 1519 |
+
"rewards/margins": 4.183167934417725,
|
| 1520 |
+
"rewards/rejected": -4.013975620269775,
|
| 1521 |
+
"step": 84,
|
| 1522 |
+
"train_speed(iter/s)": 0.010732
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"epoch": 0.4900900900900901,
|
| 1526 |
+
"grad_norm": 7.251592636108398,
|
| 1527 |
+
"learning_rate": 0.00019301513363867895,
|
| 1528 |
+
"logits/chosen": -0.4797047972679138,
|
| 1529 |
+
"logits/rejected": -0.699076771736145,
|
| 1530 |
+
"logps/chosen": -4.068089485168457,
|
| 1531 |
+
"logps/rejected": -62.654762268066406,
|
| 1532 |
+
"loss": 0.41215279698371887,
|
| 1533 |
+
"memory(GiB)": 41.24,
|
| 1534 |
+
"nll_loss": 0.3088461756706238,
|
| 1535 |
+
"rewards/accuracies": 0.9375,
|
| 1536 |
+
"rewards/chosen": 0.13345223665237427,
|
| 1537 |
+
"rewards/margins": 4.483903884887695,
|
| 1538 |
+
"rewards/rejected": -4.350452423095703,
|
| 1539 |
+
"step": 85,
|
| 1540 |
+
"train_speed(iter/s)": 0.010732
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"epoch": 0.49585585585585584,
|
| 1544 |
+
"grad_norm": 1.6465262174606323,
|
| 1545 |
+
"learning_rate": 0.0001927792672406751,
|
| 1546 |
+
"logits/chosen": -0.4875030219554901,
|
| 1547 |
+
"logits/rejected": -0.7307705879211426,
|
| 1548 |
+
"logps/chosen": -2.494859218597412,
|
| 1549 |
+
"logps/rejected": -57.72221374511719,
|
| 1550 |
+
"loss": 0.31443703174591064,
|
| 1551 |
+
"memory(GiB)": 41.24,
|
| 1552 |
+
"nll_loss": 0.1957024335861206,
|
| 1553 |
+
"rewards/accuracies": 0.96875,
|
| 1554 |
+
"rewards/chosen": 0.1970575600862503,
|
| 1555 |
+
"rewards/margins": 4.039019584655762,
|
| 1556 |
+
"rewards/rejected": -3.8419618606567383,
|
| 1557 |
+
"step": 86,
|
| 1558 |
+
"train_speed(iter/s)": 0.010732
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"epoch": 0.5016216216216216,
|
| 1562 |
+
"grad_norm": 2.362053394317627,
|
| 1563 |
+
"learning_rate": 0.00019253963332432878,
|
| 1564 |
+
"logits/chosen": -0.6053374409675598,
|
| 1565 |
+
"logits/rejected": -0.7439757585525513,
|
| 1566 |
+
"logps/chosen": -5.3451008796691895,
|
| 1567 |
+
"logps/rejected": -47.488853454589844,
|
| 1568 |
+
"loss": 0.4348059296607971,
|
| 1569 |
+
"memory(GiB)": 41.24,
|
| 1570 |
+
"nll_loss": 0.23809021711349487,
|
| 1571 |
+
"rewards/accuracies": 0.9375,
|
| 1572 |
+
"rewards/chosen": -0.019803959876298904,
|
| 1573 |
+
"rewards/margins": 3.427215099334717,
|
| 1574 |
+
"rewards/rejected": -3.447019338607788,
|
| 1575 |
+
"step": 87,
|
| 1576 |
+
"train_speed(iter/s)": 0.010733
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"epoch": 0.5073873873873874,
|
| 1580 |
+
"grad_norm": 2.1728515625,
|
| 1581 |
+
"learning_rate": 0.00019229624162053356,
|
| 1582 |
+
"logits/chosen": -0.5406431555747986,
|
| 1583 |
+
"logits/rejected": -0.739841103553772,
|
| 1584 |
+
"logps/chosen": -2.6260576248168945,
|
| 1585 |
+
"logps/rejected": -56.7901496887207,
|
| 1586 |
+
"loss": 0.4087463915348053,
|
| 1587 |
+
"memory(GiB)": 41.24,
|
| 1588 |
+
"nll_loss": 0.2899452745914459,
|
| 1589 |
+
"rewards/accuracies": 0.90625,
|
| 1590 |
+
"rewards/chosen": 0.0745973214507103,
|
| 1591 |
+
"rewards/margins": 4.15200662612915,
|
| 1592 |
+
"rewards/rejected": -4.077408790588379,
|
| 1593 |
+
"step": 88,
|
| 1594 |
+
"train_speed(iter/s)": 0.010733
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"epoch": 0.5131531531531531,
|
| 1598 |
+
"grad_norm": 1.563063144683838,
|
| 1599 |
+
"learning_rate": 0.00019204910201277672,
|
| 1600 |
+
"logits/chosen": -0.5593241453170776,
|
| 1601 |
+
"logits/rejected": -0.7506377100944519,
|
| 1602 |
+
"logps/chosen": -3.1961171627044678,
|
| 1603 |
+
"logps/rejected": -63.025291442871094,
|
| 1604 |
+
"loss": 0.20274411141872406,
|
| 1605 |
+
"memory(GiB)": 41.24,
|
| 1606 |
+
"nll_loss": 0.15050008893013,
|
| 1607 |
+
"rewards/accuracies": 1.0,
|
| 1608 |
+
"rewards/chosen": 0.13150721788406372,
|
| 1609 |
+
"rewards/margins": 4.959373950958252,
|
| 1610 |
+
"rewards/rejected": -4.827866554260254,
|
| 1611 |
+
"step": 89,
|
| 1612 |
+
"train_speed(iter/s)": 0.010734
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"epoch": 0.518918918918919,
|
| 1616 |
+
"grad_norm": 1.8057938814163208,
|
| 1617 |
+
"learning_rate": 0.0001917982245367379,
|
| 1618 |
+
"logits/chosen": -0.5387026071548462,
|
| 1619 |
+
"logits/rejected": -0.779965341091156,
|
| 1620 |
+
"logps/chosen": -5.658284664154053,
|
| 1621 |
+
"logps/rejected": -61.30659484863281,
|
| 1622 |
+
"loss": 0.5316486358642578,
|
| 1623 |
+
"memory(GiB)": 41.24,
|
| 1624 |
+
"nll_loss": 0.4009394347667694,
|
| 1625 |
+
"rewards/accuracies": 0.9375,
|
| 1626 |
+
"rewards/chosen": 0.2519141137599945,
|
| 1627 |
+
"rewards/margins": 4.251716613769531,
|
| 1628 |
+
"rewards/rejected": -3.9998018741607666,
|
| 1629 |
+
"step": 90,
|
| 1630 |
+
"train_speed(iter/s)": 0.010734
|
| 1631 |
+
},
|
| 1632 |
+
{
|
| 1633 |
+
"epoch": 0.5246846846846847,
|
| 1634 |
+
"grad_norm": 1.6844978332519531,
|
| 1635 |
+
"learning_rate": 0.00019154361937988163,
|
| 1636 |
+
"logits/chosen": -0.5544890761375427,
|
| 1637 |
+
"logits/rejected": -0.7064109444618225,
|
| 1638 |
+
"logps/chosen": -6.5527496337890625,
|
| 1639 |
+
"logps/rejected": -65.5311050415039,
|
| 1640 |
+
"loss": 0.38739749789237976,
|
| 1641 |
+
"memory(GiB)": 41.24,
|
| 1642 |
+
"nll_loss": 0.2913617193698883,
|
| 1643 |
+
"rewards/accuracies": 0.96875,
|
| 1644 |
+
"rewards/chosen": 0.1942709982395172,
|
| 1645 |
+
"rewards/margins": 5.296841621398926,
|
| 1646 |
+
"rewards/rejected": -5.102570533752441,
|
| 1647 |
+
"step": 91,
|
| 1648 |
+
"train_speed(iter/s)": 0.010734
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"epoch": 0.5304504504504505,
|
| 1652 |
+
"grad_norm": 3.110102653503418,
|
| 1653 |
+
"learning_rate": 0.00019128529688104364,
|
| 1654 |
+
"logits/chosen": -0.5477601885795593,
|
| 1655 |
+
"logits/rejected": -0.7957394123077393,
|
| 1656 |
+
"logps/chosen": -2.064303398132324,
|
| 1657 |
+
"logps/rejected": -68.15472412109375,
|
| 1658 |
+
"loss": 0.3176850974559784,
|
| 1659 |
+
"memory(GiB)": 41.24,
|
| 1660 |
+
"nll_loss": 0.21008610725402832,
|
| 1661 |
+
"rewards/accuracies": 0.9375,
|
| 1662 |
+
"rewards/chosen": 0.18838940560817719,
|
| 1663 |
+
"rewards/margins": 5.544022560119629,
|
| 1664 |
+
"rewards/rejected": -5.355632781982422,
|
| 1665 |
+
"step": 92,
|
| 1666 |
+
"train_speed(iter/s)": 0.010735
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"epoch": 0.5362162162162162,
|
| 1670 |
+
"grad_norm": 3.8029165267944336,
|
| 1671 |
+
"learning_rate": 0.00019102326753001086,
|
| 1672 |
+
"logits/chosen": -0.5357910394668579,
|
| 1673 |
+
"logits/rejected": -0.7163031101226807,
|
| 1674 |
+
"logps/chosen": -4.390456676483154,
|
| 1675 |
+
"logps/rejected": -55.20818328857422,
|
| 1676 |
+
"loss": 0.4618917405605316,
|
| 1677 |
+
"memory(GiB)": 41.24,
|
| 1678 |
+
"nll_loss": 0.33474794030189514,
|
| 1679 |
+
"rewards/accuracies": 1.0,
|
| 1680 |
+
"rewards/chosen": 0.36951008439064026,
|
| 1681 |
+
"rewards/margins": 4.2895612716674805,
|
| 1682 |
+
"rewards/rejected": -3.920051336288452,
|
| 1683 |
+
"step": 93,
|
| 1684 |
+
"train_speed(iter/s)": 0.010735
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"epoch": 0.541981981981982,
|
| 1688 |
+
"grad_norm": 1.8191365003585815,
|
| 1689 |
+
"learning_rate": 0.00019075754196709572,
|
| 1690 |
+
"logits/chosen": -0.5523058176040649,
|
| 1691 |
+
"logits/rejected": -0.7712856531143188,
|
| 1692 |
+
"logps/chosen": -2.1930363178253174,
|
| 1693 |
+
"logps/rejected": -66.22615814208984,
|
| 1694 |
+
"loss": 0.28284692764282227,
|
| 1695 |
+
"memory(GiB)": 41.24,
|
| 1696 |
+
"nll_loss": 0.2161579132080078,
|
| 1697 |
+
"rewards/accuracies": 1.0,
|
| 1698 |
+
"rewards/chosen": 0.14300797879695892,
|
| 1699 |
+
"rewards/margins": 5.302109718322754,
|
| 1700 |
+
"rewards/rejected": -5.159101486206055,
|
| 1701 |
+
"step": 94,
|
| 1702 |
+
"train_speed(iter/s)": 0.010735
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"epoch": 0.5477477477477477,
|
| 1706 |
+
"grad_norm": 2.65755558013916,
|
| 1707 |
+
"learning_rate": 0.00019048813098270387,
|
| 1708 |
+
"logits/chosen": -0.49344098567962646,
|
| 1709 |
+
"logits/rejected": -0.7781980633735657,
|
| 1710 |
+
"logps/chosen": -3.545104742050171,
|
| 1711 |
+
"logps/rejected": -78.23759460449219,
|
| 1712 |
+
"loss": 0.3401697278022766,
|
| 1713 |
+
"memory(GiB)": 41.24,
|
| 1714 |
+
"nll_loss": 0.3010118901729584,
|
| 1715 |
+
"rewards/accuracies": 1.0,
|
| 1716 |
+
"rewards/chosen": 0.07626594603061676,
|
| 1717 |
+
"rewards/margins": 5.846086025238037,
|
| 1718 |
+
"rewards/rejected": -5.769820213317871,
|
| 1719 |
+
"step": 95,
|
| 1720 |
+
"train_speed(iter/s)": 0.010736
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"epoch": 0.5535135135135135,
|
| 1724 |
+
"grad_norm": 1.6140971183776855,
|
| 1725 |
+
"learning_rate": 0.0001902150455168962,
|
| 1726 |
+
"logits/chosen": -0.4496663808822632,
|
| 1727 |
+
"logits/rejected": -0.7431093454360962,
|
| 1728 |
+
"logps/chosen": -2.8349695205688477,
|
| 1729 |
+
"logps/rejected": -72.62895965576172,
|
| 1730 |
+
"loss": 0.3297802209854126,
|
| 1731 |
+
"memory(GiB)": 41.24,
|
| 1732 |
+
"nll_loss": 0.2532678544521332,
|
| 1733 |
+
"rewards/accuracies": 1.0,
|
| 1734 |
+
"rewards/chosen": 0.149441659450531,
|
| 1735 |
+
"rewards/margins": 5.512978553771973,
|
| 1736 |
+
"rewards/rejected": -5.363536357879639,
|
| 1737 |
+
"step": 96,
|
| 1738 |
+
"train_speed(iter/s)": 0.010735
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"epoch": 0.5592792792792792,
|
| 1742 |
+
"grad_norm": 2.243736743927002,
|
| 1743 |
+
"learning_rate": 0.0001899382966589443,
|
| 1744 |
+
"logits/chosen": -0.44952693581581116,
|
| 1745 |
+
"logits/rejected": -0.7028639316558838,
|
| 1746 |
+
"logps/chosen": -5.277416229248047,
|
| 1747 |
+
"logps/rejected": -69.73493957519531,
|
| 1748 |
+
"loss": 0.41486623883247375,
|
| 1749 |
+
"memory(GiB)": 41.24,
|
| 1750 |
+
"nll_loss": 0.25434425473213196,
|
| 1751 |
+
"rewards/accuracies": 0.96875,
|
| 1752 |
+
"rewards/chosen": 0.13436982035636902,
|
| 1753 |
+
"rewards/margins": 4.8991923332214355,
|
| 1754 |
+
"rewards/rejected": -4.764822006225586,
|
| 1755 |
+
"step": 97,
|
| 1756 |
+
"train_speed(iter/s)": 0.010735
|
| 1757 |
+
},
|
| 1758 |
+
{
|
| 1759 |
+
"epoch": 0.565045045045045,
|
| 1760 |
+
"grad_norm": 4.0099101066589355,
|
| 1761 |
+
"learning_rate": 0.0001896578956468805,
|
| 1762 |
+
"logits/chosen": -0.5480562448501587,
|
| 1763 |
+
"logits/rejected": -0.7537853717803955,
|
| 1764 |
+
"logps/chosen": -4.075699806213379,
|
| 1765 |
+
"logps/rejected": -61.6773681640625,
|
| 1766 |
+
"loss": 0.34289711713790894,
|
| 1767 |
+
"memory(GiB)": 41.24,
|
| 1768 |
+
"nll_loss": 0.24206680059432983,
|
| 1769 |
+
"rewards/accuracies": 0.96875,
|
| 1770 |
+
"rewards/chosen": 0.09123305231332779,
|
| 1771 |
+
"rewards/margins": 4.509951114654541,
|
| 1772 |
+
"rewards/rejected": -4.418718338012695,
|
| 1773 |
+
"step": 98,
|
| 1774 |
+
"train_speed(iter/s)": 0.010736
|
| 1775 |
+
},
|
| 1776 |
+
{
|
| 1777 |
+
"epoch": 0.5708108108108109,
|
| 1778 |
+
"grad_norm": 12.38167667388916,
|
| 1779 |
+
"learning_rate": 0.00018937385386704126,
|
| 1780 |
+
"logits/chosen": -0.6038029789924622,
|
| 1781 |
+
"logits/rejected": -0.7428975105285645,
|
| 1782 |
+
"logps/chosen": -6.938250541687012,
|
| 1783 |
+
"logps/rejected": -58.5086555480957,
|
| 1784 |
+
"loss": 0.4984804391860962,
|
| 1785 |
+
"memory(GiB)": 41.24,
|
| 1786 |
+
"nll_loss": 0.37261444330215454,
|
| 1787 |
+
"rewards/accuracies": 0.9375,
|
| 1788 |
+
"rewards/chosen": 0.10895882546901703,
|
| 1789 |
+
"rewards/margins": 4.678299903869629,
|
| 1790 |
+
"rewards/rejected": -4.569341659545898,
|
| 1791 |
+
"step": 99,
|
| 1792 |
+
"train_speed(iter/s)": 0.010736
|
| 1793 |
+
},
|
| 1794 |
+
{
|
| 1795 |
+
"epoch": 0.5765765765765766,
|
| 1796 |
+
"grad_norm": 4.255463123321533,
|
| 1797 |
+
"learning_rate": 0.00018908618285360494,
|
| 1798 |
+
"logits/chosen": -0.5780411958694458,
|
| 1799 |
+
"logits/rejected": -0.7493711709976196,
|
| 1800 |
+
"logps/chosen": -6.087734222412109,
|
| 1801 |
+
"logps/rejected": -68.05068969726562,
|
| 1802 |
+
"loss": 0.5377764701843262,
|
| 1803 |
+
"memory(GiB)": 41.24,
|
| 1804 |
+
"nll_loss": 0.4144035577774048,
|
| 1805 |
+
"rewards/accuracies": 1.0,
|
| 1806 |
+
"rewards/chosen": 0.07401561737060547,
|
| 1807 |
+
"rewards/margins": 5.022759437561035,
|
| 1808 |
+
"rewards/rejected": -4.94874382019043,
|
| 1809 |
+
"step": 100,
|
| 1810 |
+
"train_speed(iter/s)": 0.010737
|
| 1811 |
+
},
|
| 1812 |
+
{
|
| 1813 |
+
"epoch": 0.5823423423423424,
|
| 1814 |
+
"grad_norm": 2.052121162414551,
|
| 1815 |
+
"learning_rate": 0.00018879489428812334,
|
| 1816 |
+
"logits/chosen": -0.5155804753303528,
|
| 1817 |
+
"logits/rejected": -0.7454657554626465,
|
| 1818 |
+
"logps/chosen": -4.093721389770508,
|
| 1819 |
+
"logps/rejected": -73.28987121582031,
|
| 1820 |
+
"loss": 0.4639092683792114,
|
| 1821 |
+
"memory(GiB)": 41.24,
|
| 1822 |
+
"nll_loss": 0.3733065724372864,
|
| 1823 |
+
"rewards/accuracies": 0.9375,
|
| 1824 |
+
"rewards/chosen": 0.16241005063056946,
|
| 1825 |
+
"rewards/margins": 5.644482135772705,
|
| 1826 |
+
"rewards/rejected": -5.482071876525879,
|
| 1827 |
+
"step": 101,
|
| 1828 |
+
"train_speed(iter/s)": 0.010718
|
| 1829 |
+
},
|
| 1830 |
+
{
|
| 1831 |
+
"epoch": 0.5881081081081081,
|
| 1832 |
+
"grad_norm": 2.1512622833251953,
|
| 1833 |
+
"learning_rate": 0.0001884999999990475,
|
| 1834 |
+
"logits/chosen": -0.5633401274681091,
|
| 1835 |
+
"logits/rejected": -0.7381998896598816,
|
| 1836 |
+
"logps/chosen": -6.3428497314453125,
|
| 1837 |
+
"logps/rejected": -52.1317138671875,
|
| 1838 |
+
"loss": 0.4867536425590515,
|
| 1839 |
+
"memory(GiB)": 41.24,
|
| 1840 |
+
"nll_loss": 0.34330999851226807,
|
| 1841 |
+
"rewards/accuracies": 0.9375,
|
| 1842 |
+
"rewards/chosen": 0.33921706676483154,
|
| 1843 |
+
"rewards/margins": 4.20556116104126,
|
| 1844 |
+
"rewards/rejected": -3.8663439750671387,
|
| 1845 |
+
"step": 102,
|
| 1846 |
+
"train_speed(iter/s)": 0.010718
|
| 1847 |
+
},
|
| 1848 |
+
{
|
| 1849 |
+
"epoch": 0.5938738738738739,
|
| 1850 |
+
"grad_norm": 3.3250627517700195,
|
| 1851 |
+
"learning_rate": 0.00018820151196124717,
|
| 1852 |
+
"logits/chosen": -0.5157067179679871,
|
| 1853 |
+
"logits/rejected": -0.8171908855438232,
|
| 1854 |
+
"logps/chosen": -3.4731268882751465,
|
| 1855 |
+
"logps/rejected": -87.99000549316406,
|
| 1856 |
+
"loss": 0.5975285768508911,
|
| 1857 |
+
"memory(GiB)": 41.24,
|
| 1858 |
+
"nll_loss": 0.46800604462623596,
|
| 1859 |
+
"rewards/accuracies": 0.96875,
|
| 1860 |
+
"rewards/chosen": 0.06358014047145844,
|
| 1861 |
+
"rewards/margins": 6.483148097991943,
|
| 1862 |
+
"rewards/rejected": -6.419568061828613,
|
| 1863 |
+
"step": 103,
|
| 1864 |
+
"train_speed(iter/s)": 0.010718
|
| 1865 |
+
},
|
| 1866 |
+
{
|
| 1867 |
+
"epoch": 0.5996396396396396,
|
| 1868 |
+
"grad_norm": 3.476541757583618,
|
| 1869 |
+
"learning_rate": 0.0001878994422955246,
|
| 1870 |
+
"logits/chosen": -0.5131168365478516,
|
| 1871 |
+
"logits/rejected": -0.8059231042861938,
|
| 1872 |
+
"logps/chosen": -3.1174309253692627,
|
| 1873 |
+
"logps/rejected": -86.71981811523438,
|
| 1874 |
+
"loss": 0.3160158693790436,
|
| 1875 |
+
"memory(GiB)": 41.24,
|
| 1876 |
+
"nll_loss": 0.25080835819244385,
|
| 1877 |
+
"rewards/accuracies": 0.96875,
|
| 1878 |
+
"rewards/chosen": 0.28578388690948486,
|
| 1879 |
+
"rewards/margins": 6.907861232757568,
|
| 1880 |
+
"rewards/rejected": -6.622077941894531,
|
| 1881 |
+
"step": 104,
|
| 1882 |
+
"train_speed(iter/s)": 0.010718
|
| 1883 |
+
},
|
| 1884 |
+
{
|
| 1885 |
+
"epoch": 0.6054054054054054,
|
| 1886 |
+
"grad_norm": 5.32436990737915,
|
| 1887 |
+
"learning_rate": 0.00018759380326812257,
|
| 1888 |
+
"logits/chosen": -0.6340402960777283,
|
| 1889 |
+
"logits/rejected": -0.867938756942749,
|
| 1890 |
+
"logps/chosen": -2.323990821838379,
|
| 1891 |
+
"logps/rejected": -71.03258514404297,
|
| 1892 |
+
"loss": 0.31046488881111145,
|
| 1893 |
+
"memory(GiB)": 41.24,
|
| 1894 |
+
"nll_loss": 0.21423426270484924,
|
| 1895 |
+
"rewards/accuracies": 0.96875,
|
| 1896 |
+
"rewards/chosen": -0.011083951219916344,
|
| 1897 |
+
"rewards/margins": 6.008091926574707,
|
| 1898 |
+
"rewards/rejected": -6.0191755294799805,
|
| 1899 |
+
"step": 105,
|
| 1900 |
+
"train_speed(iter/s)": 0.010719
|
| 1901 |
+
},
|
| 1902 |
+
{
|
| 1903 |
+
"epoch": 0.6111711711711711,
|
| 1904 |
+
"grad_norm": 3.4041733741760254,
|
| 1905 |
+
"learning_rate": 0.0001872846072902259,
|
| 1906 |
+
"logits/chosen": -0.589099645614624,
|
| 1907 |
+
"logits/rejected": -0.8120458126068115,
|
| 1908 |
+
"logps/chosen": -1.5791796445846558,
|
| 1909 |
+
"logps/rejected": -82.34098052978516,
|
| 1910 |
+
"loss": 0.2268940657377243,
|
| 1911 |
+
"memory(GiB)": 41.24,
|
| 1912 |
+
"nll_loss": 0.14617523550987244,
|
| 1913 |
+
"rewards/accuracies": 0.9375,
|
| 1914 |
+
"rewards/chosen": 0.2277921438217163,
|
| 1915 |
+
"rewards/margins": 6.835321426391602,
|
| 1916 |
+
"rewards/rejected": -6.607529640197754,
|
| 1917 |
+
"step": 106,
|
| 1918 |
+
"train_speed(iter/s)": 0.010719
|
| 1919 |
+
},
|
| 1920 |
+
{
|
| 1921 |
+
"epoch": 0.616936936936937,
|
| 1922 |
+
"grad_norm": 1.9216675758361816,
|
| 1923 |
+
"learning_rate": 0.00018697186691745782,
|
| 1924 |
+
"logits/chosen": -0.599471926689148,
|
| 1925 |
+
"logits/rejected": -0.8271054029464722,
|
| 1926 |
+
"logps/chosen": -4.24713134765625,
|
| 1927 |
+
"logps/rejected": -84.08229064941406,
|
| 1928 |
+
"loss": 0.3841734826564789,
|
| 1929 |
+
"memory(GiB)": 41.24,
|
| 1930 |
+
"nll_loss": 0.31657740473747253,
|
| 1931 |
+
"rewards/accuracies": 1.0,
|
| 1932 |
+
"rewards/chosen": 0.022511344403028488,
|
| 1933 |
+
"rewards/margins": 6.769836902618408,
|
| 1934 |
+
"rewards/rejected": -6.747325897216797,
|
| 1935 |
+
"step": 107,
|
| 1936 |
+
"train_speed(iter/s)": 0.01072
|
| 1937 |
+
},
|
| 1938 |
+
{
|
| 1939 |
+
"epoch": 0.6227027027027027,
|
| 1940 |
+
"grad_norm": 4.744035720825195,
|
| 1941 |
+
"learning_rate": 0.0001866555948493699,
|
| 1942 |
+
"logits/chosen": -0.5849882960319519,
|
| 1943 |
+
"logits/rejected": -0.8727071285247803,
|
| 1944 |
+
"logps/chosen": -2.891716718673706,
|
| 1945 |
+
"logps/rejected": -92.83207702636719,
|
| 1946 |
+
"loss": 0.31115370988845825,
|
| 1947 |
+
"memory(GiB)": 41.24,
|
| 1948 |
+
"nll_loss": 0.22799423336982727,
|
| 1949 |
+
"rewards/accuracies": 1.0,
|
| 1950 |
+
"rewards/chosen": 0.19745981693267822,
|
| 1951 |
+
"rewards/margins": 7.553801536560059,
|
| 1952 |
+
"rewards/rejected": -7.35634183883667,
|
| 1953 |
+
"step": 108,
|
| 1954 |
+
"train_speed(iter/s)": 0.01072
|
| 1955 |
+
},
|
| 1956 |
+
{
|
| 1957 |
+
"epoch": 0.6284684684684685,
|
| 1958 |
+
"grad_norm": 2.028069019317627,
|
| 1959 |
+
"learning_rate": 0.00018633580392892648,
|
| 1960 |
+
"logits/chosen": -0.5856168270111084,
|
| 1961 |
+
"logits/rejected": -0.8363710641860962,
|
| 1962 |
+
"logps/chosen": -5.515890121459961,
|
| 1963 |
+
"logps/rejected": -83.518310546875,
|
| 1964 |
+
"loss": 0.40675532817840576,
|
| 1965 |
+
"memory(GiB)": 41.24,
|
| 1966 |
+
"nll_loss": 0.33311402797698975,
|
| 1967 |
+
"rewards/accuracies": 0.96875,
|
| 1968 |
+
"rewards/chosen": 0.19537094235420227,
|
| 1969 |
+
"rewards/margins": 6.882720947265625,
|
| 1970 |
+
"rewards/rejected": -6.687350273132324,
|
| 1971 |
+
"step": 109,
|
| 1972 |
+
"train_speed(iter/s)": 0.01072
|
| 1973 |
+
},
|
| 1974 |
+
{
|
| 1975 |
+
"epoch": 0.6342342342342342,
|
| 1976 |
+
"grad_norm": 1.8457213640213013,
|
| 1977 |
+
"learning_rate": 0.00018601250714198302,
|
| 1978 |
+
"logits/chosen": -0.6694027185440063,
|
| 1979 |
+
"logits/rejected": -0.8495978713035583,
|
| 1980 |
+
"logps/chosen": -6.527522087097168,
|
| 1981 |
+
"logps/rejected": -69.24601745605469,
|
| 1982 |
+
"loss": 0.4539996385574341,
|
| 1983 |
+
"memory(GiB)": 41.24,
|
| 1984 |
+
"nll_loss": 0.3218171000480652,
|
| 1985 |
+
"rewards/accuracies": 1.0,
|
| 1986 |
+
"rewards/chosen": 0.16864001750946045,
|
| 1987 |
+
"rewards/margins": 5.4212541580200195,
|
| 1988 |
+
"rewards/rejected": -5.252613544464111,
|
| 1989 |
+
"step": 110,
|
| 1990 |
+
"train_speed(iter/s)": 0.01072
|
| 1991 |
+
},
|
| 1992 |
+
{
|
| 1993 |
+
"epoch": 0.64,
|
| 1994 |
+
"grad_norm": 1.4716756343841553,
|
| 1995 |
+
"learning_rate": 0.00018568571761675893,
|
| 1996 |
+
"logits/chosen": -0.5902320742607117,
|
| 1997 |
+
"logits/rejected": -0.8840252757072449,
|
| 1998 |
+
"logps/chosen": -5.05216121673584,
|
| 1999 |
+
"logps/rejected": -96.3882064819336,
|
| 2000 |
+
"loss": 0.3378267288208008,
|
| 2001 |
+
"memory(GiB)": 41.24,
|
| 2002 |
+
"nll_loss": 0.2499268501996994,
|
| 2003 |
+
"rewards/accuracies": 0.96875,
|
| 2004 |
+
"rewards/chosen": 0.21043285727500916,
|
| 2005 |
+
"rewards/margins": 7.197650909423828,
|
| 2006 |
+
"rewards/rejected": -6.987217903137207,
|
| 2007 |
+
"step": 111,
|
| 2008 |
+
"train_speed(iter/s)": 0.01072
|
| 2009 |
+
},
|
| 2010 |
+
{
|
| 2011 |
+
"epoch": 0.6457657657657657,
|
| 2012 |
+
"grad_norm": 0.7805799245834351,
|
| 2013 |
+
"learning_rate": 0.00018535544862330436,
|
| 2014 |
+
"logits/chosen": -0.6686023473739624,
|
| 2015 |
+
"logits/rejected": -0.986074686050415,
|
| 2016 |
+
"logps/chosen": -2.231717824935913,
|
| 2017 |
+
"logps/rejected": -96.76434326171875,
|
| 2018 |
+
"loss": 0.16498756408691406,
|
| 2019 |
+
"memory(GiB)": 41.24,
|
| 2020 |
+
"nll_loss": 0.14222995936870575,
|
| 2021 |
+
"rewards/accuracies": 1.0,
|
| 2022 |
+
"rewards/chosen": 0.14315873384475708,
|
| 2023 |
+
"rewards/margins": 7.930060386657715,
|
| 2024 |
+
"rewards/rejected": -7.786901473999023,
|
| 2025 |
+
"step": 112,
|
| 2026 |
+
"train_speed(iter/s)": 0.01072
|
| 2027 |
+
},
|
| 2028 |
+
{
|
| 2029 |
+
"epoch": 0.6515315315315315,
|
| 2030 |
+
"grad_norm": 2.115647792816162,
|
| 2031 |
+
"learning_rate": 0.00018502171357296144,
|
| 2032 |
+
"logits/chosen": -0.7186330556869507,
|
| 2033 |
+
"logits/rejected": -0.9198458194732666,
|
| 2034 |
+
"logps/chosen": -6.138432502746582,
|
| 2035 |
+
"logps/rejected": -76.40232849121094,
|
| 2036 |
+
"loss": 0.42215695977211,
|
| 2037 |
+
"memory(GiB)": 41.24,
|
| 2038 |
+
"nll_loss": 0.34653419256210327,
|
| 2039 |
+
"rewards/accuracies": 1.0,
|
| 2040 |
+
"rewards/chosen": 0.3074129521846771,
|
| 2041 |
+
"rewards/margins": 6.320471286773682,
|
| 2042 |
+
"rewards/rejected": -6.013057708740234,
|
| 2043 |
+
"step": 113,
|
| 2044 |
+
"train_speed(iter/s)": 0.010721
|
| 2045 |
+
},
|
| 2046 |
+
{
|
| 2047 |
+
"epoch": 0.6572972972972972,
|
| 2048 |
+
"grad_norm": 8.20527458190918,
|
| 2049 |
+
"learning_rate": 0.00018468452601781948,
|
| 2050 |
+
"logits/chosen": -0.6733801364898682,
|
| 2051 |
+
"logits/rejected": -0.9577184319496155,
|
| 2052 |
+
"logps/chosen": -5.523393154144287,
|
| 2053 |
+
"logps/rejected": -94.21669006347656,
|
| 2054 |
+
"loss": 0.4980089068412781,
|
| 2055 |
+
"memory(GiB)": 41.24,
|
| 2056 |
+
"nll_loss": 0.37918829917907715,
|
| 2057 |
+
"rewards/accuracies": 0.90625,
|
| 2058 |
+
"rewards/chosen": 0.07570207118988037,
|
| 2059 |
+
"rewards/margins": 7.661881446838379,
|
| 2060 |
+
"rewards/rejected": -7.586179256439209,
|
| 2061 |
+
"step": 114,
|
| 2062 |
+
"train_speed(iter/s)": 0.010721
|
| 2063 |
+
},
|
| 2064 |
+
{
|
| 2065 |
+
"epoch": 0.6630630630630631,
|
| 2066 |
+
"grad_norm": 1.4824076890945435,
|
| 2067 |
+
"learning_rate": 0.00018434389965016495,
|
| 2068 |
+
"logits/chosen": -0.6685976386070251,
|
| 2069 |
+
"logits/rejected": -0.9235626459121704,
|
| 2070 |
+
"logps/chosen": -4.8032307624816895,
|
| 2071 |
+
"logps/rejected": -89.84734344482422,
|
| 2072 |
+
"loss": 0.3988059163093567,
|
| 2073 |
+
"memory(GiB)": 41.24,
|
| 2074 |
+
"nll_loss": 0.3272039592266083,
|
| 2075 |
+
"rewards/accuracies": 1.0,
|
| 2076 |
+
"rewards/chosen": 0.1318884938955307,
|
| 2077 |
+
"rewards/margins": 7.2766876220703125,
|
| 2078 |
+
"rewards/rejected": -7.14479923248291,
|
| 2079 |
+
"step": 115,
|
| 2080 |
+
"train_speed(iter/s)": 0.010721
|
| 2081 |
+
},
|
| 2082 |
+
{
|
| 2083 |
+
"epoch": 0.6688288288288289,
|
| 2084 |
+
"grad_norm": 6.457195281982422,
|
| 2085 |
+
"learning_rate": 0.00018399984830192522,
|
| 2086 |
+
"logits/chosen": -0.6563739776611328,
|
| 2087 |
+
"logits/rejected": -0.9446012377738953,
|
| 2088 |
+
"logps/chosen": -5.333343505859375,
|
| 2089 |
+
"logps/rejected": -96.29754638671875,
|
| 2090 |
+
"loss": 0.6648478507995605,
|
| 2091 |
+
"memory(GiB)": 41.24,
|
| 2092 |
+
"nll_loss": 0.5736638307571411,
|
| 2093 |
+
"rewards/accuracies": 0.96875,
|
| 2094 |
+
"rewards/chosen": 0.1766398400068283,
|
| 2095 |
+
"rewards/margins": 7.466494560241699,
|
| 2096 |
+
"rewards/rejected": -7.289853572845459,
|
| 2097 |
+
"step": 116,
|
| 2098 |
+
"train_speed(iter/s)": 0.010721
|
| 2099 |
+
},
|
| 2100 |
+
{
|
| 2101 |
+
"epoch": 0.6745945945945946,
|
| 2102 |
+
"grad_norm": 0.6062999367713928,
|
| 2103 |
+
"learning_rate": 0.00018365238594410696,
|
| 2104 |
+
"logits/chosen": -0.6826354265213013,
|
| 2105 |
+
"logits/rejected": -0.9526041150093079,
|
| 2106 |
+
"logps/chosen": -2.1560752391815186,
|
| 2107 |
+
"logps/rejected": -97.08880615234375,
|
| 2108 |
+
"loss": 0.15202483534812927,
|
| 2109 |
+
"memory(GiB)": 41.24,
|
| 2110 |
+
"nll_loss": 0.1097334772348404,
|
| 2111 |
+
"rewards/accuracies": 1.0,
|
| 2112 |
+
"rewards/chosen": 0.08674149215221405,
|
| 2113 |
+
"rewards/margins": 8.09538745880127,
|
| 2114 |
+
"rewards/rejected": -8.008646011352539,
|
| 2115 |
+
"step": 117,
|
| 2116 |
+
"train_speed(iter/s)": 0.010721
|
| 2117 |
+
},
|
| 2118 |
+
{
|
| 2119 |
+
"epoch": 0.6803603603603604,
|
| 2120 |
+
"grad_norm": 4.866965293884277,
|
| 2121 |
+
"learning_rate": 0.00018330152668622892,
|
| 2122 |
+
"logits/chosen": -0.6270961761474609,
|
| 2123 |
+
"logits/rejected": -0.8659616708755493,
|
| 2124 |
+
"logps/chosen": -6.8050456047058105,
|
| 2125 |
+
"logps/rejected": -94.24461364746094,
|
| 2126 |
+
"loss": 0.5779068470001221,
|
| 2127 |
+
"memory(GiB)": 41.24,
|
| 2128 |
+
"nll_loss": 0.4634403884410858,
|
| 2129 |
+
"rewards/accuracies": 0.9375,
|
| 2130 |
+
"rewards/chosen": 0.08972588181495667,
|
| 2131 |
+
"rewards/margins": 7.540095806121826,
|
| 2132 |
+
"rewards/rejected": -7.450369834899902,
|
| 2133 |
+
"step": 118,
|
| 2134 |
+
"train_speed(iter/s)": 0.010721
|
| 2135 |
+
},
|
| 2136 |
+
{
|
| 2137 |
+
"epoch": 0.6861261261261261,
|
| 2138 |
+
"grad_norm": 1.9984689950942993,
|
| 2139 |
+
"learning_rate": 0.00018294728477574886,
|
| 2140 |
+
"logits/chosen": -0.6620824933052063,
|
| 2141 |
+
"logits/rejected": -0.9279792308807373,
|
| 2142 |
+
"logps/chosen": -3.62056303024292,
|
| 2143 |
+
"logps/rejected": -88.79190826416016,
|
| 2144 |
+
"loss": 0.5508708357810974,
|
| 2145 |
+
"memory(GiB)": 41.24,
|
| 2146 |
+
"nll_loss": 0.44049572944641113,
|
| 2147 |
+
"rewards/accuracies": 0.9375,
|
| 2148 |
+
"rewards/chosen": 0.04914311319589615,
|
| 2149 |
+
"rewards/margins": 7.090651512145996,
|
| 2150 |
+
"rewards/rejected": -7.041508197784424,
|
| 2151 |
+
"step": 119,
|
| 2152 |
+
"train_speed(iter/s)": 0.010721
|
| 2153 |
+
},
|
| 2154 |
+
{
|
| 2155 |
+
"epoch": 0.6918918918918919,
|
| 2156 |
+
"grad_norm": 2.634037971496582,
|
| 2157 |
+
"learning_rate": 0.000182589674597485,
|
| 2158 |
+
"logits/chosen": -0.6129943132400513,
|
| 2159 |
+
"logits/rejected": -0.891259491443634,
|
| 2160 |
+
"logps/chosen": -4.1637163162231445,
|
| 2161 |
+
"logps/rejected": -89.52510833740234,
|
| 2162 |
+
"loss": 0.5133303999900818,
|
| 2163 |
+
"memory(GiB)": 41.24,
|
| 2164 |
+
"nll_loss": 0.35086461901664734,
|
| 2165 |
+
"rewards/accuracies": 0.90625,
|
| 2166 |
+
"rewards/chosen": 0.015482299029827118,
|
| 2167 |
+
"rewards/margins": 7.1094279289245605,
|
| 2168 |
+
"rewards/rejected": -7.0939459800720215,
|
| 2169 |
+
"step": 120,
|
| 2170 |
+
"train_speed(iter/s)": 0.010722
|
| 2171 |
+
},
|
| 2172 |
+
{
|
| 2173 |
+
"epoch": 0.6976576576576576,
|
| 2174 |
+
"grad_norm": 2.7602248191833496,
|
| 2175 |
+
"learning_rate": 0.00018222871067303192,
|
| 2176 |
+
"logits/chosen": -0.644217848777771,
|
| 2177 |
+
"logits/rejected": -0.8804385662078857,
|
| 2178 |
+
"logps/chosen": -4.665724277496338,
|
| 2179 |
+
"logps/rejected": -75.18159484863281,
|
| 2180 |
+
"loss": 0.4733228385448456,
|
| 2181 |
+
"memory(GiB)": 41.24,
|
| 2182 |
+
"nll_loss": 0.3284577429294586,
|
| 2183 |
+
"rewards/accuracies": 0.9375,
|
| 2184 |
+
"rewards/chosen": 0.11940830945968628,
|
| 2185 |
+
"rewards/margins": 6.475360870361328,
|
| 2186 |
+
"rewards/rejected": -6.355952262878418,
|
| 2187 |
+
"step": 121,
|
| 2188 |
+
"train_speed(iter/s)": 0.010722
|
| 2189 |
+
},
|
| 2190 |
+
{
|
| 2191 |
+
"epoch": 0.7034234234234235,
|
| 2192 |
+
"grad_norm": 8.460821151733398,
|
| 2193 |
+
"learning_rate": 0.0001818644076601709,
|
| 2194 |
+
"logits/chosen": -0.6995394825935364,
|
| 2195 |
+
"logits/rejected": -0.9071613550186157,
|
| 2196 |
+
"logps/chosen": -8.95744800567627,
|
| 2197 |
+
"logps/rejected": -77.84011840820312,
|
| 2198 |
+
"loss": 0.6963841915130615,
|
| 2199 |
+
"memory(GiB)": 41.24,
|
| 2200 |
+
"nll_loss": 0.5519821047782898,
|
| 2201 |
+
"rewards/accuracies": 0.90625,
|
| 2202 |
+
"rewards/chosen": 0.2606813609600067,
|
| 2203 |
+
"rewards/margins": 6.603857040405273,
|
| 2204 |
+
"rewards/rejected": -6.343176364898682,
|
| 2205 |
+
"step": 122,
|
| 2206 |
+
"train_speed(iter/s)": 0.010722
|
| 2207 |
+
},
|
| 2208 |
+
{
|
| 2209 |
+
"epoch": 0.7091891891891892,
|
| 2210 |
+
"grad_norm": 3.587855100631714,
|
| 2211 |
+
"learning_rate": 0.00018149678035227473,
|
| 2212 |
+
"logits/chosen": -0.6442317962646484,
|
| 2213 |
+
"logits/rejected": -0.8487176895141602,
|
| 2214 |
+
"logps/chosen": -6.872650623321533,
|
| 2215 |
+
"logps/rejected": -82.89649963378906,
|
| 2216 |
+
"loss": 0.4728536605834961,
|
| 2217 |
+
"memory(GiB)": 41.24,
|
| 2218 |
+
"nll_loss": 0.3608010411262512,
|
| 2219 |
+
"rewards/accuracies": 0.9375,
|
| 2220 |
+
"rewards/chosen": 0.009775836020708084,
|
| 2221 |
+
"rewards/margins": 6.596733093261719,
|
| 2222 |
+
"rewards/rejected": -6.586956977844238,
|
| 2223 |
+
"step": 123,
|
| 2224 |
+
"train_speed(iter/s)": 0.010723
|
| 2225 |
+
},
|
| 2226 |
+
{
|
| 2227 |
+
"epoch": 0.714954954954955,
|
| 2228 |
+
"grad_norm": 1.7244524955749512,
|
| 2229 |
+
"learning_rate": 0.00018112584367770685,
|
| 2230 |
+
"logits/chosen": -0.6685165762901306,
|
| 2231 |
+
"logits/rejected": -0.8828461766242981,
|
| 2232 |
+
"logps/chosen": -5.397648334503174,
|
| 2233 |
+
"logps/rejected": -85.60098266601562,
|
| 2234 |
+
"loss": 0.389848530292511,
|
| 2235 |
+
"memory(GiB)": 41.24,
|
| 2236 |
+
"nll_loss": 0.32140427827835083,
|
| 2237 |
+
"rewards/accuracies": 1.0,
|
| 2238 |
+
"rewards/chosen": 0.12320394814014435,
|
| 2239 |
+
"rewards/margins": 7.233897686004639,
|
| 2240 |
+
"rewards/rejected": -7.11069393157959,
|
| 2241 |
+
"step": 124,
|
| 2242 |
+
"train_speed(iter/s)": 0.010723
|
| 2243 |
+
},
|
| 2244 |
+
{
|
| 2245 |
+
"epoch": 0.7207207207207207,
|
| 2246 |
+
"grad_norm": 0.7455915808677673,
|
| 2247 |
+
"learning_rate": 0.00018075161269921527,
|
| 2248 |
+
"logits/chosen": -0.5614687204360962,
|
| 2249 |
+
"logits/rejected": -0.8907942771911621,
|
| 2250 |
+
"logps/chosen": -1.7438545227050781,
|
| 2251 |
+
"logps/rejected": -92.23735809326172,
|
| 2252 |
+
"loss": 0.12226351350545883,
|
| 2253 |
+
"memory(GiB)": 41.24,
|
| 2254 |
+
"nll_loss": 0.10527773201465607,
|
| 2255 |
+
"rewards/accuracies": 1.0,
|
| 2256 |
+
"rewards/chosen": 0.15749390423297882,
|
| 2257 |
+
"rewards/margins": 7.594954967498779,
|
| 2258 |
+
"rewards/rejected": -7.437460422515869,
|
| 2259 |
+
"step": 125,
|
| 2260 |
+
"train_speed(iter/s)": 0.010723
|
| 2261 |
+
},
|
| 2262 |
+
{
|
| 2263 |
+
"epoch": 0.7264864864864865,
|
| 2264 |
+
"grad_norm": 1.0758198499679565,
|
| 2265 |
+
"learning_rate": 0.000180374102613321,
|
| 2266 |
+
"logits/chosen": -0.6551331877708435,
|
| 2267 |
+
"logits/rejected": -0.8264045119285583,
|
| 2268 |
+
"logps/chosen": -4.308568000793457,
|
| 2269 |
+
"logps/rejected": -80.06883239746094,
|
| 2270 |
+
"loss": 0.36240947246551514,
|
| 2271 |
+
"memory(GiB)": 41.24,
|
| 2272 |
+
"nll_loss": 0.24730846285820007,
|
| 2273 |
+
"rewards/accuracies": 1.0,
|
| 2274 |
+
"rewards/chosen": 0.10061657428741455,
|
| 2275 |
+
"rewards/margins": 6.429587364196777,
|
| 2276 |
+
"rewards/rejected": -6.328970909118652,
|
| 2277 |
+
"step": 126,
|
| 2278 |
+
"train_speed(iter/s)": 0.010723
|
| 2279 |
+
},
|
| 2280 |
+
{
|
| 2281 |
+
"epoch": 0.7322522522522522,
|
| 2282 |
+
"grad_norm": 1.0857983827590942,
|
| 2283 |
+
"learning_rate": 0.0001799933287497007,
|
| 2284 |
+
"logits/chosen": -0.6380553841590881,
|
| 2285 |
+
"logits/rejected": -0.8699716925621033,
|
| 2286 |
+
"logps/chosen": -1.9937247037887573,
|
| 2287 |
+
"logps/rejected": -87.90292358398438,
|
| 2288 |
+
"loss": 0.18343912065029144,
|
| 2289 |
+
"memory(GiB)": 41.24,
|
| 2290 |
+
"nll_loss": 0.12965701520442963,
|
| 2291 |
+
"rewards/accuracies": 1.0,
|
| 2292 |
+
"rewards/chosen": 0.09683795273303986,
|
| 2293 |
+
"rewards/margins": 7.11926794052124,
|
| 2294 |
+
"rewards/rejected": -7.022429943084717,
|
| 2295 |
+
"step": 127,
|
| 2296 |
+
"train_speed(iter/s)": 0.010724
|
| 2297 |
+
},
|
| 2298 |
+
{
|
| 2299 |
+
"epoch": 0.738018018018018,
|
| 2300 |
+
"grad_norm": 9.539369583129883,
|
| 2301 |
+
"learning_rate": 0.00017960930657056438,
|
| 2302 |
+
"logits/chosen": -0.6350418925285339,
|
| 2303 |
+
"logits/rejected": -0.8755402565002441,
|
| 2304 |
+
"logps/chosen": -2.645111560821533,
|
| 2305 |
+
"logps/rejected": -82.07209777832031,
|
| 2306 |
+
"loss": 0.23406416177749634,
|
| 2307 |
+
"memory(GiB)": 41.24,
|
| 2308 |
+
"nll_loss": 0.17941246926784515,
|
| 2309 |
+
"rewards/accuracies": 1.0,
|
| 2310 |
+
"rewards/chosen": 0.07386763393878937,
|
| 2311 |
+
"rewards/margins": 6.727149486541748,
|
| 2312 |
+
"rewards/rejected": -6.653281211853027,
|
| 2313 |
+
"step": 128,
|
| 2314 |
+
"train_speed(iter/s)": 0.010724
|
| 2315 |
+
},
|
| 2316 |
+
{
|
| 2317 |
+
"epoch": 0.7437837837837837,
|
| 2318 |
+
"grad_norm": 10.807381629943848,
|
| 2319 |
+
"learning_rate": 0.00017922205167002754,
|
| 2320 |
+
"logits/chosen": -0.6329447031021118,
|
| 2321 |
+
"logits/rejected": -0.8397620320320129,
|
| 2322 |
+
"logps/chosen": -4.6306023597717285,
|
| 2323 |
+
"logps/rejected": -67.41867065429688,
|
| 2324 |
+
"loss": 0.5849911570549011,
|
| 2325 |
+
"memory(GiB)": 41.24,
|
| 2326 |
+
"nll_loss": 0.41021403670310974,
|
| 2327 |
+
"rewards/accuracies": 0.9375,
|
| 2328 |
+
"rewards/chosen": 0.06239153444766998,
|
| 2329 |
+
"rewards/margins": 5.311315059661865,
|
| 2330 |
+
"rewards/rejected": -5.248923301696777,
|
| 2331 |
+
"step": 129,
|
| 2332 |
+
"train_speed(iter/s)": 0.010724
|
| 2333 |
+
},
|
| 2334 |
+
{
|
| 2335 |
+
"epoch": 0.7495495495495496,
|
| 2336 |
+
"grad_norm": 1.8455349206924438,
|
| 2337 |
+
"learning_rate": 0.00017883157977347774,
|
| 2338 |
+
"logits/chosen": -0.5277632474899292,
|
| 2339 |
+
"logits/rejected": -0.785979151725769,
|
| 2340 |
+
"logps/chosen": -4.069696426391602,
|
| 2341 |
+
"logps/rejected": -82.98876953125,
|
| 2342 |
+
"loss": 0.3647957146167755,
|
| 2343 |
+
"memory(GiB)": 41.24,
|
| 2344 |
+
"nll_loss": 0.24460868537425995,
|
| 2345 |
+
"rewards/accuracies": 0.90625,
|
| 2346 |
+
"rewards/chosen": 0.12994280457496643,
|
| 2347 |
+
"rewards/margins": 6.137853622436523,
|
| 2348 |
+
"rewards/rejected": -6.00791072845459,
|
| 2349 |
+
"step": 130,
|
| 2350 |
+
"train_speed(iter/s)": 0.010724
|
| 2351 |
+
},
|
| 2352 |
+
{
|
| 2353 |
+
"epoch": 0.7553153153153153,
|
| 2354 |
+
"grad_norm": 1.5157482624053955,
|
| 2355 |
+
"learning_rate": 0.00017843790673693625,
|
| 2356 |
+
"logits/chosen": -0.533730685710907,
|
| 2357 |
+
"logits/rejected": -0.8200556635856628,
|
| 2358 |
+
"logps/chosen": -4.038061141967773,
|
| 2359 |
+
"logps/rejected": -82.76172637939453,
|
| 2360 |
+
"loss": 0.2888023555278778,
|
| 2361 |
+
"memory(GiB)": 41.24,
|
| 2362 |
+
"nll_loss": 0.2086402326822281,
|
| 2363 |
+
"rewards/accuracies": 1.0,
|
| 2364 |
+
"rewards/chosen": 0.2728549540042877,
|
| 2365 |
+
"rewards/margins": 6.415480613708496,
|
| 2366 |
+
"rewards/rejected": -6.142626762390137,
|
| 2367 |
+
"step": 131,
|
| 2368 |
+
"train_speed(iter/s)": 0.010724
|
| 2369 |
+
},
|
| 2370 |
+
{
|
| 2371 |
+
"epoch": 0.7610810810810811,
|
| 2372 |
+
"grad_norm": 1.936601996421814,
|
| 2373 |
+
"learning_rate": 0.00017804104854641408,
|
| 2374 |
+
"logits/chosen": -0.6249516606330872,
|
| 2375 |
+
"logits/rejected": -0.8721716403961182,
|
| 2376 |
+
"logps/chosen": -3.304114818572998,
|
| 2377 |
+
"logps/rejected": -60.27552795410156,
|
| 2378 |
+
"loss": 0.415643572807312,
|
| 2379 |
+
"memory(GiB)": 41.24,
|
| 2380 |
+
"nll_loss": 0.28065580129623413,
|
| 2381 |
+
"rewards/accuracies": 0.96875,
|
| 2382 |
+
"rewards/chosen": 0.2913169264793396,
|
| 2383 |
+
"rewards/margins": 4.785688400268555,
|
| 2384 |
+
"rewards/rejected": -4.49437141418457,
|
| 2385 |
+
"step": 132,
|
| 2386 |
+
"train_speed(iter/s)": 0.010724
|
| 2387 |
+
},
|
| 2388 |
+
{
|
| 2389 |
+
"epoch": 0.7668468468468469,
|
| 2390 |
+
"grad_norm": 3.6359870433807373,
|
| 2391 |
+
"learning_rate": 0.0001776410213172628,
|
| 2392 |
+
"logits/chosen": -0.5627670288085938,
|
| 2393 |
+
"logits/rejected": -0.8085115551948547,
|
| 2394 |
+
"logps/chosen": -1.7719781398773193,
|
| 2395 |
+
"logps/rejected": -72.61830139160156,
|
| 2396 |
+
"loss": 0.2871711552143097,
|
| 2397 |
+
"memory(GiB)": 41.24,
|
| 2398 |
+
"nll_loss": 0.1900225728750229,
|
| 2399 |
+
"rewards/accuracies": 0.9375,
|
| 2400 |
+
"rewards/chosen": 0.089139424264431,
|
| 2401 |
+
"rewards/margins": 5.8200178146362305,
|
| 2402 |
+
"rewards/rejected": -5.730878829956055,
|
| 2403 |
+
"step": 133,
|
| 2404 |
+
"train_speed(iter/s)": 0.010725
|
| 2405 |
+
},
|
| 2406 |
+
{
|
| 2407 |
+
"epoch": 0.7726126126126126,
|
| 2408 |
+
"grad_norm": 1.4323631525039673,
|
| 2409 |
+
"learning_rate": 0.00017723784129352018,
|
| 2410 |
+
"logits/chosen": -0.6231422424316406,
|
| 2411 |
+
"logits/rejected": -0.8504309058189392,
|
| 2412 |
+
"logps/chosen": -1.730849027633667,
|
| 2413 |
+
"logps/rejected": -68.78044128417969,
|
| 2414 |
+
"loss": 0.2242366373538971,
|
| 2415 |
+
"memory(GiB)": 41.24,
|
| 2416 |
+
"nll_loss": 0.13950544595718384,
|
| 2417 |
+
"rewards/accuracies": 0.96875,
|
| 2418 |
+
"rewards/chosen": 0.18260075151920319,
|
| 2419 |
+
"rewards/margins": 5.708943843841553,
|
| 2420 |
+
"rewards/rejected": -5.526342391967773,
|
| 2421 |
+
"step": 134,
|
| 2422 |
+
"train_speed(iter/s)": 0.010725
|
| 2423 |
+
},
|
| 2424 |
+
{
|
| 2425 |
+
"epoch": 0.7783783783783784,
|
| 2426 |
+
"grad_norm": 1.6163887977600098,
|
| 2427 |
+
"learning_rate": 0.00017683152484725066,
|
| 2428 |
+
"logits/chosen": -0.6224597692489624,
|
| 2429 |
+
"logits/rejected": -0.7799749374389648,
|
| 2430 |
+
"logps/chosen": -4.717617988586426,
|
| 2431 |
+
"logps/rejected": -61.31199264526367,
|
| 2432 |
+
"loss": 0.4397742450237274,
|
| 2433 |
+
"memory(GiB)": 41.24,
|
| 2434 |
+
"nll_loss": 0.3140389323234558,
|
| 2435 |
+
"rewards/accuracies": 0.96875,
|
| 2436 |
+
"rewards/chosen": 0.25990185141563416,
|
| 2437 |
+
"rewards/margins": 4.902276039123535,
|
| 2438 |
+
"rewards/rejected": -4.642374515533447,
|
| 2439 |
+
"step": 135,
|
| 2440 |
+
"train_speed(iter/s)": 0.010726
|
| 2441 |
+
},
|
| 2442 |
+
{
|
| 2443 |
+
"epoch": 0.7841441441441441,
|
| 2444 |
+
"grad_norm": 1.2988686561584473,
|
| 2445 |
+
"learning_rate": 0.00017642208847788032,
|
| 2446 |
+
"logits/chosen": -0.4455900192260742,
|
| 2447 |
+
"logits/rejected": -0.8272579312324524,
|
| 2448 |
+
"logps/chosen": -3.7604730129241943,
|
| 2449 |
+
"logps/rejected": -91.75283813476562,
|
| 2450 |
+
"loss": 0.3069111108779907,
|
| 2451 |
+
"memory(GiB)": 41.24,
|
| 2452 |
+
"nll_loss": 0.257954478263855,
|
| 2453 |
+
"rewards/accuracies": 0.96875,
|
| 2454 |
+
"rewards/chosen": 0.17708764970302582,
|
| 2455 |
+
"rewards/margins": 7.115184783935547,
|
| 2456 |
+
"rewards/rejected": -6.93809700012207,
|
| 2457 |
+
"step": 136,
|
| 2458 |
+
"train_speed(iter/s)": 0.010725
|
| 2459 |
+
},
|
| 2460 |
+
{
|
| 2461 |
+
"epoch": 0.78990990990991,
|
| 2462 |
+
"grad_norm": 3.960479974746704,
|
| 2463 |
+
"learning_rate": 0.00017600954881152693,
|
| 2464 |
+
"logits/chosen": -0.480897456407547,
|
| 2465 |
+
"logits/rejected": -0.806812584400177,
|
| 2466 |
+
"logps/chosen": -2.339344024658203,
|
| 2467 |
+
"logps/rejected": -88.25721740722656,
|
| 2468 |
+
"loss": 0.25455033779144287,
|
| 2469 |
+
"memory(GiB)": 41.24,
|
| 2470 |
+
"nll_loss": 0.1620534360408783,
|
| 2471 |
+
"rewards/accuracies": 0.96875,
|
| 2472 |
+
"rewards/chosen": 0.10610076785087585,
|
| 2473 |
+
"rewards/margins": 6.920160293579102,
|
| 2474 |
+
"rewards/rejected": -6.814059734344482,
|
| 2475 |
+
"step": 137,
|
| 2476 |
+
"train_speed(iter/s)": 0.010725
|
| 2477 |
+
},
|
| 2478 |
+
{
|
| 2479 |
+
"epoch": 0.7956756756756757,
|
| 2480 |
+
"grad_norm": 9.401166915893555,
|
| 2481 |
+
"learning_rate": 0.00017559392260032506,
|
| 2482 |
+
"logits/chosen": -0.4589274525642395,
|
| 2483 |
+
"logits/rejected": -0.7634912729263306,
|
| 2484 |
+
"logps/chosen": -5.8359503746032715,
|
| 2485 |
+
"logps/rejected": -96.87335205078125,
|
| 2486 |
+
"loss": 0.5270398855209351,
|
| 2487 |
+
"memory(GiB)": 41.24,
|
| 2488 |
+
"nll_loss": 0.43480122089385986,
|
| 2489 |
+
"rewards/accuracies": 0.96875,
|
| 2490 |
+
"rewards/chosen": -0.14989905059337616,
|
| 2491 |
+
"rewards/margins": 7.5454607009887695,
|
| 2492 |
+
"rewards/rejected": -7.69536018371582,
|
| 2493 |
+
"step": 138,
|
| 2494 |
+
"train_speed(iter/s)": 0.010725
|
| 2495 |
+
},
|
| 2496 |
+
{
|
| 2497 |
+
"epoch": 0.8014414414414415,
|
| 2498 |
+
"grad_norm": 4.686446666717529,
|
| 2499 |
+
"learning_rate": 0.00017517522672174548,
|
| 2500 |
+
"logits/chosen": -0.5010412931442261,
|
| 2501 |
+
"logits/rejected": -0.8063571453094482,
|
| 2502 |
+
"logps/chosen": -2.5103189945220947,
|
| 2503 |
+
"logps/rejected": -96.94129943847656,
|
| 2504 |
+
"loss": 0.3778824508190155,
|
| 2505 |
+
"memory(GiB)": 41.24,
|
| 2506 |
+
"nll_loss": 0.252981573343277,
|
| 2507 |
+
"rewards/accuracies": 0.9375,
|
| 2508 |
+
"rewards/chosen": 0.10596343874931335,
|
| 2509 |
+
"rewards/margins": 7.605740070343018,
|
| 2510 |
+
"rewards/rejected": -7.499776840209961,
|
| 2511 |
+
"step": 139,
|
| 2512 |
+
"train_speed(iter/s)": 0.010724
|
| 2513 |
+
},
|
| 2514 |
+
{
|
| 2515 |
+
"epoch": 0.8072072072072072,
|
| 2516 |
+
"grad_norm": 1.6708407402038574,
|
| 2517 |
+
"learning_rate": 0.00017475347817790996,
|
| 2518 |
+
"logits/chosen": -0.4751094877719879,
|
| 2519 |
+
"logits/rejected": -0.8238545060157776,
|
| 2520 |
+
"logps/chosen": -3.2878451347351074,
|
| 2521 |
+
"logps/rejected": -86.26036071777344,
|
| 2522 |
+
"loss": 0.24279947578907013,
|
| 2523 |
+
"memory(GiB)": 41.24,
|
| 2524 |
+
"nll_loss": 0.16919009387493134,
|
| 2525 |
+
"rewards/accuracies": 0.96875,
|
| 2526 |
+
"rewards/chosen": 0.07166648656129837,
|
| 2527 |
+
"rewards/margins": 6.587783336639404,
|
| 2528 |
+
"rewards/rejected": -6.516116142272949,
|
| 2529 |
+
"step": 140,
|
| 2530 |
+
"train_speed(iter/s)": 0.010724
|
| 2531 |
+
},
|
| 2532 |
+
{
|
| 2533 |
+
"epoch": 0.812972972972973,
|
| 2534 |
+
"grad_norm": 1.4335037469863892,
|
| 2535 |
+
"learning_rate": 0.00017432869409490093,
|
| 2536 |
+
"logits/chosen": -0.5489400625228882,
|
| 2537 |
+
"logits/rejected": -0.7731753587722778,
|
| 2538 |
+
"logps/chosen": -5.348051071166992,
|
| 2539 |
+
"logps/rejected": -70.64154815673828,
|
| 2540 |
+
"loss": 0.36098673939704895,
|
| 2541 |
+
"memory(GiB)": 41.24,
|
| 2542 |
+
"nll_loss": 0.2713705897331238,
|
| 2543 |
+
"rewards/accuracies": 1.0,
|
| 2544 |
+
"rewards/chosen": 0.23904970288276672,
|
| 2545 |
+
"rewards/margins": 5.921088695526123,
|
| 2546 |
+
"rewards/rejected": -5.682039737701416,
|
| 2547 |
+
"step": 141,
|
| 2548 |
+
"train_speed(iter/s)": 0.010725
|
| 2549 |
+
},
|
| 2550 |
+
{
|
| 2551 |
+
"epoch": 0.8187387387387387,
|
| 2552 |
+
"grad_norm": 2.012854814529419,
|
| 2553 |
+
"learning_rate": 0.00017390089172206592,
|
| 2554 |
+
"logits/chosen": -0.467896968126297,
|
| 2555 |
+
"logits/rejected": -0.793892502784729,
|
| 2556 |
+
"logps/chosen": -1.7580054998397827,
|
| 2557 |
+
"logps/rejected": -85.476318359375,
|
| 2558 |
+
"loss": 0.23942089080810547,
|
| 2559 |
+
"memory(GiB)": 41.24,
|
| 2560 |
+
"nll_loss": 0.17797623574733734,
|
| 2561 |
+
"rewards/accuracies": 0.96875,
|
| 2562 |
+
"rewards/chosen": 0.09021879732608795,
|
| 2563 |
+
"rewards/margins": 6.8085222244262695,
|
| 2564 |
+
"rewards/rejected": -6.718303680419922,
|
| 2565 |
+
"step": 142,
|
| 2566 |
+
"train_speed(iter/s)": 0.010725
|
| 2567 |
+
},
|
| 2568 |
+
{
|
| 2569 |
+
"epoch": 0.8245045045045045,
|
| 2570 |
+
"grad_norm": 5.257446765899658,
|
| 2571 |
+
"learning_rate": 0.00017347008843131712,
|
| 2572 |
+
"logits/chosen": -0.4858510196208954,
|
| 2573 |
+
"logits/rejected": -0.7565414309501648,
|
| 2574 |
+
"logps/chosen": -3.7341561317443848,
|
| 2575 |
+
"logps/rejected": -75.44990539550781,
|
| 2576 |
+
"loss": 0.43588101863861084,
|
| 2577 |
+
"memory(GiB)": 41.24,
|
| 2578 |
+
"nll_loss": 0.3324872553348541,
|
| 2579 |
+
"rewards/accuracies": 0.9375,
|
| 2580 |
+
"rewards/chosen": 0.1589755266904831,
|
| 2581 |
+
"rewards/margins": 5.903942584991455,
|
| 2582 |
+
"rewards/rejected": -5.744967460632324,
|
| 2583 |
+
"step": 143,
|
| 2584 |
+
"train_speed(iter/s)": 0.010725
|
| 2585 |
+
},
|
| 2586 |
+
{
|
| 2587 |
+
"epoch": 0.8302702702702702,
|
| 2588 |
+
"grad_norm": 1.9966129064559937,
|
| 2589 |
+
"learning_rate": 0.00017303630171642607,
|
| 2590 |
+
"logits/chosen": -0.4013749659061432,
|
| 2591 |
+
"logits/rejected": -0.7098768353462219,
|
| 2592 |
+
"logps/chosen": -2.0640015602111816,
|
| 2593 |
+
"logps/rejected": -80.94207763671875,
|
| 2594 |
+
"loss": 0.2669733166694641,
|
| 2595 |
+
"memory(GiB)": 41.24,
|
| 2596 |
+
"nll_loss": 0.2289275974035263,
|
| 2597 |
+
"rewards/accuracies": 1.0,
|
| 2598 |
+
"rewards/chosen": 0.20508992671966553,
|
| 2599 |
+
"rewards/margins": 5.947912216186523,
|
| 2600 |
+
"rewards/rejected": -5.742822170257568,
|
| 2601 |
+
"step": 144,
|
| 2602 |
+
"train_speed(iter/s)": 0.010725
|
| 2603 |
+
},
|
| 2604 |
+
{
|
| 2605 |
+
"epoch": 0.836036036036036,
|
| 2606 |
+
"grad_norm": 4.144430637359619,
|
| 2607 |
+
"learning_rate": 0.0001725995491923131,
|
| 2608 |
+
"logits/chosen": -0.34412139654159546,
|
| 2609 |
+
"logits/rejected": -0.7268174290657043,
|
| 2610 |
+
"logps/chosen": -2.0844953060150146,
|
| 2611 |
+
"logps/rejected": -86.29147338867188,
|
| 2612 |
+
"loss": 0.2860412001609802,
|
| 2613 |
+
"memory(GiB)": 41.24,
|
| 2614 |
+
"nll_loss": 0.21140313148498535,
|
| 2615 |
+
"rewards/accuracies": 0.96875,
|
| 2616 |
+
"rewards/chosen": 0.1814691722393036,
|
| 2617 |
+
"rewards/margins": 6.325296401977539,
|
| 2618 |
+
"rewards/rejected": -6.143826961517334,
|
| 2619 |
+
"step": 145,
|
| 2620 |
+
"train_speed(iter/s)": 0.010724
|
| 2621 |
+
},
|
| 2622 |
+
{
|
| 2623 |
+
"epoch": 0.8418018018018018,
|
| 2624 |
+
"grad_norm": 6.901271343231201,
|
| 2625 |
+
"learning_rate": 0.0001721598485943322,
|
| 2626 |
+
"logits/chosen": -0.4293047785758972,
|
| 2627 |
+
"logits/rejected": -0.6931589841842651,
|
| 2628 |
+
"logps/chosen": -3.5573177337646484,
|
| 2629 |
+
"logps/rejected": -80.00125885009766,
|
| 2630 |
+
"loss": 0.402279257774353,
|
| 2631 |
+
"memory(GiB)": 41.24,
|
| 2632 |
+
"nll_loss": 0.30397528409957886,
|
| 2633 |
+
"rewards/accuracies": 0.96875,
|
| 2634 |
+
"rewards/chosen": -0.027988389134407043,
|
| 2635 |
+
"rewards/margins": 6.108896732330322,
|
| 2636 |
+
"rewards/rejected": -6.136884689331055,
|
| 2637 |
+
"step": 146,
|
| 2638 |
+
"train_speed(iter/s)": 0.010724
|
| 2639 |
+
},
|
| 2640 |
+
{
|
| 2641 |
+
"epoch": 0.8475675675675676,
|
| 2642 |
+
"grad_norm": 1.3138624429702759,
|
| 2643 |
+
"learning_rate": 0.00017171721777755074,
|
| 2644 |
+
"logits/chosen": -0.441506952047348,
|
| 2645 |
+
"logits/rejected": -0.6183236241340637,
|
| 2646 |
+
"logps/chosen": -5.245753288269043,
|
| 2647 |
+
"logps/rejected": -61.3995246887207,
|
| 2648 |
+
"loss": 0.5000537633895874,
|
| 2649 |
+
"memory(GiB)": 41.24,
|
| 2650 |
+
"nll_loss": 0.3299512565135956,
|
| 2651 |
+
"rewards/accuracies": 0.90625,
|
| 2652 |
+
"rewards/chosen": 0.1415078043937683,
|
| 2653 |
+
"rewards/margins": 4.831845760345459,
|
| 2654 |
+
"rewards/rejected": -4.690337181091309,
|
| 2655 |
+
"step": 147,
|
| 2656 |
+
"train_speed(iter/s)": 0.010724
|
| 2657 |
+
},
|
| 2658 |
+
{
|
| 2659 |
+
"epoch": 0.8533333333333334,
|
| 2660 |
+
"grad_norm": 2.7394113540649414,
|
| 2661 |
+
"learning_rate": 0.00017127167471602447,
|
| 2662 |
+
"logits/chosen": -0.44564759731292725,
|
| 2663 |
+
"logits/rejected": -0.7324830889701843,
|
| 2664 |
+
"logps/chosen": -2.2436249256134033,
|
| 2665 |
+
"logps/rejected": -73.5162124633789,
|
| 2666 |
+
"loss": 0.20336386561393738,
|
| 2667 |
+
"memory(GiB)": 41.24,
|
| 2668 |
+
"nll_loss": 0.11223578453063965,
|
| 2669 |
+
"rewards/accuracies": 0.96875,
|
| 2670 |
+
"rewards/chosen": 0.17428822815418243,
|
| 2671 |
+
"rewards/margins": 5.678185939788818,
|
| 2672 |
+
"rewards/rejected": -5.503897666931152,
|
| 2673 |
+
"step": 148,
|
| 2674 |
+
"train_speed(iter/s)": 0.010724
|
| 2675 |
+
},
|
| 2676 |
+
{
|
| 2677 |
+
"epoch": 0.8590990990990991,
|
| 2678 |
+
"grad_norm": 1.488072395324707,
|
| 2679 |
+
"learning_rate": 0.00017082323750206761,
|
| 2680 |
+
"logits/chosen": -0.44784775376319885,
|
| 2681 |
+
"logits/rejected": -0.6909451484680176,
|
| 2682 |
+
"logps/chosen": -3.5523109436035156,
|
| 2683 |
+
"logps/rejected": -70.1702651977539,
|
| 2684 |
+
"loss": 0.31512442231178284,
|
| 2685 |
+
"memory(GiB)": 41.24,
|
| 2686 |
+
"nll_loss": 0.2102314829826355,
|
| 2687 |
+
"rewards/accuracies": 0.96875,
|
| 2688 |
+
"rewards/chosen": 0.11678414791822433,
|
| 2689 |
+
"rewards/margins": 5.312015533447266,
|
| 2690 |
+
"rewards/rejected": -5.1952314376831055,
|
| 2691 |
+
"step": 149,
|
| 2692 |
+
"train_speed(iter/s)": 0.010724
|
| 2693 |
+
},
|
| 2694 |
+
{
|
| 2695 |
+
"epoch": 0.8648648648648649,
|
| 2696 |
+
"grad_norm": 2.6578073501586914,
|
| 2697 |
+
"learning_rate": 0.00017037192434551823,
|
| 2698 |
+
"logits/chosen": -0.39348986744880676,
|
| 2699 |
+
"logits/rejected": -0.690170407295227,
|
| 2700 |
+
"logps/chosen": -3.4318065643310547,
|
| 2701 |
+
"logps/rejected": -76.70863342285156,
|
| 2702 |
+
"loss": 0.40308576822280884,
|
| 2703 |
+
"memory(GiB)": 41.24,
|
| 2704 |
+
"nll_loss": 0.2762233316898346,
|
| 2705 |
+
"rewards/accuracies": 0.90625,
|
| 2706 |
+
"rewards/chosen": 0.1851682811975479,
|
| 2707 |
+
"rewards/margins": 5.912222385406494,
|
| 2708 |
+
"rewards/rejected": -5.727054119110107,
|
| 2709 |
+
"step": 150,
|
| 2710 |
+
"train_speed(iter/s)": 0.010724
|
| 2711 |
+
}
|
| 2712 |
+
],
|
| 2713 |
+
"logging_steps": 1,
|
| 2714 |
+
"max_steps": 519,
|
| 2715 |
+
"num_input_tokens_seen": 0,
|
| 2716 |
+
"num_train_epochs": 3,
|
| 2717 |
+
"save_steps": 50,
|
| 2718 |
+
"stateful_callbacks": {
|
| 2719 |
+
"TrainerControl": {
|
| 2720 |
+
"args": {
|
| 2721 |
+
"should_epoch_stop": false,
|
| 2722 |
+
"should_evaluate": false,
|
| 2723 |
+
"should_log": false,
|
| 2724 |
+
"should_save": true,
|
| 2725 |
+
"should_training_stop": false
|
| 2726 |
+
},
|
| 2727 |
+
"attributes": {}
|
| 2728 |
+
}
|
| 2729 |
+
},
|
| 2730 |
+
"total_flos": 8.203837372786278e+16,
|
| 2731 |
+
"train_batch_size": 2,
|
| 2732 |
+
"trial_name": null,
|
| 2733 |
+
"trial_params": null
|
| 2734 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d6e7aa38d7b9243e5aa6f35f81c7761702583d1c76484ff540cfefab9c93572
|
| 3 |
+
size 8632
|
zero_to_fp32.py
ADDED
|
@@ -0,0 +1,760 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
# Copyright (c) Microsoft Corporation.
|
| 4 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 5 |
+
|
| 6 |
+
# DeepSpeed Team
|
| 7 |
+
|
| 8 |
+
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
|
| 9 |
+
# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
|
| 10 |
+
# the future. Once extracted, the weights don't require DeepSpeed and can be used in any
|
| 11 |
+
# application.
|
| 12 |
+
#
|
| 13 |
+
# example:
|
| 14 |
+
# python zero_to_fp32.py . output_dir/
|
| 15 |
+
# or
|
| 16 |
+
# python zero_to_fp32.py . output_dir/ --safe_serialization
|
| 17 |
+
|
| 18 |
+
import argparse
|
| 19 |
+
import torch
|
| 20 |
+
import glob
|
| 21 |
+
import math
|
| 22 |
+
import os
|
| 23 |
+
import re
|
| 24 |
+
import gc
|
| 25 |
+
import json
|
| 26 |
+
import numpy as np
|
| 27 |
+
from tqdm import tqdm
|
| 28 |
+
from collections import OrderedDict
|
| 29 |
+
from dataclasses import dataclass
|
| 30 |
+
|
| 31 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 32 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 33 |
+
from deepspeed.utils import logger
|
| 34 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 35 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 36 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
@dataclass
|
| 40 |
+
class zero_model_state:
|
| 41 |
+
buffers: dict()
|
| 42 |
+
param_shapes: dict()
|
| 43 |
+
shared_params: list
|
| 44 |
+
ds_version: int
|
| 45 |
+
frozen_param_shapes: dict()
|
| 46 |
+
frozen_param_fragments: dict()
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
debug = 0
|
| 50 |
+
|
| 51 |
+
# load to cpu
|
| 52 |
+
device = torch.device('cpu')
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def atoi(text):
|
| 56 |
+
return int(text) if text.isdigit() else text
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def natural_keys(text):
|
| 60 |
+
'''
|
| 61 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 62 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 63 |
+
(See Toothy's implementation in the comments)
|
| 64 |
+
'''
|
| 65 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 69 |
+
if not os.path.isdir(checkpoint_dir):
|
| 70 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 71 |
+
|
| 72 |
+
# there should be only one file
|
| 73 |
+
if zero_stage <= 2:
|
| 74 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 75 |
+
elif zero_stage == 3:
|
| 76 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 77 |
+
|
| 78 |
+
if not os.path.exists(file):
|
| 79 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 80 |
+
|
| 81 |
+
return file
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 85 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 86 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 87 |
+
|
| 88 |
+
if len(ckpt_files) == 0:
|
| 89 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 90 |
+
|
| 91 |
+
return ckpt_files
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def get_optim_files(checkpoint_dir):
|
| 95 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def get_model_state_files(checkpoint_dir):
|
| 99 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def parse_model_states(files):
|
| 103 |
+
zero_model_states = []
|
| 104 |
+
for file in files:
|
| 105 |
+
state_dict = torch.load(file, map_location=device, weights_only=False)
|
| 106 |
+
|
| 107 |
+
if BUFFER_NAMES not in state_dict:
|
| 108 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 109 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 110 |
+
if debug:
|
| 111 |
+
print("Found buffers:", buffer_names)
|
| 112 |
+
|
| 113 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 114 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 115 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 116 |
+
|
| 117 |
+
# collect parameters that are included in param_shapes
|
| 118 |
+
param_names = []
|
| 119 |
+
for s in param_shapes:
|
| 120 |
+
for name in s.keys():
|
| 121 |
+
param_names.append(name)
|
| 122 |
+
|
| 123 |
+
# update with frozen parameters
|
| 124 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 125 |
+
if frozen_param_shapes is not None:
|
| 126 |
+
if debug:
|
| 127 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 128 |
+
param_names += list(frozen_param_shapes.keys())
|
| 129 |
+
|
| 130 |
+
# handle shared params
|
| 131 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 132 |
+
|
| 133 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 134 |
+
|
| 135 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 136 |
+
|
| 137 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 138 |
+
param_shapes=param_shapes,
|
| 139 |
+
shared_params=shared_params,
|
| 140 |
+
ds_version=ds_version,
|
| 141 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 142 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 143 |
+
zero_model_states.append(z_model_state)
|
| 144 |
+
|
| 145 |
+
return zero_model_states
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 149 |
+
total_files = len(files)
|
| 150 |
+
state_dicts = []
|
| 151 |
+
for f in tqdm(files, desc='Loading checkpoint shards'):
|
| 152 |
+
state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False)
|
| 153 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 154 |
+
# and also handle the case where it was already removed by another helper script
|
| 155 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 156 |
+
state_dicts.append(state_dict)
|
| 157 |
+
|
| 158 |
+
if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 159 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 160 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 161 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 162 |
+
|
| 163 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 164 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 165 |
+
# use the max of the partition_count to get the dp world_size.
|
| 166 |
+
|
| 167 |
+
if type(world_size) is list:
|
| 168 |
+
world_size = max(world_size)
|
| 169 |
+
|
| 170 |
+
if world_size != total_files:
|
| 171 |
+
raise ValueError(
|
| 172 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 173 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 174 |
+
)
|
| 175 |
+
|
| 176 |
+
# the groups are named differently in each stage
|
| 177 |
+
if zero_stage <= 2:
|
| 178 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 179 |
+
elif zero_stage == 3:
|
| 180 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 181 |
+
else:
|
| 182 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 183 |
+
|
| 184 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 185 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
|
| 189 |
+
"""
|
| 190 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 191 |
+
|
| 192 |
+
Args:
|
| 193 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 194 |
+
|
| 195 |
+
"""
|
| 196 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 197 |
+
|
| 198 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 199 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 200 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 201 |
+
|
| 202 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 203 |
+
|
| 204 |
+
zero_model_states = parse_model_states(model_files)
|
| 205 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 206 |
+
|
| 207 |
+
if zero_stage <= 2:
|
| 208 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 209 |
+
exclude_frozen_parameters)
|
| 210 |
+
elif zero_stage == 3:
|
| 211 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 212 |
+
exclude_frozen_parameters)
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 216 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 217 |
+
return
|
| 218 |
+
|
| 219 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 220 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 221 |
+
|
| 222 |
+
if debug:
|
| 223 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 224 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 225 |
+
|
| 226 |
+
wanted_params = len(frozen_param_shapes)
|
| 227 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 228 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 229 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 230 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 231 |
+
|
| 232 |
+
total_params = 0
|
| 233 |
+
total_numel = 0
|
| 234 |
+
for name, shape in frozen_param_shapes.items():
|
| 235 |
+
total_params += 1
|
| 236 |
+
unpartitioned_numel = shape.numel()
|
| 237 |
+
total_numel += unpartitioned_numel
|
| 238 |
+
|
| 239 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 240 |
+
|
| 241 |
+
if debug:
|
| 242 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 243 |
+
|
| 244 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
def _has_callable(obj, fn):
|
| 248 |
+
attr = getattr(obj, fn, None)
|
| 249 |
+
return callable(attr)
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 253 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 254 |
+
|
| 255 |
+
# Reconstruction protocol:
|
| 256 |
+
#
|
| 257 |
+
# XXX: document this
|
| 258 |
+
|
| 259 |
+
if debug:
|
| 260 |
+
for i in range(world_size):
|
| 261 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 262 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 263 |
+
|
| 264 |
+
# XXX: memory usage doubles here (zero2)
|
| 265 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 266 |
+
merged_single_partition_of_fp32_groups = []
|
| 267 |
+
for i in range(num_param_groups):
|
| 268 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 269 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 270 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 271 |
+
avail_numel = sum(
|
| 272 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 273 |
+
|
| 274 |
+
if debug:
|
| 275 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 276 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 277 |
+
# not asserting if there is a mismatch due to possible padding
|
| 278 |
+
print(f"Have {avail_numel} numels to process.")
|
| 279 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 280 |
+
|
| 281 |
+
# params
|
| 282 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 283 |
+
# out-of-core computing solution
|
| 284 |
+
total_numel = 0
|
| 285 |
+
total_params = 0
|
| 286 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 287 |
+
offset = 0
|
| 288 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 289 |
+
for name, shape in shapes.items():
|
| 290 |
+
|
| 291 |
+
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
|
| 292 |
+
total_numel += unpartitioned_numel
|
| 293 |
+
total_params += 1
|
| 294 |
+
|
| 295 |
+
if debug:
|
| 296 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 297 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 298 |
+
offset += unpartitioned_numel
|
| 299 |
+
|
| 300 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 301 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 302 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 303 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 304 |
+
align_to = 2 * world_size
|
| 305 |
+
|
| 306 |
+
def zero2_align(x):
|
| 307 |
+
return align_to * math.ceil(x / align_to)
|
| 308 |
+
|
| 309 |
+
if debug:
|
| 310 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 311 |
+
|
| 312 |
+
offset = zero2_align(offset)
|
| 313 |
+
avail_numel = zero2_align(avail_numel)
|
| 314 |
+
|
| 315 |
+
if debug:
|
| 316 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 317 |
+
|
| 318 |
+
# Sanity check
|
| 319 |
+
if offset != avail_numel:
|
| 320 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 321 |
+
|
| 322 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 326 |
+
exclude_frozen_parameters):
|
| 327 |
+
state_dict = OrderedDict()
|
| 328 |
+
|
| 329 |
+
# buffers
|
| 330 |
+
buffers = zero_model_states[0].buffers
|
| 331 |
+
state_dict.update(buffers)
|
| 332 |
+
if debug:
|
| 333 |
+
print(f"added {len(buffers)} buffers")
|
| 334 |
+
|
| 335 |
+
if not exclude_frozen_parameters:
|
| 336 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 337 |
+
|
| 338 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 339 |
+
|
| 340 |
+
# recover shared parameters
|
| 341 |
+
for pair in zero_model_states[0].shared_params:
|
| 342 |
+
if pair[1] in state_dict:
|
| 343 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 344 |
+
|
| 345 |
+
return state_dict
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 349 |
+
remainder = unpartitioned_numel % world_size
|
| 350 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 351 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 352 |
+
return partitioned_numel, padding_numel
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 356 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 357 |
+
return
|
| 358 |
+
|
| 359 |
+
if debug:
|
| 360 |
+
for i in range(world_size):
|
| 361 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 362 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 363 |
+
|
| 364 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 365 |
+
wanted_params = len(frozen_param_shapes)
|
| 366 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 367 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 368 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 369 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 370 |
+
|
| 371 |
+
total_params = 0
|
| 372 |
+
total_numel = 0
|
| 373 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 374 |
+
total_params += 1
|
| 375 |
+
unpartitioned_numel = shape.numel()
|
| 376 |
+
total_numel += unpartitioned_numel
|
| 377 |
+
|
| 378 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 379 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 380 |
+
|
| 381 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 382 |
+
|
| 383 |
+
if debug:
|
| 384 |
+
print(
|
| 385 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 386 |
+
)
|
| 387 |
+
|
| 388 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
class GatheredTensor:
|
| 392 |
+
"""
|
| 393 |
+
A pseudo tensor that collects partitioned weights.
|
| 394 |
+
It is more memory efficient when there are multiple groups.
|
| 395 |
+
"""
|
| 396 |
+
|
| 397 |
+
def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
|
| 398 |
+
self.flat_groups = flat_groups
|
| 399 |
+
self.flat_groups_offset = flat_groups_offset
|
| 400 |
+
self.offset = offset
|
| 401 |
+
self.partitioned_numel = partitioned_numel
|
| 402 |
+
self.shape = shape
|
| 403 |
+
self.dtype = self.flat_groups[0][0].dtype
|
| 404 |
+
|
| 405 |
+
def contiguous(self):
|
| 406 |
+
"""
|
| 407 |
+
Merge partitioned weights from flat_groups into a single tensor.
|
| 408 |
+
"""
|
| 409 |
+
end_idx = self.offset + self.partitioned_numel
|
| 410 |
+
world_size = len(self.flat_groups)
|
| 411 |
+
pad_flat_param_chunks = []
|
| 412 |
+
|
| 413 |
+
for rank_i in range(world_size):
|
| 414 |
+
# for each rank, we need to collect weights from related group/groups
|
| 415 |
+
flat_groups_at_rank_i = self.flat_groups[rank_i]
|
| 416 |
+
start_group_id = None
|
| 417 |
+
end_group_id = None
|
| 418 |
+
for group_id in range(len(self.flat_groups_offset)):
|
| 419 |
+
if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
|
| 420 |
+
start_group_id = group_id
|
| 421 |
+
if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
|
| 422 |
+
end_group_id = group_id
|
| 423 |
+
break
|
| 424 |
+
# collect weights from related group/groups
|
| 425 |
+
for group_id in range(start_group_id, end_group_id + 1):
|
| 426 |
+
flat_tensor = flat_groups_at_rank_i[group_id]
|
| 427 |
+
start_offset = self.offset - self.flat_groups_offset[group_id]
|
| 428 |
+
end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
|
| 429 |
+
pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
|
| 430 |
+
|
| 431 |
+
# collect weights from all ranks
|
| 432 |
+
pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
|
| 433 |
+
param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
|
| 434 |
+
return param
|
| 435 |
+
|
| 436 |
+
|
| 437 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 438 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 439 |
+
avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
|
| 440 |
+
|
| 441 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 442 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 443 |
+
|
| 444 |
+
# merge list of dicts, preserving order
|
| 445 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 446 |
+
|
| 447 |
+
if debug:
|
| 448 |
+
for i in range(world_size):
|
| 449 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 450 |
+
|
| 451 |
+
wanted_params = len(param_shapes)
|
| 452 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 453 |
+
# not asserting if there is a mismatch due to possible padding
|
| 454 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 455 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 456 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 457 |
+
|
| 458 |
+
# params
|
| 459 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 460 |
+
# out-of-core computing solution
|
| 461 |
+
offset = 0
|
| 462 |
+
total_numel = 0
|
| 463 |
+
total_params = 0
|
| 464 |
+
flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
|
| 465 |
+
for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
|
| 466 |
+
unpartitioned_numel = shape.numel()
|
| 467 |
+
total_numel += unpartitioned_numel
|
| 468 |
+
total_params += 1
|
| 469 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 470 |
+
|
| 471 |
+
if debug:
|
| 472 |
+
print(
|
| 473 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 474 |
+
)
|
| 475 |
+
|
| 476 |
+
# memory efficient tensor
|
| 477 |
+
tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
|
| 478 |
+
state_dict[name] = tensor
|
| 479 |
+
offset += partitioned_numel
|
| 480 |
+
|
| 481 |
+
offset *= world_size
|
| 482 |
+
|
| 483 |
+
# Sanity check
|
| 484 |
+
if offset != avail_numel:
|
| 485 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 486 |
+
|
| 487 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 491 |
+
exclude_frozen_parameters):
|
| 492 |
+
state_dict = OrderedDict()
|
| 493 |
+
|
| 494 |
+
# buffers
|
| 495 |
+
buffers = zero_model_states[0].buffers
|
| 496 |
+
state_dict.update(buffers)
|
| 497 |
+
if debug:
|
| 498 |
+
print(f"added {len(buffers)} buffers")
|
| 499 |
+
|
| 500 |
+
if not exclude_frozen_parameters:
|
| 501 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 502 |
+
|
| 503 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 504 |
+
|
| 505 |
+
# recover shared parameters
|
| 506 |
+
for pair in zero_model_states[0].shared_params:
|
| 507 |
+
if pair[1] in state_dict:
|
| 508 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 509 |
+
|
| 510 |
+
return state_dict
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
def to_torch_tensor(state_dict, return_empty_tensor=False):
|
| 514 |
+
"""
|
| 515 |
+
Convert state_dict of GatheredTensor to torch tensor
|
| 516 |
+
"""
|
| 517 |
+
torch_state_dict = {}
|
| 518 |
+
converted_tensors = {}
|
| 519 |
+
for name, tensor in state_dict.items():
|
| 520 |
+
tensor_id = id(tensor)
|
| 521 |
+
if tensor_id in converted_tensors: # shared tensors
|
| 522 |
+
shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
|
| 523 |
+
torch_state_dict[name] = shared_tensor
|
| 524 |
+
else:
|
| 525 |
+
converted_tensors[tensor_id] = name
|
| 526 |
+
if return_empty_tensor:
|
| 527 |
+
torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
|
| 528 |
+
else:
|
| 529 |
+
torch_state_dict[name] = tensor.contiguous()
|
| 530 |
+
return torch_state_dict
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 534 |
+
tag=None,
|
| 535 |
+
exclude_frozen_parameters=False,
|
| 536 |
+
lazy_mode=False):
|
| 537 |
+
"""
|
| 538 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 539 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 540 |
+
via a model hub.
|
| 541 |
+
|
| 542 |
+
Args:
|
| 543 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 544 |
+
- ``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``
|
| 545 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 546 |
+
- ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
|
| 547 |
+
Convert the pesduo tensor to torch tensor by ``.contiguous()``
|
| 548 |
+
|
| 549 |
+
Returns:
|
| 550 |
+
- pytorch ``state_dict``
|
| 551 |
+
|
| 552 |
+
A typical usage might be ::
|
| 553 |
+
|
| 554 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 555 |
+
# do the training and checkpoint saving
|
| 556 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 557 |
+
model = model.cpu() # move to cpu
|
| 558 |
+
model.load_state_dict(state_dict)
|
| 559 |
+
# submit to model hub or save the model to share with others
|
| 560 |
+
|
| 561 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 562 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 563 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 564 |
+
|
| 565 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 566 |
+
|
| 567 |
+
Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
|
| 568 |
+
You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 569 |
+
the checkpoint. Or you can load state_dict in lazy mode ::
|
| 570 |
+
|
| 571 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 572 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
|
| 573 |
+
for name, lazy_tensor in state_dict.item():
|
| 574 |
+
tensor = lazy_tensor.contiguous() # to cpu
|
| 575 |
+
print(name, tensor)
|
| 576 |
+
# del tensor to release memory if it no longer in use
|
| 577 |
+
"""
|
| 578 |
+
if tag is None:
|
| 579 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 580 |
+
if os.path.isfile(latest_path):
|
| 581 |
+
with open(latest_path, 'r') as fd:
|
| 582 |
+
tag = fd.read().strip()
|
| 583 |
+
else:
|
| 584 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 585 |
+
|
| 586 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 587 |
+
|
| 588 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 589 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 590 |
+
|
| 591 |
+
state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
|
| 592 |
+
if lazy_mode:
|
| 593 |
+
return state_dict
|
| 594 |
+
else:
|
| 595 |
+
return to_torch_tensor(state_dict)
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
|
| 599 |
+
output_dir,
|
| 600 |
+
max_shard_size="5GB",
|
| 601 |
+
safe_serialization=False,
|
| 602 |
+
tag=None,
|
| 603 |
+
exclude_frozen_parameters=False):
|
| 604 |
+
"""
|
| 605 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 606 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 607 |
+
|
| 608 |
+
Args:
|
| 609 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 610 |
+
- ``output_dir``: directory to the pytorch fp32 state_dict output files
|
| 611 |
+
- ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
|
| 612 |
+
- ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
|
| 613 |
+
- ``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``
|
| 614 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 615 |
+
"""
|
| 616 |
+
|
| 617 |
+
# Dependency pre-check
|
| 618 |
+
if safe_serialization:
|
| 619 |
+
try:
|
| 620 |
+
from safetensors.torch import save_file
|
| 621 |
+
except ImportError:
|
| 622 |
+
print('If you want to use `safe_serialization`, please `pip install safetensors`')
|
| 623 |
+
raise
|
| 624 |
+
if max_shard_size is not None:
|
| 625 |
+
try:
|
| 626 |
+
from huggingface_hub import split_torch_state_dict_into_shards
|
| 627 |
+
except ImportError:
|
| 628 |
+
print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
|
| 629 |
+
raise
|
| 630 |
+
|
| 631 |
+
# Convert zero checkpoint to state_dict
|
| 632 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 633 |
+
tag,
|
| 634 |
+
exclude_frozen_parameters,
|
| 635 |
+
lazy_mode=True)
|
| 636 |
+
|
| 637 |
+
# Shard the model if it is too big.
|
| 638 |
+
weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
|
| 639 |
+
if max_shard_size is not None:
|
| 640 |
+
filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
|
| 641 |
+
# an memory-efficient approach for sharding
|
| 642 |
+
empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
|
| 643 |
+
state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
|
| 644 |
+
filename_pattern=filename_pattern,
|
| 645 |
+
max_shard_size=max_shard_size)
|
| 646 |
+
else:
|
| 647 |
+
from collections import namedtuple
|
| 648 |
+
StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
|
| 649 |
+
state_dict_split = StateDictSplit(is_sharded=False,
|
| 650 |
+
filename_to_tensors={weights_name: list(state_dict.keys())})
|
| 651 |
+
|
| 652 |
+
# Save the model by shard
|
| 653 |
+
os.makedirs(output_dir, exist_ok=True)
|
| 654 |
+
filename_to_tensors = state_dict_split.filename_to_tensors.items()
|
| 655 |
+
for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
|
| 656 |
+
shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
|
| 657 |
+
shard_state_dict = to_torch_tensor(shard_state_dict)
|
| 658 |
+
output_path = os.path.join(output_dir, shard_file)
|
| 659 |
+
if safe_serialization:
|
| 660 |
+
save_file(shard_state_dict, output_path, metadata={"format": "pt"})
|
| 661 |
+
else:
|
| 662 |
+
torch.save(shard_state_dict, output_path)
|
| 663 |
+
# release the memory of current shard
|
| 664 |
+
for tensor_name in list(shard_state_dict.keys()):
|
| 665 |
+
del state_dict[tensor_name]
|
| 666 |
+
del shard_state_dict[tensor_name]
|
| 667 |
+
del shard_state_dict
|
| 668 |
+
gc.collect()
|
| 669 |
+
|
| 670 |
+
# Save index if sharded
|
| 671 |
+
if state_dict_split.is_sharded:
|
| 672 |
+
index = {
|
| 673 |
+
"metadata": state_dict_split.metadata,
|
| 674 |
+
"weight_map": state_dict_split.tensor_to_filename,
|
| 675 |
+
}
|
| 676 |
+
save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
|
| 677 |
+
save_index_file = os.path.join(output_dir, save_index_file)
|
| 678 |
+
with open(save_index_file, "w", encoding="utf-8") as f:
|
| 679 |
+
content = json.dumps(index, indent=2, sort_keys=True) + "\n"
|
| 680 |
+
f.write(content)
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 684 |
+
"""
|
| 685 |
+
1. Put the provided model to cpu
|
| 686 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 687 |
+
3. Load it into the provided model
|
| 688 |
+
|
| 689 |
+
Args:
|
| 690 |
+
- ``model``: the model object to update
|
| 691 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 692 |
+
- ``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``
|
| 693 |
+
|
| 694 |
+
Returns:
|
| 695 |
+
- ``model`: modified model
|
| 696 |
+
|
| 697 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 698 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 699 |
+
conveniently placed for you in the checkpoint folder.
|
| 700 |
+
|
| 701 |
+
A typical usage might be ::
|
| 702 |
+
|
| 703 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 704 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 705 |
+
# submit to model hub or save the model to share with others
|
| 706 |
+
|
| 707 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 708 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 709 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 710 |
+
|
| 711 |
+
"""
|
| 712 |
+
logger.info(f"Extracting fp32 weights")
|
| 713 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 714 |
+
|
| 715 |
+
logger.info(f"Overwriting model with fp32 weights")
|
| 716 |
+
model = model.cpu()
|
| 717 |
+
model.load_state_dict(state_dict, strict=False)
|
| 718 |
+
|
| 719 |
+
return model
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
if __name__ == "__main__":
|
| 723 |
+
parser = argparse.ArgumentParser()
|
| 724 |
+
parser.add_argument("checkpoint_dir",
|
| 725 |
+
type=str,
|
| 726 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 727 |
+
parser.add_argument("output_dir",
|
| 728 |
+
type=str,
|
| 729 |
+
help="directory to the pytorch fp32 state_dict output files"
|
| 730 |
+
"(e.g. path/checkpoint-12-output/)")
|
| 731 |
+
parser.add_argument(
|
| 732 |
+
"--max_shard_size",
|
| 733 |
+
type=str,
|
| 734 |
+
default="5GB",
|
| 735 |
+
help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
|
| 736 |
+
"lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
|
| 737 |
+
"We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
|
| 738 |
+
"without CPU OOM issues.")
|
| 739 |
+
parser.add_argument(
|
| 740 |
+
"--safe_serialization",
|
| 741 |
+
default=False,
|
| 742 |
+
action='store_true',
|
| 743 |
+
help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
|
| 744 |
+
parser.add_argument("-t",
|
| 745 |
+
"--tag",
|
| 746 |
+
type=str,
|
| 747 |
+
default=None,
|
| 748 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 749 |
+
parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
|
| 750 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 751 |
+
args = parser.parse_args()
|
| 752 |
+
|
| 753 |
+
debug = args.debug
|
| 754 |
+
|
| 755 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
|
| 756 |
+
args.output_dir,
|
| 757 |
+
max_shard_size=args.max_shard_size,
|
| 758 |
+
safe_serialization=args.safe_serialization,
|
| 759 |
+
tag=args.tag,
|
| 760 |
+
exclude_frozen_parameters=args.exclude_frozen_parameters)
|