Instructions to use cragtmp/task3vp-150 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cragtmp/task3vp-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/task3vp-150") - Notebooks
- Google Colab
- Kaggle
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 +438 -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|k_proj|q_proj|o_proj|up_proj|gate_proj|v_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:2fb289ad31dc4f00f54d338eb2e57db970469609ae7e53227e2b12d5b3f6f843
|
| 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,438 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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": "###Task You are an expert at converting visual questions into effective search queries. \nYour goal is to create a comprehensive search query that will help find the most relevant information. \nFor each image-based question, you must create a search query that combines: \n1. Key visual elements from the image (objects, text, logos, scenes, actions, etc.) \n2. The core question being asked \n3. Potential answer terms or relevant context \nFor example: \n- If asking about a logo: include company name, industry, and visual description \n- If asking about an object: include its appearance, category, and possible brands/models \n- If asking about an event/scene: include location hints, activities, and time period clues",
|
| 16 |
+
"max_length": 4096,
|
| 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 |
+
"task3_dpo_gt6_task2_gt30.3+task3gt5_0.1vp.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": null,
|
| 72 |
+
"load_dataset_config": null,
|
| 73 |
+
"lora_modules": [],
|
| 74 |
+
"tuner_backend": "peft",
|
| 75 |
+
"train_type": "lora",
|
| 76 |
+
"adapters": [],
|
| 77 |
+
"external_plugins": [],
|
| 78 |
+
"seed": 42,
|
| 79 |
+
"model_kwargs": {},
|
| 80 |
+
"load_args": false,
|
| 81 |
+
"load_data_args": false,
|
| 82 |
+
"use_hf": false,
|
| 83 |
+
"hub_token": null,
|
| 84 |
+
"custom_register_path": [],
|
| 85 |
+
"ignore_args_error": false,
|
| 86 |
+
"use_swift_lora": false,
|
| 87 |
+
"output_dir": "/data2/kdd/crag/cjz/output/task3_dpo_gt6_task2_gt30.3+task3gt5_0.1vp/v0-20250611-011957",
|
| 88 |
+
"overwrite_output_dir": false,
|
| 89 |
+
"do_train": false,
|
| 90 |
+
"do_eval": false,
|
| 91 |
+
"do_predict": false,
|
| 92 |
+
"eval_strategy": "steps",
|
| 93 |
+
"prediction_loss_only": false,
|
| 94 |
+
"per_device_train_batch_size": 1,
|
| 95 |
+
"per_device_eval_batch_size": 1,
|
| 96 |
+
"per_gpu_train_batch_size": null,
|
| 97 |
+
"per_gpu_eval_batch_size": null,
|
| 98 |
+
"gradient_accumulation_steps": 32,
|
| 99 |
+
"eval_accumulation_steps": null,
|
| 100 |
+
"eval_delay": 0,
|
| 101 |
+
"torch_empty_cache_steps": null,
|
| 102 |
+
"learning_rate": 0.0002,
|
| 103 |
+
"weight_decay": 0.1,
|
| 104 |
+
"adam_beta1": 0.9,
|
| 105 |
+
"adam_beta2": 0.95,
|
| 106 |
+
"adam_epsilon": 1e-08,
|
| 107 |
+
"max_grad_norm": 1.0,
|
| 108 |
+
"num_train_epochs": 1.0,
|
| 109 |
+
"max_steps": -1,
|
| 110 |
+
"lr_scheduler_type": "cosine",
|
| 111 |
+
"lr_scheduler_kwargs": null,
|
| 112 |
+
"warmup_ratio": 0.05,
|
| 113 |
+
"warmup_steps": 0,
|
| 114 |
+
"log_level": "passive",
|
| 115 |
+
"log_level_replica": "warning",
|
| 116 |
+
"log_on_each_node": true,
|
| 117 |
+
"logging_dir": "/data2/kdd/crag/cjz/output/task3_dpo_gt6_task2_gt30.3+task3gt5_0.1vp/v0-20250611-011957/runs",
|
| 118 |
+
"logging_strategy": "steps",
|
| 119 |
+
"logging_first_step": true,
|
| 120 |
+
"logging_steps": 1,
|
| 121 |
+
"logging_nan_inf_filter": true,
|
| 122 |
+
"save_strategy": "steps",
|
| 123 |
+
"save_steps": 50.0,
|
| 124 |
+
"save_total_limit": null,
|
| 125 |
+
"save_safetensors": true,
|
| 126 |
+
"save_on_each_node": false,
|
| 127 |
+
"save_only_model": false,
|
| 128 |
+
"restore_callback_states_from_checkpoint": false,
|
| 129 |
+
"no_cuda": false,
|
| 130 |
+
"use_cpu": false,
|
| 131 |
+
"use_mps_device": false,
|
| 132 |
+
"jit_mode_eval": false,
|
| 133 |
+
"use_ipex": false,
|
| 134 |
+
"bf16": true,
|
| 135 |
+
"fp16": false,
|
| 136 |
+
"fp16_opt_level": "O1",
|
| 137 |
+
"half_precision_backend": "auto",
|
| 138 |
+
"bf16_full_eval": false,
|
| 139 |
+
"fp16_full_eval": false,
|
| 140 |
+
"tf32": null,
|
| 141 |
+
"local_rank": 0,
|
| 142 |
+
"ddp_backend": null,
|
| 143 |
+
"tpu_num_cores": null,
|
| 144 |
+
"tpu_metrics_debug": false,
|
| 145 |
+
"debug": null,
|
| 146 |
+
"dataloader_drop_last": false,
|
| 147 |
+
"eval_steps": 300.0,
|
| 148 |
+
"dataloader_num_workers": 4,
|
| 149 |
+
"dataloader_prefetch_factor": null,
|
| 150 |
+
"past_index": -1,
|
| 151 |
+
"run_name": null,
|
| 152 |
+
"disable_tqdm": null,
|
| 153 |
+
"label_names": null,
|
| 154 |
+
"load_best_model_at_end": false,
|
| 155 |
+
"metric_for_best_model": "loss",
|
| 156 |
+
"greater_is_better": false,
|
| 157 |
+
"ignore_data_skip": false,
|
| 158 |
+
"fsdp": "",
|
| 159 |
+
"fsdp_min_num_params": 0,
|
| 160 |
+
"fsdp_config": null,
|
| 161 |
+
"tp_size": 0,
|
| 162 |
+
"fsdp_transformer_layer_cls_to_wrap": null,
|
| 163 |
+
"accelerator_config": {
|
| 164 |
+
"dispatch_batches": false
|
| 165 |
+
},
|
| 166 |
+
"deepspeed": {
|
| 167 |
+
"fp16": {
|
| 168 |
+
"enabled": "auto",
|
| 169 |
+
"loss_scale": 0,
|
| 170 |
+
"loss_scale_window": 1000,
|
| 171 |
+
"initial_scale_power": 16,
|
| 172 |
+
"hysteresis": 2,
|
| 173 |
+
"min_loss_scale": 1
|
| 174 |
+
},
|
| 175 |
+
"bf16": {
|
| 176 |
+
"enabled": "auto"
|
| 177 |
+
},
|
| 178 |
+
"zero_optimization": {
|
| 179 |
+
"stage": 2,
|
| 180 |
+
"offload_optimizer": {
|
| 181 |
+
"device": "none",
|
| 182 |
+
"pin_memory": true
|
| 183 |
+
},
|
| 184 |
+
"allgather_partitions": true,
|
| 185 |
+
"allgather_bucket_size": 200000000.0,
|
| 186 |
+
"overlap_comm": false,
|
| 187 |
+
"reduce_scatter": true,
|
| 188 |
+
"reduce_bucket_size": 200000000.0,
|
| 189 |
+
"contiguous_gradients": true
|
| 190 |
+
},
|
| 191 |
+
"gradient_accumulation_steps": "auto",
|
| 192 |
+
"gradient_clipping": "auto",
|
| 193 |
+
"steps_per_print": 2000,
|
| 194 |
+
"train_batch_size": "auto",
|
| 195 |
+
"train_micro_batch_size_per_gpu": "auto",
|
| 196 |
+
"wall_clock_breakdown": false
|
| 197 |
+
},
|
| 198 |
+
"label_smoothing_factor": 0.0,
|
| 199 |
+
"optim": "adamw_torch",
|
| 200 |
+
"optim_args": null,
|
| 201 |
+
"adafactor": false,
|
| 202 |
+
"group_by_length": false,
|
| 203 |
+
"length_column_name": "length",
|
| 204 |
+
"report_to": [
|
| 205 |
+
"tensorboard"
|
| 206 |
+
],
|
| 207 |
+
"ddp_find_unused_parameters": null,
|
| 208 |
+
"ddp_bucket_cap_mb": null,
|
| 209 |
+
"ddp_broadcast_buffers": null,
|
| 210 |
+
"dataloader_pin_memory": true,
|
| 211 |
+
"dataloader_persistent_workers": false,
|
| 212 |
+
"skip_memory_metrics": true,
|
| 213 |
+
"use_legacy_prediction_loop": false,
|
| 214 |
+
"push_to_hub": false,
|
| 215 |
+
"resume_from_checkpoint": null,
|
| 216 |
+
"hub_model_id": null,
|
| 217 |
+
"hub_strategy": "every_save",
|
| 218 |
+
"hub_private_repo": null,
|
| 219 |
+
"hub_always_push": false,
|
| 220 |
+
"gradient_checkpointing": true,
|
| 221 |
+
"gradient_checkpointing_kwargs": null,
|
| 222 |
+
"include_inputs_for_metrics": false,
|
| 223 |
+
"include_for_metrics": [],
|
| 224 |
+
"eval_do_concat_batches": true,
|
| 225 |
+
"fp16_backend": "auto",
|
| 226 |
+
"push_to_hub_model_id": null,
|
| 227 |
+
"push_to_hub_organization": null,
|
| 228 |
+
"push_to_hub_token": null,
|
| 229 |
+
"mp_parameters": "",
|
| 230 |
+
"auto_find_batch_size": false,
|
| 231 |
+
"full_determinism": false,
|
| 232 |
+
"torchdynamo": null,
|
| 233 |
+
"ray_scope": "last",
|
| 234 |
+
"ddp_timeout": 1800,
|
| 235 |
+
"torch_compile": false,
|
| 236 |
+
"torch_compile_backend": null,
|
| 237 |
+
"torch_compile_mode": null,
|
| 238 |
+
"include_tokens_per_second": false,
|
| 239 |
+
"include_num_input_tokens_seen": false,
|
| 240 |
+
"neftune_noise_alpha": null,
|
| 241 |
+
"optim_target_modules": null,
|
| 242 |
+
"batch_eval_metrics": false,
|
| 243 |
+
"eval_on_start": false,
|
| 244 |
+
"use_liger_kernel": false,
|
| 245 |
+
"eval_use_gather_object": false,
|
| 246 |
+
"average_tokens_across_devices": false,
|
| 247 |
+
"sortish_sampler": false,
|
| 248 |
+
"predict_with_generate": false,
|
| 249 |
+
"generation_max_length": null,
|
| 250 |
+
"generation_num_beams": null,
|
| 251 |
+
"generation_config": null,
|
| 252 |
+
"check_model": true,
|
| 253 |
+
"acc_strategy": "token",
|
| 254 |
+
"train_dataloader_shuffle": true,
|
| 255 |
+
"metric_warmup_step": 0,
|
| 256 |
+
"fsdp_num": 1,
|
| 257 |
+
"acc_steps": 1,
|
| 258 |
+
"eval_use_evalscope": false,
|
| 259 |
+
"eval_datasets": [],
|
| 260 |
+
"eval_limit": null,
|
| 261 |
+
"eval_datasets_args": null,
|
| 262 |
+
"eval_generation_config": null,
|
| 263 |
+
"freeze_parameters": [
|
| 264 |
+
"vision_model",
|
| 265 |
+
"multi_modal_projector"
|
| 266 |
+
],
|
| 267 |
+
"freeze_parameters_ratio": 0.0,
|
| 268 |
+
"trainable_parameters": [],
|
| 269 |
+
"freeze_llm": false,
|
| 270 |
+
"freeze_vit": true,
|
| 271 |
+
"freeze_aligner": true,
|
| 272 |
+
"target_modules": [
|
| 273 |
+
"all-linear"
|
| 274 |
+
],
|
| 275 |
+
"target_regex": null,
|
| 276 |
+
"modules_to_save": [],
|
| 277 |
+
"lora_rank": 8,
|
| 278 |
+
"lora_alpha": 32,
|
| 279 |
+
"lora_dropout": 0.05,
|
| 280 |
+
"lora_bias": "none",
|
| 281 |
+
"lora_dtype": null,
|
| 282 |
+
"lorap_lr_ratio": null,
|
| 283 |
+
"use_rslora": false,
|
| 284 |
+
"use_dora": false,
|
| 285 |
+
"lora_ga_batch_size": 2,
|
| 286 |
+
"lora_ga_iters": 2,
|
| 287 |
+
"lora_ga_max_length": 1024,
|
| 288 |
+
"lora_ga_direction": "ArB2r",
|
| 289 |
+
"lora_ga_scale": "stable",
|
| 290 |
+
"lora_ga_stable_gamma": 16,
|
| 291 |
+
"init_weights": true,
|
| 292 |
+
"fourier_n_frequency": 2000,
|
| 293 |
+
"fourier_scaling": 300.0,
|
| 294 |
+
"boft_block_size": 4,
|
| 295 |
+
"boft_block_num": 0,
|
| 296 |
+
"boft_n_butterfly_factor": 1,
|
| 297 |
+
"boft_dropout": 0.0,
|
| 298 |
+
"vera_rank": 256,
|
| 299 |
+
"vera_projection_prng_key": 0,
|
| 300 |
+
"vera_dropout": 0.0,
|
| 301 |
+
"vera_d_initial": 0.1,
|
| 302 |
+
"adapter_act": "gelu",
|
| 303 |
+
"adapter_length": 128,
|
| 304 |
+
"use_galore": false,
|
| 305 |
+
"galore_target_modules": null,
|
| 306 |
+
"galore_rank": 128,
|
| 307 |
+
"galore_update_proj_gap": 50,
|
| 308 |
+
"galore_scale": 1.0,
|
| 309 |
+
"galore_proj_type": "std",
|
| 310 |
+
"galore_optim_per_parameter": false,
|
| 311 |
+
"galore_with_embedding": false,
|
| 312 |
+
"galore_quantization": false,
|
| 313 |
+
"galore_proj_quant": false,
|
| 314 |
+
"galore_proj_bits": 4,
|
| 315 |
+
"galore_proj_group_size": 256,
|
| 316 |
+
"galore_cos_threshold": 0.4,
|
| 317 |
+
"galore_gamma_proj": 2,
|
| 318 |
+
"galore_queue_size": 5,
|
| 319 |
+
"adalora_target_r": 8,
|
| 320 |
+
"adalora_init_r": 12,
|
| 321 |
+
"adalora_tinit": 0,
|
| 322 |
+
"adalora_tfinal": 0,
|
| 323 |
+
"adalora_deltaT": 1,
|
| 324 |
+
"adalora_beta1": 0.85,
|
| 325 |
+
"adalora_beta2": 0.85,
|
| 326 |
+
"adalora_orth_reg_weight": 0.5,
|
| 327 |
+
"llamapro_num_new_blocks": 4,
|
| 328 |
+
"llamapro_num_groups": null,
|
| 329 |
+
"lisa_activated_layers": 0,
|
| 330 |
+
"lisa_step_interval": 20,
|
| 331 |
+
"reft_layer_key": null,
|
| 332 |
+
"reft_layers": null,
|
| 333 |
+
"reft_rank": 4,
|
| 334 |
+
"reft_intervention_type": "LoreftIntervention",
|
| 335 |
+
"reft_args": null,
|
| 336 |
+
"swanlab_token": null,
|
| 337 |
+
"swanlab_project": null,
|
| 338 |
+
"swanlab_workspace": null,
|
| 339 |
+
"swanlab_exp_name": null,
|
| 340 |
+
"swanlab_mode": "cloud",
|
| 341 |
+
"add_version": true,
|
| 342 |
+
"resume_only_model": false,
|
| 343 |
+
"create_checkpoint_symlink": false,
|
| 344 |
+
"packing": false,
|
| 345 |
+
"lazy_tokenize": true,
|
| 346 |
+
"loss_type": "sigmoid",
|
| 347 |
+
"optimizer": null,
|
| 348 |
+
"metric": null,
|
| 349 |
+
"zero_hpz_partition_size": null,
|
| 350 |
+
"reward_model": null,
|
| 351 |
+
"reward_adapters": [],
|
| 352 |
+
"reward_model_type": null,
|
| 353 |
+
"reward_model_revision": null,
|
| 354 |
+
"num_ppo_epochs": 4,
|
| 355 |
+
"whiten_rewards": false,
|
| 356 |
+
"kl_coef": 0.05,
|
| 357 |
+
"cliprange": 0.2,
|
| 358 |
+
"vf_coef": 0.1,
|
| 359 |
+
"cliprange_value": 0.2,
|
| 360 |
+
"gamma": 1.0,
|
| 361 |
+
"lam": 0.95,
|
| 362 |
+
"num_mini_batches": 1,
|
| 363 |
+
"local_rollout_forward_batch_size": 64,
|
| 364 |
+
"num_sample_generations": 10,
|
| 365 |
+
"response_length": 512,
|
| 366 |
+
"missing_eos_penalty": null,
|
| 367 |
+
"epsilon": 0.2,
|
| 368 |
+
"epsilon_high": null,
|
| 369 |
+
"num_infer_workers": 1,
|
| 370 |
+
"vllm_device": [
|
| 371 |
+
"auto"
|
| 372 |
+
],
|
| 373 |
+
"vllm_gpu_memory_utilization": 0.9,
|
| 374 |
+
"vllm_max_model_len": null,
|
| 375 |
+
"vllm_max_num_seqs": 256,
|
| 376 |
+
"vllm_enforce_eager": false,
|
| 377 |
+
"vllm_limit_mm_per_prompt": null,
|
| 378 |
+
"vllm_enable_prefix_caching": true,
|
| 379 |
+
"cosine_min_len_value_wrong": -0.5,
|
| 380 |
+
"cosine_max_len_value_wrong": 0.0,
|
| 381 |
+
"cosine_min_len_value_correct": 1.0,
|
| 382 |
+
"cosine_max_len_value_correct": 0.5,
|
| 383 |
+
"cosine_max_len": null,
|
| 384 |
+
"repetition_n_grams": 3,
|
| 385 |
+
"repetition_max_penalty": -1.0,
|
| 386 |
+
"use_lmdeploy": false,
|
| 387 |
+
"lmdeploy_device": "auto",
|
| 388 |
+
"lmdeploy_session_len": null,
|
| 389 |
+
"lmdeploy_cache_max_entry_count": 0.8,
|
| 390 |
+
"async_generate": false,
|
| 391 |
+
"tensor_parallel_size": 1,
|
| 392 |
+
"sleep_level": 0,
|
| 393 |
+
"move_model_batches": null,
|
| 394 |
+
"offload_optimizer": false,
|
| 395 |
+
"offload_model": false,
|
| 396 |
+
"gc_collect_after_offload": false,
|
| 397 |
+
"multi_turn_func": null,
|
| 398 |
+
"dynamic_sample": false,
|
| 399 |
+
"max_resample_times": 3,
|
| 400 |
+
"overlong_filter": false,
|
| 401 |
+
"soft_max_length": null,
|
| 402 |
+
"soft_cache_length": null,
|
| 403 |
+
"scale_rewards": true,
|
| 404 |
+
"wandb_log_unique_prompts": null,
|
| 405 |
+
"vllm_server_host": null,
|
| 406 |
+
"vllm_server_port": 8000,
|
| 407 |
+
"vllm_server_timeout": 240.0,
|
| 408 |
+
"num_generations": 8,
|
| 409 |
+
"max_completion_length": 512,
|
| 410 |
+
"ds3_gather_for_generation": true,
|
| 411 |
+
"reward_funcs": [],
|
| 412 |
+
"reward_weights": null,
|
| 413 |
+
"log_completions": false,
|
| 414 |
+
"use_vllm": false,
|
| 415 |
+
"num_iterations": 1,
|
| 416 |
+
"rlhf_type": "dpo",
|
| 417 |
+
"ref_model": null,
|
| 418 |
+
"ref_model_type": null,
|
| 419 |
+
"ref_model_revision": null,
|
| 420 |
+
"beta": 0.1,
|
| 421 |
+
"label_smoothing": 0,
|
| 422 |
+
"rpo_alpha": 1.0,
|
| 423 |
+
"cpo_alpha": 1.0,
|
| 424 |
+
"simpo_gamma": 1,
|
| 425 |
+
"desirable_weight": 1.0,
|
| 426 |
+
"undesirable_weight": 1.0,
|
| 427 |
+
"center_rewards_coefficient": null,
|
| 428 |
+
"rank": 0,
|
| 429 |
+
"global_world_size": 1,
|
| 430 |
+
"local_world_size": 1,
|
| 431 |
+
"model_suffix": "Llama-3.2-11B-Vision-Instruct",
|
| 432 |
+
"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)",
|
| 433 |
+
"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 0x7f4f05f4ac20>, 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=[])",
|
| 434 |
+
"model_dir": "/data1/chenjiazun/LLM/Llama-3.2-11B-Vision-Instruct",
|
| 435 |
+
"hub": "<class 'swift.hub.hub.MSHub'>",
|
| 436 |
+
"evaluation_strategy": "steps",
|
| 437 |
+
"training_args": "DPOConfig(output_dir='/data2/kdd/crag/cjz/output/task3_dpo_gt6_task2_gt30.3+task3gt5_0.1vp/v0-20250611-011957', 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=1, per_device_eval_batch_size=1, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=32, 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=1.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/task3_dpo_gt6_task2_gt30.3+task3gt5_0.1vp/v0-20250611-011957/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/task3_dpo_gt6_task2_gt30.3+task3gt5_0.1vp/v0-20250611-011957', 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=None, 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=4096, 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)"
|
| 438 |
+
}
|
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:5d85d3d27fd8ffd845d095fc8135f039e37018a2a4dc1db4126f1132ada08658
|
| 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.1430316755564826,
|
| 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.0009535445037098841,
|
| 14 |
+
"grad_norm": 9.156327247619629,
|
| 15 |
+
"learning_rate": 3.7735849056603773e-06,
|
| 16 |
+
"logits/chosen": -0.6435090899467468,
|
| 17 |
+
"logits/rejected": -0.6501147150993347,
|
| 18 |
+
"logps/chosen": -12.8789701461792,
|
| 19 |
+
"logps/rejected": -12.67190170288086,
|
| 20 |
+
"loss": 1.3995760679244995,
|
| 21 |
+
"memory(GiB)": 46.35,
|
| 22 |
+
"nll_loss": 0.7064292430877686,
|
| 23 |
+
"rewards/accuracies": 0.0,
|
| 24 |
+
"rewards/chosen": 0.0,
|
| 25 |
+
"rewards/margins": 0.0,
|
| 26 |
+
"rewards/rejected": 0.0,
|
| 27 |
+
"step": 1,
|
| 28 |
+
"train_speed(iter/s)": 0.005503
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"epoch": 0.0019070890074197682,
|
| 32 |
+
"grad_norm": 3.750561237335205,
|
| 33 |
+
"learning_rate": 7.547169811320755e-06,
|
| 34 |
+
"logits/chosen": -0.5811247229576111,
|
| 35 |
+
"logits/rejected": -0.5784763693809509,
|
| 36 |
+
"logps/chosen": -11.550155639648438,
|
| 37 |
+
"logps/rejected": -10.463687896728516,
|
| 38 |
+
"loss": 1.1846946477890015,
|
| 39 |
+
"memory(GiB)": 46.35,
|
| 40 |
+
"nll_loss": 0.4915475845336914,
|
| 41 |
+
"rewards/accuracies": 0.0,
|
| 42 |
+
"rewards/chosen": 0.0,
|
| 43 |
+
"rewards/margins": 0.0,
|
| 44 |
+
"rewards/rejected": 0.0,
|
| 45 |
+
"step": 2,
|
| 46 |
+
"train_speed(iter/s)": 0.005627
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"epoch": 0.002860633511129652,
|
| 50 |
+
"grad_norm": 9.728832244873047,
|
| 51 |
+
"learning_rate": 1.1320754716981132e-05,
|
| 52 |
+
"logits/chosen": -0.6211333274841309,
|
| 53 |
+
"logits/rejected": -0.6250367760658264,
|
| 54 |
+
"logps/chosen": -13.265661239624023,
|
| 55 |
+
"logps/rejected": -17.363025665283203,
|
| 56 |
+
"loss": 1.4022446870803833,
|
| 57 |
+
"memory(GiB)": 46.35,
|
| 58 |
+
"nll_loss": 0.7087438106536865,
|
| 59 |
+
"rewards/accuracies": 0.46875,
|
| 60 |
+
"rewards/chosen": 0.0019078836776316166,
|
| 61 |
+
"rewards/margins": -0.0005585900507867336,
|
| 62 |
+
"rewards/rejected": 0.002466473262757063,
|
| 63 |
+
"step": 3,
|
| 64 |
+
"train_speed(iter/s)": 0.005589
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"epoch": 0.0038141780148395364,
|
| 68 |
+
"grad_norm": 4.456181049346924,
|
| 69 |
+
"learning_rate": 1.509433962264151e-05,
|
| 70 |
+
"logits/chosen": -0.6295092105865479,
|
| 71 |
+
"logits/rejected": -0.6310409307479858,
|
| 72 |
+
"logps/chosen": -20.259197235107422,
|
| 73 |
+
"logps/rejected": -15.924739837646484,
|
| 74 |
+
"loss": 1.4261250495910645,
|
| 75 |
+
"memory(GiB)": 46.35,
|
| 76 |
+
"nll_loss": 0.7309765815734863,
|
| 77 |
+
"rewards/accuracies": 0.4375,
|
| 78 |
+
"rewards/chosen": -0.003216111334040761,
|
| 79 |
+
"rewards/margins": -0.003784709610044956,
|
| 80 |
+
"rewards/rejected": 0.0005685988580808043,
|
| 81 |
+
"step": 4,
|
| 82 |
+
"train_speed(iter/s)": 0.005576
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"epoch": 0.004767722518549421,
|
| 86 |
+
"grad_norm": 5.137070178985596,
|
| 87 |
+
"learning_rate": 1.8867924528301888e-05,
|
| 88 |
+
"logits/chosen": -0.6352660059928894,
|
| 89 |
+
"logits/rejected": -0.6393146514892578,
|
| 90 |
+
"logps/chosen": -11.320538520812988,
|
| 91 |
+
"logps/rejected": -18.213350296020508,
|
| 92 |
+
"loss": 1.3472224473953247,
|
| 93 |
+
"memory(GiB)": 46.35,
|
| 94 |
+
"nll_loss": 0.659798800945282,
|
| 95 |
+
"rewards/accuracies": 0.5,
|
| 96 |
+
"rewards/chosen": 0.009231260977685452,
|
| 97 |
+
"rewards/margins": 0.011925339698791504,
|
| 98 |
+
"rewards/rejected": -0.0026940787211060524,
|
| 99 |
+
"step": 5,
|
| 100 |
+
"train_speed(iter/s)": 0.005563
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 0.005721267022259304,
|
| 104 |
+
"grad_norm": 4.738046169281006,
|
| 105 |
+
"learning_rate": 2.2641509433962265e-05,
|
| 106 |
+
"logits/chosen": -0.621586799621582,
|
| 107 |
+
"logits/rejected": -0.6225624680519104,
|
| 108 |
+
"logps/chosen": -13.36612319946289,
|
| 109 |
+
"logps/rejected": -12.092449188232422,
|
| 110 |
+
"loss": 1.2847044467926025,
|
| 111 |
+
"memory(GiB)": 46.35,
|
| 112 |
+
"nll_loss": 0.593052089214325,
|
| 113 |
+
"rewards/accuracies": 0.46875,
|
| 114 |
+
"rewards/chosen": 0.001901240088045597,
|
| 115 |
+
"rewards/margins": 0.0050404006615281105,
|
| 116 |
+
"rewards/rejected": -0.0031391603406518698,
|
| 117 |
+
"step": 6,
|
| 118 |
+
"train_speed(iter/s)": 0.005557
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"epoch": 0.0066748115259691885,
|
| 122 |
+
"grad_norm": 4.152891159057617,
|
| 123 |
+
"learning_rate": 2.641509433962264e-05,
|
| 124 |
+
"logits/chosen": -0.6192730665206909,
|
| 125 |
+
"logits/rejected": -0.6235961318016052,
|
| 126 |
+
"logps/chosen": -12.630643844604492,
|
| 127 |
+
"logps/rejected": -15.917936325073242,
|
| 128 |
+
"loss": 1.2920165061950684,
|
| 129 |
+
"memory(GiB)": 46.35,
|
| 130 |
+
"nll_loss": 0.5905699133872986,
|
| 131 |
+
"rewards/accuracies": 0.4375,
|
| 132 |
+
"rewards/chosen": 0.016993187367916107,
|
| 133 |
+
"rewards/margins": -0.008502829819917679,
|
| 134 |
+
"rewards/rejected": 0.025496022775769234,
|
| 135 |
+
"step": 7,
|
| 136 |
+
"train_speed(iter/s)": 0.005538
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"epoch": 0.007628356029679073,
|
| 140 |
+
"grad_norm": 4.160374641418457,
|
| 141 |
+
"learning_rate": 3.018867924528302e-05,
|
| 142 |
+
"logits/chosen": -0.6182655692100525,
|
| 143 |
+
"logits/rejected": -0.6189552545547485,
|
| 144 |
+
"logps/chosen": -10.698919296264648,
|
| 145 |
+
"logps/rejected": -14.148299217224121,
|
| 146 |
+
"loss": 1.0840333700180054,
|
| 147 |
+
"memory(GiB)": 46.35,
|
| 148 |
+
"nll_loss": 0.3833664357662201,
|
| 149 |
+
"rewards/accuracies": 0.5,
|
| 150 |
+
"rewards/chosen": -0.006827078759670258,
|
| 151 |
+
"rewards/margins": 0.02289848029613495,
|
| 152 |
+
"rewards/rejected": -0.0297255702316761,
|
| 153 |
+
"step": 8,
|
| 154 |
+
"train_speed(iter/s)": 0.005529
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"epoch": 0.008581900533388956,
|
| 158 |
+
"grad_norm": 7.751194953918457,
|
| 159 |
+
"learning_rate": 3.39622641509434e-05,
|
| 160 |
+
"logits/chosen": -0.5885738134384155,
|
| 161 |
+
"logits/rejected": -0.5893712043762207,
|
| 162 |
+
"logps/chosen": -14.677619934082031,
|
| 163 |
+
"logps/rejected": -19.348114013671875,
|
| 164 |
+
"loss": 1.4759101867675781,
|
| 165 |
+
"memory(GiB)": 46.35,
|
| 166 |
+
"nll_loss": 0.7508934140205383,
|
| 167 |
+
"rewards/accuracies": 0.53125,
|
| 168 |
+
"rewards/chosen": -0.06757626682519913,
|
| 169 |
+
"rewards/margins": -0.03109188750386238,
|
| 170 |
+
"rewards/rejected": -0.036484383046627045,
|
| 171 |
+
"step": 9,
|
| 172 |
+
"train_speed(iter/s)": 0.005546
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"epoch": 0.009535445037098841,
|
| 176 |
+
"grad_norm": 5.425357818603516,
|
| 177 |
+
"learning_rate": 3.7735849056603776e-05,
|
| 178 |
+
"logits/chosen": -0.6194073557853699,
|
| 179 |
+
"logits/rejected": -0.6175965666770935,
|
| 180 |
+
"logps/chosen": -16.864004135131836,
|
| 181 |
+
"logps/rejected": -13.315808296203613,
|
| 182 |
+
"loss": 1.264159083366394,
|
| 183 |
+
"memory(GiB)": 46.35,
|
| 184 |
+
"nll_loss": 0.5726930499076843,
|
| 185 |
+
"rewards/accuracies": 0.5,
|
| 186 |
+
"rewards/chosen": -0.03342372551560402,
|
| 187 |
+
"rewards/margins": 0.05060018226504326,
|
| 188 |
+
"rewards/rejected": -0.08402392268180847,
|
| 189 |
+
"step": 10,
|
| 190 |
+
"train_speed(iter/s)": 0.005559
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"epoch": 0.010488989540808725,
|
| 194 |
+
"grad_norm": 4.181962013244629,
|
| 195 |
+
"learning_rate": 4.150943396226415e-05,
|
| 196 |
+
"logits/chosen": -0.6295148730278015,
|
| 197 |
+
"logits/rejected": -0.6311144232749939,
|
| 198 |
+
"logps/chosen": -17.622665405273438,
|
| 199 |
+
"logps/rejected": -22.323240280151367,
|
| 200 |
+
"loss": 1.1960029602050781,
|
| 201 |
+
"memory(GiB)": 46.35,
|
| 202 |
+
"nll_loss": 0.4701622426509857,
|
| 203 |
+
"rewards/accuracies": 0.46875,
|
| 204 |
+
"rewards/chosen": -0.05372938886284828,
|
| 205 |
+
"rewards/margins": -0.0011130962520837784,
|
| 206 |
+
"rewards/rejected": -0.05261629447340965,
|
| 207 |
+
"step": 11,
|
| 208 |
+
"train_speed(iter/s)": 0.00555
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"epoch": 0.011442534044518608,
|
| 212 |
+
"grad_norm": 3.3646111488342285,
|
| 213 |
+
"learning_rate": 4.528301886792453e-05,
|
| 214 |
+
"logits/chosen": -0.6567115783691406,
|
| 215 |
+
"logits/rejected": -0.6585782170295715,
|
| 216 |
+
"logps/chosen": -11.29936408996582,
|
| 217 |
+
"logps/rejected": -18.29203987121582,
|
| 218 |
+
"loss": 1.1115467548370361,
|
| 219 |
+
"memory(GiB)": 46.35,
|
| 220 |
+
"nll_loss": 0.4559721350669861,
|
| 221 |
+
"rewards/accuracies": 0.625,
|
| 222 |
+
"rewards/chosen": 0.08929000794887543,
|
| 223 |
+
"rewards/margins": 0.12125876545906067,
|
| 224 |
+
"rewards/rejected": -0.03196876123547554,
|
| 225 |
+
"step": 12,
|
| 226 |
+
"train_speed(iter/s)": 0.005551
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"epoch": 0.012396078548228493,
|
| 230 |
+
"grad_norm": 3.79887318611145,
|
| 231 |
+
"learning_rate": 4.9056603773584906e-05,
|
| 232 |
+
"logits/chosen": -0.5698614716529846,
|
| 233 |
+
"logits/rejected": -0.5705659985542297,
|
| 234 |
+
"logps/chosen": -16.54460906982422,
|
| 235 |
+
"logps/rejected": -16.52007484436035,
|
| 236 |
+
"loss": 1.2756099700927734,
|
| 237 |
+
"memory(GiB)": 46.35,
|
| 238 |
+
"nll_loss": 0.6095594167709351,
|
| 239 |
+
"rewards/accuracies": 0.53125,
|
| 240 |
+
"rewards/chosen": 0.08876940608024597,
|
| 241 |
+
"rewards/margins": 0.0944020226597786,
|
| 242 |
+
"rewards/rejected": -0.005632609128952026,
|
| 243 |
+
"step": 13,
|
| 244 |
+
"train_speed(iter/s)": 0.005543
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"epoch": 0.013349623051938377,
|
| 248 |
+
"grad_norm": 3.3852715492248535,
|
| 249 |
+
"learning_rate": 5.283018867924528e-05,
|
| 250 |
+
"logits/chosen": -0.5822104811668396,
|
| 251 |
+
"logits/rejected": -0.5813897848129272,
|
| 252 |
+
"logps/chosen": -15.234231948852539,
|
| 253 |
+
"logps/rejected": -15.407049179077148,
|
| 254 |
+
"loss": 1.2322038412094116,
|
| 255 |
+
"memory(GiB)": 46.35,
|
| 256 |
+
"nll_loss": 0.6042034029960632,
|
| 257 |
+
"rewards/accuracies": 0.6875,
|
| 258 |
+
"rewards/chosen": 0.1384495347738266,
|
| 259 |
+
"rewards/margins": 0.16144631803035736,
|
| 260 |
+
"rewards/rejected": -0.022996775805950165,
|
| 261 |
+
"step": 14,
|
| 262 |
+
"train_speed(iter/s)": 0.005541
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"epoch": 0.014303167555648262,
|
| 266 |
+
"grad_norm": 2.7666451930999756,
|
| 267 |
+
"learning_rate": 5.660377358490566e-05,
|
| 268 |
+
"logits/chosen": -0.5926915407180786,
|
| 269 |
+
"logits/rejected": -0.5929235816001892,
|
| 270 |
+
"logps/chosen": -14.370649337768555,
|
| 271 |
+
"logps/rejected": -14.672292709350586,
|
| 272 |
+
"loss": 1.268752098083496,
|
| 273 |
+
"memory(GiB)": 46.35,
|
| 274 |
+
"nll_loss": 0.5840609669685364,
|
| 275 |
+
"rewards/accuracies": 0.53125,
|
| 276 |
+
"rewards/chosen": 0.13987205922603607,
|
| 277 |
+
"rewards/margins": 0.04084888845682144,
|
| 278 |
+
"rewards/rejected": 0.09902316331863403,
|
| 279 |
+
"step": 15,
|
| 280 |
+
"train_speed(iter/s)": 0.005545
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"epoch": 0.015256712059358146,
|
| 284 |
+
"grad_norm": 3.996248960494995,
|
| 285 |
+
"learning_rate": 6.037735849056604e-05,
|
| 286 |
+
"logits/chosen": -0.6161852478981018,
|
| 287 |
+
"logits/rejected": -0.6143717169761658,
|
| 288 |
+
"logps/chosen": -17.775665283203125,
|
| 289 |
+
"logps/rejected": -16.12677001953125,
|
| 290 |
+
"loss": 1.3597179651260376,
|
| 291 |
+
"memory(GiB)": 46.35,
|
| 292 |
+
"nll_loss": 0.7031959295272827,
|
| 293 |
+
"rewards/accuracies": 0.59375,
|
| 294 |
+
"rewards/chosen": 0.14894011616706848,
|
| 295 |
+
"rewards/margins": 0.10105747729539871,
|
| 296 |
+
"rewards/rejected": 0.047882646322250366,
|
| 297 |
+
"step": 16,
|
| 298 |
+
"train_speed(iter/s)": 0.005542
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"epoch": 0.01621025656306803,
|
| 302 |
+
"grad_norm": 3.343315601348877,
|
| 303 |
+
"learning_rate": 6.415094339622641e-05,
|
| 304 |
+
"logits/chosen": -0.5822757482528687,
|
| 305 |
+
"logits/rejected": -0.5849615931510925,
|
| 306 |
+
"logps/chosen": -11.210283279418945,
|
| 307 |
+
"logps/rejected": -17.080455780029297,
|
| 308 |
+
"loss": 1.1165493726730347,
|
| 309 |
+
"memory(GiB)": 46.35,
|
| 310 |
+
"nll_loss": 0.4471588432788849,
|
| 311 |
+
"rewards/accuracies": 0.5625,
|
| 312 |
+
"rewards/chosen": 0.13627491891384125,
|
| 313 |
+
"rewards/margins": 0.07742398977279663,
|
| 314 |
+
"rewards/rejected": 0.058850936591625214,
|
| 315 |
+
"step": 17,
|
| 316 |
+
"train_speed(iter/s)": 0.005542
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"epoch": 0.017163801066777912,
|
| 320 |
+
"grad_norm": 2.5265791416168213,
|
| 321 |
+
"learning_rate": 6.79245283018868e-05,
|
| 322 |
+
"logits/chosen": -0.5711070895195007,
|
| 323 |
+
"logits/rejected": -0.5730242729187012,
|
| 324 |
+
"logps/chosen": -14.197075843811035,
|
| 325 |
+
"logps/rejected": -15.04891586303711,
|
| 326 |
+
"loss": 1.1029906272888184,
|
| 327 |
+
"memory(GiB)": 46.35,
|
| 328 |
+
"nll_loss": 0.45255714654922485,
|
| 329 |
+
"rewards/accuracies": 0.53125,
|
| 330 |
+
"rewards/chosen": 0.1637343168258667,
|
| 331 |
+
"rewards/margins": 0.1597798466682434,
|
| 332 |
+
"rewards/rejected": 0.0039544664323329926,
|
| 333 |
+
"step": 18,
|
| 334 |
+
"train_speed(iter/s)": 0.005535
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"epoch": 0.0181173455704878,
|
| 338 |
+
"grad_norm": 4.558610916137695,
|
| 339 |
+
"learning_rate": 7.169811320754717e-05,
|
| 340 |
+
"logits/chosen": -0.572235643863678,
|
| 341 |
+
"logits/rejected": -0.5743283629417419,
|
| 342 |
+
"logps/chosen": -9.268120765686035,
|
| 343 |
+
"logps/rejected": -12.118350982666016,
|
| 344 |
+
"loss": 1.1668801307678223,
|
| 345 |
+
"memory(GiB)": 46.35,
|
| 346 |
+
"nll_loss": 0.5335167646408081,
|
| 347 |
+
"rewards/accuracies": 0.6875,
|
| 348 |
+
"rewards/chosen": 0.19031290709972382,
|
| 349 |
+
"rewards/margins": 0.15231794118881226,
|
| 350 |
+
"rewards/rejected": 0.03799496963620186,
|
| 351 |
+
"step": 19,
|
| 352 |
+
"train_speed(iter/s)": 0.005519
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"epoch": 0.019070890074197683,
|
| 356 |
+
"grad_norm": 3.7134947776794434,
|
| 357 |
+
"learning_rate": 7.547169811320755e-05,
|
| 358 |
+
"logits/chosen": -0.585778534412384,
|
| 359 |
+
"logits/rejected": -0.5890673398971558,
|
| 360 |
+
"logps/chosen": -8.275850296020508,
|
| 361 |
+
"logps/rejected": -16.348182678222656,
|
| 362 |
+
"loss": 1.0512793064117432,
|
| 363 |
+
"memory(GiB)": 46.35,
|
| 364 |
+
"nll_loss": 0.39501887559890747,
|
| 365 |
+
"rewards/accuracies": 0.5625,
|
| 366 |
+
"rewards/chosen": 0.1688304841518402,
|
| 367 |
+
"rewards/margins": 0.12996332347393036,
|
| 368 |
+
"rewards/rejected": 0.03886716440320015,
|
| 369 |
+
"step": 20,
|
| 370 |
+
"train_speed(iter/s)": 0.005525
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"epoch": 0.020024434577907566,
|
| 374 |
+
"grad_norm": 3.5586955547332764,
|
| 375 |
+
"learning_rate": 7.924528301886794e-05,
|
| 376 |
+
"logits/chosen": -0.5529674291610718,
|
| 377 |
+
"logits/rejected": -0.5549667477607727,
|
| 378 |
+
"logps/chosen": -14.883947372436523,
|
| 379 |
+
"logps/rejected": -19.51848793029785,
|
| 380 |
+
"loss": 1.2289440631866455,
|
| 381 |
+
"memory(GiB)": 46.35,
|
| 382 |
+
"nll_loss": 0.5555365085601807,
|
| 383 |
+
"rewards/accuracies": 0.625,
|
| 384 |
+
"rewards/chosen": 0.06489060074090958,
|
| 385 |
+
"rewards/margins": 0.08113954961299896,
|
| 386 |
+
"rewards/rejected": -0.016248945146799088,
|
| 387 |
+
"step": 21,
|
| 388 |
+
"train_speed(iter/s)": 0.005523
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"epoch": 0.02097797908161745,
|
| 392 |
+
"grad_norm": 2.970125913619995,
|
| 393 |
+
"learning_rate": 8.30188679245283e-05,
|
| 394 |
+
"logits/chosen": -0.5630563497543335,
|
| 395 |
+
"logits/rejected": -0.5648879408836365,
|
| 396 |
+
"logps/chosen": -9.709285736083984,
|
| 397 |
+
"logps/rejected": -14.605964660644531,
|
| 398 |
+
"loss": 1.0496439933776855,
|
| 399 |
+
"memory(GiB)": 46.35,
|
| 400 |
+
"nll_loss": 0.4030095934867859,
|
| 401 |
+
"rewards/accuracies": 0.59375,
|
| 402 |
+
"rewards/chosen": 0.13459333777427673,
|
| 403 |
+
"rewards/margins": 0.13257721066474915,
|
| 404 |
+
"rewards/rejected": 0.0020161233842372894,
|
| 405 |
+
"step": 22,
|
| 406 |
+
"train_speed(iter/s)": 0.005527
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"epoch": 0.021931523585327333,
|
| 410 |
+
"grad_norm": 3.7449333667755127,
|
| 411 |
+
"learning_rate": 8.679245283018869e-05,
|
| 412 |
+
"logits/chosen": -0.5388307571411133,
|
| 413 |
+
"logits/rejected": -0.5379776954650879,
|
| 414 |
+
"logps/chosen": -20.206819534301758,
|
| 415 |
+
"logps/rejected": -10.312554359436035,
|
| 416 |
+
"loss": 1.3675460815429688,
|
| 417 |
+
"memory(GiB)": 46.35,
|
| 418 |
+
"nll_loss": 0.7346486449241638,
|
| 419 |
+
"rewards/accuracies": 0.71875,
|
| 420 |
+
"rewards/chosen": 0.22365330159664154,
|
| 421 |
+
"rewards/margins": 0.19076848030090332,
|
| 422 |
+
"rewards/rejected": 0.032884806394577026,
|
| 423 |
+
"step": 23,
|
| 424 |
+
"train_speed(iter/s)": 0.005527
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"epoch": 0.022885068089037217,
|
| 428 |
+
"grad_norm": 4.3556928634643555,
|
| 429 |
+
"learning_rate": 9.056603773584906e-05,
|
| 430 |
+
"logits/chosen": -0.5620133876800537,
|
| 431 |
+
"logits/rejected": -0.5651191473007202,
|
| 432 |
+
"logps/chosen": -13.681132316589355,
|
| 433 |
+
"logps/rejected": -17.737977981567383,
|
| 434 |
+
"loss": 1.427290439605713,
|
| 435 |
+
"memory(GiB)": 46.35,
|
| 436 |
+
"nll_loss": 0.7979669570922852,
|
| 437 |
+
"rewards/accuracies": 0.6875,
|
| 438 |
+
"rewards/chosen": 0.20859572291374207,
|
| 439 |
+
"rewards/margins": 0.19208168983459473,
|
| 440 |
+
"rewards/rejected": 0.01651405170559883,
|
| 441 |
+
"step": 24,
|
| 442 |
+
"train_speed(iter/s)": 0.005528
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"epoch": 0.023838612592747103,
|
| 446 |
+
"grad_norm": 2.59773850440979,
|
| 447 |
+
"learning_rate": 9.433962264150944e-05,
|
| 448 |
+
"logits/chosen": -0.5109421014785767,
|
| 449 |
+
"logits/rejected": -0.5130017995834351,
|
| 450 |
+
"logps/chosen": -11.422687530517578,
|
| 451 |
+
"logps/rejected": -19.77487564086914,
|
| 452 |
+
"loss": 1.0190178155899048,
|
| 453 |
+
"memory(GiB)": 46.35,
|
| 454 |
+
"nll_loss": 0.3792160749435425,
|
| 455 |
+
"rewards/accuracies": 0.625,
|
| 456 |
+
"rewards/chosen": 0.17286184430122375,
|
| 457 |
+
"rewards/margins": 0.1656832993030548,
|
| 458 |
+
"rewards/rejected": 0.007178528234362602,
|
| 459 |
+
"step": 25,
|
| 460 |
+
"train_speed(iter/s)": 0.005528
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"epoch": 0.024792157096456987,
|
| 464 |
+
"grad_norm": 3.2465970516204834,
|
| 465 |
+
"learning_rate": 9.811320754716981e-05,
|
| 466 |
+
"logits/chosen": -0.4895856976509094,
|
| 467 |
+
"logits/rejected": -0.490243524312973,
|
| 468 |
+
"logps/chosen": -8.71623420715332,
|
| 469 |
+
"logps/rejected": -7.8305277824401855,
|
| 470 |
+
"loss": 1.0329375267028809,
|
| 471 |
+
"memory(GiB)": 46.35,
|
| 472 |
+
"nll_loss": 0.3276180028915405,
|
| 473 |
+
"rewards/accuracies": 0.4375,
|
| 474 |
+
"rewards/chosen": 0.13548454642295837,
|
| 475 |
+
"rewards/margins": 0.014407174661755562,
|
| 476 |
+
"rewards/rejected": 0.12107735872268677,
|
| 477 |
+
"step": 26,
|
| 478 |
+
"train_speed(iter/s)": 0.005523
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"epoch": 0.02574570160016687,
|
| 482 |
+
"grad_norm": 2.9056291580200195,
|
| 483 |
+
"learning_rate": 0.0001018867924528302,
|
| 484 |
+
"logits/chosen": -0.5098599195480347,
|
| 485 |
+
"logits/rejected": -0.5105721950531006,
|
| 486 |
+
"logps/chosen": -17.795873641967773,
|
| 487 |
+
"logps/rejected": -13.080977439880371,
|
| 488 |
+
"loss": 1.1328891515731812,
|
| 489 |
+
"memory(GiB)": 46.35,
|
| 490 |
+
"nll_loss": 0.4805879294872284,
|
| 491 |
+
"rewards/accuracies": 0.6875,
|
| 492 |
+
"rewards/chosen": 0.18526741862297058,
|
| 493 |
+
"rewards/margins": 0.11028175055980682,
|
| 494 |
+
"rewards/rejected": 0.07498566806316376,
|
| 495 |
+
"step": 27,
|
| 496 |
+
"train_speed(iter/s)": 0.005528
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"epoch": 0.026699246103876754,
|
| 500 |
+
"grad_norm": 3.9831905364990234,
|
| 501 |
+
"learning_rate": 0.00010566037735849057,
|
| 502 |
+
"logits/chosen": -0.5249112844467163,
|
| 503 |
+
"logits/rejected": -0.5256497859954834,
|
| 504 |
+
"logps/chosen": -9.17713737487793,
|
| 505 |
+
"logps/rejected": -16.791439056396484,
|
| 506 |
+
"loss": 1.0309749841690063,
|
| 507 |
+
"memory(GiB)": 46.35,
|
| 508 |
+
"nll_loss": 0.49379563331604004,
|
| 509 |
+
"rewards/accuracies": 0.71875,
|
| 510 |
+
"rewards/chosen": 0.26130685210227966,
|
| 511 |
+
"rewards/margins": 0.4484291970729828,
|
| 512 |
+
"rewards/rejected": -0.1871223747730255,
|
| 513 |
+
"step": 28,
|
| 514 |
+
"train_speed(iter/s)": 0.00553
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"epoch": 0.027652790607586637,
|
| 518 |
+
"grad_norm": 3.447692394256592,
|
| 519 |
+
"learning_rate": 0.00010943396226415095,
|
| 520 |
+
"logits/chosen": -0.46926626563072205,
|
| 521 |
+
"logits/rejected": -0.474046528339386,
|
| 522 |
+
"logps/chosen": -10.564407348632812,
|
| 523 |
+
"logps/rejected": -13.679093360900879,
|
| 524 |
+
"loss": 1.0266515016555786,
|
| 525 |
+
"memory(GiB)": 46.35,
|
| 526 |
+
"nll_loss": 0.4402708113193512,
|
| 527 |
+
"rewards/accuracies": 0.8125,
|
| 528 |
+
"rewards/chosen": 0.25625136494636536,
|
| 529 |
+
"rewards/margins": 0.27123552560806274,
|
| 530 |
+
"rewards/rejected": -0.014984178356826305,
|
| 531 |
+
"step": 29,
|
| 532 |
+
"train_speed(iter/s)": 0.005529
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"epoch": 0.028606335111296524,
|
| 536 |
+
"grad_norm": 2.3513646125793457,
|
| 537 |
+
"learning_rate": 0.00011320754716981132,
|
| 538 |
+
"logits/chosen": -0.4841839671134949,
|
| 539 |
+
"logits/rejected": -0.4823201894760132,
|
| 540 |
+
"logps/chosen": -16.52553367614746,
|
| 541 |
+
"logps/rejected": -12.728946685791016,
|
| 542 |
+
"loss": 1.051925539970398,
|
| 543 |
+
"memory(GiB)": 46.35,
|
| 544 |
+
"nll_loss": 0.5132753252983093,
|
| 545 |
+
"rewards/accuracies": 0.875,
|
| 546 |
+
"rewards/chosen": 0.28733503818511963,
|
| 547 |
+
"rewards/margins": 0.3806324601173401,
|
| 548 |
+
"rewards/rejected": -0.09329745918512344,
|
| 549 |
+
"step": 30,
|
| 550 |
+
"train_speed(iter/s)": 0.00553
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"epoch": 0.029559879615006408,
|
| 554 |
+
"grad_norm": 2.8920440673828125,
|
| 555 |
+
"learning_rate": 0.0001169811320754717,
|
| 556 |
+
"logits/chosen": -0.4617501497268677,
|
| 557 |
+
"logits/rejected": -0.4629114866256714,
|
| 558 |
+
"logps/chosen": -9.827648162841797,
|
| 559 |
+
"logps/rejected": -11.787566184997559,
|
| 560 |
+
"loss": 1.0702807903289795,
|
| 561 |
+
"memory(GiB)": 46.35,
|
| 562 |
+
"nll_loss": 0.4221873879432678,
|
| 563 |
+
"rewards/accuracies": 0.5625,
|
| 564 |
+
"rewards/chosen": 0.12683041393756866,
|
| 565 |
+
"rewards/margins": 0.20381762087345123,
|
| 566 |
+
"rewards/rejected": -0.07698723673820496,
|
| 567 |
+
"step": 31,
|
| 568 |
+
"train_speed(iter/s)": 0.005529
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"epoch": 0.03051342411871629,
|
| 572 |
+
"grad_norm": 3.150108575820923,
|
| 573 |
+
"learning_rate": 0.00012075471698113207,
|
| 574 |
+
"logits/chosen": -0.46168380975723267,
|
| 575 |
+
"logits/rejected": -0.45957043766975403,
|
| 576 |
+
"logps/chosen": -14.481122970581055,
|
| 577 |
+
"logps/rejected": -12.509255409240723,
|
| 578 |
+
"loss": 1.1068114042282104,
|
| 579 |
+
"memory(GiB)": 46.35,
|
| 580 |
+
"nll_loss": 0.4239238202571869,
|
| 581 |
+
"rewards/accuracies": 0.53125,
|
| 582 |
+
"rewards/chosen": 0.07766711711883545,
|
| 583 |
+
"rewards/margins": 0.11046308279037476,
|
| 584 |
+
"rewards/rejected": -0.03279596567153931,
|
| 585 |
+
"step": 32,
|
| 586 |
+
"train_speed(iter/s)": 0.005524
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"epoch": 0.03146696862242618,
|
| 590 |
+
"grad_norm": 4.185500621795654,
|
| 591 |
+
"learning_rate": 0.00012452830188679244,
|
| 592 |
+
"logits/chosen": -0.4712987542152405,
|
| 593 |
+
"logits/rejected": -0.47331178188323975,
|
| 594 |
+
"logps/chosen": -13.179000854492188,
|
| 595 |
+
"logps/rejected": -19.023120880126953,
|
| 596 |
+
"loss": 1.3572198152542114,
|
| 597 |
+
"memory(GiB)": 46.35,
|
| 598 |
+
"nll_loss": 0.7039042711257935,
|
| 599 |
+
"rewards/accuracies": 0.59375,
|
| 600 |
+
"rewards/chosen": 0.17201806604862213,
|
| 601 |
+
"rewards/margins": 0.16012105345726013,
|
| 602 |
+
"rewards/rejected": 0.011897009797394276,
|
| 603 |
+
"step": 33,
|
| 604 |
+
"train_speed(iter/s)": 0.005529
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"epoch": 0.03242051312613606,
|
| 608 |
+
"grad_norm": 3.005161762237549,
|
| 609 |
+
"learning_rate": 0.00012830188679245283,
|
| 610 |
+
"logits/chosen": -0.4754801392555237,
|
| 611 |
+
"logits/rejected": -0.4769393503665924,
|
| 612 |
+
"logps/chosen": -11.273967742919922,
|
| 613 |
+
"logps/rejected": -16.496191024780273,
|
| 614 |
+
"loss": 1.0072283744812012,
|
| 615 |
+
"memory(GiB)": 46.35,
|
| 616 |
+
"nll_loss": 0.41234296560287476,
|
| 617 |
+
"rewards/accuracies": 0.75,
|
| 618 |
+
"rewards/chosen": 0.22565320134162903,
|
| 619 |
+
"rewards/margins": 0.27443331480026245,
|
| 620 |
+
"rewards/rejected": -0.04878011345863342,
|
| 621 |
+
"step": 34,
|
| 622 |
+
"train_speed(iter/s)": 0.005526
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"epoch": 0.033374057629845945,
|
| 626 |
+
"grad_norm": 5.103848457336426,
|
| 627 |
+
"learning_rate": 0.0001320754716981132,
|
| 628 |
+
"logits/chosen": -0.44018203020095825,
|
| 629 |
+
"logits/rejected": -0.44089382886886597,
|
| 630 |
+
"logps/chosen": -15.832134246826172,
|
| 631 |
+
"logps/rejected": -19.550304412841797,
|
| 632 |
+
"loss": 1.2559186220169067,
|
| 633 |
+
"memory(GiB)": 46.35,
|
| 634 |
+
"nll_loss": 0.5793285965919495,
|
| 635 |
+
"rewards/accuracies": 0.53125,
|
| 636 |
+
"rewards/chosen": 0.09596908837556839,
|
| 637 |
+
"rewards/margins": 0.11671226471662521,
|
| 638 |
+
"rewards/rejected": -0.020743174478411674,
|
| 639 |
+
"step": 35,
|
| 640 |
+
"train_speed(iter/s)": 0.005527
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"epoch": 0.034327602133555825,
|
| 644 |
+
"grad_norm": 4.321141719818115,
|
| 645 |
+
"learning_rate": 0.0001358490566037736,
|
| 646 |
+
"logits/chosen": -0.49340876936912537,
|
| 647 |
+
"logits/rejected": -0.49693170189857483,
|
| 648 |
+
"logps/chosen": -17.06662940979004,
|
| 649 |
+
"logps/rejected": -20.88056755065918,
|
| 650 |
+
"loss": 1.2329245805740356,
|
| 651 |
+
"memory(GiB)": 46.35,
|
| 652 |
+
"nll_loss": 0.6244450807571411,
|
| 653 |
+
"rewards/accuracies": 0.65625,
|
| 654 |
+
"rewards/chosen": 0.2872624695301056,
|
| 655 |
+
"rewards/margins": 0.23183389008045197,
|
| 656 |
+
"rewards/rejected": 0.05542857572436333,
|
| 657 |
+
"step": 36,
|
| 658 |
+
"train_speed(iter/s)": 0.00553
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"epoch": 0.03528114663726571,
|
| 662 |
+
"grad_norm": 3.112792491912842,
|
| 663 |
+
"learning_rate": 0.00013962264150943395,
|
| 664 |
+
"logits/chosen": -0.4647415578365326,
|
| 665 |
+
"logits/rejected": -0.4648529291152954,
|
| 666 |
+
"logps/chosen": -12.979642868041992,
|
| 667 |
+
"logps/rejected": -13.105558395385742,
|
| 668 |
+
"loss": 1.1428803205490112,
|
| 669 |
+
"memory(GiB)": 46.35,
|
| 670 |
+
"nll_loss": 0.48155656456947327,
|
| 671 |
+
"rewards/accuracies": 0.53125,
|
| 672 |
+
"rewards/chosen": 0.19289334118366241,
|
| 673 |
+
"rewards/margins": 0.169374018907547,
|
| 674 |
+
"rewards/rejected": 0.023519329726696014,
|
| 675 |
+
"step": 37,
|
| 676 |
+
"train_speed(iter/s)": 0.005535
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"epoch": 0.0362346911409756,
|
| 680 |
+
"grad_norm": 4.363394260406494,
|
| 681 |
+
"learning_rate": 0.00014339622641509434,
|
| 682 |
+
"logits/chosen": -0.47051119804382324,
|
| 683 |
+
"logits/rejected": -0.4702276289463043,
|
| 684 |
+
"logps/chosen": -11.824732780456543,
|
| 685 |
+
"logps/rejected": -18.102703094482422,
|
| 686 |
+
"loss": 0.9977712631225586,
|
| 687 |
+
"memory(GiB)": 46.35,
|
| 688 |
+
"nll_loss": 0.48080000281333923,
|
| 689 |
+
"rewards/accuracies": 0.78125,
|
| 690 |
+
"rewards/chosen": 0.35463425517082214,
|
| 691 |
+
"rewards/margins": 0.5215649008750916,
|
| 692 |
+
"rewards/rejected": -0.166930690407753,
|
| 693 |
+
"step": 38,
|
| 694 |
+
"train_speed(iter/s)": 0.005537
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"epoch": 0.03718823564468548,
|
| 698 |
+
"grad_norm": 2.3291094303131104,
|
| 699 |
+
"learning_rate": 0.00014716981132075472,
|
| 700 |
+
"logits/chosen": -0.4471542239189148,
|
| 701 |
+
"logits/rejected": -0.44849908351898193,
|
| 702 |
+
"logps/chosen": -10.541170120239258,
|
| 703 |
+
"logps/rejected": -13.821127891540527,
|
| 704 |
+
"loss": 1.0517562627792358,
|
| 705 |
+
"memory(GiB)": 46.35,
|
| 706 |
+
"nll_loss": 0.4245188236236572,
|
| 707 |
+
"rewards/accuracies": 0.5625,
|
| 708 |
+
"rewards/chosen": 0.17497971653938293,
|
| 709 |
+
"rewards/margins": 0.2404995709657669,
|
| 710 |
+
"rewards/rejected": -0.06551986932754517,
|
| 711 |
+
"step": 39,
|
| 712 |
+
"train_speed(iter/s)": 0.005533
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"epoch": 0.038141780148395366,
|
| 716 |
+
"grad_norm": 2.5439131259918213,
|
| 717 |
+
"learning_rate": 0.0001509433962264151,
|
| 718 |
+
"logits/chosen": -0.43407440185546875,
|
| 719 |
+
"logits/rejected": -0.4330942928791046,
|
| 720 |
+
"logps/chosen": -12.606916427612305,
|
| 721 |
+
"logps/rejected": -8.916302680969238,
|
| 722 |
+
"loss": 1.1393225193023682,
|
| 723 |
+
"memory(GiB)": 46.35,
|
| 724 |
+
"nll_loss": 0.500526487827301,
|
| 725 |
+
"rewards/accuracies": 0.625,
|
| 726 |
+
"rewards/chosen": 0.15790946781635284,
|
| 727 |
+
"rewards/margins": 0.28719791769981384,
|
| 728 |
+
"rewards/rejected": -0.129288449883461,
|
| 729 |
+
"step": 40,
|
| 730 |
+
"train_speed(iter/s)": 0.005533
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"epoch": 0.039095324652105246,
|
| 734 |
+
"grad_norm": 2.752281904220581,
|
| 735 |
+
"learning_rate": 0.0001547169811320755,
|
| 736 |
+
"logits/chosen": -0.4207141399383545,
|
| 737 |
+
"logits/rejected": -0.42105770111083984,
|
| 738 |
+
"logps/chosen": -9.193354606628418,
|
| 739 |
+
"logps/rejected": -15.80713939666748,
|
| 740 |
+
"loss": 1.0188286304473877,
|
| 741 |
+
"memory(GiB)": 46.35,
|
| 742 |
+
"nll_loss": 0.41979092359542847,
|
| 743 |
+
"rewards/accuracies": 0.65625,
|
| 744 |
+
"rewards/chosen": 0.11082945019006729,
|
| 745 |
+
"rewards/margins": 0.3942355513572693,
|
| 746 |
+
"rewards/rejected": -0.2834060788154602,
|
| 747 |
+
"step": 41,
|
| 748 |
+
"train_speed(iter/s)": 0.005532
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"epoch": 0.04004886915581513,
|
| 752 |
+
"grad_norm": 2.4327123165130615,
|
| 753 |
+
"learning_rate": 0.00015849056603773587,
|
| 754 |
+
"logits/chosen": -0.445608913898468,
|
| 755 |
+
"logits/rejected": -0.4462995231151581,
|
| 756 |
+
"logps/chosen": -8.890420913696289,
|
| 757 |
+
"logps/rejected": -9.104397773742676,
|
| 758 |
+
"loss": 1.0348408222198486,
|
| 759 |
+
"memory(GiB)": 46.35,
|
| 760 |
+
"nll_loss": 0.4377897083759308,
|
| 761 |
+
"rewards/accuracies": 0.71875,
|
| 762 |
+
"rewards/chosen": 0.1634826809167862,
|
| 763 |
+
"rewards/margins": 0.28891459107398987,
|
| 764 |
+
"rewards/rejected": -0.12543192505836487,
|
| 765 |
+
"step": 42,
|
| 766 |
+
"train_speed(iter/s)": 0.005537
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"epoch": 0.04100241365952501,
|
| 770 |
+
"grad_norm": 2.331282377243042,
|
| 771 |
+
"learning_rate": 0.00016226415094339625,
|
| 772 |
+
"logits/chosen": -0.4530089497566223,
|
| 773 |
+
"logits/rejected": -0.4580504298210144,
|
| 774 |
+
"logps/chosen": -7.02070426940918,
|
| 775 |
+
"logps/rejected": -22.712093353271484,
|
| 776 |
+
"loss": 0.876542329788208,
|
| 777 |
+
"memory(GiB)": 46.35,
|
| 778 |
+
"nll_loss": 0.3533342182636261,
|
| 779 |
+
"rewards/accuracies": 0.78125,
|
| 780 |
+
"rewards/chosen": 0.29712867736816406,
|
| 781 |
+
"rewards/margins": 0.5244494676589966,
|
| 782 |
+
"rewards/rejected": -0.22732074558734894,
|
| 783 |
+
"step": 43,
|
| 784 |
+
"train_speed(iter/s)": 0.005538
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"epoch": 0.0419559581632349,
|
| 788 |
+
"grad_norm": 2.865417003631592,
|
| 789 |
+
"learning_rate": 0.0001660377358490566,
|
| 790 |
+
"logits/chosen": -0.4700409770011902,
|
| 791 |
+
"logits/rejected": -0.4735233187675476,
|
| 792 |
+
"logps/chosen": -12.126070022583008,
|
| 793 |
+
"logps/rejected": -24.352678298950195,
|
| 794 |
+
"loss": 1.157395362854004,
|
| 795 |
+
"memory(GiB)": 46.35,
|
| 796 |
+
"nll_loss": 0.5185694694519043,
|
| 797 |
+
"rewards/accuracies": 0.65625,
|
| 798 |
+
"rewards/chosen": 0.1286190301179886,
|
| 799 |
+
"rewards/margins": 0.2031334638595581,
|
| 800 |
+
"rewards/rejected": -0.07451442629098892,
|
| 801 |
+
"step": 44,
|
| 802 |
+
"train_speed(iter/s)": 0.005538
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"epoch": 0.042909502666944786,
|
| 806 |
+
"grad_norm": 2.9107770919799805,
|
| 807 |
+
"learning_rate": 0.000169811320754717,
|
| 808 |
+
"logits/chosen": -0.45035916566848755,
|
| 809 |
+
"logits/rejected": -0.4494967758655548,
|
| 810 |
+
"logps/chosen": -17.021671295166016,
|
| 811 |
+
"logps/rejected": -16.504793167114258,
|
| 812 |
+
"loss": 1.2039690017700195,
|
| 813 |
+
"memory(GiB)": 46.35,
|
| 814 |
+
"nll_loss": 0.5990548729896545,
|
| 815 |
+
"rewards/accuracies": 0.6875,
|
| 816 |
+
"rewards/chosen": 0.22049224376678467,
|
| 817 |
+
"rewards/margins": 0.25519850850105286,
|
| 818 |
+
"rewards/rejected": -0.03470626473426819,
|
| 819 |
+
"step": 45,
|
| 820 |
+
"train_speed(iter/s)": 0.005534
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"epoch": 0.043863047170654666,
|
| 824 |
+
"grad_norm": 2.5569493770599365,
|
| 825 |
+
"learning_rate": 0.00017358490566037738,
|
| 826 |
+
"logits/chosen": -0.4576927423477173,
|
| 827 |
+
"logits/rejected": -0.4589836597442627,
|
| 828 |
+
"logps/chosen": -15.28840160369873,
|
| 829 |
+
"logps/rejected": -21.630834579467773,
|
| 830 |
+
"loss": 1.0875338315963745,
|
| 831 |
+
"memory(GiB)": 46.35,
|
| 832 |
+
"nll_loss": 0.5480765104293823,
|
| 833 |
+
"rewards/accuracies": 0.71875,
|
| 834 |
+
"rewards/chosen": 0.2394683063030243,
|
| 835 |
+
"rewards/margins": 0.43596386909484863,
|
| 836 |
+
"rewards/rejected": -0.19649554789066315,
|
| 837 |
+
"step": 46,
|
| 838 |
+
"train_speed(iter/s)": 0.005534
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"epoch": 0.04481659167436455,
|
| 842 |
+
"grad_norm": 2.6082468032836914,
|
| 843 |
+
"learning_rate": 0.00017735849056603776,
|
| 844 |
+
"logits/chosen": -0.44933271408081055,
|
| 845 |
+
"logits/rejected": -0.4535468816757202,
|
| 846 |
+
"logps/chosen": -13.067358016967773,
|
| 847 |
+
"logps/rejected": -25.21561622619629,
|
| 848 |
+
"loss": 0.9420796632766724,
|
| 849 |
+
"memory(GiB)": 46.35,
|
| 850 |
+
"nll_loss": 0.44500476121902466,
|
| 851 |
+
"rewards/accuracies": 0.8125,
|
| 852 |
+
"rewards/chosen": 0.3027465343475342,
|
| 853 |
+
"rewards/margins": 0.5848984122276306,
|
| 854 |
+
"rewards/rejected": -0.28215184807777405,
|
| 855 |
+
"step": 47,
|
| 856 |
+
"train_speed(iter/s)": 0.005534
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"epoch": 0.04577013617807443,
|
| 860 |
+
"grad_norm": 2.8552000522613525,
|
| 861 |
+
"learning_rate": 0.00018113207547169812,
|
| 862 |
+
"logits/chosen": -0.44021791219711304,
|
| 863 |
+
"logits/rejected": -0.4409497380256653,
|
| 864 |
+
"logps/chosen": -13.639575958251953,
|
| 865 |
+
"logps/rejected": -19.479185104370117,
|
| 866 |
+
"loss": 1.0777249336242676,
|
| 867 |
+
"memory(GiB)": 46.35,
|
| 868 |
+
"nll_loss": 0.5401443243026733,
|
| 869 |
+
"rewards/accuracies": 0.78125,
|
| 870 |
+
"rewards/chosen": 0.2517797350883484,
|
| 871 |
+
"rewards/margins": 0.4618395268917084,
|
| 872 |
+
"rewards/rejected": -0.21005980670452118,
|
| 873 |
+
"step": 48,
|
| 874 |
+
"train_speed(iter/s)": 0.00553
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"epoch": 0.04672368068178432,
|
| 878 |
+
"grad_norm": 2.530268430709839,
|
| 879 |
+
"learning_rate": 0.0001849056603773585,
|
| 880 |
+
"logits/chosen": -0.47215527296066284,
|
| 881 |
+
"logits/rejected": -0.47504734992980957,
|
| 882 |
+
"logps/chosen": -11.48988151550293,
|
| 883 |
+
"logps/rejected": -36.38770294189453,
|
| 884 |
+
"loss": 0.9700489640235901,
|
| 885 |
+
"memory(GiB)": 46.35,
|
| 886 |
+
"nll_loss": 0.46057599782943726,
|
| 887 |
+
"rewards/accuracies": 0.8125,
|
| 888 |
+
"rewards/chosen": 0.21084292232990265,
|
| 889 |
+
"rewards/margins": 0.533352792263031,
|
| 890 |
+
"rewards/rejected": -0.32250988483428955,
|
| 891 |
+
"step": 49,
|
| 892 |
+
"train_speed(iter/s)": 0.005532
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"epoch": 0.04767722518549421,
|
| 896 |
+
"grad_norm": 2.7035655975341797,
|
| 897 |
+
"learning_rate": 0.00018867924528301889,
|
| 898 |
+
"logits/chosen": -0.4868597388267517,
|
| 899 |
+
"logits/rejected": -0.4888378977775574,
|
| 900 |
+
"logps/chosen": -13.504924774169922,
|
| 901 |
+
"logps/rejected": -21.10767936706543,
|
| 902 |
+
"loss": 1.0414435863494873,
|
| 903 |
+
"memory(GiB)": 46.35,
|
| 904 |
+
"nll_loss": 0.5301634669303894,
|
| 905 |
+
"rewards/accuracies": 0.78125,
|
| 906 |
+
"rewards/chosen": 0.18318726122379303,
|
| 907 |
+
"rewards/margins": 0.619285523891449,
|
| 908 |
+
"rewards/rejected": -0.43609827756881714,
|
| 909 |
+
"step": 50,
|
| 910 |
+
"train_speed(iter/s)": 0.005531
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"epoch": 0.04863076968920409,
|
| 914 |
+
"grad_norm": 3.0783157348632812,
|
| 915 |
+
"learning_rate": 0.00019245283018867927,
|
| 916 |
+
"logits/chosen": -0.488979697227478,
|
| 917 |
+
"logits/rejected": -0.4920251965522766,
|
| 918 |
+
"logps/chosen": -6.389867305755615,
|
| 919 |
+
"logps/rejected": -23.881044387817383,
|
| 920 |
+
"loss": 0.7357016801834106,
|
| 921 |
+
"memory(GiB)": 46.35,
|
| 922 |
+
"nll_loss": 0.2519811689853668,
|
| 923 |
+
"rewards/accuracies": 0.8125,
|
| 924 |
+
"rewards/chosen": 0.22045277059078217,
|
| 925 |
+
"rewards/margins": 0.6349221467971802,
|
| 926 |
+
"rewards/rejected": -0.4144693613052368,
|
| 927 |
+
"step": 51,
|
| 928 |
+
"train_speed(iter/s)": 0.00552
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"epoch": 0.049584314192913974,
|
| 932 |
+
"grad_norm": 2.936868906021118,
|
| 933 |
+
"learning_rate": 0.00019622641509433963,
|
| 934 |
+
"logits/chosen": -0.49481600522994995,
|
| 935 |
+
"logits/rejected": -0.4982725977897644,
|
| 936 |
+
"logps/chosen": -7.566017150878906,
|
| 937 |
+
"logps/rejected": -28.77280044555664,
|
| 938 |
+
"loss": 0.8173349499702454,
|
| 939 |
+
"memory(GiB)": 46.35,
|
| 940 |
+
"nll_loss": 0.2955441176891327,
|
| 941 |
+
"rewards/accuracies": 0.8125,
|
| 942 |
+
"rewards/chosen": 0.12177374958992004,
|
| 943 |
+
"rewards/margins": 0.6433938145637512,
|
| 944 |
+
"rewards/rejected": -0.5216200947761536,
|
| 945 |
+
"step": 52,
|
| 946 |
+
"train_speed(iter/s)": 0.005518
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"epoch": 0.050537858696623854,
|
| 950 |
+
"grad_norm": 4.539004802703857,
|
| 951 |
+
"learning_rate": 0.0002,
|
| 952 |
+
"logits/chosen": -0.5527479648590088,
|
| 953 |
+
"logits/rejected": -0.5551312565803528,
|
| 954 |
+
"logps/chosen": -15.817987442016602,
|
| 955 |
+
"logps/rejected": -22.29538345336914,
|
| 956 |
+
"loss": 1.1207798719406128,
|
| 957 |
+
"memory(GiB)": 46.35,
|
| 958 |
+
"nll_loss": 0.5884667038917542,
|
| 959 |
+
"rewards/accuracies": 0.75,
|
| 960 |
+
"rewards/chosen": 0.18014809489250183,
|
| 961 |
+
"rewards/margins": 0.6673915982246399,
|
| 962 |
+
"rewards/rejected": -0.4872434735298157,
|
| 963 |
+
"step": 53,
|
| 964 |
+
"train_speed(iter/s)": 0.005519
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"epoch": 0.05149140320033374,
|
| 968 |
+
"grad_norm": 4.143117904663086,
|
| 969 |
+
"learning_rate": 0.00019999950154813253,
|
| 970 |
+
"logits/chosen": -0.5354641675949097,
|
| 971 |
+
"logits/rejected": -0.5355905294418335,
|
| 972 |
+
"logps/chosen": -12.528202056884766,
|
| 973 |
+
"logps/rejected": -18.404970169067383,
|
| 974 |
+
"loss": 1.0412046909332275,
|
| 975 |
+
"memory(GiB)": 46.35,
|
| 976 |
+
"nll_loss": 0.5650326609611511,
|
| 977 |
+
"rewards/accuracies": 0.8125,
|
| 978 |
+
"rewards/chosen": 0.17625540494918823,
|
| 979 |
+
"rewards/margins": 0.8302103877067566,
|
| 980 |
+
"rewards/rejected": -0.6539549827575684,
|
| 981 |
+
"step": 54,
|
| 982 |
+
"train_speed(iter/s)": 0.005522
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"epoch": 0.05244494770404363,
|
| 986 |
+
"grad_norm": 3.329041004180908,
|
| 987 |
+
"learning_rate": 0.00019999800619749922,
|
| 988 |
+
"logits/chosen": -0.5789484977722168,
|
| 989 |
+
"logits/rejected": -0.5782615542411804,
|
| 990 |
+
"logps/chosen": -14.283157348632812,
|
| 991 |
+
"logps/rejected": -24.138996124267578,
|
| 992 |
+
"loss": 1.0249700546264648,
|
| 993 |
+
"memory(GiB)": 46.35,
|
| 994 |
+
"nll_loss": 0.5574489831924438,
|
| 995 |
+
"rewards/accuracies": 0.78125,
|
| 996 |
+
"rewards/chosen": 0.08275524526834488,
|
| 997 |
+
"rewards/margins": 0.9348181486129761,
|
| 998 |
+
"rewards/rejected": -0.8520628809928894,
|
| 999 |
+
"step": 55,
|
| 1000 |
+
"train_speed(iter/s)": 0.005525
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"epoch": 0.05339849220775351,
|
| 1004 |
+
"grad_norm": 13.451016426086426,
|
| 1005 |
+
"learning_rate": 0.00019999551396300723,
|
| 1006 |
+
"logits/chosen": -0.6104876399040222,
|
| 1007 |
+
"logits/rejected": -0.6144217848777771,
|
| 1008 |
+
"logps/chosen": -11.782422065734863,
|
| 1009 |
+
"logps/rejected": -26.71551513671875,
|
| 1010 |
+
"loss": 1.1726720333099365,
|
| 1011 |
+
"memory(GiB)": 46.35,
|
| 1012 |
+
"nll_loss": 0.6291560530662537,
|
| 1013 |
+
"rewards/accuracies": 0.75,
|
| 1014 |
+
"rewards/chosen": -0.0043334998190402985,
|
| 1015 |
+
"rewards/margins": 0.6636021137237549,
|
| 1016 |
+
"rewards/rejected": -0.6679355502128601,
|
| 1017 |
+
"step": 56,
|
| 1018 |
+
"train_speed(iter/s)": 0.005523
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"epoch": 0.054352036711463395,
|
| 1022 |
+
"grad_norm": 7.804044246673584,
|
| 1023 |
+
"learning_rate": 0.00019999202486950177,
|
| 1024 |
+
"logits/chosen": -0.5772112011909485,
|
| 1025 |
+
"logits/rejected": -0.5761610865592957,
|
| 1026 |
+
"logps/chosen": -23.908967971801758,
|
| 1027 |
+
"logps/rejected": -30.196250915527344,
|
| 1028 |
+
"loss": 1.3278322219848633,
|
| 1029 |
+
"memory(GiB)": 46.35,
|
| 1030 |
+
"nll_loss": 0.7636411786079407,
|
| 1031 |
+
"rewards/accuracies": 0.65625,
|
| 1032 |
+
"rewards/chosen": 0.15834051370620728,
|
| 1033 |
+
"rewards/margins": 0.4628582298755646,
|
| 1034 |
+
"rewards/rejected": -0.3045177161693573,
|
| 1035 |
+
"step": 57,
|
| 1036 |
+
"train_speed(iter/s)": 0.005522
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"epoch": 0.055305581215173275,
|
| 1040 |
+
"grad_norm": 7.5992913246154785,
|
| 1041 |
+
"learning_rate": 0.00019998753895176575,
|
| 1042 |
+
"logits/chosen": -0.6457486748695374,
|
| 1043 |
+
"logits/rejected": -0.6466608047485352,
|
| 1044 |
+
"logps/chosen": -10.734827041625977,
|
| 1045 |
+
"logps/rejected": -32.13155746459961,
|
| 1046 |
+
"loss": 1.0030261278152466,
|
| 1047 |
+
"memory(GiB)": 46.35,
|
| 1048 |
+
"nll_loss": 0.5355030298233032,
|
| 1049 |
+
"rewards/accuracies": 0.8125,
|
| 1050 |
+
"rewards/chosen": -0.01070893183350563,
|
| 1051 |
+
"rewards/margins": 0.7878642082214355,
|
| 1052 |
+
"rewards/rejected": -0.7985730171203613,
|
| 1053 |
+
"step": 58,
|
| 1054 |
+
"train_speed(iter/s)": 0.005524
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"epoch": 0.05625912571888316,
|
| 1058 |
+
"grad_norm": 5.3810601234436035,
|
| 1059 |
+
"learning_rate": 0.00019998205625451943,
|
| 1060 |
+
"logits/chosen": -0.6111299991607666,
|
| 1061 |
+
"logits/rejected": -0.6088098287582397,
|
| 1062 |
+
"logps/chosen": -16.970266342163086,
|
| 1063 |
+
"logps/rejected": -19.622106552124023,
|
| 1064 |
+
"loss": 0.9686940908432007,
|
| 1065 |
+
"memory(GiB)": 46.35,
|
| 1066 |
+
"nll_loss": 0.5118071436882019,
|
| 1067 |
+
"rewards/accuracies": 0.78125,
|
| 1068 |
+
"rewards/chosen": 0.15675117075443268,
|
| 1069 |
+
"rewards/margins": 0.8334945440292358,
|
| 1070 |
+
"rewards/rejected": -0.6767433881759644,
|
| 1071 |
+
"step": 59,
|
| 1072 |
+
"train_speed(iter/s)": 0.005525
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"epoch": 0.05721267022259305,
|
| 1076 |
+
"grad_norm": 3.480093002319336,
|
| 1077 |
+
"learning_rate": 0.00019997557683242004,
|
| 1078 |
+
"logits/chosen": -0.5985093712806702,
|
| 1079 |
+
"logits/rejected": -0.6007335186004639,
|
| 1080 |
+
"logps/chosen": -14.120916366577148,
|
| 1081 |
+
"logps/rejected": -24.104907989501953,
|
| 1082 |
+
"loss": 0.9003526568412781,
|
| 1083 |
+
"memory(GiB)": 46.35,
|
| 1084 |
+
"nll_loss": 0.466304212808609,
|
| 1085 |
+
"rewards/accuracies": 0.75,
|
| 1086 |
+
"rewards/chosen": 0.13193026185035706,
|
| 1087 |
+
"rewards/margins": 1.0070805549621582,
|
| 1088 |
+
"rewards/rejected": -0.8751502633094788,
|
| 1089 |
+
"step": 60,
|
| 1090 |
+
"train_speed(iter/s)": 0.005522
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"epoch": 0.05816621472630293,
|
| 1094 |
+
"grad_norm": 3.3445444107055664,
|
| 1095 |
+
"learning_rate": 0.00019996810075006117,
|
| 1096 |
+
"logits/chosen": -0.6064149141311646,
|
| 1097 |
+
"logits/rejected": -0.6075825691223145,
|
| 1098 |
+
"logps/chosen": -10.57797622680664,
|
| 1099 |
+
"logps/rejected": -21.275867462158203,
|
| 1100 |
+
"loss": 0.9624521732330322,
|
| 1101 |
+
"memory(GiB)": 46.35,
|
| 1102 |
+
"nll_loss": 0.41281017661094666,
|
| 1103 |
+
"rewards/accuracies": 0.6875,
|
| 1104 |
+
"rewards/chosen": 0.06739869713783264,
|
| 1105 |
+
"rewards/margins": 0.5023229122161865,
|
| 1106 |
+
"rewards/rejected": -0.43492427468299866,
|
| 1107 |
+
"step": 61,
|
| 1108 |
+
"train_speed(iter/s)": 0.005519
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"epoch": 0.059119759230012815,
|
| 1112 |
+
"grad_norm": 5.101805210113525,
|
| 1113 |
+
"learning_rate": 0.00019995962808197216,
|
| 1114 |
+
"logits/chosen": -0.6019335985183716,
|
| 1115 |
+
"logits/rejected": -0.6061650514602661,
|
| 1116 |
+
"logps/chosen": -12.45846939086914,
|
| 1117 |
+
"logps/rejected": -22.627965927124023,
|
| 1118 |
+
"loss": 1.1021240949630737,
|
| 1119 |
+
"memory(GiB)": 46.35,
|
| 1120 |
+
"nll_loss": 0.5154472589492798,
|
| 1121 |
+
"rewards/accuracies": 0.6875,
|
| 1122 |
+
"rewards/chosen": -0.0749291479587555,
|
| 1123 |
+
"rewards/margins": 0.5026906728744507,
|
| 1124 |
+
"rewards/rejected": -0.5776197910308838,
|
| 1125 |
+
"step": 62,
|
| 1126 |
+
"train_speed(iter/s)": 0.005522
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"epoch": 0.060073303733722695,
|
| 1130 |
+
"grad_norm": 3.7086844444274902,
|
| 1131 |
+
"learning_rate": 0.0001999501589126174,
|
| 1132 |
+
"logits/chosen": -0.598800539970398,
|
| 1133 |
+
"logits/rejected": -0.5973880887031555,
|
| 1134 |
+
"logps/chosen": -16.170019149780273,
|
| 1135 |
+
"logps/rejected": -24.100147247314453,
|
| 1136 |
+
"loss": 0.9728513956069946,
|
| 1137 |
+
"memory(GiB)": 46.35,
|
| 1138 |
+
"nll_loss": 0.4919710159301758,
|
| 1139 |
+
"rewards/accuracies": 0.78125,
|
| 1140 |
+
"rewards/chosen": 0.14402300119400024,
|
| 1141 |
+
"rewards/margins": 0.7554571628570557,
|
| 1142 |
+
"rewards/rejected": -0.6114341616630554,
|
| 1143 |
+
"step": 63,
|
| 1144 |
+
"train_speed(iter/s)": 0.005522
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"epoch": 0.06102684823743258,
|
| 1148 |
+
"grad_norm": 6.82169246673584,
|
| 1149 |
+
"learning_rate": 0.00019993969333639532,
|
| 1150 |
+
"logits/chosen": -0.5916394591331482,
|
| 1151 |
+
"logits/rejected": -0.5948237180709839,
|
| 1152 |
+
"logps/chosen": -6.504903793334961,
|
| 1153 |
+
"logps/rejected": -23.65030860900879,
|
| 1154 |
+
"loss": 0.8641103506088257,
|
| 1155 |
+
"memory(GiB)": 46.35,
|
| 1156 |
+
"nll_loss": 0.3815235197544098,
|
| 1157 |
+
"rewards/accuracies": 0.84375,
|
| 1158 |
+
"rewards/chosen": 0.06883495301008224,
|
| 1159 |
+
"rewards/margins": 0.6778679490089417,
|
| 1160 |
+
"rewards/rejected": -0.6090329885482788,
|
| 1161 |
+
"step": 64,
|
| 1162 |
+
"train_speed(iter/s)": 0.005524
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"epoch": 0.06198039274114246,
|
| 1166 |
+
"grad_norm": 6.41129207611084,
|
| 1167 |
+
"learning_rate": 0.0001999282314576377,
|
| 1168 |
+
"logits/chosen": -0.6117686033248901,
|
| 1169 |
+
"logits/rejected": -0.6133745312690735,
|
| 1170 |
+
"logps/chosen": -7.471805572509766,
|
| 1171 |
+
"logps/rejected": -19.006999969482422,
|
| 1172 |
+
"loss": 0.8599905371665955,
|
| 1173 |
+
"memory(GiB)": 46.35,
|
| 1174 |
+
"nll_loss": 0.3879605829715729,
|
| 1175 |
+
"rewards/accuracies": 0.84375,
|
| 1176 |
+
"rewards/chosen": 0.15403376519680023,
|
| 1177 |
+
"rewards/margins": 0.6219788193702698,
|
| 1178 |
+
"rewards/rejected": -0.4679450988769531,
|
| 1179 |
+
"step": 65,
|
| 1180 |
+
"train_speed(iter/s)": 0.005525
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"epoch": 0.06293393724485236,
|
| 1184 |
+
"grad_norm": 3.6126596927642822,
|
| 1185 |
+
"learning_rate": 0.00019991577339060842,
|
| 1186 |
+
"logits/chosen": -0.6491844654083252,
|
| 1187 |
+
"logits/rejected": -0.6502828001976013,
|
| 1188 |
+
"logps/chosen": -9.777487754821777,
|
| 1189 |
+
"logps/rejected": -19.9858455657959,
|
| 1190 |
+
"loss": 0.9987360835075378,
|
| 1191 |
+
"memory(GiB)": 46.35,
|
| 1192 |
+
"nll_loss": 0.4526561498641968,
|
| 1193 |
+
"rewards/accuracies": 0.8125,
|
| 1194 |
+
"rewards/chosen": 0.14287549257278442,
|
| 1195 |
+
"rewards/margins": 0.528179407119751,
|
| 1196 |
+
"rewards/rejected": -0.38530388474464417,
|
| 1197 |
+
"step": 66,
|
| 1198 |
+
"train_speed(iter/s)": 0.005524
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"epoch": 0.06388748174856224,
|
| 1202 |
+
"grad_norm": 3.5133907794952393,
|
| 1203 |
+
"learning_rate": 0.0001999023192595024,
|
| 1204 |
+
"logits/chosen": -0.6023973822593689,
|
| 1205 |
+
"logits/rejected": -0.6058337092399597,
|
| 1206 |
+
"logps/chosen": -11.287931442260742,
|
| 1207 |
+
"logps/rejected": -23.294925689697266,
|
| 1208 |
+
"loss": 0.949726939201355,
|
| 1209 |
+
"memory(GiB)": 46.35,
|
| 1210 |
+
"nll_loss": 0.49871301651000977,
|
| 1211 |
+
"rewards/accuracies": 0.8125,
|
| 1212 |
+
"rewards/chosen": 0.25335025787353516,
|
| 1213 |
+
"rewards/margins": 0.7444449663162231,
|
| 1214 |
+
"rewards/rejected": -0.491094708442688,
|
| 1215 |
+
"step": 67,
|
| 1216 |
+
"train_speed(iter/s)": 0.005525
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"epoch": 0.06484102625227212,
|
| 1220 |
+
"grad_norm": 4.242381572723389,
|
| 1221 |
+
"learning_rate": 0.00019988786919844436,
|
| 1222 |
+
"logits/chosen": -0.577968955039978,
|
| 1223 |
+
"logits/rejected": -0.584266185760498,
|
| 1224 |
+
"logps/chosen": -7.122470378875732,
|
| 1225 |
+
"logps/rejected": -23.440967559814453,
|
| 1226 |
+
"loss": 0.825219988822937,
|
| 1227 |
+
"memory(GiB)": 46.35,
|
| 1228 |
+
"nll_loss": 0.3752996325492859,
|
| 1229 |
+
"rewards/accuracies": 0.78125,
|
| 1230 |
+
"rewards/chosen": 0.28059279918670654,
|
| 1231 |
+
"rewards/margins": 0.8312418460845947,
|
| 1232 |
+
"rewards/rejected": -0.5506490468978882,
|
| 1233 |
+
"step": 68,
|
| 1234 |
+
"train_speed(iter/s)": 0.005524
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"epoch": 0.065794570755982,
|
| 1238 |
+
"grad_norm": 4.247474670410156,
|
| 1239 |
+
"learning_rate": 0.00019987242335148757,
|
| 1240 |
+
"logits/chosen": -0.6062893271446228,
|
| 1241 |
+
"logits/rejected": -0.6092509031295776,
|
| 1242 |
+
"logps/chosen": -9.965551376342773,
|
| 1243 |
+
"logps/rejected": -16.18874740600586,
|
| 1244 |
+
"loss": 1.0371503829956055,
|
| 1245 |
+
"memory(GiB)": 46.35,
|
| 1246 |
+
"nll_loss": 0.4371563792228699,
|
| 1247 |
+
"rewards/accuracies": 0.625,
|
| 1248 |
+
"rewards/chosen": 0.08624501526355743,
|
| 1249 |
+
"rewards/margins": 0.4600314795970917,
|
| 1250 |
+
"rewards/rejected": -0.37378647923469543,
|
| 1251 |
+
"step": 69,
|
| 1252 |
+
"train_speed(iter/s)": 0.005525
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"epoch": 0.06674811525969189,
|
| 1256 |
+
"grad_norm": 3.118610143661499,
|
| 1257 |
+
"learning_rate": 0.0001998559818726122,
|
| 1258 |
+
"logits/chosen": -0.651878297328949,
|
| 1259 |
+
"logits/rejected": -0.6511794328689575,
|
| 1260 |
+
"logps/chosen": -17.028488159179688,
|
| 1261 |
+
"logps/rejected": -18.37329864501953,
|
| 1262 |
+
"loss": 1.1015472412109375,
|
| 1263 |
+
"memory(GiB)": 46.35,
|
| 1264 |
+
"nll_loss": 0.5589602589607239,
|
| 1265 |
+
"rewards/accuracies": 0.6875,
|
| 1266 |
+
"rewards/chosen": 0.17374631762504578,
|
| 1267 |
+
"rewards/margins": 0.5566114187240601,
|
| 1268 |
+
"rewards/rejected": -0.3828650414943695,
|
| 1269 |
+
"step": 70,
|
| 1270 |
+
"train_speed(iter/s)": 0.005526
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"epoch": 0.06770165976340177,
|
| 1274 |
+
"grad_norm": 3.3582799434661865,
|
| 1275 |
+
"learning_rate": 0.00019983854492572394,
|
| 1276 |
+
"logits/chosen": -0.615595281124115,
|
| 1277 |
+
"logits/rejected": -0.6146353483200073,
|
| 1278 |
+
"logps/chosen": -12.519451141357422,
|
| 1279 |
+
"logps/rejected": -18.15428924560547,
|
| 1280 |
+
"loss": 0.9180172085762024,
|
| 1281 |
+
"memory(GiB)": 46.35,
|
| 1282 |
+
"nll_loss": 0.3709501624107361,
|
| 1283 |
+
"rewards/accuracies": 0.71875,
|
| 1284 |
+
"rewards/chosen": 0.09964233636856079,
|
| 1285 |
+
"rewards/margins": 0.6540214419364929,
|
| 1286 |
+
"rewards/rejected": -0.5543791651725769,
|
| 1287 |
+
"step": 71,
|
| 1288 |
+
"train_speed(iter/s)": 0.005525
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"epoch": 0.06865520426711165,
|
| 1292 |
+
"grad_norm": 2.883702516555786,
|
| 1293 |
+
"learning_rate": 0.00019982011268465243,
|
| 1294 |
+
"logits/chosen": -0.5868794918060303,
|
| 1295 |
+
"logits/rejected": -0.5905233025550842,
|
| 1296 |
+
"logps/chosen": -14.138279914855957,
|
| 1297 |
+
"logps/rejected": -27.953182220458984,
|
| 1298 |
+
"loss": 1.0747126340866089,
|
| 1299 |
+
"memory(GiB)": 46.35,
|
| 1300 |
+
"nll_loss": 0.46605974435806274,
|
| 1301 |
+
"rewards/accuracies": 0.6875,
|
| 1302 |
+
"rewards/chosen": 0.03510252386331558,
|
| 1303 |
+
"rewards/margins": 0.6189652681350708,
|
| 1304 |
+
"rewards/rejected": -0.5838626623153687,
|
| 1305 |
+
"step": 72,
|
| 1306 |
+
"train_speed(iter/s)": 0.005526
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"epoch": 0.06960874877082154,
|
| 1310 |
+
"grad_norm": 2.9610211849212646,
|
| 1311 |
+
"learning_rate": 0.00019980068533314934,
|
| 1312 |
+
"logits/chosen": -0.6018360257148743,
|
| 1313 |
+
"logits/rejected": -0.6016470789909363,
|
| 1314 |
+
"logps/chosen": -14.77442455291748,
|
| 1315 |
+
"logps/rejected": -16.293825149536133,
|
| 1316 |
+
"loss": 1.1167826652526855,
|
| 1317 |
+
"memory(GiB)": 46.35,
|
| 1318 |
+
"nll_loss": 0.5493913888931274,
|
| 1319 |
+
"rewards/accuracies": 0.78125,
|
| 1320 |
+
"rewards/chosen": 0.20179376006126404,
|
| 1321 |
+
"rewards/margins": 0.5395517945289612,
|
| 1322 |
+
"rewards/rejected": -0.3377581536769867,
|
| 1323 |
+
"step": 73,
|
| 1324 |
+
"train_speed(iter/s)": 0.005526
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"epoch": 0.07056229327453142,
|
| 1328 |
+
"grad_norm": 3.1142945289611816,
|
| 1329 |
+
"learning_rate": 0.00019978026306488668,
|
| 1330 |
+
"logits/chosen": -0.5901756286621094,
|
| 1331 |
+
"logits/rejected": -0.5861356258392334,
|
| 1332 |
+
"logps/chosen": -12.717107772827148,
|
| 1333 |
+
"logps/rejected": -19.3599796295166,
|
| 1334 |
+
"loss": 0.9646521210670471,
|
| 1335 |
+
"memory(GiB)": 46.35,
|
| 1336 |
+
"nll_loss": 0.42209792137145996,
|
| 1337 |
+
"rewards/accuracies": 0.65625,
|
| 1338 |
+
"rewards/chosen": 0.19932276010513306,
|
| 1339 |
+
"rewards/margins": 0.5936742424964905,
|
| 1340 |
+
"rewards/rejected": -0.3943515419960022,
|
| 1341 |
+
"step": 74,
|
| 1342 |
+
"train_speed(iter/s)": 0.005525
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"epoch": 0.0715158377782413,
|
| 1346 |
+
"grad_norm": 2.8381545543670654,
|
| 1347 |
+
"learning_rate": 0.00019975884608345476,
|
| 1348 |
+
"logits/chosen": -0.5791196227073669,
|
| 1349 |
+
"logits/rejected": -0.5793704390525818,
|
| 1350 |
+
"logps/chosen": -11.382536888122559,
|
| 1351 |
+
"logps/rejected": -17.99052619934082,
|
| 1352 |
+
"loss": 1.0251520872116089,
|
| 1353 |
+
"memory(GiB)": 46.35,
|
| 1354 |
+
"nll_loss": 0.5087648630142212,
|
| 1355 |
+
"rewards/accuracies": 0.8125,
|
| 1356 |
+
"rewards/chosen": 0.225914865732193,
|
| 1357 |
+
"rewards/margins": 0.544399619102478,
|
| 1358 |
+
"rewards/rejected": -0.3184847831726074,
|
| 1359 |
+
"step": 75,
|
| 1360 |
+
"train_speed(iter/s)": 0.005523
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"epoch": 0.0724693822819512,
|
| 1364 |
+
"grad_norm": 2.720726251602173,
|
| 1365 |
+
"learning_rate": 0.0001997364346023603,
|
| 1366 |
+
"logits/chosen": -0.5865166187286377,
|
| 1367 |
+
"logits/rejected": -0.5875246524810791,
|
| 1368 |
+
"logps/chosen": -14.62844467163086,
|
| 1369 |
+
"logps/rejected": -26.72977638244629,
|
| 1370 |
+
"loss": 0.9625909924507141,
|
| 1371 |
+
"memory(GiB)": 46.35,
|
| 1372 |
+
"nll_loss": 0.5162026882171631,
|
| 1373 |
+
"rewards/accuracies": 0.8125,
|
| 1374 |
+
"rewards/chosen": 0.2656521499156952,
|
| 1375 |
+
"rewards/margins": 0.8063244819641113,
|
| 1376 |
+
"rewards/rejected": -0.5406723022460938,
|
| 1377 |
+
"step": 76,
|
| 1378 |
+
"train_speed(iter/s)": 0.005522
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"epoch": 0.07342292678566108,
|
| 1382 |
+
"grad_norm": 7.292218208312988,
|
| 1383 |
+
"learning_rate": 0.0001997130288450242,
|
| 1384 |
+
"logits/chosen": -0.5742957592010498,
|
| 1385 |
+
"logits/rejected": -0.5747869610786438,
|
| 1386 |
+
"logps/chosen": -15.201194763183594,
|
| 1387 |
+
"logps/rejected": -21.86297607421875,
|
| 1388 |
+
"loss": 1.2068696022033691,
|
| 1389 |
+
"memory(GiB)": 46.35,
|
| 1390 |
+
"nll_loss": 0.7135031819343567,
|
| 1391 |
+
"rewards/accuracies": 0.75,
|
| 1392 |
+
"rewards/chosen": 0.23197884857654572,
|
| 1393 |
+
"rewards/margins": 0.7994663119316101,
|
| 1394 |
+
"rewards/rejected": -0.5674874782562256,
|
| 1395 |
+
"step": 77,
|
| 1396 |
+
"train_speed(iter/s)": 0.005522
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"epoch": 0.07437647128937096,
|
| 1400 |
+
"grad_norm": 3.270038366317749,
|
| 1401 |
+
"learning_rate": 0.00019968862904477935,
|
| 1402 |
+
"logits/chosen": -0.5858986377716064,
|
| 1403 |
+
"logits/rejected": -0.588924765586853,
|
| 1404 |
+
"logps/chosen": -9.959943771362305,
|
| 1405 |
+
"logps/rejected": -30.939224243164062,
|
| 1406 |
+
"loss": 0.8423591256141663,
|
| 1407 |
+
"memory(GiB)": 46.35,
|
| 1408 |
+
"nll_loss": 0.42530590295791626,
|
| 1409 |
+
"rewards/accuracies": 0.84375,
|
| 1410 |
+
"rewards/chosen": 0.16566459834575653,
|
| 1411 |
+
"rewards/margins": 1.2258960008621216,
|
| 1412 |
+
"rewards/rejected": -1.060231328010559,
|
| 1413 |
+
"step": 78,
|
| 1414 |
+
"train_speed(iter/s)": 0.005518
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"epoch": 0.07533001579308084,
|
| 1418 |
+
"grad_norm": 4.3024821281433105,
|
| 1419 |
+
"learning_rate": 0.00019966323544486818,
|
| 1420 |
+
"logits/chosen": -0.6145219802856445,
|
| 1421 |
+
"logits/rejected": -0.6170623898506165,
|
| 1422 |
+
"logps/chosen": -15.870341300964355,
|
| 1423 |
+
"logps/rejected": -31.39044952392578,
|
| 1424 |
+
"loss": 0.8412056565284729,
|
| 1425 |
+
"memory(GiB)": 46.35,
|
| 1426 |
+
"nll_loss": 0.4725872874259949,
|
| 1427 |
+
"rewards/accuracies": 0.875,
|
| 1428 |
+
"rewards/chosen": 0.3251492381095886,
|
| 1429 |
+
"rewards/margins": 1.2906752824783325,
|
| 1430 |
+
"rewards/rejected": -0.9655259251594543,
|
| 1431 |
+
"step": 79,
|
| 1432 |
+
"train_speed(iter/s)": 0.005516
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"epoch": 0.07628356029679073,
|
| 1436 |
+
"grad_norm": 5.5750732421875,
|
| 1437 |
+
"learning_rate": 0.00019963684829844052,
|
| 1438 |
+
"logits/chosen": -0.6042959094047546,
|
| 1439 |
+
"logits/rejected": -0.6049582362174988,
|
| 1440 |
+
"logps/chosen": -13.382628440856934,
|
| 1441 |
+
"logps/rejected": -21.927295684814453,
|
| 1442 |
+
"loss": 0.993065357208252,
|
| 1443 |
+
"memory(GiB)": 46.35,
|
| 1444 |
+
"nll_loss": 0.49278005957603455,
|
| 1445 |
+
"rewards/accuracies": 0.71875,
|
| 1446 |
+
"rewards/chosen": 0.10083693265914917,
|
| 1447 |
+
"rewards/margins": 0.7778795957565308,
|
| 1448 |
+
"rewards/rejected": -0.6770426630973816,
|
| 1449 |
+
"step": 80,
|
| 1450 |
+
"train_speed(iter/s)": 0.005517
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"epoch": 0.07723710480050061,
|
| 1454 |
+
"grad_norm": 7.816519260406494,
|
| 1455 |
+
"learning_rate": 0.0001996094678685508,
|
| 1456 |
+
"logits/chosen": -0.5581300258636475,
|
| 1457 |
+
"logits/rejected": -0.5570173263549805,
|
| 1458 |
+
"logps/chosen": -16.26945686340332,
|
| 1459 |
+
"logps/rejected": -28.130666732788086,
|
| 1460 |
+
"loss": 1.1555508375167847,
|
| 1461 |
+
"memory(GiB)": 46.35,
|
| 1462 |
+
"nll_loss": 0.5590921640396118,
|
| 1463 |
+
"rewards/accuracies": 0.65625,
|
| 1464 |
+
"rewards/chosen": -0.22734299302101135,
|
| 1465 |
+
"rewards/margins": 0.652872622013092,
|
| 1466 |
+
"rewards/rejected": -0.8802156448364258,
|
| 1467 |
+
"step": 81,
|
| 1468 |
+
"train_speed(iter/s)": 0.005518
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"epoch": 0.07819064930421049,
|
| 1472 |
+
"grad_norm": 4.555399417877197,
|
| 1473 |
+
"learning_rate": 0.00019958109442815553,
|
| 1474 |
+
"logits/chosen": -0.562245786190033,
|
| 1475 |
+
"logits/rejected": -0.5638425946235657,
|
| 1476 |
+
"logps/chosen": -17.669172286987305,
|
| 1477 |
+
"logps/rejected": -31.455379486083984,
|
| 1478 |
+
"loss": 1.0409901142120361,
|
| 1479 |
+
"memory(GiB)": 46.35,
|
| 1480 |
+
"nll_loss": 0.5925040245056152,
|
| 1481 |
+
"rewards/accuracies": 0.75,
|
| 1482 |
+
"rewards/chosen": -0.18633463978767395,
|
| 1483 |
+
"rewards/margins": 1.1558425426483154,
|
| 1484 |
+
"rewards/rejected": -1.3421772718429565,
|
| 1485 |
+
"step": 82,
|
| 1486 |
+
"train_speed(iter/s)": 0.005517
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"epoch": 0.07914419380792038,
|
| 1490 |
+
"grad_norm": 4.788554668426514,
|
| 1491 |
+
"learning_rate": 0.00019955172826011062,
|
| 1492 |
+
"logits/chosen": -0.53816819190979,
|
| 1493 |
+
"logits/rejected": -0.539014458656311,
|
| 1494 |
+
"logps/chosen": -13.409234046936035,
|
| 1495 |
+
"logps/rejected": -24.46169090270996,
|
| 1496 |
+
"loss": 1.0504765510559082,
|
| 1497 |
+
"memory(GiB)": 46.35,
|
| 1498 |
+
"nll_loss": 0.5079448819160461,
|
| 1499 |
+
"rewards/accuracies": 0.78125,
|
| 1500 |
+
"rewards/chosen": -0.030599184334278107,
|
| 1501 |
+
"rewards/margins": 0.6909205317497253,
|
| 1502 |
+
"rewards/rejected": -0.7215197086334229,
|
| 1503 |
+
"step": 83,
|
| 1504 |
+
"train_speed(iter/s)": 0.005518
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"epoch": 0.08009773831163026,
|
| 1508 |
+
"grad_norm": 2.9610979557037354,
|
| 1509 |
+
"learning_rate": 0.00019952136965716846,
|
| 1510 |
+
"logits/chosen": -0.5609460473060608,
|
| 1511 |
+
"logits/rejected": -0.5607710480690002,
|
| 1512 |
+
"logps/chosen": -15.43799114227295,
|
| 1513 |
+
"logps/rejected": -20.685916900634766,
|
| 1514 |
+
"loss": 0.9568982720375061,
|
| 1515 |
+
"memory(GiB)": 46.35,
|
| 1516 |
+
"nll_loss": 0.49247080087661743,
|
| 1517 |
+
"rewards/accuracies": 0.8125,
|
| 1518 |
+
"rewards/chosen": 0.2509080469608307,
|
| 1519 |
+
"rewards/margins": 0.9044961333274841,
|
| 1520 |
+
"rewards/rejected": -0.653588056564331,
|
| 1521 |
+
"step": 84,
|
| 1522 |
+
"train_speed(iter/s)": 0.005516
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"epoch": 0.08105128281534014,
|
| 1526 |
+
"grad_norm": 2.7049379348754883,
|
| 1527 |
+
"learning_rate": 0.00019949001892197515,
|
| 1528 |
+
"logits/chosen": -0.5431854128837585,
|
| 1529 |
+
"logits/rejected": -0.5459212064743042,
|
| 1530 |
+
"logps/chosen": -11.692042350769043,
|
| 1531 |
+
"logps/rejected": -25.70047378540039,
|
| 1532 |
+
"loss": 0.9204345941543579,
|
| 1533 |
+
"memory(GiB)": 46.35,
|
| 1534 |
+
"nll_loss": 0.5127474069595337,
|
| 1535 |
+
"rewards/accuracies": 0.84375,
|
| 1536 |
+
"rewards/chosen": 0.16273778676986694,
|
| 1537 |
+
"rewards/margins": 1.052358865737915,
|
| 1538 |
+
"rewards/rejected": -0.8896210193634033,
|
| 1539 |
+
"step": 85,
|
| 1540 |
+
"train_speed(iter/s)": 0.005518
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"epoch": 0.08200482731905002,
|
| 1544 |
+
"grad_norm": 2.835888624191284,
|
| 1545 |
+
"learning_rate": 0.00019945767636706728,
|
| 1546 |
+
"logits/chosen": -0.5524388551712036,
|
| 1547 |
+
"logits/rejected": -0.5518356561660767,
|
| 1548 |
+
"logps/chosen": -9.604469299316406,
|
| 1549 |
+
"logps/rejected": -18.570831298828125,
|
| 1550 |
+
"loss": 0.7963011860847473,
|
| 1551 |
+
"memory(GiB)": 46.35,
|
| 1552 |
+
"nll_loss": 0.35101598501205444,
|
| 1553 |
+
"rewards/accuracies": 0.78125,
|
| 1554 |
+
"rewards/chosen": 0.20881126821041107,
|
| 1555 |
+
"rewards/margins": 0.7979729771614075,
|
| 1556 |
+
"rewards/rejected": -0.58916175365448,
|
| 1557 |
+
"step": 86,
|
| 1558 |
+
"train_speed(iter/s)": 0.005516
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"epoch": 0.08295837182275992,
|
| 1562 |
+
"grad_norm": 4.458975315093994,
|
| 1563 |
+
"learning_rate": 0.00019942434231486902,
|
| 1564 |
+
"logits/chosen": -0.5035311579704285,
|
| 1565 |
+
"logits/rejected": -0.5041376352310181,
|
| 1566 |
+
"logps/chosen": -12.906057357788086,
|
| 1567 |
+
"logps/rejected": -21.71013641357422,
|
| 1568 |
+
"loss": 0.9929911494255066,
|
| 1569 |
+
"memory(GiB)": 46.35,
|
| 1570 |
+
"nll_loss": 0.5292322039604187,
|
| 1571 |
+
"rewards/accuracies": 0.78125,
|
| 1572 |
+
"rewards/chosen": 0.23509997129440308,
|
| 1573 |
+
"rewards/margins": 0.7336819171905518,
|
| 1574 |
+
"rewards/rejected": -0.49858203530311584,
|
| 1575 |
+
"step": 87,
|
| 1576 |
+
"train_speed(iter/s)": 0.005515
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"epoch": 0.0839119163264698,
|
| 1580 |
+
"grad_norm": 5.752819061279297,
|
| 1581 |
+
"learning_rate": 0.0001993900170976888,
|
| 1582 |
+
"logits/chosen": -0.5372301340103149,
|
| 1583 |
+
"logits/rejected": -0.5387623310089111,
|
| 1584 |
+
"logps/chosen": -12.41868782043457,
|
| 1585 |
+
"logps/rejected": -23.16730499267578,
|
| 1586 |
+
"loss": 0.9672287106513977,
|
| 1587 |
+
"memory(GiB)": 46.35,
|
| 1588 |
+
"nll_loss": 0.4671844244003296,
|
| 1589 |
+
"rewards/accuracies": 0.71875,
|
| 1590 |
+
"rewards/chosen": 0.22129932045936584,
|
| 1591 |
+
"rewards/margins": 0.8583503365516663,
|
| 1592 |
+
"rewards/rejected": -0.637050986289978,
|
| 1593 |
+
"step": 88,
|
| 1594 |
+
"train_speed(iter/s)": 0.005516
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"epoch": 0.08486546083017968,
|
| 1598 |
+
"grad_norm": 3.0927765369415283,
|
| 1599 |
+
"learning_rate": 0.00019935470105771598,
|
| 1600 |
+
"logits/chosen": -0.5962197780609131,
|
| 1601 |
+
"logits/rejected": -0.5928555130958557,
|
| 1602 |
+
"logps/chosen": -15.36233139038086,
|
| 1603 |
+
"logps/rejected": -16.967832565307617,
|
| 1604 |
+
"loss": 1.0067566633224487,
|
| 1605 |
+
"memory(GiB)": 46.35,
|
| 1606 |
+
"nll_loss": 0.5986248850822449,
|
| 1607 |
+
"rewards/accuracies": 0.84375,
|
| 1608 |
+
"rewards/chosen": 0.20106852054595947,
|
| 1609 |
+
"rewards/margins": 0.8472704291343689,
|
| 1610 |
+
"rewards/rejected": -0.6462019681930542,
|
| 1611 |
+
"step": 89,
|
| 1612 |
+
"train_speed(iter/s)": 0.005517
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"epoch": 0.08581900533388957,
|
| 1616 |
+
"grad_norm": 4.051328659057617,
|
| 1617 |
+
"learning_rate": 0.00019931839454701743,
|
| 1618 |
+
"logits/chosen": -0.5495755672454834,
|
| 1619 |
+
"logits/rejected": -0.54953533411026,
|
| 1620 |
+
"logps/chosen": -9.681739807128906,
|
| 1621 |
+
"logps/rejected": -17.38517951965332,
|
| 1622 |
+
"loss": 0.9176310896873474,
|
| 1623 |
+
"memory(GiB)": 46.35,
|
| 1624 |
+
"nll_loss": 0.4568890631198883,
|
| 1625 |
+
"rewards/accuracies": 0.8125,
|
| 1626 |
+
"rewards/chosen": 0.18029510974884033,
|
| 1627 |
+
"rewards/margins": 0.7410764694213867,
|
| 1628 |
+
"rewards/rejected": -0.5607813596725464,
|
| 1629 |
+
"step": 90,
|
| 1630 |
+
"train_speed(iter/s)": 0.005516
|
| 1631 |
+
},
|
| 1632 |
+
{
|
| 1633 |
+
"epoch": 0.08677254983759945,
|
| 1634 |
+
"grad_norm": 2.651430368423462,
|
| 1635 |
+
"learning_rate": 0.00019928109792753418,
|
| 1636 |
+
"logits/chosen": -0.5709578990936279,
|
| 1637 |
+
"logits/rejected": -0.5723389983177185,
|
| 1638 |
+
"logps/chosen": -12.097832679748535,
|
| 1639 |
+
"logps/rejected": -25.470287322998047,
|
| 1640 |
+
"loss": 0.8452543020248413,
|
| 1641 |
+
"memory(GiB)": 46.35,
|
| 1642 |
+
"nll_loss": 0.4146232008934021,
|
| 1643 |
+
"rewards/accuracies": 0.78125,
|
| 1644 |
+
"rewards/chosen": 0.2571614384651184,
|
| 1645 |
+
"rewards/margins": 0.9069947600364685,
|
| 1646 |
+
"rewards/rejected": -0.6498332619667053,
|
| 1647 |
+
"step": 91,
|
| 1648 |
+
"train_speed(iter/s)": 0.005515
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"epoch": 0.08772609434130933,
|
| 1652 |
+
"grad_norm": 3.9205963611602783,
|
| 1653 |
+
"learning_rate": 0.0001992428115710776,
|
| 1654 |
+
"logits/chosen": -0.5633900761604309,
|
| 1655 |
+
"logits/rejected": -0.5629602074623108,
|
| 1656 |
+
"logps/chosen": -15.341146469116211,
|
| 1657 |
+
"logps/rejected": -22.676523208618164,
|
| 1658 |
+
"loss": 1.0960146188735962,
|
| 1659 |
+
"memory(GiB)": 46.35,
|
| 1660 |
+
"nll_loss": 0.6228011846542358,
|
| 1661 |
+
"rewards/accuracies": 0.71875,
|
| 1662 |
+
"rewards/chosen": 0.2320929765701294,
|
| 1663 |
+
"rewards/margins": 0.802864670753479,
|
| 1664 |
+
"rewards/rejected": -0.5707716941833496,
|
| 1665 |
+
"step": 92,
|
| 1666 |
+
"train_speed(iter/s)": 0.005513
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"epoch": 0.08867963884501923,
|
| 1670 |
+
"grad_norm": 2.4844846725463867,
|
| 1671 |
+
"learning_rate": 0.00019920353585932578,
|
| 1672 |
+
"logits/chosen": -0.5643666982650757,
|
| 1673 |
+
"logits/rejected": -0.5697072148323059,
|
| 1674 |
+
"logps/chosen": -7.112787246704102,
|
| 1675 |
+
"logps/rejected": -29.775066375732422,
|
| 1676 |
+
"loss": 0.7670912742614746,
|
| 1677 |
+
"memory(GiB)": 46.35,
|
| 1678 |
+
"nll_loss": 0.3726654350757599,
|
| 1679 |
+
"rewards/accuracies": 0.84375,
|
| 1680 |
+
"rewards/chosen": 0.11930885910987854,
|
| 1681 |
+
"rewards/margins": 1.221017837524414,
|
| 1682 |
+
"rewards/rejected": -1.101709008216858,
|
| 1683 |
+
"step": 93,
|
| 1684 |
+
"train_speed(iter/s)": 0.005513
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"epoch": 0.0896331833487291,
|
| 1688 |
+
"grad_norm": 3.3409717082977295,
|
| 1689 |
+
"learning_rate": 0.00019916327118381982,
|
| 1690 |
+
"logits/chosen": -0.5507174730300903,
|
| 1691 |
+
"logits/rejected": -0.5550180673599243,
|
| 1692 |
+
"logps/chosen": -6.935158729553223,
|
| 1693 |
+
"logps/rejected": -26.466045379638672,
|
| 1694 |
+
"loss": 0.8178773522377014,
|
| 1695 |
+
"memory(GiB)": 46.35,
|
| 1696 |
+
"nll_loss": 0.3691931962966919,
|
| 1697 |
+
"rewards/accuracies": 0.84375,
|
| 1698 |
+
"rewards/chosen": -0.014170083217322826,
|
| 1699 |
+
"rewards/margins": 0.906183123588562,
|
| 1700 |
+
"rewards/rejected": -0.9203532338142395,
|
| 1701 |
+
"step": 94,
|
| 1702 |
+
"train_speed(iter/s)": 0.005513
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"epoch": 0.09058672785243899,
|
| 1706 |
+
"grad_norm": 3.8606507778167725,
|
| 1707 |
+
"learning_rate": 0.0001991220179459597,
|
| 1708 |
+
"logits/chosen": -0.5692034959793091,
|
| 1709 |
+
"logits/rejected": -0.5723109841346741,
|
| 1710 |
+
"logps/chosen": -9.636994361877441,
|
| 1711 |
+
"logps/rejected": -28.736644744873047,
|
| 1712 |
+
"loss": 0.7489418387413025,
|
| 1713 |
+
"memory(GiB)": 46.35,
|
| 1714 |
+
"nll_loss": 0.38759085536003113,
|
| 1715 |
+
"rewards/accuracies": 0.8125,
|
| 1716 |
+
"rewards/chosen": 0.1789592206478119,
|
| 1717 |
+
"rewards/margins": 1.2420873641967773,
|
| 1718 |
+
"rewards/rejected": -1.0631282329559326,
|
| 1719 |
+
"step": 95,
|
| 1720 |
+
"train_speed(iter/s)": 0.005513
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"epoch": 0.09154027235614887,
|
| 1724 |
+
"grad_norm": 4.69579553604126,
|
| 1725 |
+
"learning_rate": 0.00019907977655700054,
|
| 1726 |
+
"logits/chosen": -0.5835409760475159,
|
| 1727 |
+
"logits/rejected": -0.5857175588607788,
|
| 1728 |
+
"logps/chosen": -8.839982032775879,
|
| 1729 |
+
"logps/rejected": -26.350032806396484,
|
| 1730 |
+
"loss": 0.8248448371887207,
|
| 1731 |
+
"memory(GiB)": 46.35,
|
| 1732 |
+
"nll_loss": 0.4012177586555481,
|
| 1733 |
+
"rewards/accuracies": 0.8125,
|
| 1734 |
+
"rewards/chosen": 0.14620812237262726,
|
| 1735 |
+
"rewards/margins": 1.2952075004577637,
|
| 1736 |
+
"rewards/rejected": -1.1489993333816528,
|
| 1737 |
+
"step": 96,
|
| 1738 |
+
"train_speed(iter/s)": 0.005512
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"epoch": 0.09249381685985876,
|
| 1742 |
+
"grad_norm": 3.4665541648864746,
|
| 1743 |
+
"learning_rate": 0.00019903654743804833,
|
| 1744 |
+
"logits/chosen": -0.6227341294288635,
|
| 1745 |
+
"logits/rejected": -0.6252981424331665,
|
| 1746 |
+
"logps/chosen": -11.844514846801758,
|
| 1747 |
+
"logps/rejected": -29.124967575073242,
|
| 1748 |
+
"loss": 0.8466665744781494,
|
| 1749 |
+
"memory(GiB)": 46.35,
|
| 1750 |
+
"nll_loss": 0.3924159109592438,
|
| 1751 |
+
"rewards/accuracies": 0.6875,
|
| 1752 |
+
"rewards/chosen": -0.03820016235113144,
|
| 1753 |
+
"rewards/margins": 1.3871092796325684,
|
| 1754 |
+
"rewards/rejected": -1.425309419631958,
|
| 1755 |
+
"step": 97,
|
| 1756 |
+
"train_speed(iter/s)": 0.005513
|
| 1757 |
+
},
|
| 1758 |
+
{
|
| 1759 |
+
"epoch": 0.09344736136356864,
|
| 1760 |
+
"grad_norm": 13.193551063537598,
|
| 1761 |
+
"learning_rate": 0.00019899233102005573,
|
| 1762 |
+
"logits/chosen": -0.5675249695777893,
|
| 1763 |
+
"logits/rejected": -0.571427583694458,
|
| 1764 |
+
"logps/chosen": -11.932504653930664,
|
| 1765 |
+
"logps/rejected": -29.481807708740234,
|
| 1766 |
+
"loss": 1.3480544090270996,
|
| 1767 |
+
"memory(GiB)": 46.35,
|
| 1768 |
+
"nll_loss": 0.8751646280288696,
|
| 1769 |
+
"rewards/accuracies": 0.71875,
|
| 1770 |
+
"rewards/chosen": -0.04504670575261116,
|
| 1771 |
+
"rewards/margins": 1.2038631439208984,
|
| 1772 |
+
"rewards/rejected": -1.248909831047058,
|
| 1773 |
+
"step": 98,
|
| 1774 |
+
"train_speed(iter/s)": 0.005513
|
| 1775 |
+
},
|
| 1776 |
+
{
|
| 1777 |
+
"epoch": 0.09440090586727852,
|
| 1778 |
+
"grad_norm": 13.958789825439453,
|
| 1779 |
+
"learning_rate": 0.00019894712774381787,
|
| 1780 |
+
"logits/chosen": -0.5426734685897827,
|
| 1781 |
+
"logits/rejected": -0.5455094575881958,
|
| 1782 |
+
"logps/chosen": -14.97989273071289,
|
| 1783 |
+
"logps/rejected": -29.963254928588867,
|
| 1784 |
+
"loss": 0.9666093587875366,
|
| 1785 |
+
"memory(GiB)": 46.35,
|
| 1786 |
+
"nll_loss": 0.5926772356033325,
|
| 1787 |
+
"rewards/accuracies": 0.875,
|
| 1788 |
+
"rewards/chosen": -0.12036357820034027,
|
| 1789 |
+
"rewards/margins": 1.3575993776321411,
|
| 1790 |
+
"rewards/rejected": -1.4779632091522217,
|
| 1791 |
+
"step": 99,
|
| 1792 |
+
"train_speed(iter/s)": 0.005513
|
| 1793 |
+
},
|
| 1794 |
+
{
|
| 1795 |
+
"epoch": 0.09535445037098841,
|
| 1796 |
+
"grad_norm": 3.8765738010406494,
|
| 1797 |
+
"learning_rate": 0.00019890093805996793,
|
| 1798 |
+
"logits/chosen": -0.5699120163917542,
|
| 1799 |
+
"logits/rejected": -0.5716601014137268,
|
| 1800 |
+
"logps/chosen": -18.304710388183594,
|
| 1801 |
+
"logps/rejected": -37.15324783325195,
|
| 1802 |
+
"loss": 1.0460050106048584,
|
| 1803 |
+
"memory(GiB)": 46.35,
|
| 1804 |
+
"nll_loss": 0.6231843829154968,
|
| 1805 |
+
"rewards/accuracies": 0.78125,
|
| 1806 |
+
"rewards/chosen": -0.23249366879463196,
|
| 1807 |
+
"rewards/margins": 1.3045672178268433,
|
| 1808 |
+
"rewards/rejected": -1.5370607376098633,
|
| 1809 |
+
"step": 100,
|
| 1810 |
+
"train_speed(iter/s)": 0.005513
|
| 1811 |
+
},
|
| 1812 |
+
{
|
| 1813 |
+
"epoch": 0.0963079948746983,
|
| 1814 |
+
"grad_norm": 3.2104878425598145,
|
| 1815 |
+
"learning_rate": 0.00019885376242897258,
|
| 1816 |
+
"logits/chosen": -0.5706620812416077,
|
| 1817 |
+
"logits/rejected": -0.5722963213920593,
|
| 1818 |
+
"logps/chosen": -14.833114624023438,
|
| 1819 |
+
"logps/rejected": -30.274829864501953,
|
| 1820 |
+
"loss": 1.1376781463623047,
|
| 1821 |
+
"memory(GiB)": 46.35,
|
| 1822 |
+
"nll_loss": 0.653939425945282,
|
| 1823 |
+
"rewards/accuracies": 0.78125,
|
| 1824 |
+
"rewards/chosen": 0.14056257903575897,
|
| 1825 |
+
"rewards/margins": 1.1054493188858032,
|
| 1826 |
+
"rewards/rejected": -0.9648867845535278,
|
| 1827 |
+
"step": 101,
|
| 1828 |
+
"train_speed(iter/s)": 0.005506
|
| 1829 |
+
},
|
| 1830 |
+
{
|
| 1831 |
+
"epoch": 0.09726153937840817,
|
| 1832 |
+
"grad_norm": 2.326752185821533,
|
| 1833 |
+
"learning_rate": 0.00019880560132112742,
|
| 1834 |
+
"logits/chosen": -0.5489917993545532,
|
| 1835 |
+
"logits/rejected": -0.5558469891548157,
|
| 1836 |
+
"logps/chosen": -10.081119537353516,
|
| 1837 |
+
"logps/rejected": -31.342273712158203,
|
| 1838 |
+
"loss": 0.9489866495132446,
|
| 1839 |
+
"memory(GiB)": 46.35,
|
| 1840 |
+
"nll_loss": 0.5341838002204895,
|
| 1841 |
+
"rewards/accuracies": 0.78125,
|
| 1842 |
+
"rewards/chosen": 0.08325084298849106,
|
| 1843 |
+
"rewards/margins": 1.2551041841506958,
|
| 1844 |
+
"rewards/rejected": -1.1718534231185913,
|
| 1845 |
+
"step": 102,
|
| 1846 |
+
"train_speed(iter/s)": 0.005507
|
| 1847 |
+
},
|
| 1848 |
+
{
|
| 1849 |
+
"epoch": 0.09821508388211805,
|
| 1850 |
+
"grad_norm": 2.702747344970703,
|
| 1851 |
+
"learning_rate": 0.0001987564552165524,
|
| 1852 |
+
"logits/chosen": -0.5335314869880676,
|
| 1853 |
+
"logits/rejected": -0.5375723838806152,
|
| 1854 |
+
"logps/chosen": -6.767879962921143,
|
| 1855 |
+
"logps/rejected": -26.971349716186523,
|
| 1856 |
+
"loss": 0.7666488885879517,
|
| 1857 |
+
"memory(GiB)": 46.35,
|
| 1858 |
+
"nll_loss": 0.3699600100517273,
|
| 1859 |
+
"rewards/accuracies": 0.90625,
|
| 1860 |
+
"rewards/chosen": 0.2037293165922165,
|
| 1861 |
+
"rewards/margins": 1.2131260633468628,
|
| 1862 |
+
"rewards/rejected": -1.0093967914581299,
|
| 1863 |
+
"step": 103,
|
| 1864 |
+
"train_speed(iter/s)": 0.005507
|
| 1865 |
+
},
|
| 1866 |
+
{
|
| 1867 |
+
"epoch": 0.09916862838582795,
|
| 1868 |
+
"grad_norm": 3.298539638519287,
|
| 1869 |
+
"learning_rate": 0.0001987063246051868,
|
| 1870 |
+
"logits/chosen": -0.5586405992507935,
|
| 1871 |
+
"logits/rejected": -0.5575414299964905,
|
| 1872 |
+
"logps/chosen": -10.250675201416016,
|
| 1873 |
+
"logps/rejected": -19.98495864868164,
|
| 1874 |
+
"loss": 0.9064714312553406,
|
| 1875 |
+
"memory(GiB)": 46.35,
|
| 1876 |
+
"nll_loss": 0.38871869444847107,
|
| 1877 |
+
"rewards/accuracies": 0.71875,
|
| 1878 |
+
"rewards/chosen": 0.07911191880702972,
|
| 1879 |
+
"rewards/margins": 0.7202980518341064,
|
| 1880 |
+
"rewards/rejected": -0.6411861181259155,
|
| 1881 |
+
"step": 104,
|
| 1882 |
+
"train_speed(iter/s)": 0.005508
|
| 1883 |
+
},
|
| 1884 |
+
{
|
| 1885 |
+
"epoch": 0.10012217288953783,
|
| 1886 |
+
"grad_norm": 3.7112255096435547,
|
| 1887 |
+
"learning_rate": 0.00019865520998678458,
|
| 1888 |
+
"logits/chosen": -0.5400758385658264,
|
| 1889 |
+
"logits/rejected": -0.5405173301696777,
|
| 1890 |
+
"logps/chosen": -16.44561004638672,
|
| 1891 |
+
"logps/rejected": -24.691865921020508,
|
| 1892 |
+
"loss": 1.1246851682662964,
|
| 1893 |
+
"memory(GiB)": 46.35,
|
| 1894 |
+
"nll_loss": 0.6655758023262024,
|
| 1895 |
+
"rewards/accuracies": 0.84375,
|
| 1896 |
+
"rewards/chosen": 0.11685307323932648,
|
| 1897 |
+
"rewards/margins": 0.8305923938751221,
|
| 1898 |
+
"rewards/rejected": -0.713739275932312,
|
| 1899 |
+
"step": 105,
|
| 1900 |
+
"train_speed(iter/s)": 0.005507
|
| 1901 |
+
},
|
| 1902 |
+
{
|
| 1903 |
+
"epoch": 0.10107571739324771,
|
| 1904 |
+
"grad_norm": 6.40952205657959,
|
| 1905 |
+
"learning_rate": 0.0001986031118709093,
|
| 1906 |
+
"logits/chosen": -0.548525333404541,
|
| 1907 |
+
"logits/rejected": -0.5509157180786133,
|
| 1908 |
+
"logps/chosen": -11.731019020080566,
|
| 1909 |
+
"logps/rejected": -22.46083641052246,
|
| 1910 |
+
"loss": 1.37913179397583,
|
| 1911 |
+
"memory(GiB)": 46.35,
|
| 1912 |
+
"nll_loss": 0.7638791799545288,
|
| 1913 |
+
"rewards/accuracies": 0.78125,
|
| 1914 |
+
"rewards/chosen": -0.029659561812877655,
|
| 1915 |
+
"rewards/margins": 0.5513206124305725,
|
| 1916 |
+
"rewards/rejected": -0.5809801816940308,
|
| 1917 |
+
"step": 106,
|
| 1918 |
+
"train_speed(iter/s)": 0.005505
|
| 1919 |
+
},
|
| 1920 |
+
{
|
| 1921 |
+
"epoch": 0.1020292618969576,
|
| 1922 |
+
"grad_norm": 5.338200092315674,
|
| 1923 |
+
"learning_rate": 0.00019855003077692897,
|
| 1924 |
+
"logits/chosen": -0.5491806268692017,
|
| 1925 |
+
"logits/rejected": -0.5485914945602417,
|
| 1926 |
+
"logps/chosen": -10.374083518981934,
|
| 1927 |
+
"logps/rejected": -22.91812515258789,
|
| 1928 |
+
"loss": 0.9197418689727783,
|
| 1929 |
+
"memory(GiB)": 46.35,
|
| 1930 |
+
"nll_loss": 0.42541149258613586,
|
| 1931 |
+
"rewards/accuracies": 0.78125,
|
| 1932 |
+
"rewards/chosen": 0.23835767805576324,
|
| 1933 |
+
"rewards/margins": 0.8718117475509644,
|
| 1934 |
+
"rewards/rejected": -0.6334540843963623,
|
| 1935 |
+
"step": 107,
|
| 1936 |
+
"train_speed(iter/s)": 0.005505
|
| 1937 |
+
},
|
| 1938 |
+
{
|
| 1939 |
+
"epoch": 0.10298280640066748,
|
| 1940 |
+
"grad_norm": 4.72066593170166,
|
| 1941 |
+
"learning_rate": 0.00019849596723401107,
|
| 1942 |
+
"logits/chosen": -0.5481430888175964,
|
| 1943 |
+
"logits/rejected": -0.552554190158844,
|
| 1944 |
+
"logps/chosen": -14.082160949707031,
|
| 1945 |
+
"logps/rejected": -25.61027717590332,
|
| 1946 |
+
"loss": 1.2021526098251343,
|
| 1947 |
+
"memory(GiB)": 46.35,
|
| 1948 |
+
"nll_loss": 0.6988036036491394,
|
| 1949 |
+
"rewards/accuracies": 0.8125,
|
| 1950 |
+
"rewards/chosen": 0.09246861189603806,
|
| 1951 |
+
"rewards/margins": 0.8137391805648804,
|
| 1952 |
+
"rewards/rejected": -0.7212705612182617,
|
| 1953 |
+
"step": 108,
|
| 1954 |
+
"train_speed(iter/s)": 0.005507
|
| 1955 |
+
},
|
| 1956 |
+
{
|
| 1957 |
+
"epoch": 0.10393635090437736,
|
| 1958 |
+
"grad_norm": 2.7633321285247803,
|
| 1959 |
+
"learning_rate": 0.00019844092178111702,
|
| 1960 |
+
"logits/chosen": -0.508384108543396,
|
| 1961 |
+
"logits/rejected": -0.5140159130096436,
|
| 1962 |
+
"logps/chosen": -6.925086975097656,
|
| 1963 |
+
"logps/rejected": -24.077953338623047,
|
| 1964 |
+
"loss": 0.8022588491439819,
|
| 1965 |
+
"memory(GiB)": 46.35,
|
| 1966 |
+
"nll_loss": 0.41396474838256836,
|
| 1967 |
+
"rewards/accuracies": 0.96875,
|
| 1968 |
+
"rewards/chosen": 0.16561280190944672,
|
| 1969 |
+
"rewards/margins": 1.0861924886703491,
|
| 1970 |
+
"rewards/rejected": -0.9205797910690308,
|
| 1971 |
+
"step": 109,
|
| 1972 |
+
"train_speed(iter/s)": 0.005509
|
| 1973 |
+
},
|
| 1974 |
+
{
|
| 1975 |
+
"epoch": 0.10488989540808726,
|
| 1976 |
+
"grad_norm": 2.4014365673065186,
|
| 1977 |
+
"learning_rate": 0.00019838489496699704,
|
| 1978 |
+
"logits/chosen": -0.5266930460929871,
|
| 1979 |
+
"logits/rejected": -0.5241900682449341,
|
| 1980 |
+
"logps/chosen": -15.143444061279297,
|
| 1981 |
+
"logps/rejected": -18.07321548461914,
|
| 1982 |
+
"loss": 0.8957412242889404,
|
| 1983 |
+
"memory(GiB)": 46.35,
|
| 1984 |
+
"nll_loss": 0.5194482803344727,
|
| 1985 |
+
"rewards/accuracies": 0.875,
|
| 1986 |
+
"rewards/chosen": 0.33800825476646423,
|
| 1987 |
+
"rewards/margins": 1.0479741096496582,
|
| 1988 |
+
"rewards/rejected": -0.7099659442901611,
|
| 1989 |
+
"step": 110,
|
| 1990 |
+
"train_speed(iter/s)": 0.005508
|
| 1991 |
+
},
|
| 1992 |
+
{
|
| 1993 |
+
"epoch": 0.10584343991179714,
|
| 1994 |
+
"grad_norm": 3.5473034381866455,
|
| 1995 |
+
"learning_rate": 0.0001983278873501845,
|
| 1996 |
+
"logits/chosen": -0.5651346445083618,
|
| 1997 |
+
"logits/rejected": -0.5652989149093628,
|
| 1998 |
+
"logps/chosen": -13.63066291809082,
|
| 1999 |
+
"logps/rejected": -21.72479820251465,
|
| 2000 |
+
"loss": 1.070034146308899,
|
| 2001 |
+
"memory(GiB)": 46.35,
|
| 2002 |
+
"nll_loss": 0.5245512127876282,
|
| 2003 |
+
"rewards/accuracies": 0.6875,
|
| 2004 |
+
"rewards/chosen": 0.1012478768825531,
|
| 2005 |
+
"rewards/margins": 0.5533490180969238,
|
| 2006 |
+
"rewards/rejected": -0.4521011710166931,
|
| 2007 |
+
"step": 111,
|
| 2008 |
+
"train_speed(iter/s)": 0.005508
|
| 2009 |
+
},
|
| 2010 |
+
{
|
| 2011 |
+
"epoch": 0.10679698441550702,
|
| 2012 |
+
"grad_norm": 2.844266653060913,
|
| 2013 |
+
"learning_rate": 0.00019826989949899048,
|
| 2014 |
+
"logits/chosen": -0.5871210694313049,
|
| 2015 |
+
"logits/rejected": -0.5863486528396606,
|
| 2016 |
+
"logps/chosen": -10.202323913574219,
|
| 2017 |
+
"logps/rejected": -17.968069076538086,
|
| 2018 |
+
"loss": 0.9712742567062378,
|
| 2019 |
+
"memory(GiB)": 46.35,
|
| 2020 |
+
"nll_loss": 0.4458525776863098,
|
| 2021 |
+
"rewards/accuracies": 0.65625,
|
| 2022 |
+
"rewards/chosen": 0.31141582131385803,
|
| 2023 |
+
"rewards/margins": 0.6074751615524292,
|
| 2024 |
+
"rewards/rejected": -0.29605934023857117,
|
| 2025 |
+
"step": 112,
|
| 2026 |
+
"train_speed(iter/s)": 0.005507
|
| 2027 |
+
},
|
| 2028 |
+
{
|
| 2029 |
+
"epoch": 0.1077505289192169,
|
| 2030 |
+
"grad_norm": 3.325552225112915,
|
| 2031 |
+
"learning_rate": 0.00019821093199149804,
|
| 2032 |
+
"logits/chosen": -0.5867654085159302,
|
| 2033 |
+
"logits/rejected": -0.590225338935852,
|
| 2034 |
+
"logps/chosen": -14.67109489440918,
|
| 2035 |
+
"logps/rejected": -31.97191619873047,
|
| 2036 |
+
"loss": 0.8784574270248413,
|
| 2037 |
+
"memory(GiB)": 46.35,
|
| 2038 |
+
"nll_loss": 0.5371198058128357,
|
| 2039 |
+
"rewards/accuracies": 0.90625,
|
| 2040 |
+
"rewards/chosen": 0.31997063755989075,
|
| 2041 |
+
"rewards/margins": 1.1458133459091187,
|
| 2042 |
+
"rewards/rejected": -0.8258427381515503,
|
| 2043 |
+
"step": 113,
|
| 2044 |
+
"train_speed(iter/s)": 0.005509
|
| 2045 |
+
},
|
| 2046 |
+
{
|
| 2047 |
+
"epoch": 0.10870407342292679,
|
| 2048 |
+
"grad_norm": 2.5996289253234863,
|
| 2049 |
+
"learning_rate": 0.00019815098541555646,
|
| 2050 |
+
"logits/chosen": -0.6402957439422607,
|
| 2051 |
+
"logits/rejected": -0.6378954648971558,
|
| 2052 |
+
"logps/chosen": -12.175540924072266,
|
| 2053 |
+
"logps/rejected": -20.870878219604492,
|
| 2054 |
+
"loss": 0.9693875908851624,
|
| 2055 |
+
"memory(GiB)": 46.35,
|
| 2056 |
+
"nll_loss": 0.5651832818984985,
|
| 2057 |
+
"rewards/accuracies": 0.875,
|
| 2058 |
+
"rewards/chosen": 0.3929046392440796,
|
| 2059 |
+
"rewards/margins": 1.0991772413253784,
|
| 2060 |
+
"rewards/rejected": -0.7062726020812988,
|
| 2061 |
+
"step": 114,
|
| 2062 |
+
"train_speed(iter/s)": 0.005509
|
| 2063 |
+
},
|
| 2064 |
+
{
|
| 2065 |
+
"epoch": 0.10965761792663667,
|
| 2066 |
+
"grad_norm": 2.5734198093414307,
|
| 2067 |
+
"learning_rate": 0.00019809006036877538,
|
| 2068 |
+
"logits/chosen": -0.6097349524497986,
|
| 2069 |
+
"logits/rejected": -0.6098358035087585,
|
| 2070 |
+
"logps/chosen": -11.490409851074219,
|
| 2071 |
+
"logps/rejected": -15.817056655883789,
|
| 2072 |
+
"loss": 0.9781900644302368,
|
| 2073 |
+
"memory(GiB)": 46.35,
|
| 2074 |
+
"nll_loss": 0.502380907535553,
|
| 2075 |
+
"rewards/accuracies": 0.8125,
|
| 2076 |
+
"rewards/chosen": 0.2869223654270172,
|
| 2077 |
+
"rewards/margins": 0.795809268951416,
|
| 2078 |
+
"rewards/rejected": -0.5088868737220764,
|
| 2079 |
+
"step": 115,
|
| 2080 |
+
"train_speed(iter/s)": 0.00551
|
| 2081 |
+
},
|
| 2082 |
+
{
|
| 2083 |
+
"epoch": 0.11061116243034655,
|
| 2084 |
+
"grad_norm": 2.6200523376464844,
|
| 2085 |
+
"learning_rate": 0.00019802815745851885,
|
| 2086 |
+
"logits/chosen": -0.6539290547370911,
|
| 2087 |
+
"logits/rejected": -0.6565437912940979,
|
| 2088 |
+
"logps/chosen": -13.780235290527344,
|
| 2089 |
+
"logps/rejected": -29.117767333984375,
|
| 2090 |
+
"loss": 0.8663976192474365,
|
| 2091 |
+
"memory(GiB)": 46.35,
|
| 2092 |
+
"nll_loss": 0.406424343585968,
|
| 2093 |
+
"rewards/accuracies": 0.71875,
|
| 2094 |
+
"rewards/chosen": 0.24194149672985077,
|
| 2095 |
+
"rewards/margins": 1.0130045413970947,
|
| 2096 |
+
"rewards/rejected": -0.7710630893707275,
|
| 2097 |
+
"step": 116,
|
| 2098 |
+
"train_speed(iter/s)": 0.005509
|
| 2099 |
+
},
|
| 2100 |
+
{
|
| 2101 |
+
"epoch": 0.11156470693405644,
|
| 2102 |
+
"grad_norm": 2.858734130859375,
|
| 2103 |
+
"learning_rate": 0.00019796527730189936,
|
| 2104 |
+
"logits/chosen": -0.6368309259414673,
|
| 2105 |
+
"logits/rejected": -0.6411804556846619,
|
| 2106 |
+
"logps/chosen": -12.20506477355957,
|
| 2107 |
+
"logps/rejected": -22.50167465209961,
|
| 2108 |
+
"loss": 0.9522262811660767,
|
| 2109 |
+
"memory(GiB)": 46.35,
|
| 2110 |
+
"nll_loss": 0.5067539215087891,
|
| 2111 |
+
"rewards/accuracies": 0.8125,
|
| 2112 |
+
"rewards/chosen": 0.35891181230545044,
|
| 2113 |
+
"rewards/margins": 0.9037349224090576,
|
| 2114 |
+
"rewards/rejected": -0.5448231101036072,
|
| 2115 |
+
"step": 117,
|
| 2116 |
+
"train_speed(iter/s)": 0.005508
|
| 2117 |
+
},
|
| 2118 |
+
{
|
| 2119 |
+
"epoch": 0.11251825143776632,
|
| 2120 |
+
"grad_norm": 3.5055670738220215,
|
| 2121 |
+
"learning_rate": 0.0001979014205257715,
|
| 2122 |
+
"logits/chosen": -0.6525743007659912,
|
| 2123 |
+
"logits/rejected": -0.6540606021881104,
|
| 2124 |
+
"logps/chosen": -15.675086975097656,
|
| 2125 |
+
"logps/rejected": -24.1904239654541,
|
| 2126 |
+
"loss": 1.0509792566299438,
|
| 2127 |
+
"memory(GiB)": 46.35,
|
| 2128 |
+
"nll_loss": 0.5997871160507202,
|
| 2129 |
+
"rewards/accuracies": 0.8125,
|
| 2130 |
+
"rewards/chosen": 0.07162542641162872,
|
| 2131 |
+
"rewards/margins": 1.1154685020446777,
|
| 2132 |
+
"rewards/rejected": -1.0438430309295654,
|
| 2133 |
+
"step": 118,
|
| 2134 |
+
"train_speed(iter/s)": 0.005507
|
| 2135 |
+
},
|
| 2136 |
+
{
|
| 2137 |
+
"epoch": 0.1134717959414762,
|
| 2138 |
+
"grad_norm": 3.984374761581421,
|
| 2139 |
+
"learning_rate": 0.0001978365877667258,
|
| 2140 |
+
"logits/chosen": -0.6372765302658081,
|
| 2141 |
+
"logits/rejected": -0.6411250233650208,
|
| 2142 |
+
"logps/chosen": -10.17730712890625,
|
| 2143 |
+
"logps/rejected": -22.074499130249023,
|
| 2144 |
+
"loss": 1.0653222799301147,
|
| 2145 |
+
"memory(GiB)": 46.35,
|
| 2146 |
+
"nll_loss": 0.6034587025642395,
|
| 2147 |
+
"rewards/accuracies": 0.78125,
|
| 2148 |
+
"rewards/chosen": 0.198074609041214,
|
| 2149 |
+
"rewards/margins": 1.0864827632904053,
|
| 2150 |
+
"rewards/rejected": -0.8884081244468689,
|
| 2151 |
+
"step": 119,
|
| 2152 |
+
"train_speed(iter/s)": 0.005508
|
| 2153 |
+
},
|
| 2154 |
+
{
|
| 2155 |
+
"epoch": 0.1144253404451861,
|
| 2156 |
+
"grad_norm": 3.182776689529419,
|
| 2157 |
+
"learning_rate": 0.00019777077967108255,
|
| 2158 |
+
"logits/chosen": -0.6417007446289062,
|
| 2159 |
+
"logits/rejected": -0.6392112970352173,
|
| 2160 |
+
"logps/chosen": -19.301258087158203,
|
| 2161 |
+
"logps/rejected": -18.364166259765625,
|
| 2162 |
+
"loss": 1.108437180519104,
|
| 2163 |
+
"memory(GiB)": 46.35,
|
| 2164 |
+
"nll_loss": 0.5851361751556396,
|
| 2165 |
+
"rewards/accuracies": 0.71875,
|
| 2166 |
+
"rewards/chosen": 0.22438707947731018,
|
| 2167 |
+
"rewards/margins": 0.5671754479408264,
|
| 2168 |
+
"rewards/rejected": -0.3427883982658386,
|
| 2169 |
+
"step": 120,
|
| 2170 |
+
"train_speed(iter/s)": 0.005508
|
| 2171 |
+
},
|
| 2172 |
+
{
|
| 2173 |
+
"epoch": 0.11537888494889598,
|
| 2174 |
+
"grad_norm": 3.537256956100464,
|
| 2175 |
+
"learning_rate": 0.00019770399689488506,
|
| 2176 |
+
"logits/chosen": -0.6460685729980469,
|
| 2177 |
+
"logits/rejected": -0.6467642784118652,
|
| 2178 |
+
"logps/chosen": -13.258935928344727,
|
| 2179 |
+
"logps/rejected": -27.513343811035156,
|
| 2180 |
+
"loss": 0.9472922682762146,
|
| 2181 |
+
"memory(GiB)": 46.35,
|
| 2182 |
+
"nll_loss": 0.5081149935722351,
|
| 2183 |
+
"rewards/accuracies": 0.75,
|
| 2184 |
+
"rewards/chosen": 0.23222729563713074,
|
| 2185 |
+
"rewards/margins": 1.276731014251709,
|
| 2186 |
+
"rewards/rejected": -1.0445036888122559,
|
| 2187 |
+
"step": 121,
|
| 2188 |
+
"train_speed(iter/s)": 0.005508
|
| 2189 |
+
},
|
| 2190 |
+
{
|
| 2191 |
+
"epoch": 0.11633242945260586,
|
| 2192 |
+
"grad_norm": 3.096590280532837,
|
| 2193 |
+
"learning_rate": 0.00019763624010389334,
|
| 2194 |
+
"logits/chosen": -0.6088275909423828,
|
| 2195 |
+
"logits/rejected": -0.6121100783348083,
|
| 2196 |
+
"logps/chosen": -13.26574420928955,
|
| 2197 |
+
"logps/rejected": -19.00273323059082,
|
| 2198 |
+
"loss": 0.9677691459655762,
|
| 2199 |
+
"memory(GiB)": 46.35,
|
| 2200 |
+
"nll_loss": 0.507895290851593,
|
| 2201 |
+
"rewards/accuracies": 0.8125,
|
| 2202 |
+
"rewards/chosen": 0.22311073541641235,
|
| 2203 |
+
"rewards/margins": 0.7144712209701538,
|
| 2204 |
+
"rewards/rejected": -0.49136048555374146,
|
| 2205 |
+
"step": 122,
|
| 2206 |
+
"train_speed(iter/s)": 0.005509
|
| 2207 |
+
},
|
| 2208 |
+
{
|
| 2209 |
+
"epoch": 0.11728597395631574,
|
| 2210 |
+
"grad_norm": 2.810216188430786,
|
| 2211 |
+
"learning_rate": 0.0001975675099735774,
|
| 2212 |
+
"logits/chosen": -0.6021947264671326,
|
| 2213 |
+
"logits/rejected": -0.6030389070510864,
|
| 2214 |
+
"logps/chosen": -8.321534156799316,
|
| 2215 |
+
"logps/rejected": -17.207504272460938,
|
| 2216 |
+
"loss": 0.8276495933532715,
|
| 2217 |
+
"memory(GiB)": 46.35,
|
| 2218 |
+
"nll_loss": 0.3906245231628418,
|
| 2219 |
+
"rewards/accuracies": 0.8125,
|
| 2220 |
+
"rewards/chosen": 0.21257750689983368,
|
| 2221 |
+
"rewards/margins": 0.894737958908081,
|
| 2222 |
+
"rewards/rejected": -0.682160496711731,
|
| 2223 |
+
"step": 123,
|
| 2224 |
+
"train_speed(iter/s)": 0.005509
|
| 2225 |
+
},
|
| 2226 |
+
{
|
| 2227 |
+
"epoch": 0.11823951846002563,
|
| 2228 |
+
"grad_norm": 2.6153383255004883,
|
| 2229 |
+
"learning_rate": 0.0001974978071891104,
|
| 2230 |
+
"logits/chosen": -0.6311705112457275,
|
| 2231 |
+
"logits/rejected": -0.6307083964347839,
|
| 2232 |
+
"logps/chosen": -10.833940505981445,
|
| 2233 |
+
"logps/rejected": -22.41739273071289,
|
| 2234 |
+
"loss": 0.8693855404853821,
|
| 2235 |
+
"memory(GiB)": 46.35,
|
| 2236 |
+
"nll_loss": 0.4562944173812866,
|
| 2237 |
+
"rewards/accuracies": 0.875,
|
| 2238 |
+
"rewards/chosen": 0.15080919861793518,
|
| 2239 |
+
"rewards/margins": 1.2266969680786133,
|
| 2240 |
+
"rewards/rejected": -1.0758877992630005,
|
| 2241 |
+
"step": 124,
|
| 2242 |
+
"train_speed(iter/s)": 0.00551
|
| 2243 |
+
},
|
| 2244 |
+
{
|
| 2245 |
+
"epoch": 0.11919306296373551,
|
| 2246 |
+
"grad_norm": 3.493828535079956,
|
| 2247 |
+
"learning_rate": 0.00019742713244536204,
|
| 2248 |
+
"logits/chosen": -0.6434034109115601,
|
| 2249 |
+
"logits/rejected": -0.6431565284729004,
|
| 2250 |
+
"logps/chosen": -18.75763702392578,
|
| 2251 |
+
"logps/rejected": -25.821609497070312,
|
| 2252 |
+
"loss": 1.0967546701431274,
|
| 2253 |
+
"memory(GiB)": 46.35,
|
| 2254 |
+
"nll_loss": 0.5587143898010254,
|
| 2255 |
+
"rewards/accuracies": 0.8125,
|
| 2256 |
+
"rewards/chosen": 0.0902448296546936,
|
| 2257 |
+
"rewards/margins": 0.9879235029220581,
|
| 2258 |
+
"rewards/rejected": -0.8976786732673645,
|
| 2259 |
+
"step": 125,
|
| 2260 |
+
"train_speed(iter/s)": 0.00551
|
| 2261 |
+
},
|
| 2262 |
+
{
|
| 2263 |
+
"epoch": 0.12014660746744539,
|
| 2264 |
+
"grad_norm": 2.5747878551483154,
|
| 2265 |
+
"learning_rate": 0.00019735548644689147,
|
| 2266 |
+
"logits/chosen": -0.6225179433822632,
|
| 2267 |
+
"logits/rejected": -0.6244460940361023,
|
| 2268 |
+
"logps/chosen": -15.244443893432617,
|
| 2269 |
+
"logps/rejected": -17.300045013427734,
|
| 2270 |
+
"loss": 1.0364809036254883,
|
| 2271 |
+
"memory(GiB)": 46.35,
|
| 2272 |
+
"nll_loss": 0.5735288858413696,
|
| 2273 |
+
"rewards/accuracies": 0.78125,
|
| 2274 |
+
"rewards/chosen": 0.416117787361145,
|
| 2275 |
+
"rewards/margins": 0.7515360713005066,
|
| 2276 |
+
"rewards/rejected": -0.3354182839393616,
|
| 2277 |
+
"step": 126,
|
| 2278 |
+
"train_speed(iter/s)": 0.00551
|
| 2279 |
+
},
|
| 2280 |
+
{
|
| 2281 |
+
"epoch": 0.12110015197115528,
|
| 2282 |
+
"grad_norm": 3.198167562484741,
|
| 2283 |
+
"learning_rate": 0.00019728286990794037,
|
| 2284 |
+
"logits/chosen": -0.6006501317024231,
|
| 2285 |
+
"logits/rejected": -0.6046801805496216,
|
| 2286 |
+
"logps/chosen": -14.4312162399292,
|
| 2287 |
+
"logps/rejected": -23.69890785217285,
|
| 2288 |
+
"loss": 1.0553488731384277,
|
| 2289 |
+
"memory(GiB)": 46.35,
|
| 2290 |
+
"nll_loss": 0.5887905955314636,
|
| 2291 |
+
"rewards/accuracies": 0.84375,
|
| 2292 |
+
"rewards/chosen": 0.162513867020607,
|
| 2293 |
+
"rewards/margins": 0.9815673232078552,
|
| 2294 |
+
"rewards/rejected": -0.8190534114837646,
|
| 2295 |
+
"step": 127,
|
| 2296 |
+
"train_speed(iter/s)": 0.00551
|
| 2297 |
+
},
|
| 2298 |
+
{
|
| 2299 |
+
"epoch": 0.12205369647486516,
|
| 2300 |
+
"grad_norm": 3.224283456802368,
|
| 2301 |
+
"learning_rate": 0.00019720928355242568,
|
| 2302 |
+
"logits/chosen": -0.5655272006988525,
|
| 2303 |
+
"logits/rejected": -0.5726292133331299,
|
| 2304 |
+
"logps/chosen": -13.809501647949219,
|
| 2305 |
+
"logps/rejected": -30.130277633666992,
|
| 2306 |
+
"loss": 0.8311694264411926,
|
| 2307 |
+
"memory(GiB)": 46.35,
|
| 2308 |
+
"nll_loss": 0.3935176134109497,
|
| 2309 |
+
"rewards/accuracies": 0.84375,
|
| 2310 |
+
"rewards/chosen": 0.027349811047315598,
|
| 2311 |
+
"rewards/margins": 1.382154941558838,
|
| 2312 |
+
"rewards/rejected": -1.3548052310943604,
|
| 2313 |
+
"step": 128,
|
| 2314 |
+
"train_speed(iter/s)": 0.00551
|
| 2315 |
+
},
|
| 2316 |
+
{
|
| 2317 |
+
"epoch": 0.12300724097857504,
|
| 2318 |
+
"grad_norm": 2.575568199157715,
|
| 2319 |
+
"learning_rate": 0.00019713472811393258,
|
| 2320 |
+
"logits/chosen": -0.5765466094017029,
|
| 2321 |
+
"logits/rejected": -0.5786842107772827,
|
| 2322 |
+
"logps/chosen": -16.621131896972656,
|
| 2323 |
+
"logps/rejected": -26.19173240661621,
|
| 2324 |
+
"loss": 0.9337475895881653,
|
| 2325 |
+
"memory(GiB)": 46.35,
|
| 2326 |
+
"nll_loss": 0.5804612636566162,
|
| 2327 |
+
"rewards/accuracies": 0.875,
|
| 2328 |
+
"rewards/chosen": 0.37209561467170715,
|
| 2329 |
+
"rewards/margins": 1.4012634754180908,
|
| 2330 |
+
"rewards/rejected": -1.0291677713394165,
|
| 2331 |
+
"step": 129,
|
| 2332 |
+
"train_speed(iter/s)": 0.005512
|
| 2333 |
+
},
|
| 2334 |
+
{
|
| 2335 |
+
"epoch": 0.12396078548228492,
|
| 2336 |
+
"grad_norm": 3.0303828716278076,
|
| 2337 |
+
"learning_rate": 0.00019705920433570694,
|
| 2338 |
+
"logits/chosen": -0.5693878531455994,
|
| 2339 |
+
"logits/rejected": -0.5738221406936646,
|
| 2340 |
+
"logps/chosen": -7.376468658447266,
|
| 2341 |
+
"logps/rejected": -25.63204574584961,
|
| 2342 |
+
"loss": 0.9063543081283569,
|
| 2343 |
+
"memory(GiB)": 46.35,
|
| 2344 |
+
"nll_loss": 0.5075121521949768,
|
| 2345 |
+
"rewards/accuracies": 0.875,
|
| 2346 |
+
"rewards/chosen": 0.23270781338214874,
|
| 2347 |
+
"rewards/margins": 1.1151927709579468,
|
| 2348 |
+
"rewards/rejected": -0.8824849128723145,
|
| 2349 |
+
"step": 130,
|
| 2350 |
+
"train_speed(iter/s)": 0.005511
|
| 2351 |
+
},
|
| 2352 |
+
{
|
| 2353 |
+
"epoch": 0.12491432998599482,
|
| 2354 |
+
"grad_norm": 4.375239849090576,
|
| 2355 |
+
"learning_rate": 0.0001969827129706482,
|
| 2356 |
+
"logits/chosen": -0.5413441061973572,
|
| 2357 |
+
"logits/rejected": -0.5445973873138428,
|
| 2358 |
+
"logps/chosen": -9.677428245544434,
|
| 2359 |
+
"logps/rejected": -23.95619010925293,
|
| 2360 |
+
"loss": 0.982276439666748,
|
| 2361 |
+
"memory(GiB)": 46.35,
|
| 2362 |
+
"nll_loss": 0.5150867104530334,
|
| 2363 |
+
"rewards/accuracies": 0.71875,
|
| 2364 |
+
"rewards/chosen": 0.23964405059814453,
|
| 2365 |
+
"rewards/margins": 0.8764944076538086,
|
| 2366 |
+
"rewards/rejected": -0.6368504762649536,
|
| 2367 |
+
"step": 131,
|
| 2368 |
+
"train_speed(iter/s)": 0.005511
|
| 2369 |
+
},
|
| 2370 |
+
{
|
| 2371 |
+
"epoch": 0.1258678744897047,
|
| 2372 |
+
"grad_norm": 2.136566162109375,
|
| 2373 |
+
"learning_rate": 0.0001969052547813016,
|
| 2374 |
+
"logits/chosen": -0.5252913236618042,
|
| 2375 |
+
"logits/rejected": -0.5288749933242798,
|
| 2376 |
+
"logps/chosen": -8.76069450378418,
|
| 2377 |
+
"logps/rejected": -24.643917083740234,
|
| 2378 |
+
"loss": 0.6882707476615906,
|
| 2379 |
+
"memory(GiB)": 46.35,
|
| 2380 |
+
"nll_loss": 0.3399735689163208,
|
| 2381 |
+
"rewards/accuracies": 0.84375,
|
| 2382 |
+
"rewards/chosen": 0.3247303366661072,
|
| 2383 |
+
"rewards/margins": 1.320786952972412,
|
| 2384 |
+
"rewards/rejected": -0.9960566759109497,
|
| 2385 |
+
"step": 132,
|
| 2386 |
+
"train_speed(iter/s)": 0.005512
|
| 2387 |
+
},
|
| 2388 |
+
{
|
| 2389 |
+
"epoch": 0.1268214189934146,
|
| 2390 |
+
"grad_norm": 2.7579689025878906,
|
| 2391 |
+
"learning_rate": 0.00019682683053985072,
|
| 2392 |
+
"logits/chosen": -0.4897473454475403,
|
| 2393 |
+
"logits/rejected": -0.49097952246665955,
|
| 2394 |
+
"logps/chosen": -14.222724914550781,
|
| 2395 |
+
"logps/rejected": -26.548240661621094,
|
| 2396 |
+
"loss": 0.8395786881446838,
|
| 2397 |
+
"memory(GiB)": 46.35,
|
| 2398 |
+
"nll_loss": 0.49962103366851807,
|
| 2399 |
+
"rewards/accuracies": 0.875,
|
| 2400 |
+
"rewards/chosen": 0.3120686113834381,
|
| 2401 |
+
"rewards/margins": 1.3334513902664185,
|
| 2402 |
+
"rewards/rejected": -1.0213829278945923,
|
| 2403 |
+
"step": 133,
|
| 2404 |
+
"train_speed(iter/s)": 0.005511
|
| 2405 |
+
},
|
| 2406 |
+
{
|
| 2407 |
+
"epoch": 0.12777496349712447,
|
| 2408 |
+
"grad_norm": 4.233667850494385,
|
| 2409 |
+
"learning_rate": 0.00019674744102810978,
|
| 2410 |
+
"logits/chosen": -0.49640408158302307,
|
| 2411 |
+
"logits/rejected": -0.49791407585144043,
|
| 2412 |
+
"logps/chosen": -11.952919006347656,
|
| 2413 |
+
"logps/rejected": -20.992504119873047,
|
| 2414 |
+
"loss": 0.9811766147613525,
|
| 2415 |
+
"memory(GiB)": 46.35,
|
| 2416 |
+
"nll_loss": 0.6130494475364685,
|
| 2417 |
+
"rewards/accuracies": 0.90625,
|
| 2418 |
+
"rewards/chosen": 0.26505932211875916,
|
| 2419 |
+
"rewards/margins": 1.113063097000122,
|
| 2420 |
+
"rewards/rejected": -0.8480038046836853,
|
| 2421 |
+
"step": 134,
|
| 2422 |
+
"train_speed(iter/s)": 0.005511
|
| 2423 |
+
},
|
| 2424 |
+
{
|
| 2425 |
+
"epoch": 0.12872850800083435,
|
| 2426 |
+
"grad_norm": 4.032670974731445,
|
| 2427 |
+
"learning_rate": 0.00019666708703751576,
|
| 2428 |
+
"logits/chosen": -0.5555613040924072,
|
| 2429 |
+
"logits/rejected": -0.5562028288841248,
|
| 2430 |
+
"logps/chosen": -12.461511611938477,
|
| 2431 |
+
"logps/rejected": -29.6381893157959,
|
| 2432 |
+
"loss": 0.9406546354293823,
|
| 2433 |
+
"memory(GiB)": 46.35,
|
| 2434 |
+
"nll_loss": 0.5542497634887695,
|
| 2435 |
+
"rewards/accuracies": 0.8125,
|
| 2436 |
+
"rewards/chosen": 0.14334315061569214,
|
| 2437 |
+
"rewards/margins": 1.2391164302825928,
|
| 2438 |
+
"rewards/rejected": -1.0957733392715454,
|
| 2439 |
+
"step": 135,
|
| 2440 |
+
"train_speed(iter/s)": 0.005511
|
| 2441 |
+
},
|
| 2442 |
+
{
|
| 2443 |
+
"epoch": 0.12968205250454423,
|
| 2444 |
+
"grad_norm": 2.8314244747161865,
|
| 2445 |
+
"learning_rate": 0.00019658576936912057,
|
| 2446 |
+
"logits/chosen": -0.5166746973991394,
|
| 2447 |
+
"logits/rejected": -0.5175175666809082,
|
| 2448 |
+
"logps/chosen": -11.453944206237793,
|
| 2449 |
+
"logps/rejected": -32.48845672607422,
|
| 2450 |
+
"loss": 0.741032600402832,
|
| 2451 |
+
"memory(GiB)": 46.35,
|
| 2452 |
+
"nll_loss": 0.39420661330223083,
|
| 2453 |
+
"rewards/accuracies": 0.84375,
|
| 2454 |
+
"rewards/chosen": 0.2297428399324417,
|
| 2455 |
+
"rewards/margins": 1.5928231477737427,
|
| 2456 |
+
"rewards/rejected": -1.3630802631378174,
|
| 2457 |
+
"step": 136,
|
| 2458 |
+
"train_speed(iter/s)": 0.005511
|
| 2459 |
+
},
|
| 2460 |
+
{
|
| 2461 |
+
"epoch": 0.1306355970082541,
|
| 2462 |
+
"grad_norm": 3.786283016204834,
|
| 2463 |
+
"learning_rate": 0.00019650348883358315,
|
| 2464 |
+
"logits/chosen": -0.5285561084747314,
|
| 2465 |
+
"logits/rejected": -0.529099702835083,
|
| 2466 |
+
"logps/chosen": -14.34618091583252,
|
| 2467 |
+
"logps/rejected": -24.930580139160156,
|
| 2468 |
+
"loss": 1.0361278057098389,
|
| 2469 |
+
"memory(GiB)": 46.35,
|
| 2470 |
+
"nll_loss": 0.598253607749939,
|
| 2471 |
+
"rewards/accuracies": 0.8125,
|
| 2472 |
+
"rewards/chosen": 0.2112821340560913,
|
| 2473 |
+
"rewards/margins": 1.2288541793823242,
|
| 2474 |
+
"rewards/rejected": -1.017572045326233,
|
| 2475 |
+
"step": 137,
|
| 2476 |
+
"train_speed(iter/s)": 0.005512
|
| 2477 |
+
},
|
| 2478 |
+
{
|
| 2479 |
+
"epoch": 0.131589141511964,
|
| 2480 |
+
"grad_norm": 3.4468750953674316,
|
| 2481 |
+
"learning_rate": 0.00019642024625116117,
|
| 2482 |
+
"logits/chosen": -0.5355381369590759,
|
| 2483 |
+
"logits/rejected": -0.5351199507713318,
|
| 2484 |
+
"logps/chosen": -14.2181396484375,
|
| 2485 |
+
"logps/rejected": -21.662395477294922,
|
| 2486 |
+
"loss": 0.9722803831100464,
|
| 2487 |
+
"memory(GiB)": 46.35,
|
| 2488 |
+
"nll_loss": 0.5212066769599915,
|
| 2489 |
+
"rewards/accuracies": 0.8125,
|
| 2490 |
+
"rewards/chosen": 0.12246156483888626,
|
| 2491 |
+
"rewards/margins": 1.046801209449768,
|
| 2492 |
+
"rewards/rejected": -0.9243396520614624,
|
| 2493 |
+
"step": 138,
|
| 2494 |
+
"train_speed(iter/s)": 0.005512
|
| 2495 |
+
},
|
| 2496 |
+
{
|
| 2497 |
+
"epoch": 0.1325426860156739,
|
| 2498 |
+
"grad_norm": 4.629439830780029,
|
| 2499 |
+
"learning_rate": 0.0001963360424517031,
|
| 2500 |
+
"logits/chosen": -0.5707206726074219,
|
| 2501 |
+
"logits/rejected": -0.5748513340950012,
|
| 2502 |
+
"logps/chosen": -17.805238723754883,
|
| 2503 |
+
"logps/rejected": -29.64284896850586,
|
| 2504 |
+
"loss": 1.254711389541626,
|
| 2505 |
+
"memory(GiB)": 46.35,
|
| 2506 |
+
"nll_loss": 0.743948221206665,
|
| 2507 |
+
"rewards/accuracies": 0.78125,
|
| 2508 |
+
"rewards/chosen": 0.11810468882322311,
|
| 2509 |
+
"rewards/margins": 0.9775583744049072,
|
| 2510 |
+
"rewards/rejected": -0.8594536185264587,
|
| 2511 |
+
"step": 139,
|
| 2512 |
+
"train_speed(iter/s)": 0.005513
|
| 2513 |
+
},
|
| 2514 |
+
{
|
| 2515 |
+
"epoch": 0.13349623051938378,
|
| 2516 |
+
"grad_norm": 4.580717086791992,
|
| 2517 |
+
"learning_rate": 0.0001962508782746397,
|
| 2518 |
+
"logits/chosen": -0.580274224281311,
|
| 2519 |
+
"logits/rejected": -0.581068217754364,
|
| 2520 |
+
"logps/chosen": -16.117170333862305,
|
| 2521 |
+
"logps/rejected": -23.330665588378906,
|
| 2522 |
+
"loss": 0.9780559539794922,
|
| 2523 |
+
"memory(GiB)": 46.35,
|
| 2524 |
+
"nll_loss": 0.48741835355758667,
|
| 2525 |
+
"rewards/accuracies": 0.8125,
|
| 2526 |
+
"rewards/chosen": 0.07310809940099716,
|
| 2527 |
+
"rewards/margins": 0.9340574741363525,
|
| 2528 |
+
"rewards/rejected": -0.8609493374824524,
|
| 2529 |
+
"step": 140,
|
| 2530 |
+
"train_speed(iter/s)": 0.005514
|
| 2531 |
+
},
|
| 2532 |
+
{
|
| 2533 |
+
"epoch": 0.13444977502309366,
|
| 2534 |
+
"grad_norm": 3.511350631713867,
|
| 2535 |
+
"learning_rate": 0.0001961647545689759,
|
| 2536 |
+
"logits/chosen": -0.5712682604789734,
|
| 2537 |
+
"logits/rejected": -0.5709258317947388,
|
| 2538 |
+
"logps/chosen": -14.216093063354492,
|
| 2539 |
+
"logps/rejected": -23.430875778198242,
|
| 2540 |
+
"loss": 1.023219108581543,
|
| 2541 |
+
"memory(GiB)": 46.35,
|
| 2542 |
+
"nll_loss": 0.5690780878067017,
|
| 2543 |
+
"rewards/accuracies": 0.84375,
|
| 2544 |
+
"rewards/chosen": 0.3575439751148224,
|
| 2545 |
+
"rewards/margins": 0.9377648830413818,
|
| 2546 |
+
"rewards/rejected": -0.5802209973335266,
|
| 2547 |
+
"step": 141,
|
| 2548 |
+
"train_speed(iter/s)": 0.005514
|
| 2549 |
+
},
|
| 2550 |
+
{
|
| 2551 |
+
"epoch": 0.13540331952680354,
|
| 2552 |
+
"grad_norm": 2.3146886825561523,
|
| 2553 |
+
"learning_rate": 0.0001960776721932821,
|
| 2554 |
+
"logits/chosen": -0.5722199082374573,
|
| 2555 |
+
"logits/rejected": -0.5763861536979675,
|
| 2556 |
+
"logps/chosen": -7.839071273803711,
|
| 2557 |
+
"logps/rejected": -18.26845932006836,
|
| 2558 |
+
"loss": 0.810951828956604,
|
| 2559 |
+
"memory(GiB)": 46.35,
|
| 2560 |
+
"nll_loss": 0.3562580943107605,
|
| 2561 |
+
"rewards/accuracies": 0.8125,
|
| 2562 |
+
"rewards/chosen": 0.24190367758274078,
|
| 2563 |
+
"rewards/margins": 0.711327850818634,
|
| 2564 |
+
"rewards/rejected": -0.4694240987300873,
|
| 2565 |
+
"step": 142,
|
| 2566 |
+
"train_speed(iter/s)": 0.005514
|
| 2567 |
+
},
|
| 2568 |
+
{
|
| 2569 |
+
"epoch": 0.13635686403051342,
|
| 2570 |
+
"grad_norm": 3.1744766235351562,
|
| 2571 |
+
"learning_rate": 0.00019598963201568573,
|
| 2572 |
+
"logits/chosen": -0.5400611758232117,
|
| 2573 |
+
"logits/rejected": -0.5411737561225891,
|
| 2574 |
+
"logps/chosen": -13.320467948913574,
|
| 2575 |
+
"logps/rejected": -24.537696838378906,
|
| 2576 |
+
"loss": 1.0167641639709473,
|
| 2577 |
+
"memory(GiB)": 46.35,
|
| 2578 |
+
"nll_loss": 0.47375380992889404,
|
| 2579 |
+
"rewards/accuracies": 0.6875,
|
| 2580 |
+
"rewards/chosen": 0.18297314643859863,
|
| 2581 |
+
"rewards/margins": 0.6672495007514954,
|
| 2582 |
+
"rewards/rejected": -0.48427632451057434,
|
| 2583 |
+
"step": 143,
|
| 2584 |
+
"train_speed(iter/s)": 0.005513
|
| 2585 |
+
},
|
| 2586 |
+
{
|
| 2587 |
+
"epoch": 0.1373104085342233,
|
| 2588 |
+
"grad_norm": 2.385725259780884,
|
| 2589 |
+
"learning_rate": 0.0001959006349138626,
|
| 2590 |
+
"logits/chosen": -0.5638188123703003,
|
| 2591 |
+
"logits/rejected": -0.5665206909179688,
|
| 2592 |
+
"logps/chosen": -12.801736831665039,
|
| 2593 |
+
"logps/rejected": -24.967641830444336,
|
| 2594 |
+
"loss": 0.9001826047897339,
|
| 2595 |
+
"memory(GiB)": 46.35,
|
| 2596 |
+
"nll_loss": 0.45819178223609924,
|
| 2597 |
+
"rewards/accuracies": 0.75,
|
| 2598 |
+
"rewards/chosen": 0.24550366401672363,
|
| 2599 |
+
"rewards/margins": 0.9985946416854858,
|
| 2600 |
+
"rewards/rejected": -0.7530909776687622,
|
| 2601 |
+
"step": 144,
|
| 2602 |
+
"train_speed(iter/s)": 0.005513
|
| 2603 |
+
},
|
| 2604 |
+
{
|
| 2605 |
+
"epoch": 0.13826395303793318,
|
| 2606 |
+
"grad_norm": 4.4898362159729,
|
| 2607 |
+
"learning_rate": 0.00019581068177502826,
|
| 2608 |
+
"logits/chosen": -0.5841139554977417,
|
| 2609 |
+
"logits/rejected": -0.5885876417160034,
|
| 2610 |
+
"logps/chosen": -8.781448364257812,
|
| 2611 |
+
"logps/rejected": -21.54075813293457,
|
| 2612 |
+
"loss": 0.9311922192573547,
|
| 2613 |
+
"memory(GiB)": 46.35,
|
| 2614 |
+
"nll_loss": 0.46065330505371094,
|
| 2615 |
+
"rewards/accuracies": 0.78125,
|
| 2616 |
+
"rewards/chosen": 0.2900657057762146,
|
| 2617 |
+
"rewards/margins": 0.7273497581481934,
|
| 2618 |
+
"rewards/rejected": -0.43728405237197876,
|
| 2619 |
+
"step": 145,
|
| 2620 |
+
"train_speed(iter/s)": 0.005513
|
| 2621 |
+
},
|
| 2622 |
+
{
|
| 2623 |
+
"epoch": 0.1392174975416431,
|
| 2624 |
+
"grad_norm": 2.794843912124634,
|
| 2625 |
+
"learning_rate": 0.00019571977349592878,
|
| 2626 |
+
"logits/chosen": -0.5932512879371643,
|
| 2627 |
+
"logits/rejected": -0.5940472483634949,
|
| 2628 |
+
"logps/chosen": -9.732755661010742,
|
| 2629 |
+
"logps/rejected": -20.826379776000977,
|
| 2630 |
+
"loss": 0.945945680141449,
|
| 2631 |
+
"memory(GiB)": 46.35,
|
| 2632 |
+
"nll_loss": 0.47954535484313965,
|
| 2633 |
+
"rewards/accuracies": 0.78125,
|
| 2634 |
+
"rewards/chosen": 0.2869046926498413,
|
| 2635 |
+
"rewards/margins": 0.9880754947662354,
|
| 2636 |
+
"rewards/rejected": -0.7011707425117493,
|
| 2637 |
+
"step": 146,
|
| 2638 |
+
"train_speed(iter/s)": 0.005513
|
| 2639 |
+
},
|
| 2640 |
+
{
|
| 2641 |
+
"epoch": 0.14017104204535297,
|
| 2642 |
+
"grad_norm": 2.540703058242798,
|
| 2643 |
+
"learning_rate": 0.00019562791098283225,
|
| 2644 |
+
"logits/chosen": -0.6081781983375549,
|
| 2645 |
+
"logits/rejected": -0.614071786403656,
|
| 2646 |
+
"logps/chosen": -12.527294158935547,
|
| 2647 |
+
"logps/rejected": -29.05521011352539,
|
| 2648 |
+
"loss": 0.9200064539909363,
|
| 2649 |
+
"memory(GiB)": 46.35,
|
| 2650 |
+
"nll_loss": 0.4640219807624817,
|
| 2651 |
+
"rewards/accuracies": 0.78125,
|
| 2652 |
+
"rewards/chosen": 0.25594115257263184,
|
| 2653 |
+
"rewards/margins": 0.8903652429580688,
|
| 2654 |
+
"rewards/rejected": -0.634424090385437,
|
| 2655 |
+
"step": 147,
|
| 2656 |
+
"train_speed(iter/s)": 0.005512
|
| 2657 |
+
},
|
| 2658 |
+
{
|
| 2659 |
+
"epoch": 0.14112458654906285,
|
| 2660 |
+
"grad_norm": 2.9323384761810303,
|
| 2661 |
+
"learning_rate": 0.0001955350951515195,
|
| 2662 |
+
"logits/chosen": -0.6128370761871338,
|
| 2663 |
+
"logits/rejected": -0.6138598322868347,
|
| 2664 |
+
"logps/chosen": -12.749382019042969,
|
| 2665 |
+
"logps/rejected": -25.719005584716797,
|
| 2666 |
+
"loss": 0.9213395118713379,
|
| 2667 |
+
"memory(GiB)": 46.35,
|
| 2668 |
+
"nll_loss": 0.43978482484817505,
|
| 2669 |
+
"rewards/accuracies": 0.6875,
|
| 2670 |
+
"rewards/chosen": 0.32896676659584045,
|
| 2671 |
+
"rewards/margins": 1.2176496982574463,
|
| 2672 |
+
"rewards/rejected": -0.8886829018592834,
|
| 2673 |
+
"step": 148,
|
| 2674 |
+
"train_speed(iter/s)": 0.005513
|
| 2675 |
+
},
|
| 2676 |
+
{
|
| 2677 |
+
"epoch": 0.14207813105277273,
|
| 2678 |
+
"grad_norm": 4.304955959320068,
|
| 2679 |
+
"learning_rate": 0.00019544132692727497,
|
| 2680 |
+
"logits/chosen": -0.6183297634124756,
|
| 2681 |
+
"logits/rejected": -0.6181198358535767,
|
| 2682 |
+
"logps/chosen": -13.527120590209961,
|
| 2683 |
+
"logps/rejected": -16.62553596496582,
|
| 2684 |
+
"loss": 1.1245884895324707,
|
| 2685 |
+
"memory(GiB)": 46.35,
|
| 2686 |
+
"nll_loss": 0.5154122114181519,
|
| 2687 |
+
"rewards/accuracies": 0.65625,
|
| 2688 |
+
"rewards/chosen": 0.12139306217432022,
|
| 2689 |
+
"rewards/margins": 0.5662888884544373,
|
| 2690 |
+
"rewards/rejected": -0.44489583373069763,
|
| 2691 |
+
"step": 149,
|
| 2692 |
+
"train_speed(iter/s)": 0.005512
|
| 2693 |
+
},
|
| 2694 |
+
{
|
| 2695 |
+
"epoch": 0.1430316755564826,
|
| 2696 |
+
"grad_norm": 3.4540951251983643,
|
| 2697 |
+
"learning_rate": 0.00019534660724487764,
|
| 2698 |
+
"logits/chosen": -0.6565526127815247,
|
| 2699 |
+
"logits/rejected": -0.6572035551071167,
|
| 2700 |
+
"logps/chosen": -8.482949256896973,
|
| 2701 |
+
"logps/rejected": -25.549943923950195,
|
| 2702 |
+
"loss": 0.6943767070770264,
|
| 2703 |
+
"memory(GiB)": 46.35,
|
| 2704 |
+
"nll_loss": 0.3159071207046509,
|
| 2705 |
+
"rewards/accuracies": 0.75,
|
| 2706 |
+
"rewards/chosen": 0.13372917473316193,
|
| 2707 |
+
"rewards/margins": 1.538865327835083,
|
| 2708 |
+
"rewards/rejected": -1.4051361083984375,
|
| 2709 |
+
"step": 150,
|
| 2710 |
+
"train_speed(iter/s)": 0.005513
|
| 2711 |
+
}
|
| 2712 |
+
],
|
| 2713 |
+
"logging_steps": 1,
|
| 2714 |
+
"max_steps": 1048,
|
| 2715 |
+
"num_input_tokens_seen": 0,
|
| 2716 |
+
"num_train_epochs": 1,
|
| 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": 1.0844345149874504e+18,
|
| 2731 |
+
"train_batch_size": 1,
|
| 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:dd5d2ba79d7611fe1fd77fd7b56c5388376cba0a585f422620fbd3f2425da83f
|
| 3 |
+
size 8696
|
zero_to_fp32.py
ADDED
|
@@ -0,0 +1,760 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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eepSpeed 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)
|