Upload folder using huggingface_hub
Browse files- added_tokens.json +6 -0
- config.json +30 -0
- generation_config.json +14 -0
- latest +1 -0
- merges.txt +0 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +346 -0
- rng_state_0.pth +3 -0
- rng_state_1.pth +3 -0
- rng_state_10.pth +3 -0
- rng_state_11.pth +3 -0
- rng_state_12.pth +3 -0
- rng_state_13.pth +3 -0
- rng_state_14.pth +3 -0
- rng_state_15.pth +3 -0
- rng_state_16.pth +3 -0
- rng_state_17.pth +3 -0
- rng_state_18.pth +3 -0
- rng_state_19.pth +3 -0
- rng_state_2.pth +3 -0
- rng_state_20.pth +3 -0
- rng_state_21.pth +3 -0
- rng_state_22.pth +3 -0
- rng_state_23.pth +3 -0
- rng_state_24.pth +3 -0
- rng_state_25.pth +3 -0
- rng_state_26.pth +3 -0
- rng_state_27.pth +3 -0
- rng_state_28.pth +3 -0
- rng_state_29.pth +3 -0
- rng_state_3.pth +3 -0
- rng_state_30.pth +3 -0
- rng_state_31.pth +3 -0
- rng_state_4.pth +3 -0
- rng_state_5.pth +3 -0
- rng_state_6.pth +3 -0
- rng_state_7.pth +3 -0
- rng_state_8.pth +3 -0
- rng_state_9.pth +3 -0
- special_tokens_map.json +28 -0
- tokenizer_config.json +69 -0
- trainer_state.json +1400 -0
- training_args.bin +3 -0
- vocab.json +0 -0
- zero_to_fp32.py +587 -0
added_tokens.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<pad>": 151646,
|
| 3 |
+
"<|endoftext|>": 151643,
|
| 4 |
+
"<|im_end|>": 151645,
|
| 5 |
+
"<|im_start|>": 151644
|
| 6 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/apdcephfs/share_300000800/user/ruotianma/peisongwang/SFT_models/qwen2-4o-0209",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Qwen2ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 128245,
|
| 8 |
+
"eos_token_id": 151645,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 3584,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 18944,
|
| 13 |
+
"max_position_embeddings": 32768,
|
| 14 |
+
"max_window_layers": 28,
|
| 15 |
+
"model_type": "qwen2",
|
| 16 |
+
"num_attention_heads": 28,
|
| 17 |
+
"num_hidden_layers": 28,
|
| 18 |
+
"num_key_value_heads": 4,
|
| 19 |
+
"pad_token_id": 151646,
|
| 20 |
+
"rms_norm_eps": 1e-06,
|
| 21 |
+
"rope_scaling": null,
|
| 22 |
+
"rope_theta": 1000000.0,
|
| 23 |
+
"sliding_window": null,
|
| 24 |
+
"tie_word_embeddings": false,
|
| 25 |
+
"torch_dtype": "bfloat16",
|
| 26 |
+
"transformers_version": "4.39.3",
|
| 27 |
+
"use_cache": false,
|
| 28 |
+
"use_sliding_window": false,
|
| 29 |
+
"vocab_size": 151647
|
| 30 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.05,
|
| 10 |
+
"temperature": 0.7,
|
| 11 |
+
"top_k": 20,
|
| 12 |
+
"top_p": 0.8,
|
| 13 |
+
"transformers_version": "4.39.3"
|
| 14 |
+
}
|
latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step164
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65bfa1f9e904465fdd1e5c9b0bf70136100d514556350d55bfad0bb022458d78
|
| 3 |
+
size 4874671720
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:713d289dcdd533a27e46e6653edf3fbcd2030571e587ee29c499bd33ff4fedb7
|
| 3 |
+
size 4932751008
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:addc259caea267234dc69577aa164acecdda4aba568802728391a392eeeed974
|
| 3 |
+
size 4330865200
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2591d4f3abf18e2f94ec5fec8813762f3abce2364a4be7d2e163e732ebe6adf3
|
| 3 |
+
size 1087005824
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 15225254912
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"lm_head.weight": "model-00004-of-00004.safetensors",
|
| 7 |
+
"model.embed_tokens.weight": "model-00001-of-00004.safetensors",
|
| 8 |
+
"model.layers.0.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 9 |
+
"model.layers.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 10 |
+
"model.layers.0.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 11 |
+
"model.layers.0.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 12 |
+
"model.layers.0.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 13 |
+
"model.layers.0.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 14 |
+
"model.layers.0.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 15 |
+
"model.layers.0.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 16 |
+
"model.layers.0.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 17 |
+
"model.layers.0.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 18 |
+
"model.layers.0.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 19 |
+
"model.layers.0.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 20 |
+
"model.layers.1.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 21 |
+
"model.layers.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 22 |
+
"model.layers.1.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 23 |
+
"model.layers.1.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 24 |
+
"model.layers.1.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 25 |
+
"model.layers.1.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 26 |
+
"model.layers.1.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 27 |
+
"model.layers.1.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 28 |
+
"model.layers.1.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 29 |
+
"model.layers.1.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 30 |
+
"model.layers.1.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 31 |
+
"model.layers.1.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 32 |
+
"model.layers.10.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 33 |
+
"model.layers.10.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 34 |
+
"model.layers.10.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 35 |
+
"model.layers.10.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 36 |
+
"model.layers.10.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 37 |
+
"model.layers.10.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 38 |
+
"model.layers.10.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 39 |
+
"model.layers.10.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 40 |
+
"model.layers.10.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 41 |
+
"model.layers.10.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 42 |
+
"model.layers.10.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 43 |
+
"model.layers.10.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 44 |
+
"model.layers.11.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 45 |
+
"model.layers.11.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 46 |
+
"model.layers.11.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 47 |
+
"model.layers.11.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 48 |
+
"model.layers.11.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 49 |
+
"model.layers.11.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 50 |
+
"model.layers.11.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 51 |
+
"model.layers.11.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 52 |
+
"model.layers.11.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 53 |
+
"model.layers.11.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 54 |
+
"model.layers.11.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 55 |
+
"model.layers.11.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 56 |
+
"model.layers.12.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 57 |
+
"model.layers.12.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 58 |
+
"model.layers.12.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 59 |
+
"model.layers.12.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 60 |
+
"model.layers.12.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 61 |
+
"model.layers.12.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 62 |
+
"model.layers.12.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 63 |
+
"model.layers.12.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 64 |
+
"model.layers.12.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 65 |
+
"model.layers.12.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 66 |
+
"model.layers.12.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 67 |
+
"model.layers.12.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 68 |
+
"model.layers.13.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 69 |
+
"model.layers.13.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 70 |
+
"model.layers.13.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 71 |
+
"model.layers.13.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 72 |
+
"model.layers.13.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 73 |
+
"model.layers.13.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 74 |
+
"model.layers.13.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 75 |
+
"model.layers.13.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 76 |
+
"model.layers.13.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 77 |
+
"model.layers.13.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 78 |
+
"model.layers.13.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 79 |
+
"model.layers.13.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 80 |
+
"model.layers.14.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 81 |
+
"model.layers.14.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 82 |
+
"model.layers.14.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 83 |
+
"model.layers.14.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 84 |
+
"model.layers.14.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 85 |
+
"model.layers.14.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 86 |
+
"model.layers.14.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 87 |
+
"model.layers.14.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 88 |
+
"model.layers.14.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 89 |
+
"model.layers.14.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 90 |
+
"model.layers.14.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 91 |
+
"model.layers.14.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 92 |
+
"model.layers.15.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 93 |
+
"model.layers.15.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 94 |
+
"model.layers.15.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 95 |
+
"model.layers.15.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 96 |
+
"model.layers.15.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 97 |
+
"model.layers.15.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 98 |
+
"model.layers.15.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 99 |
+
"model.layers.15.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 100 |
+
"model.layers.15.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 101 |
+
"model.layers.15.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 102 |
+
"model.layers.15.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 103 |
+
"model.layers.15.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 104 |
+
"model.layers.16.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 105 |
+
"model.layers.16.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 106 |
+
"model.layers.16.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 107 |
+
"model.layers.16.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 108 |
+
"model.layers.16.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 109 |
+
"model.layers.16.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 110 |
+
"model.layers.16.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 111 |
+
"model.layers.16.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 112 |
+
"model.layers.16.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 113 |
+
"model.layers.16.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 114 |
+
"model.layers.16.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 115 |
+
"model.layers.16.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 116 |
+
"model.layers.17.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 117 |
+
"model.layers.17.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 118 |
+
"model.layers.17.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 119 |
+
"model.layers.17.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 120 |
+
"model.layers.17.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 121 |
+
"model.layers.17.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 122 |
+
"model.layers.17.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 123 |
+
"model.layers.17.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 124 |
+
"model.layers.17.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 125 |
+
"model.layers.17.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 126 |
+
"model.layers.17.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 127 |
+
"model.layers.17.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 128 |
+
"model.layers.18.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 129 |
+
"model.layers.18.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 130 |
+
"model.layers.18.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 131 |
+
"model.layers.18.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 132 |
+
"model.layers.18.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 133 |
+
"model.layers.18.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 134 |
+
"model.layers.18.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 135 |
+
"model.layers.18.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 136 |
+
"model.layers.18.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 137 |
+
"model.layers.18.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 138 |
+
"model.layers.18.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 139 |
+
"model.layers.18.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 140 |
+
"model.layers.19.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 141 |
+
"model.layers.19.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 142 |
+
"model.layers.19.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 143 |
+
"model.layers.19.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 144 |
+
"model.layers.19.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 145 |
+
"model.layers.19.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 146 |
+
"model.layers.19.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 147 |
+
"model.layers.19.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 148 |
+
"model.layers.19.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 149 |
+
"model.layers.19.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 150 |
+
"model.layers.19.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 151 |
+
"model.layers.19.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 152 |
+
"model.layers.2.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 153 |
+
"model.layers.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 154 |
+
"model.layers.2.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 155 |
+
"model.layers.2.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 156 |
+
"model.layers.2.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 157 |
+
"model.layers.2.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 158 |
+
"model.layers.2.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 159 |
+
"model.layers.2.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 160 |
+
"model.layers.2.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 161 |
+
"model.layers.2.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 162 |
+
"model.layers.2.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 163 |
+
"model.layers.2.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 164 |
+
"model.layers.20.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 165 |
+
"model.layers.20.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 166 |
+
"model.layers.20.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 167 |
+
"model.layers.20.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 168 |
+
"model.layers.20.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 169 |
+
"model.layers.20.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 170 |
+
"model.layers.20.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 171 |
+
"model.layers.20.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 172 |
+
"model.layers.20.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 173 |
+
"model.layers.20.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 174 |
+
"model.layers.20.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 175 |
+
"model.layers.20.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 176 |
+
"model.layers.21.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 177 |
+
"model.layers.21.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 178 |
+
"model.layers.21.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 179 |
+
"model.layers.21.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 180 |
+
"model.layers.21.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 181 |
+
"model.layers.21.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 182 |
+
"model.layers.21.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 183 |
+
"model.layers.21.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 184 |
+
"model.layers.21.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 185 |
+
"model.layers.21.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 186 |
+
"model.layers.21.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 187 |
+
"model.layers.21.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 188 |
+
"model.layers.22.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 189 |
+
"model.layers.22.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 190 |
+
"model.layers.22.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 191 |
+
"model.layers.22.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 192 |
+
"model.layers.22.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 193 |
+
"model.layers.22.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 194 |
+
"model.layers.22.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 195 |
+
"model.layers.22.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 196 |
+
"model.layers.22.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 197 |
+
"model.layers.22.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 198 |
+
"model.layers.22.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 199 |
+
"model.layers.22.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 200 |
+
"model.layers.23.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 201 |
+
"model.layers.23.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 202 |
+
"model.layers.23.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 203 |
+
"model.layers.23.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 204 |
+
"model.layers.23.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 205 |
+
"model.layers.23.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 206 |
+
"model.layers.23.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 207 |
+
"model.layers.23.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 208 |
+
"model.layers.23.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 209 |
+
"model.layers.23.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 210 |
+
"model.layers.23.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 211 |
+
"model.layers.23.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 212 |
+
"model.layers.24.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 213 |
+
"model.layers.24.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 214 |
+
"model.layers.24.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 215 |
+
"model.layers.24.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 216 |
+
"model.layers.24.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 217 |
+
"model.layers.24.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 218 |
+
"model.layers.24.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 219 |
+
"model.layers.24.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 220 |
+
"model.layers.24.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 221 |
+
"model.layers.24.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 222 |
+
"model.layers.24.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 223 |
+
"model.layers.24.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 224 |
+
"model.layers.25.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 225 |
+
"model.layers.25.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 226 |
+
"model.layers.25.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 227 |
+
"model.layers.25.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 228 |
+
"model.layers.25.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 229 |
+
"model.layers.25.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 230 |
+
"model.layers.25.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 231 |
+
"model.layers.25.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 232 |
+
"model.layers.25.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 233 |
+
"model.layers.25.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 234 |
+
"model.layers.25.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 235 |
+
"model.layers.25.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 236 |
+
"model.layers.26.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 237 |
+
"model.layers.26.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 238 |
+
"model.layers.26.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 239 |
+
"model.layers.26.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 240 |
+
"model.layers.26.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 241 |
+
"model.layers.26.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 242 |
+
"model.layers.26.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 243 |
+
"model.layers.26.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 244 |
+
"model.layers.26.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 245 |
+
"model.layers.26.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 246 |
+
"model.layers.26.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 247 |
+
"model.layers.26.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 248 |
+
"model.layers.27.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 249 |
+
"model.layers.27.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 250 |
+
"model.layers.27.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 251 |
+
"model.layers.27.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 252 |
+
"model.layers.27.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 253 |
+
"model.layers.27.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 254 |
+
"model.layers.27.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 255 |
+
"model.layers.27.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 256 |
+
"model.layers.27.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 257 |
+
"model.layers.27.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 258 |
+
"model.layers.27.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 259 |
+
"model.layers.27.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 260 |
+
"model.layers.3.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 261 |
+
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 262 |
+
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 263 |
+
"model.layers.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 264 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 265 |
+
"model.layers.3.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 266 |
+
"model.layers.3.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 267 |
+
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 268 |
+
"model.layers.3.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 269 |
+
"model.layers.3.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 270 |
+
"model.layers.3.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 271 |
+
"model.layers.3.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 272 |
+
"model.layers.4.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 273 |
+
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 274 |
+
"model.layers.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 275 |
+
"model.layers.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 276 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 277 |
+
"model.layers.4.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 278 |
+
"model.layers.4.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 279 |
+
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 280 |
+
"model.layers.4.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 281 |
+
"model.layers.4.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 282 |
+
"model.layers.4.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 283 |
+
"model.layers.4.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 284 |
+
"model.layers.5.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 285 |
+
"model.layers.5.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 286 |
+
"model.layers.5.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 287 |
+
"model.layers.5.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 288 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 289 |
+
"model.layers.5.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 290 |
+
"model.layers.5.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 291 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 292 |
+
"model.layers.5.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 293 |
+
"model.layers.5.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 294 |
+
"model.layers.5.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 295 |
+
"model.layers.5.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 296 |
+
"model.layers.6.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 297 |
+
"model.layers.6.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 298 |
+
"model.layers.6.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 299 |
+
"model.layers.6.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 300 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 301 |
+
"model.layers.6.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 302 |
+
"model.layers.6.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 303 |
+
"model.layers.6.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 304 |
+
"model.layers.6.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 305 |
+
"model.layers.6.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 306 |
+
"model.layers.6.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 307 |
+
"model.layers.6.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 308 |
+
"model.layers.7.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 309 |
+
"model.layers.7.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 310 |
+
"model.layers.7.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 311 |
+
"model.layers.7.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 312 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 313 |
+
"model.layers.7.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 314 |
+
"model.layers.7.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 315 |
+
"model.layers.7.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 316 |
+
"model.layers.7.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 317 |
+
"model.layers.7.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 318 |
+
"model.layers.7.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 319 |
+
"model.layers.7.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 320 |
+
"model.layers.8.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 321 |
+
"model.layers.8.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 322 |
+
"model.layers.8.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 323 |
+
"model.layers.8.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 324 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 325 |
+
"model.layers.8.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 326 |
+
"model.layers.8.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 327 |
+
"model.layers.8.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 328 |
+
"model.layers.8.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 329 |
+
"model.layers.8.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 330 |
+
"model.layers.8.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 331 |
+
"model.layers.8.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 332 |
+
"model.layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 333 |
+
"model.layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 334 |
+
"model.layers.9.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 335 |
+
"model.layers.9.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 336 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 337 |
+
"model.layers.9.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 338 |
+
"model.layers.9.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 339 |
+
"model.layers.9.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 340 |
+
"model.layers.9.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 341 |
+
"model.layers.9.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 342 |
+
"model.layers.9.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 343 |
+
"model.layers.9.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 344 |
+
"model.norm.weight": "model-00003-of-00004.safetensors"
|
| 345 |
+
}
|
| 346 |
+
}
|
rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a59e1e640905115e048364b0cfa68fa3bfefbdca8febdef394c45c93ded68b0
|
| 3 |
+
size 15984
|
rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7df71a441235abbd1e64480694d0b56512117b852155fb93cb20227e4de559af
|
| 3 |
+
size 15984
|
rng_state_10.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2c5016260e380006936f2ab6d27b4d9c5cda870fd960bd22817288010ec1d44
|
| 3 |
+
size 15997
|
rng_state_11.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bab6bac45dcf2d4bed6c495d52a31b7acd8f82fb277199761afb655ff4aaf366
|
| 3 |
+
size 15997
|
rng_state_12.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbddcb471041e1f9b74508c376961c10f5550323d6d162d825127239e287e304
|
| 3 |
+
size 15997
|
rng_state_13.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d964da2ba74a6cabbdf44f9ba52b77443b21614387e635a6b8f7e43eb54fabc
|
| 3 |
+
size 15997
|
rng_state_14.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21bc864b019e3f203cdb7e15ba209193fe38da8981f3ce2902f9a4f691b708d1
|
| 3 |
+
size 15997
|
rng_state_15.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:207c59f63363d35c16035a6f2302f6ae923b2b00c624316ae81b823a6e93c937
|
| 3 |
+
size 15997
|
rng_state_16.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d445bad4678571efd4218befa25f57a57e0a089cbec06a13535be3ef9f3e17b
|
| 3 |
+
size 15997
|
rng_state_17.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b25d9f53663d2ec44b4ab2301b4baf30f0d3976072f0fd97b9cd58959e29fa0
|
| 3 |
+
size 15997
|
rng_state_18.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4be7a230d2f83da0680c8228d0f21ed84ced0102c0de00e2bf6fab9830e9902c
|
| 3 |
+
size 15997
|
rng_state_19.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0173347ca42d7fd00045d9511c5703309f931d7b60680c3f8786a2afb20f5e47
|
| 3 |
+
size 15997
|
rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd7a50311f2723e1ba9ec3204a8eefb656de1745d74c65f3ead609401c588ecd
|
| 3 |
+
size 15984
|
rng_state_20.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e72216b3a46240b5d93d5065175d4e44f99af1e7d427cdcb81a6a2b3fff5a3d5
|
| 3 |
+
size 15997
|
rng_state_21.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cabf21ff1c6e3f5bf6eed6baf572c0eca8cb4412c65089bb1b91c7b3df9c57fb
|
| 3 |
+
size 15997
|
rng_state_22.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8ef8a1f665678be33b59d071c70ba8d2c1a889b864bd10c15a837ad83801555
|
| 3 |
+
size 15997
|
rng_state_23.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc798f57e440836173fe642e29f131b96dba94da9969322ca0ba9689532c952d
|
| 3 |
+
size 15997
|
rng_state_24.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c85c53ed56716f36bb3f677c7e4b8aa887f0b3a447b30ff02c36d6193f62d66
|
| 3 |
+
size 15997
|
rng_state_25.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cf70fdffa7ecc013e08ccfc50be519da0698e22c154731b1c4d2d199b28679f
|
| 3 |
+
size 15997
|
rng_state_26.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:008454f3ba3a29e373964e53fb08536a91296bef52277ddea882f2f1cd383b7c
|
| 3 |
+
size 15997
|
rng_state_27.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:697aff098ebb2e2d6746de57559bb7ce035e2433656e6adcaf9df59d876fb1d6
|
| 3 |
+
size 15997
|
rng_state_28.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f0e894fcfbaf118c0bc33dcb6a272bc0c04d6ce603570eea8845fdfd84ec286
|
| 3 |
+
size 15997
|
rng_state_29.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fdebb128cab63bee4ae96bda6ae6d15cc6af5319c9703a7b8c45330cbcebfe1
|
| 3 |
+
size 15997
|
rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4341b0888644161212b3a485cfe5df553057f148e8e92bd94c55c24c5eb2b71d
|
| 3 |
+
size 15984
|
rng_state_30.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32ba025c1f8aade7d0647f594d2c7afa12e73f60e9a8acce808246ae017115fb
|
| 3 |
+
size 15997
|
rng_state_31.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fe5ee11a16a69e5c858ae6e11a44903fb0ffea3bc3c8e239006832716c9d02c
|
| 3 |
+
size 15997
|
rng_state_4.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ab885de362f89d505131bd168dd9cd5bff3fc279de95a3b1e4869d85a210f1a
|
| 3 |
+
size 15984
|
rng_state_5.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d20603e331a224643d0fa78f2846a4a30836309c80844973271f2137578e541c
|
| 3 |
+
size 15984
|
rng_state_6.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74082a41fbf0209d0ed4cfd1806a2abd9f250379e4c2d31d1fbf8eabebd4047b
|
| 3 |
+
size 15984
|
rng_state_7.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3352495682b940c4595896db4b3b335daa88330267134f75896d995bb97ae19
|
| 3 |
+
size 15984
|
rng_state_8.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87b2fb1590bb1f46c210e77f0827d1720a161692d866ed70fce7dcd7e98328db
|
| 3 |
+
size 15984
|
rng_state_9.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8150ac7d0548e8442799f8526d2b28d69182f6a2044c51659ab4f723a317adeb
|
| 3 |
+
size 15984
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>"
|
| 5 |
+
],
|
| 6 |
+
"bos_token": {
|
| 7 |
+
"content": "<s>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false
|
| 12 |
+
},
|
| 13 |
+
"eos_token": {
|
| 14 |
+
"content": "<|im_end|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false
|
| 19 |
+
},
|
| 20 |
+
"pad_token": "<pad>",
|
| 21 |
+
"unk_token": {
|
| 22 |
+
"content": "<unk>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false
|
| 27 |
+
}
|
| 28 |
+
}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"128244": {
|
| 5 |
+
"content": "<unk>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"128245": {
|
| 13 |
+
"content": "<s>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"151643": {
|
| 21 |
+
"content": "<|endoftext|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"151644": {
|
| 29 |
+
"content": "<|im_start|>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"151645": {
|
| 37 |
+
"content": "<|im_end|>",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"151646": {
|
| 45 |
+
"content": "<pad>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
}
|
| 52 |
+
},
|
| 53 |
+
"additional_special_tokens": [
|
| 54 |
+
"<|im_start|>",
|
| 55 |
+
"<|im_end|>"
|
| 56 |
+
],
|
| 57 |
+
"bos_token": "<s>",
|
| 58 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
| 59 |
+
"clean_up_tokenization_spaces": false,
|
| 60 |
+
"eos_token": "<|im_end|>",
|
| 61 |
+
"errors": "replace",
|
| 62 |
+
"model_max_length": 6000,
|
| 63 |
+
"pad_token": "<pad>",
|
| 64 |
+
"padding_side": "left",
|
| 65 |
+
"split_special_tokens": false,
|
| 66 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 67 |
+
"truncation_side": "left",
|
| 68 |
+
"unk_token": "<unk>"
|
| 69 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,1400 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 0.2905869324473976,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 164,
|
| 7 |
+
"is_hyper_param_search": false,
|
| 8 |
+
"is_local_process_zero": true,
|
| 9 |
+
"is_world_process_zero": true,
|
| 10 |
+
"log_history": [
|
| 11 |
+
{
|
| 12 |
+
"epoch": 0.01,
|
| 13 |
+
"importance_ratio": 0.999987781047821,
|
| 14 |
+
"kl_div_avg": 0.00030031584901735187,
|
| 15 |
+
"learning_rate": 0.0,
|
| 16 |
+
"loss_func": "stage2",
|
| 17 |
+
"step": 1
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.01,
|
| 21 |
+
"importance_ratio": 1.0000834465026855,
|
| 22 |
+
"kl_div_avg": 0.0005344079108908772,
|
| 23 |
+
"learning_rate": 2.153382790366965e-07,
|
| 24 |
+
"loss_func": "stage2",
|
| 25 |
+
"step": 2
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"epoch": 0.01,
|
| 29 |
+
"importance_ratio": 1.00002121925354,
|
| 30 |
+
"kl_div_avg": 0.0005927690071985126,
|
| 31 |
+
"learning_rate": 3.4130309724299266e-07,
|
| 32 |
+
"loss_func": "stage2",
|
| 33 |
+
"step": 3
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"epoch": 0.01,
|
| 37 |
+
"importance_ratio": 0.9999922513961792,
|
| 38 |
+
"kl_div_avg": 0.0005759165505878627,
|
| 39 |
+
"learning_rate": 4.30676558073393e-07,
|
| 40 |
+
"loss_func": "stage2",
|
| 41 |
+
"step": 4
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"epoch": 0.01,
|
| 45 |
+
"importance_ratio": 0.9999747276306152,
|
| 46 |
+
"kl_div_avg": 0.0006470452062785625,
|
| 47 |
+
"learning_rate": 5e-07,
|
| 48 |
+
"loss_func": "stage2",
|
| 49 |
+
"step": 5,
|
| 50 |
+
"total_loss": -0.6875
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"epoch": 0.01,
|
| 54 |
+
"importance_ratio": 0.9998948574066162,
|
| 55 |
+
"kl_div_avg": 0.00059888995019719,
|
| 56 |
+
"learning_rate": 5e-07,
|
| 57 |
+
"loss_func": "stage2",
|
| 58 |
+
"step": 6
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"epoch": 0.01,
|
| 62 |
+
"importance_ratio": 0.9999293088912964,
|
| 63 |
+
"kl_div_avg": 0.0008060205727815628,
|
| 64 |
+
"learning_rate": 4.998225062122825e-07,
|
| 65 |
+
"loss_func": "stage2",
|
| 66 |
+
"step": 7,
|
| 67 |
+
"total_loss": 0.7109375
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"epoch": 0.01,
|
| 71 |
+
"importance_ratio": 1.0002951622009277,
|
| 72 |
+
"kl_div_avg": 0.001301910961046815,
|
| 73 |
+
"learning_rate": 4.996450124245652e-07,
|
| 74 |
+
"loss_func": "stage2",
|
| 75 |
+
"step": 8
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"epoch": 0.02,
|
| 79 |
+
"importance_ratio": 1.0000050067901611,
|
| 80 |
+
"kl_div_avg": 0.0010975836776196957,
|
| 81 |
+
"learning_rate": 4.994675186368477e-07,
|
| 82 |
+
"loss_func": "stage2",
|
| 83 |
+
"step": 9
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"epoch": 0.02,
|
| 87 |
+
"importance_ratio": 1.000004768371582,
|
| 88 |
+
"kl_div_avg": 0.0006192830041982234,
|
| 89 |
+
"learning_rate": 4.992900248491303e-07,
|
| 90 |
+
"loss_func": "stage2",
|
| 91 |
+
"step": 10
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"epoch": 0.02,
|
| 95 |
+
"importance_ratio": 1.0005085468292236,
|
| 96 |
+
"kl_div_avg": 0.00045003174454905093,
|
| 97 |
+
"learning_rate": 4.991125310614128e-07,
|
| 98 |
+
"loss_func": "stage2",
|
| 99 |
+
"step": 11
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"epoch": 0.02,
|
| 103 |
+
"importance_ratio": 1.0013489723205566,
|
| 104 |
+
"kl_div_avg": 0.0017541071865707636,
|
| 105 |
+
"learning_rate": 4.989350372736954e-07,
|
| 106 |
+
"loss_func": "stage2",
|
| 107 |
+
"step": 12
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"epoch": 0.03,
|
| 111 |
+
"importance_ratio": 0.9999700784683228,
|
| 112 |
+
"kl_div_avg": 0.0006275521591305733,
|
| 113 |
+
"learning_rate": 4.98757543485978e-07,
|
| 114 |
+
"loss_func": "stage2",
|
| 115 |
+
"step": 13
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"epoch": 0.03,
|
| 119 |
+
"importance_ratio": 0.9999388456344604,
|
| 120 |
+
"kl_div_avg": 0.0024280191864818335,
|
| 121 |
+
"learning_rate": 4.985800496982605e-07,
|
| 122 |
+
"loss_func": "stage2",
|
| 123 |
+
"step": 14
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"epoch": 0.03,
|
| 127 |
+
"importance_ratio": 1.0000910758972168,
|
| 128 |
+
"kl_div_avg": 0.0032281712628901005,
|
| 129 |
+
"learning_rate": 4.984025559105431e-07,
|
| 130 |
+
"loss_func": "stage2",
|
| 131 |
+
"step": 15
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 0.03,
|
| 135 |
+
"importance_ratio": 1.0002039670944214,
|
| 136 |
+
"kl_div_avg": 0.0023550165351480246,
|
| 137 |
+
"learning_rate": 4.982250621228256e-07,
|
| 138 |
+
"loss_func": "stage2",
|
| 139 |
+
"step": 16
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"epoch": 0.04,
|
| 143 |
+
"importance_ratio": 0.9999492764472961,
|
| 144 |
+
"kl_div_avg": 0.0031565451063215733,
|
| 145 |
+
"learning_rate": 4.980475683351083e-07,
|
| 146 |
+
"loss_func": "stage2",
|
| 147 |
+
"step": 17
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"epoch": 0.04,
|
| 151 |
+
"importance_ratio": 1.00008225440979,
|
| 152 |
+
"kl_div_avg": 0.002413892187178135,
|
| 153 |
+
"learning_rate": 4.978700745473908e-07,
|
| 154 |
+
"loss_func": "stage2",
|
| 155 |
+
"step": 18
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"epoch": 0.04,
|
| 159 |
+
"importance_ratio": 1.0003724098205566,
|
| 160 |
+
"kl_div_avg": 0.003695876570418477,
|
| 161 |
+
"learning_rate": 4.976925807596735e-07,
|
| 162 |
+
"loss_func": "stage2",
|
| 163 |
+
"step": 19
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"epoch": 0.04,
|
| 167 |
+
"importance_ratio": 1.000093698501587,
|
| 168 |
+
"kl_div_avg": 0.0021200496703386307,
|
| 169 |
+
"learning_rate": 4.975150869719559e-07,
|
| 170 |
+
"loss_func": "stage2",
|
| 171 |
+
"step": 20
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"epoch": 0.04,
|
| 175 |
+
"importance_ratio": 0.9999486804008484,
|
| 176 |
+
"kl_div_avg": 0.0036798480432480574,
|
| 177 |
+
"learning_rate": 4.973375931842385e-07,
|
| 178 |
+
"loss_func": "stage2",
|
| 179 |
+
"step": 21
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"epoch": 0.04,
|
| 183 |
+
"importance_ratio": 1.000074863433838,
|
| 184 |
+
"kl_div_avg": 0.00499952444806695,
|
| 185 |
+
"learning_rate": 4.971600993965211e-07,
|
| 186 |
+
"loss_func": "stage2",
|
| 187 |
+
"step": 22
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"epoch": 0.04,
|
| 191 |
+
"importance_ratio": 1.0000168085098267,
|
| 192 |
+
"kl_div_avg": 0.00605671014636755,
|
| 193 |
+
"learning_rate": 4.969826056088036e-07,
|
| 194 |
+
"loss_func": "stage2",
|
| 195 |
+
"step": 23
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"epoch": 0.04,
|
| 199 |
+
"importance_ratio": 0.9998180270195007,
|
| 200 |
+
"kl_div_avg": 0.002726056147366762,
|
| 201 |
+
"learning_rate": 4.968051118210863e-07,
|
| 202 |
+
"loss_func": "stage2",
|
| 203 |
+
"step": 24
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"epoch": 0.05,
|
| 207 |
+
"importance_ratio": 1.0000224113464355,
|
| 208 |
+
"kl_div_avg": 0.004386036656796932,
|
| 209 |
+
"learning_rate": 4.966276180333688e-07,
|
| 210 |
+
"loss_func": "stage2",
|
| 211 |
+
"step": 25,
|
| 212 |
+
"total_loss": 1.25
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"epoch": 0.05,
|
| 216 |
+
"importance_ratio": 1.0000128746032715,
|
| 217 |
+
"kl_div_avg": 0.004579769913107157,
|
| 218 |
+
"learning_rate": 4.964501242456514e-07,
|
| 219 |
+
"loss_func": "stage2",
|
| 220 |
+
"step": 26,
|
| 221 |
+
"total_loss": -1.4375
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"epoch": 0.05,
|
| 225 |
+
"importance_ratio": 1.0004100799560547,
|
| 226 |
+
"kl_div_avg": 0.0037285620346665382,
|
| 227 |
+
"learning_rate": 4.962726304579339e-07,
|
| 228 |
+
"loss_func": "stage2",
|
| 229 |
+
"step": 27,
|
| 230 |
+
"total_loss": -1.5078125
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"epoch": 0.05,
|
| 234 |
+
"importance_ratio": 1.0007517337799072,
|
| 235 |
+
"kl_div_avg": 0.0051081208512187,
|
| 236 |
+
"learning_rate": 4.960951366702166e-07,
|
| 237 |
+
"loss_func": "stage2",
|
| 238 |
+
"step": 28,
|
| 239 |
+
"total_loss": 1.390625
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"epoch": 0.06,
|
| 243 |
+
"importance_ratio": 1.0001684427261353,
|
| 244 |
+
"kl_div_avg": 0.006544313859194517,
|
| 245 |
+
"learning_rate": 4.959176428824991e-07,
|
| 246 |
+
"loss_func": "stage2",
|
| 247 |
+
"step": 29,
|
| 248 |
+
"total_loss": 0.29296875
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"epoch": 0.06,
|
| 252 |
+
"importance_ratio": 0.9997209310531616,
|
| 253 |
+
"kl_div_avg": 0.005731683224439621,
|
| 254 |
+
"learning_rate": 4.957401490947816e-07,
|
| 255 |
+
"loss_func": "stage2",
|
| 256 |
+
"step": 30,
|
| 257 |
+
"total_loss": -1.8203125
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"epoch": 0.06,
|
| 261 |
+
"importance_ratio": 0.9997566342353821,
|
| 262 |
+
"kl_div_avg": 0.006199344992637634,
|
| 263 |
+
"learning_rate": 4.955626553070642e-07,
|
| 264 |
+
"loss_func": "stage2",
|
| 265 |
+
"step": 31,
|
| 266 |
+
"total_loss": 0.27734375
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"epoch": 0.06,
|
| 270 |
+
"importance_ratio": 0.9999147653579712,
|
| 271 |
+
"kl_div_avg": 0.006669708527624607,
|
| 272 |
+
"learning_rate": 4.953851615193468e-07,
|
| 273 |
+
"loss_func": "stage2",
|
| 274 |
+
"step": 32,
|
| 275 |
+
"total_loss": 0.69140625
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"epoch": 0.06,
|
| 279 |
+
"importance_ratio": 1.0000065565109253,
|
| 280 |
+
"kl_div_avg": 0.006318950094282627,
|
| 281 |
+
"learning_rate": 4.952076677316294e-07,
|
| 282 |
+
"loss_func": "stage2",
|
| 283 |
+
"step": 33
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"epoch": 0.06,
|
| 287 |
+
"importance_ratio": 0.9999251365661621,
|
| 288 |
+
"kl_div_avg": 0.00437127472832799,
|
| 289 |
+
"learning_rate": 4.950301739439119e-07,
|
| 290 |
+
"loss_func": "stage2",
|
| 291 |
+
"step": 34
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"epoch": 0.06,
|
| 295 |
+
"importance_ratio": 0.9998654127120972,
|
| 296 |
+
"kl_div_avg": 0.005642242729663849,
|
| 297 |
+
"learning_rate": 4.948526801561946e-07,
|
| 298 |
+
"loss_func": "stage2",
|
| 299 |
+
"step": 35
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"epoch": 0.06,
|
| 303 |
+
"importance_ratio": 0.9998089671134949,
|
| 304 |
+
"kl_div_avg": 0.005031378474086523,
|
| 305 |
+
"learning_rate": 4.946751863684771e-07,
|
| 306 |
+
"loss_func": "stage2",
|
| 307 |
+
"step": 36
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"epoch": 0.07,
|
| 311 |
+
"importance_ratio": 1.000056266784668,
|
| 312 |
+
"kl_div_avg": 0.003056820947676897,
|
| 313 |
+
"learning_rate": 4.944976925807596e-07,
|
| 314 |
+
"loss_func": "stage2",
|
| 315 |
+
"step": 37
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"epoch": 0.07,
|
| 319 |
+
"importance_ratio": 0.9996089935302734,
|
| 320 |
+
"kl_div_avg": 0.006132831797003746,
|
| 321 |
+
"learning_rate": 4.943201987930422e-07,
|
| 322 |
+
"loss_func": "stage2",
|
| 323 |
+
"step": 38
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"epoch": 0.07,
|
| 327 |
+
"importance_ratio": 0.9995301365852356,
|
| 328 |
+
"kl_div_avg": 0.007893526926636696,
|
| 329 |
+
"learning_rate": 4.941427050053248e-07,
|
| 330 |
+
"loss_func": "stage2",
|
| 331 |
+
"step": 39
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"epoch": 0.07,
|
| 335 |
+
"importance_ratio": 0.9994716644287109,
|
| 336 |
+
"kl_div_avg": 0.0066243866458535194,
|
| 337 |
+
"learning_rate": 4.939652112176074e-07,
|
| 338 |
+
"loss_func": "stage2",
|
| 339 |
+
"step": 40
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"epoch": 0.08,
|
| 343 |
+
"importance_ratio": 0.9999615550041199,
|
| 344 |
+
"kl_div_avg": 0.0057721324265003204,
|
| 345 |
+
"learning_rate": 4.937877174298899e-07,
|
| 346 |
+
"loss_func": "stage2",
|
| 347 |
+
"step": 41
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"epoch": 0.08,
|
| 351 |
+
"importance_ratio": 0.9999039173126221,
|
| 352 |
+
"kl_div_avg": 0.0047083706595003605,
|
| 353 |
+
"learning_rate": 4.936102236421725e-07,
|
| 354 |
+
"loss_func": "stage2",
|
| 355 |
+
"step": 42
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"epoch": 0.08,
|
| 359 |
+
"importance_ratio": 1.0000641345977783,
|
| 360 |
+
"kl_div_avg": 0.004748873878270388,
|
| 361 |
+
"learning_rate": 4.93432729854455e-07,
|
| 362 |
+
"loss_func": "stage2",
|
| 363 |
+
"step": 43
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"epoch": 0.08,
|
| 367 |
+
"importance_ratio": 1.0001894235610962,
|
| 368 |
+
"kl_div_avg": 0.005917009431868792,
|
| 369 |
+
"learning_rate": 4.932552360667377e-07,
|
| 370 |
+
"loss_func": "stage2",
|
| 371 |
+
"step": 44
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"epoch": 0.09,
|
| 375 |
+
"importance_ratio": 0.9999311566352844,
|
| 376 |
+
"kl_div_avg": 0.0092976875603199,
|
| 377 |
+
"learning_rate": 4.930777422790202e-07,
|
| 378 |
+
"loss_func": "stage2",
|
| 379 |
+
"step": 45
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"epoch": 0.09,
|
| 383 |
+
"importance_ratio": 1.0000026226043701,
|
| 384 |
+
"kl_div_avg": 0.005377490073442459,
|
| 385 |
+
"learning_rate": 4.929002484913027e-07,
|
| 386 |
+
"loss_func": "stage2",
|
| 387 |
+
"step": 46
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"epoch": 0.09,
|
| 391 |
+
"importance_ratio": 1.0002326965332031,
|
| 392 |
+
"kl_div_avg": 0.004946079570800066,
|
| 393 |
+
"learning_rate": 4.927227547035854e-07,
|
| 394 |
+
"loss_func": "stage2",
|
| 395 |
+
"step": 47
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"epoch": 0.09,
|
| 399 |
+
"importance_ratio": 1.0004756450653076,
|
| 400 |
+
"kl_div_avg": 0.00948173925280571,
|
| 401 |
+
"learning_rate": 4.925452609158679e-07,
|
| 402 |
+
"loss_func": "stage2",
|
| 403 |
+
"step": 48
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"epoch": 0.09,
|
| 407 |
+
"importance_ratio": 1.0000537633895874,
|
| 408 |
+
"kl_div_avg": 0.006274993997067213,
|
| 409 |
+
"learning_rate": 4.923677671281505e-07,
|
| 410 |
+
"loss_func": "stage2",
|
| 411 |
+
"step": 49,
|
| 412 |
+
"total_loss": -0.13671875
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"epoch": 0.09,
|
| 416 |
+
"importance_ratio": 1.0003995895385742,
|
| 417 |
+
"kl_div_avg": 0.00666253874078393,
|
| 418 |
+
"learning_rate": 4.92190273340433e-07,
|
| 419 |
+
"loss_func": "stage2",
|
| 420 |
+
"step": 50,
|
| 421 |
+
"total_loss": -1.0
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"epoch": 0.09,
|
| 425 |
+
"importance_ratio": 1.000571608543396,
|
| 426 |
+
"kl_div_avg": 0.005418341141194105,
|
| 427 |
+
"learning_rate": 4.920127795527157e-07,
|
| 428 |
+
"loss_func": "stage2",
|
| 429 |
+
"step": 51,
|
| 430 |
+
"total_loss": 0.984375
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"epoch": 0.09,
|
| 434 |
+
"importance_ratio": 1.0003688335418701,
|
| 435 |
+
"kl_div_avg": 0.0072724176570773125,
|
| 436 |
+
"learning_rate": 4.918352857649982e-07,
|
| 437 |
+
"loss_func": "stage2",
|
| 438 |
+
"step": 52
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"epoch": 0.1,
|
| 442 |
+
"importance_ratio": 0.9999268054962158,
|
| 443 |
+
"kl_div_avg": 0.006783046759665012,
|
| 444 |
+
"learning_rate": 4.916577919772808e-07,
|
| 445 |
+
"loss_func": "stage2",
|
| 446 |
+
"step": 53,
|
| 447 |
+
"total_loss": 1.6015625
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"epoch": 0.1,
|
| 451 |
+
"importance_ratio": 0.9999312162399292,
|
| 452 |
+
"kl_div_avg": 0.008320106193423271,
|
| 453 |
+
"learning_rate": 4.914802981895633e-07,
|
| 454 |
+
"loss_func": "stage2",
|
| 455 |
+
"step": 54,
|
| 456 |
+
"total_loss": -1.078125
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"epoch": 0.1,
|
| 460 |
+
"importance_ratio": 1.0003933906555176,
|
| 461 |
+
"kl_div_avg": 0.007337601855397224,
|
| 462 |
+
"learning_rate": 4.91302804401846e-07,
|
| 463 |
+
"loss_func": "stage2",
|
| 464 |
+
"step": 55,
|
| 465 |
+
"total_loss": -1.03125
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"epoch": 0.1,
|
| 469 |
+
"importance_ratio": 1.0005271434783936,
|
| 470 |
+
"kl_div_avg": 0.007942966185510159,
|
| 471 |
+
"learning_rate": 4.911253106141285e-07,
|
| 472 |
+
"loss_func": "stage2",
|
| 473 |
+
"step": 56
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"epoch": 0.11,
|
| 477 |
+
"importance_ratio": 0.9998326301574707,
|
| 478 |
+
"kl_div_avg": 0.0074424054473638535,
|
| 479 |
+
"learning_rate": 4.90947816826411e-07,
|
| 480 |
+
"loss_func": "stage2",
|
| 481 |
+
"step": 57,
|
| 482 |
+
"total_loss": -0.30859375
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"epoch": 0.11,
|
| 486 |
+
"importance_ratio": 1.000032901763916,
|
| 487 |
+
"kl_div_avg": 0.0086433794349432,
|
| 488 |
+
"learning_rate": 4.907703230386937e-07,
|
| 489 |
+
"loss_func": "stage2",
|
| 490 |
+
"step": 58,
|
| 491 |
+
"total_loss": 0.92578125
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"epoch": 0.11,
|
| 495 |
+
"importance_ratio": 1.0001921653747559,
|
| 496 |
+
"kl_div_avg": 0.006375900469720364,
|
| 497 |
+
"learning_rate": 4.905928292509761e-07,
|
| 498 |
+
"loss_func": "stage2",
|
| 499 |
+
"step": 59
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"epoch": 0.11,
|
| 503 |
+
"importance_ratio": 1.0001673698425293,
|
| 504 |
+
"kl_div_avg": 0.006327753886580467,
|
| 505 |
+
"learning_rate": 4.904153354632588e-07,
|
| 506 |
+
"loss_func": "stage2",
|
| 507 |
+
"step": 60,
|
| 508 |
+
"total_loss": -0.3828125
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"epoch": 0.11,
|
| 512 |
+
"importance_ratio": 1.0000410079956055,
|
| 513 |
+
"kl_div_avg": 0.006148340180516243,
|
| 514 |
+
"learning_rate": 4.902378416755413e-07,
|
| 515 |
+
"loss_func": "stage2",
|
| 516 |
+
"step": 61,
|
| 517 |
+
"total_loss": -1.125
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"epoch": 0.11,
|
| 521 |
+
"importance_ratio": 1.0002260208129883,
|
| 522 |
+
"kl_div_avg": 0.008232634514570236,
|
| 523 |
+
"learning_rate": 4.90060347887824e-07,
|
| 524 |
+
"loss_func": "stage2",
|
| 525 |
+
"step": 62,
|
| 526 |
+
"total_loss": 0.7109375
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"epoch": 0.11,
|
| 530 |
+
"importance_ratio": 1.0003855228424072,
|
| 531 |
+
"kl_div_avg": 0.007037755101919174,
|
| 532 |
+
"learning_rate": 4.898828541001065e-07,
|
| 533 |
+
"loss_func": "stage2",
|
| 534 |
+
"step": 63,
|
| 535 |
+
"total_loss": -1.046875
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"epoch": 0.11,
|
| 539 |
+
"importance_ratio": 1.0001959800720215,
|
| 540 |
+
"kl_div_avg": 0.006870637647807598,
|
| 541 |
+
"learning_rate": 4.89705360312389e-07,
|
| 542 |
+
"loss_func": "stage2",
|
| 543 |
+
"step": 64
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"epoch": 0.12,
|
| 547 |
+
"importance_ratio": 0.9997708797454834,
|
| 548 |
+
"kl_div_avg": 0.012268968857824802,
|
| 549 |
+
"learning_rate": 4.895278665246716e-07,
|
| 550 |
+
"loss_func": "stage2",
|
| 551 |
+
"step": 65
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"epoch": 0.12,
|
| 555 |
+
"importance_ratio": 0.9996875524520874,
|
| 556 |
+
"kl_div_avg": 0.006337402388453484,
|
| 557 |
+
"learning_rate": 4.893503727369541e-07,
|
| 558 |
+
"loss_func": "stage2",
|
| 559 |
+
"step": 66,
|
| 560 |
+
"total_loss": 0.90625
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"epoch": 0.12,
|
| 564 |
+
"importance_ratio": 0.9995450973510742,
|
| 565 |
+
"kl_div_avg": 0.005748244933784008,
|
| 566 |
+
"learning_rate": 4.891728789492368e-07,
|
| 567 |
+
"loss_func": "stage2",
|
| 568 |
+
"step": 67,
|
| 569 |
+
"total_loss": -0.5078125
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"epoch": 0.12,
|
| 573 |
+
"importance_ratio": 0.9986073970794678,
|
| 574 |
+
"kl_div_avg": 0.011714652180671692,
|
| 575 |
+
"learning_rate": 4.889953851615193e-07,
|
| 576 |
+
"loss_func": "stage2",
|
| 577 |
+
"step": 68
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"epoch": 0.13,
|
| 581 |
+
"importance_ratio": 0.9997700452804565,
|
| 582 |
+
"kl_div_avg": 0.009843539446592331,
|
| 583 |
+
"learning_rate": 4.888178913738019e-07,
|
| 584 |
+
"loss_func": "stage2",
|
| 585 |
+
"step": 69,
|
| 586 |
+
"total_loss": -0.40234375
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"epoch": 0.13,
|
| 590 |
+
"importance_ratio": 0.9998771548271179,
|
| 591 |
+
"kl_div_avg": 0.011152197606861591,
|
| 592 |
+
"learning_rate": 4.886403975860844e-07,
|
| 593 |
+
"loss_func": "stage2",
|
| 594 |
+
"step": 70,
|
| 595 |
+
"total_loss": -0.380859375
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"epoch": 0.13,
|
| 599 |
+
"importance_ratio": 0.9998139142990112,
|
| 600 |
+
"kl_div_avg": 0.010612234473228455,
|
| 601 |
+
"learning_rate": 4.884629037983671e-07,
|
| 602 |
+
"loss_func": "stage2",
|
| 603 |
+
"step": 71,
|
| 604 |
+
"total_loss": -0.408203125
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"epoch": 0.13,
|
| 608 |
+
"importance_ratio": 0.9994380474090576,
|
| 609 |
+
"kl_div_avg": 0.008871862664818764,
|
| 610 |
+
"learning_rate": 4.882854100106496e-07,
|
| 611 |
+
"loss_func": "stage2",
|
| 612 |
+
"step": 72,
|
| 613 |
+
"total_loss": 1.484375
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"epoch": 0.13,
|
| 617 |
+
"importance_ratio": 1.000580072402954,
|
| 618 |
+
"kl_div_avg": 0.01336180604994297,
|
| 619 |
+
"learning_rate": 4.881079162229321e-07,
|
| 620 |
+
"loss_func": "stage2",
|
| 621 |
+
"step": 73,
|
| 622 |
+
"total_loss": 0.69921875
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"epoch": 0.13,
|
| 626 |
+
"importance_ratio": 0.9992865324020386,
|
| 627 |
+
"kl_div_avg": 0.01184939220547676,
|
| 628 |
+
"learning_rate": 4.879304224352148e-07,
|
| 629 |
+
"loss_func": "stage2",
|
| 630 |
+
"step": 74,
|
| 631 |
+
"total_loss": 0.9609375
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"epoch": 0.13,
|
| 635 |
+
"importance_ratio": 0.9983202219009399,
|
| 636 |
+
"kl_div_avg": 0.013325630687177181,
|
| 637 |
+
"learning_rate": 4.877529286474973e-07,
|
| 638 |
+
"loss_func": "stage2",
|
| 639 |
+
"step": 75,
|
| 640 |
+
"total_loss": 0.99609375
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"epoch": 0.13,
|
| 644 |
+
"importance_ratio": 0.9995129108428955,
|
| 645 |
+
"kl_div_avg": 0.01113186962902546,
|
| 646 |
+
"learning_rate": 4.875754348597799e-07,
|
| 647 |
+
"loss_func": "stage2",
|
| 648 |
+
"step": 76,
|
| 649 |
+
"total_loss": -1.8984375
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"epoch": 0.14,
|
| 653 |
+
"importance_ratio": 0.9999693632125854,
|
| 654 |
+
"kl_div_avg": 0.0077874367125332355,
|
| 655 |
+
"learning_rate": 4.873979410720624e-07,
|
| 656 |
+
"loss_func": "stage2",
|
| 657 |
+
"step": 77,
|
| 658 |
+
"total_loss": -0.3125
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"epoch": 0.14,
|
| 662 |
+
"importance_ratio": 1.0004016160964966,
|
| 663 |
+
"kl_div_avg": 0.007076024077832699,
|
| 664 |
+
"learning_rate": 4.872204472843451e-07,
|
| 665 |
+
"loss_func": "stage2",
|
| 666 |
+
"step": 78,
|
| 667 |
+
"total_loss": -0.4765625
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"epoch": 0.14,
|
| 671 |
+
"importance_ratio": 1.0008529424667358,
|
| 672 |
+
"kl_div_avg": 0.008574053645133972,
|
| 673 |
+
"learning_rate": 4.870429534966276e-07,
|
| 674 |
+
"loss_func": "stage2",
|
| 675 |
+
"step": 79
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"epoch": 0.14,
|
| 679 |
+
"importance_ratio": 1.0009359121322632,
|
| 680 |
+
"kl_div_avg": 0.006657534744590521,
|
| 681 |
+
"learning_rate": 4.868654597089102e-07,
|
| 682 |
+
"loss_func": "stage2",
|
| 683 |
+
"step": 80,
|
| 684 |
+
"total_loss": 0.953125
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"epoch": 0.15,
|
| 688 |
+
"importance_ratio": 0.9999938011169434,
|
| 689 |
+
"kl_div_avg": 0.01249817293137312,
|
| 690 |
+
"learning_rate": 4.866879659211927e-07,
|
| 691 |
+
"loss_func": "stage2",
|
| 692 |
+
"step": 81,
|
| 693 |
+
"total_loss": 1.421875
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"epoch": 0.15,
|
| 697 |
+
"importance_ratio": 1.0006179809570312,
|
| 698 |
+
"kl_div_avg": 0.011909810826182365,
|
| 699 |
+
"learning_rate": 4.865104721334753e-07,
|
| 700 |
+
"loss_func": "stage2",
|
| 701 |
+
"step": 82,
|
| 702 |
+
"total_loss": -0.189453125
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"epoch": 0.15,
|
| 706 |
+
"importance_ratio": 1.0008633136749268,
|
| 707 |
+
"kl_div_avg": 0.01326713990420103,
|
| 708 |
+
"learning_rate": 4.863329783457579e-07,
|
| 709 |
+
"loss_func": "stage2",
|
| 710 |
+
"step": 83
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"epoch": 0.15,
|
| 714 |
+
"importance_ratio": 1.0014276504516602,
|
| 715 |
+
"kl_div_avg": 0.010602062568068504,
|
| 716 |
+
"learning_rate": 4.861554845580404e-07,
|
| 717 |
+
"loss_func": "stage2",
|
| 718 |
+
"step": 84,
|
| 719 |
+
"total_loss": -0.33203125
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"epoch": 0.16,
|
| 723 |
+
"importance_ratio": 1.0000020265579224,
|
| 724 |
+
"kl_div_avg": 0.010696541517972946,
|
| 725 |
+
"learning_rate": 4.859779907703231e-07,
|
| 726 |
+
"loss_func": "stage2",
|
| 727 |
+
"step": 85
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"epoch": 0.16,
|
| 731 |
+
"importance_ratio": 0.9999282360076904,
|
| 732 |
+
"kl_div_avg": 0.013704588636755943,
|
| 733 |
+
"learning_rate": 4.858004969826056e-07,
|
| 734 |
+
"loss_func": "stage2",
|
| 735 |
+
"step": 86
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"epoch": 0.16,
|
| 739 |
+
"importance_ratio": 0.9988713264465332,
|
| 740 |
+
"kl_div_avg": 0.015348710119724274,
|
| 741 |
+
"learning_rate": 4.856230031948882e-07,
|
| 742 |
+
"loss_func": "stage2",
|
| 743 |
+
"step": 87
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"epoch": 0.16,
|
| 747 |
+
"importance_ratio": 0.9998327493667603,
|
| 748 |
+
"kl_div_avg": 0.012932014651596546,
|
| 749 |
+
"learning_rate": 4.854455094071707e-07,
|
| 750 |
+
"loss_func": "stage2",
|
| 751 |
+
"step": 88
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"epoch": 0.16,
|
| 755 |
+
"importance_ratio": 1.0000953674316406,
|
| 756 |
+
"kl_div_avg": 0.012728630565106869,
|
| 757 |
+
"learning_rate": 4.852680156194532e-07,
|
| 758 |
+
"loss_func": "stage2",
|
| 759 |
+
"step": 89
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"epoch": 0.16,
|
| 763 |
+
"importance_ratio": 0.9999107122421265,
|
| 764 |
+
"kl_div_avg": 0.012436306104063988,
|
| 765 |
+
"learning_rate": 4.850905218317359e-07,
|
| 766 |
+
"loss_func": "stage2",
|
| 767 |
+
"step": 90
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"epoch": 0.16,
|
| 771 |
+
"importance_ratio": 1.0001928806304932,
|
| 772 |
+
"kl_div_avg": 0.010830108076334,
|
| 773 |
+
"learning_rate": 4.849130280440184e-07,
|
| 774 |
+
"loss_func": "stage2",
|
| 775 |
+
"step": 91
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"epoch": 0.16,
|
| 779 |
+
"importance_ratio": 0.9993023872375488,
|
| 780 |
+
"kl_div_avg": 0.011476454325020313,
|
| 781 |
+
"learning_rate": 4.84735534256301e-07,
|
| 782 |
+
"loss_func": "stage2",
|
| 783 |
+
"step": 92
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"epoch": 0.17,
|
| 787 |
+
"importance_ratio": 1.0001647472381592,
|
| 788 |
+
"kl_div_avg": 0.007908498868346214,
|
| 789 |
+
"learning_rate": 4.845580404685835e-07,
|
| 790 |
+
"loss_func": "stage2",
|
| 791 |
+
"step": 93,
|
| 792 |
+
"total_loss": -0.97265625
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"epoch": 0.17,
|
| 796 |
+
"importance_ratio": 0.9995372295379639,
|
| 797 |
+
"kl_div_avg": 0.012396270409226418,
|
| 798 |
+
"learning_rate": 4.843805466808662e-07,
|
| 799 |
+
"loss_func": "stage2",
|
| 800 |
+
"step": 94,
|
| 801 |
+
"total_loss": 0.328125
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"epoch": 0.17,
|
| 805 |
+
"importance_ratio": 0.9988420009613037,
|
| 806 |
+
"kl_div_avg": 0.012851856648921967,
|
| 807 |
+
"learning_rate": 4.842030528931487e-07,
|
| 808 |
+
"loss_func": "stage2",
|
| 809 |
+
"step": 95,
|
| 810 |
+
"total_loss": 0.251953125
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"epoch": 0.17,
|
| 814 |
+
"importance_ratio": 0.9984779357910156,
|
| 815 |
+
"kl_div_avg": 0.010285125114023685,
|
| 816 |
+
"learning_rate": 4.840255591054313e-07,
|
| 817 |
+
"loss_func": "stage2",
|
| 818 |
+
"step": 96
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"epoch": 0.18,
|
| 822 |
+
"importance_ratio": 1.000007152557373,
|
| 823 |
+
"kl_div_avg": 0.01037362776696682,
|
| 824 |
+
"learning_rate": 4.838480653177139e-07,
|
| 825 |
+
"loss_func": "stage2",
|
| 826 |
+
"step": 97
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"epoch": 0.18,
|
| 830 |
+
"importance_ratio": 0.9997274875640869,
|
| 831 |
+
"kl_div_avg": 0.010967772454023361,
|
| 832 |
+
"learning_rate": 4.836705715299965e-07,
|
| 833 |
+
"loss_func": "stage2",
|
| 834 |
+
"step": 98
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"epoch": 0.18,
|
| 838 |
+
"importance_ratio": 0.9996849298477173,
|
| 839 |
+
"kl_div_avg": 0.011234309524297714,
|
| 840 |
+
"learning_rate": 4.83493077742279e-07,
|
| 841 |
+
"loss_func": "stage2",
|
| 842 |
+
"step": 99
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"epoch": 0.18,
|
| 846 |
+
"importance_ratio": 0.9995231628417969,
|
| 847 |
+
"kl_div_avg": 0.010765241459012032,
|
| 848 |
+
"learning_rate": 4.833155839545615e-07,
|
| 849 |
+
"loss_func": "stage2",
|
| 850 |
+
"step": 100
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"epoch": 0.18,
|
| 854 |
+
"importance_ratio": 0.9997826814651489,
|
| 855 |
+
"kl_div_avg": 0.0107155442237854,
|
| 856 |
+
"learning_rate": 4.831380901668442e-07,
|
| 857 |
+
"loss_func": "stage2",
|
| 858 |
+
"step": 101,
|
| 859 |
+
"total_loss": 0.8515625
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"epoch": 0.18,
|
| 863 |
+
"importance_ratio": 1.0002464056015015,
|
| 864 |
+
"kl_div_avg": 0.010471027344465256,
|
| 865 |
+
"learning_rate": 4.829605963791267e-07,
|
| 866 |
+
"loss_func": "stage2",
|
| 867 |
+
"step": 102,
|
| 868 |
+
"total_loss": -0.3359375
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"epoch": 0.18,
|
| 872 |
+
"importance_ratio": 1.000614881515503,
|
| 873 |
+
"kl_div_avg": 0.009624524042010307,
|
| 874 |
+
"learning_rate": 4.827831025914093e-07,
|
| 875 |
+
"loss_func": "stage2",
|
| 876 |
+
"step": 103,
|
| 877 |
+
"total_loss": -1.46875
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"epoch": 0.18,
|
| 881 |
+
"importance_ratio": 1.000823974609375,
|
| 882 |
+
"kl_div_avg": 0.01463034376502037,
|
| 883 |
+
"learning_rate": 4.826056088036918e-07,
|
| 884 |
+
"loss_func": "stage2",
|
| 885 |
+
"step": 104
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"epoch": 0.19,
|
| 889 |
+
"importance_ratio": 0.999914288520813,
|
| 890 |
+
"kl_div_avg": 0.008821999654173851,
|
| 891 |
+
"learning_rate": 4.824281150159745e-07,
|
| 892 |
+
"loss_func": "stage2",
|
| 893 |
+
"step": 105,
|
| 894 |
+
"total_loss": 0.361328125
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"epoch": 0.19,
|
| 898 |
+
"importance_ratio": 1.0005583763122559,
|
| 899 |
+
"kl_div_avg": 0.014264218509197235,
|
| 900 |
+
"learning_rate": 4.82250621228257e-07,
|
| 901 |
+
"loss_func": "stage2",
|
| 902 |
+
"step": 106,
|
| 903 |
+
"total_loss": 0.96484375
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"epoch": 0.19,
|
| 907 |
+
"importance_ratio": 1.0007658004760742,
|
| 908 |
+
"kl_div_avg": 0.006260848604142666,
|
| 909 |
+
"learning_rate": 4.820731274405395e-07,
|
| 910 |
+
"loss_func": "stage2",
|
| 911 |
+
"step": 107,
|
| 912 |
+
"total_loss": -0.78515625
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"epoch": 0.19,
|
| 916 |
+
"importance_ratio": 1.001744031906128,
|
| 917 |
+
"kl_div_avg": 0.010768534615635872,
|
| 918 |
+
"learning_rate": 4.818956336528222e-07,
|
| 919 |
+
"loss_func": "stage2",
|
| 920 |
+
"step": 108,
|
| 921 |
+
"total_loss": -0.10888671875
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"epoch": 0.2,
|
| 925 |
+
"importance_ratio": 1.0000841617584229,
|
| 926 |
+
"kl_div_avg": 0.010653991252183914,
|
| 927 |
+
"learning_rate": 4.817181398651046e-07,
|
| 928 |
+
"loss_func": "stage2",
|
| 929 |
+
"step": 109
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"epoch": 0.2,
|
| 933 |
+
"importance_ratio": 1.0003538131713867,
|
| 934 |
+
"kl_div_avg": 0.010306619107723236,
|
| 935 |
+
"learning_rate": 4.815406460773873e-07,
|
| 936 |
+
"loss_func": "stage2",
|
| 937 |
+
"step": 110
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"epoch": 0.2,
|
| 941 |
+
"importance_ratio": 1.0002071857452393,
|
| 942 |
+
"kl_div_avg": 0.017675137147307396,
|
| 943 |
+
"learning_rate": 4.813631522896698e-07,
|
| 944 |
+
"loss_func": "stage2",
|
| 945 |
+
"step": 111
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"epoch": 0.2,
|
| 949 |
+
"importance_ratio": 1.0005652904510498,
|
| 950 |
+
"kl_div_avg": 0.014808263629674911,
|
| 951 |
+
"learning_rate": 4.811856585019524e-07,
|
| 952 |
+
"loss_func": "stage2",
|
| 953 |
+
"step": 112
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"epoch": 0.21,
|
| 957 |
+
"importance_ratio": 0.9998864531517029,
|
| 958 |
+
"kl_div_avg": 0.007133196573704481,
|
| 959 |
+
"learning_rate": 4.81008164714235e-07,
|
| 960 |
+
"loss_func": "stage2",
|
| 961 |
+
"step": 113
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"epoch": 0.21,
|
| 965 |
+
"importance_ratio": 0.9993472695350647,
|
| 966 |
+
"kl_div_avg": 0.012266352772712708,
|
| 967 |
+
"learning_rate": 4.808306709265176e-07,
|
| 968 |
+
"loss_func": "stage2",
|
| 969 |
+
"step": 114,
|
| 970 |
+
"total_loss": -0.9609375
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"epoch": 0.21,
|
| 974 |
+
"importance_ratio": 0.999112606048584,
|
| 975 |
+
"kl_div_avg": 0.009540843777358532,
|
| 976 |
+
"learning_rate": 4.806531771388001e-07,
|
| 977 |
+
"loss_func": "stage2",
|
| 978 |
+
"step": 115,
|
| 979 |
+
"total_loss": 1.390625
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"epoch": 0.21,
|
| 983 |
+
"importance_ratio": 0.9988101720809937,
|
| 984 |
+
"kl_div_avg": 0.010600866749882698,
|
| 985 |
+
"learning_rate": 4.804756833510826e-07,
|
| 986 |
+
"loss_func": "stage2",
|
| 987 |
+
"step": 116,
|
| 988 |
+
"total_loss": 0.68359375
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"epoch": 0.21,
|
| 992 |
+
"importance_ratio": 1.0000008344650269,
|
| 993 |
+
"kl_div_avg": 0.007777961902320385,
|
| 994 |
+
"learning_rate": 4.802981895633653e-07,
|
| 995 |
+
"loss_func": "stage2",
|
| 996 |
+
"step": 117
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"epoch": 0.21,
|
| 1000 |
+
"importance_ratio": 0.9992760419845581,
|
| 1001 |
+
"kl_div_avg": 0.008088795468211174,
|
| 1002 |
+
"learning_rate": 4.801206957756478e-07,
|
| 1003 |
+
"loss_func": "stage2",
|
| 1004 |
+
"step": 118
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"epoch": 0.21,
|
| 1008 |
+
"importance_ratio": 0.9990713596343994,
|
| 1009 |
+
"kl_div_avg": 0.009075586684048176,
|
| 1010 |
+
"learning_rate": 4.799432019879304e-07,
|
| 1011 |
+
"loss_func": "stage2",
|
| 1012 |
+
"step": 119
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"epoch": 0.21,
|
| 1016 |
+
"importance_ratio": 0.9986318349838257,
|
| 1017 |
+
"kl_div_avg": 0.0066194236278533936,
|
| 1018 |
+
"learning_rate": 4.797657082002129e-07,
|
| 1019 |
+
"loss_func": "stage2",
|
| 1020 |
+
"step": 120
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"epoch": 0.22,
|
| 1024 |
+
"importance_ratio": 0.9999872446060181,
|
| 1025 |
+
"kl_div_avg": 0.007935302332043648,
|
| 1026 |
+
"learning_rate": 4.795882144124956e-07,
|
| 1027 |
+
"loss_func": "stage2",
|
| 1028 |
+
"step": 121
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"epoch": 0.22,
|
| 1032 |
+
"importance_ratio": 0.9994752407073975,
|
| 1033 |
+
"kl_div_avg": 0.007028103340417147,
|
| 1034 |
+
"learning_rate": 4.794107206247781e-07,
|
| 1035 |
+
"loss_func": "stage2",
|
| 1036 |
+
"step": 122
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"epoch": 0.22,
|
| 1040 |
+
"importance_ratio": 0.9989815354347229,
|
| 1041 |
+
"kl_div_avg": 0.0070693036541342735,
|
| 1042 |
+
"learning_rate": 4.792332268370607e-07,
|
| 1043 |
+
"loss_func": "stage2",
|
| 1044 |
+
"step": 123
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"epoch": 0.22,
|
| 1048 |
+
"importance_ratio": 0.9994947910308838,
|
| 1049 |
+
"kl_div_avg": 0.007683721836656332,
|
| 1050 |
+
"learning_rate": 4.790557330493433e-07,
|
| 1051 |
+
"loss_func": "stage2",
|
| 1052 |
+
"step": 124
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"epoch": 0.23,
|
| 1056 |
+
"importance_ratio": 0.9996501207351685,
|
| 1057 |
+
"kl_div_avg": 0.010995806194841862,
|
| 1058 |
+
"learning_rate": 4.788782392616257e-07,
|
| 1059 |
+
"loss_func": "stage2",
|
| 1060 |
+
"step": 125,
|
| 1061 |
+
"total_loss": -0.55859375
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"epoch": 0.23,
|
| 1065 |
+
"importance_ratio": 1.000380516052246,
|
| 1066 |
+
"kl_div_avg": 0.01340421661734581,
|
| 1067 |
+
"learning_rate": 4.787007454739084e-07,
|
| 1068 |
+
"loss_func": "stage2",
|
| 1069 |
+
"step": 126
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"epoch": 0.23,
|
| 1073 |
+
"importance_ratio": 1.000959873199463,
|
| 1074 |
+
"kl_div_avg": 0.009610550478100777,
|
| 1075 |
+
"learning_rate": 4.785232516861909e-07,
|
| 1076 |
+
"loss_func": "stage2",
|
| 1077 |
+
"step": 127,
|
| 1078 |
+
"total_loss": -0.0625
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"epoch": 0.23,
|
| 1082 |
+
"importance_ratio": 1.0012009143829346,
|
| 1083 |
+
"kl_div_avg": 0.009116636589169502,
|
| 1084 |
+
"learning_rate": 4.783457578984736e-07,
|
| 1085 |
+
"loss_func": "stage2",
|
| 1086 |
+
"step": 128,
|
| 1087 |
+
"total_loss": -0.66015625
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"epoch": 0.23,
|
| 1091 |
+
"importance_ratio": 1.0001189708709717,
|
| 1092 |
+
"kl_div_avg": 0.010150732472538948,
|
| 1093 |
+
"learning_rate": 4.781682641107561e-07,
|
| 1094 |
+
"loss_func": "stage2",
|
| 1095 |
+
"step": 129
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"epoch": 0.23,
|
| 1099 |
+
"importance_ratio": 1.0003772974014282,
|
| 1100 |
+
"kl_div_avg": 0.010458733886480331,
|
| 1101 |
+
"learning_rate": 4.779907703230387e-07,
|
| 1102 |
+
"loss_func": "stage2",
|
| 1103 |
+
"step": 130
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"epoch": 0.23,
|
| 1107 |
+
"importance_ratio": 0.9999233484268188,
|
| 1108 |
+
"kl_div_avg": 0.009825407527387142,
|
| 1109 |
+
"learning_rate": 4.778132765353212e-07,
|
| 1110 |
+
"loss_func": "stage2",
|
| 1111 |
+
"step": 131
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"epoch": 0.23,
|
| 1115 |
+
"importance_ratio": 1.001006007194519,
|
| 1116 |
+
"kl_div_avg": 0.00745510496199131,
|
| 1117 |
+
"learning_rate": 4.776357827476038e-07,
|
| 1118 |
+
"loss_func": "stage2",
|
| 1119 |
+
"step": 132
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"epoch": 0.24,
|
| 1123 |
+
"importance_ratio": 0.9999349117279053,
|
| 1124 |
+
"kl_div_avg": 0.013605897314846516,
|
| 1125 |
+
"learning_rate": 4.774582889598864e-07,
|
| 1126 |
+
"loss_func": "stage2",
|
| 1127 |
+
"step": 133
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"epoch": 0.24,
|
| 1131 |
+
"importance_ratio": 0.9999945163726807,
|
| 1132 |
+
"kl_div_avg": 0.010575266554951668,
|
| 1133 |
+
"learning_rate": 4.772807951721689e-07,
|
| 1134 |
+
"loss_func": "stage2",
|
| 1135 |
+
"step": 134
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"epoch": 0.24,
|
| 1139 |
+
"importance_ratio": 1.0001717805862427,
|
| 1140 |
+
"kl_div_avg": 0.01219017431139946,
|
| 1141 |
+
"learning_rate": 4.771033013844515e-07,
|
| 1142 |
+
"loss_func": "stage2",
|
| 1143 |
+
"step": 135
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"epoch": 0.24,
|
| 1147 |
+
"importance_ratio": 0.9999402165412903,
|
| 1148 |
+
"kl_div_avg": 0.014882136136293411,
|
| 1149 |
+
"learning_rate": 4.769258075967341e-07,
|
| 1150 |
+
"loss_func": "stage2",
|
| 1151 |
+
"step": 136
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"epoch": 0.25,
|
| 1155 |
+
"importance_ratio": 0.9999697208404541,
|
| 1156 |
+
"kl_div_avg": 0.011173544451594353,
|
| 1157 |
+
"learning_rate": 4.767483138090166e-07,
|
| 1158 |
+
"loss_func": "stage2",
|
| 1159 |
+
"step": 137,
|
| 1160 |
+
"total_loss": -0.9765625
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"epoch": 0.25,
|
| 1164 |
+
"importance_ratio": 0.9997889399528503,
|
| 1165 |
+
"kl_div_avg": 0.009266650304198265,
|
| 1166 |
+
"learning_rate": 4.765708200212992e-07,
|
| 1167 |
+
"loss_func": "stage2",
|
| 1168 |
+
"step": 138,
|
| 1169 |
+
"total_loss": 1.1484375
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"epoch": 0.25,
|
| 1173 |
+
"importance_ratio": 0.9998738765716553,
|
| 1174 |
+
"kl_div_avg": 0.00967929232865572,
|
| 1175 |
+
"learning_rate": 4.763933262335818e-07,
|
| 1176 |
+
"loss_func": "stage2",
|
| 1177 |
+
"step": 139,
|
| 1178 |
+
"total_loss": 1.7109375
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"epoch": 0.25,
|
| 1182 |
+
"importance_ratio": 0.9994757771492004,
|
| 1183 |
+
"kl_div_avg": 0.007988542318344116,
|
| 1184 |
+
"learning_rate": 4.7621583244586436e-07,
|
| 1185 |
+
"loss_func": "stage2",
|
| 1186 |
+
"step": 140,
|
| 1187 |
+
"total_loss": -1.609375
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"epoch": 0.26,
|
| 1191 |
+
"importance_ratio": 0.9999532699584961,
|
| 1192 |
+
"kl_div_avg": 0.009091874584555626,
|
| 1193 |
+
"learning_rate": 4.7603833865814696e-07,
|
| 1194 |
+
"loss_func": "stage2",
|
| 1195 |
+
"step": 141
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"epoch": 0.26,
|
| 1199 |
+
"importance_ratio": 0.9995992183685303,
|
| 1200 |
+
"kl_div_avg": 0.011182118207216263,
|
| 1201 |
+
"learning_rate": 4.758608448704295e-07,
|
| 1202 |
+
"loss_func": "stage2",
|
| 1203 |
+
"step": 142,
|
| 1204 |
+
"total_loss": 0.796875
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"epoch": 0.26,
|
| 1208 |
+
"importance_ratio": 0.9996076226234436,
|
| 1209 |
+
"kl_div_avg": 0.015766486525535583,
|
| 1210 |
+
"learning_rate": 4.756833510827121e-07,
|
| 1211 |
+
"loss_func": "stage2",
|
| 1212 |
+
"step": 143
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"epoch": 0.26,
|
| 1216 |
+
"importance_ratio": 0.999364972114563,
|
| 1217 |
+
"kl_div_avg": 0.013693357817828655,
|
| 1218 |
+
"learning_rate": 4.7550585729499464e-07,
|
| 1219 |
+
"loss_func": "stage2",
|
| 1220 |
+
"step": 144,
|
| 1221 |
+
"total_loss": -0.47265625
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"epoch": 0.26,
|
| 1225 |
+
"importance_ratio": 0.9999587535858154,
|
| 1226 |
+
"kl_div_avg": 0.005303369835019112,
|
| 1227 |
+
"learning_rate": 4.7532836350727723e-07,
|
| 1228 |
+
"loss_func": "stage2",
|
| 1229 |
+
"step": 145
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"epoch": 0.26,
|
| 1233 |
+
"importance_ratio": 1.0001214742660522,
|
| 1234 |
+
"kl_div_avg": 0.0063499645330011845,
|
| 1235 |
+
"learning_rate": 4.7515086971955983e-07,
|
| 1236 |
+
"loss_func": "stage2",
|
| 1237 |
+
"step": 146,
|
| 1238 |
+
"total_loss": -1.4375
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"epoch": 0.26,
|
| 1242 |
+
"importance_ratio": 1.0005862712860107,
|
| 1243 |
+
"kl_div_avg": 0.007753903977572918,
|
| 1244 |
+
"learning_rate": 4.7497337593184237e-07,
|
| 1245 |
+
"loss_func": "stage2",
|
| 1246 |
+
"step": 147,
|
| 1247 |
+
"total_loss": 1.953125
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"epoch": 0.26,
|
| 1251 |
+
"importance_ratio": 1.000730037689209,
|
| 1252 |
+
"kl_div_avg": 0.005649554077535868,
|
| 1253 |
+
"learning_rate": 4.747958821441249e-07,
|
| 1254 |
+
"loss_func": "stage2",
|
| 1255 |
+
"step": 148,
|
| 1256 |
+
"total_loss": -1.609375
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"epoch": 0.27,
|
| 1260 |
+
"importance_ratio": 1.0000715255737305,
|
| 1261 |
+
"kl_div_avg": 0.012152642011642456,
|
| 1262 |
+
"learning_rate": 4.746183883564075e-07,
|
| 1263 |
+
"loss_func": "stage2",
|
| 1264 |
+
"step": 149,
|
| 1265 |
+
"total_loss": 0.19140625
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"epoch": 0.27,
|
| 1269 |
+
"importance_ratio": 0.9999151825904846,
|
| 1270 |
+
"kl_div_avg": 0.012796454131603241,
|
| 1271 |
+
"learning_rate": 4.7444089456869005e-07,
|
| 1272 |
+
"loss_func": "stage2",
|
| 1273 |
+
"step": 150,
|
| 1274 |
+
"total_loss": 0.11328125
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"epoch": 0.27,
|
| 1278 |
+
"importance_ratio": 1.0002349615097046,
|
| 1279 |
+
"kl_div_avg": 0.01051037572324276,
|
| 1280 |
+
"learning_rate": 4.7426340078097265e-07,
|
| 1281 |
+
"loss_func": "stage2",
|
| 1282 |
+
"step": 151,
|
| 1283 |
+
"total_loss": -0.109375
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"epoch": 0.27,
|
| 1287 |
+
"importance_ratio": 1.001346230506897,
|
| 1288 |
+
"kl_div_avg": 0.013909703120589256,
|
| 1289 |
+
"learning_rate": 4.7408590699325524e-07,
|
| 1290 |
+
"loss_func": "stage2",
|
| 1291 |
+
"step": 152,
|
| 1292 |
+
"total_loss": 0.0966796875
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"epoch": 0.28,
|
| 1296 |
+
"importance_ratio": 0.9999252557754517,
|
| 1297 |
+
"kl_div_avg": 0.014116976410150528,
|
| 1298 |
+
"learning_rate": 4.739084132055378e-07,
|
| 1299 |
+
"loss_func": "stage2",
|
| 1300 |
+
"step": 153
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"epoch": 0.28,
|
| 1304 |
+
"importance_ratio": 1.0002610683441162,
|
| 1305 |
+
"kl_div_avg": 0.019843310117721558,
|
| 1306 |
+
"learning_rate": 4.7373091941782033e-07,
|
| 1307 |
+
"loss_func": "stage2",
|
| 1308 |
+
"step": 154
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"epoch": 0.28,
|
| 1312 |
+
"importance_ratio": 1.0010803937911987,
|
| 1313 |
+
"kl_div_avg": 0.014465966261923313,
|
| 1314 |
+
"learning_rate": 4.735534256301029e-07,
|
| 1315 |
+
"loss_func": "stage2",
|
| 1316 |
+
"step": 155
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"epoch": 0.28,
|
| 1320 |
+
"importance_ratio": 1.0009663105010986,
|
| 1321 |
+
"kl_div_avg": 0.012785017490386963,
|
| 1322 |
+
"learning_rate": 4.733759318423855e-07,
|
| 1323 |
+
"loss_func": "stage2",
|
| 1324 |
+
"step": 156
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"epoch": 0.28,
|
| 1328 |
+
"importance_ratio": 1.0002055168151855,
|
| 1329 |
+
"kl_div_avg": 0.014406196773052216,
|
| 1330 |
+
"learning_rate": 4.7319843805466806e-07,
|
| 1331 |
+
"loss_func": "stage2",
|
| 1332 |
+
"step": 157
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"epoch": 0.28,
|
| 1336 |
+
"importance_ratio": 0.9999687671661377,
|
| 1337 |
+
"kl_div_avg": 0.01354107353836298,
|
| 1338 |
+
"learning_rate": 4.7302094426695066e-07,
|
| 1339 |
+
"loss_func": "stage2",
|
| 1340 |
+
"step": 158
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"epoch": 0.28,
|
| 1344 |
+
"importance_ratio": 0.9995388984680176,
|
| 1345 |
+
"kl_div_avg": 0.010002201423048973,
|
| 1346 |
+
"learning_rate": 4.728434504792332e-07,
|
| 1347 |
+
"loss_func": "stage2",
|
| 1348 |
+
"step": 159
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"epoch": 0.28,
|
| 1352 |
+
"importance_ratio": 0.9996526837348938,
|
| 1353 |
+
"kl_div_avg": 0.012093874625861645,
|
| 1354 |
+
"learning_rate": 4.7266595669151574e-07,
|
| 1355 |
+
"loss_func": "stage2",
|
| 1356 |
+
"step": 160
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"epoch": 0.29,
|
| 1360 |
+
"importance_ratio": 0.9997421503067017,
|
| 1361 |
+
"kl_div_avg": 0.009743213653564453,
|
| 1362 |
+
"learning_rate": 4.7248846290379834e-07,
|
| 1363 |
+
"loss_func": "stage2",
|
| 1364 |
+
"step": 161
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"epoch": 0.29,
|
| 1368 |
+
"importance_ratio": 0.9999602437019348,
|
| 1369 |
+
"kl_div_avg": 0.010792155750095844,
|
| 1370 |
+
"learning_rate": 4.7231096911608094e-07,
|
| 1371 |
+
"loss_func": "stage2",
|
| 1372 |
+
"step": 162
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"epoch": 0.29,
|
| 1376 |
+
"importance_ratio": 0.9999933242797852,
|
| 1377 |
+
"kl_div_avg": 0.010607779026031494,
|
| 1378 |
+
"learning_rate": 4.7213347532836353e-07,
|
| 1379 |
+
"loss_func": "stage2",
|
| 1380 |
+
"step": 163
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"epoch": 0.29,
|
| 1384 |
+
"importance_ratio": 0.999122142791748,
|
| 1385 |
+
"kl_div_avg": 0.011827336624264717,
|
| 1386 |
+
"learning_rate": 4.71955981540646e-07,
|
| 1387 |
+
"loss_func": "stage2",
|
| 1388 |
+
"step": 164
|
| 1389 |
+
}
|
| 1390 |
+
],
|
| 1391 |
+
"logging_steps": 1.0,
|
| 1392 |
+
"max_steps": 2822,
|
| 1393 |
+
"num_input_tokens_seen": 0,
|
| 1394 |
+
"num_train_epochs": 20.0,
|
| 1395 |
+
"save_steps": 50,
|
| 1396 |
+
"total_flos": 0,
|
| 1397 |
+
"train_batch_size": 1,
|
| 1398 |
+
"trial_name": null,
|
| 1399 |
+
"trial_params": null
|
| 1400 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f46e6b8b37276e745292327a73921529fab297b50d103b995177abf1a213fe4
|
| 3 |
+
size 11000
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
zero_to_fp32.py
ADDED
|
@@ -0,0 +1,587 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
# Copyright (c) Microsoft Corporation.
|
| 4 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 5 |
+
|
| 6 |
+
# DeepSpeed Team
|
| 7 |
+
|
| 8 |
+
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
|
| 9 |
+
# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
|
| 10 |
+
# the future. Once extracted, the weights don't require DeepSpeed and can be used in any
|
| 11 |
+
# application.
|
| 12 |
+
#
|
| 13 |
+
# example: python zero_to_fp32.py . pytorch_model.bin
|
| 14 |
+
|
| 15 |
+
import argparse
|
| 16 |
+
import torch
|
| 17 |
+
import glob
|
| 18 |
+
import math
|
| 19 |
+
import os
|
| 20 |
+
import re
|
| 21 |
+
from collections import OrderedDict
|
| 22 |
+
from dataclasses import dataclass
|
| 23 |
+
|
| 24 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 25 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 26 |
+
from deepspeed.utils import logger
|
| 27 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 28 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 29 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
@dataclass
|
| 33 |
+
class zero_model_state:
|
| 34 |
+
buffers: dict()
|
| 35 |
+
param_shapes: dict()
|
| 36 |
+
shared_params: list
|
| 37 |
+
ds_version: int
|
| 38 |
+
frozen_param_shapes: dict()
|
| 39 |
+
frozen_param_fragments: dict()
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
debug = 0
|
| 43 |
+
|
| 44 |
+
# load to cpu
|
| 45 |
+
device = torch.device('cpu')
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def atoi(text):
|
| 49 |
+
return int(text) if text.isdigit() else text
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def natural_keys(text):
|
| 53 |
+
'''
|
| 54 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 55 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 56 |
+
(See Toothy's implementation in the comments)
|
| 57 |
+
'''
|
| 58 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 62 |
+
if not os.path.isdir(checkpoint_dir):
|
| 63 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 64 |
+
|
| 65 |
+
# there should be only one file
|
| 66 |
+
if zero_stage <= 2:
|
| 67 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 68 |
+
elif zero_stage == 3:
|
| 69 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 70 |
+
|
| 71 |
+
if not os.path.exists(file):
|
| 72 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 73 |
+
|
| 74 |
+
return file
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 78 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 79 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 80 |
+
|
| 81 |
+
if len(ckpt_files) == 0:
|
| 82 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 83 |
+
|
| 84 |
+
return ckpt_files
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def get_optim_files(checkpoint_dir):
|
| 88 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def get_model_state_files(checkpoint_dir):
|
| 92 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def parse_model_states(files):
|
| 96 |
+
zero_model_states = []
|
| 97 |
+
for file in files:
|
| 98 |
+
state_dict = torch.load(file, map_location=device)
|
| 99 |
+
|
| 100 |
+
if BUFFER_NAMES not in state_dict:
|
| 101 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 102 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 103 |
+
if debug:
|
| 104 |
+
print("Found buffers:", buffer_names)
|
| 105 |
+
|
| 106 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 107 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 108 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 109 |
+
|
| 110 |
+
# collect parameters that are included in param_shapes
|
| 111 |
+
param_names = []
|
| 112 |
+
for s in param_shapes:
|
| 113 |
+
for name in s.keys():
|
| 114 |
+
param_names.append(name)
|
| 115 |
+
|
| 116 |
+
# update with frozen parameters
|
| 117 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 118 |
+
if frozen_param_shapes is not None:
|
| 119 |
+
if debug:
|
| 120 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 121 |
+
param_names += list(frozen_param_shapes.keys())
|
| 122 |
+
|
| 123 |
+
# handle shared params
|
| 124 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 125 |
+
|
| 126 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 127 |
+
|
| 128 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 129 |
+
|
| 130 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 131 |
+
param_shapes=param_shapes,
|
| 132 |
+
shared_params=shared_params,
|
| 133 |
+
ds_version=ds_version,
|
| 134 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 135 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 136 |
+
zero_model_states.append(z_model_state)
|
| 137 |
+
|
| 138 |
+
return zero_model_states
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 142 |
+
|
| 143 |
+
total_files = len(files)
|
| 144 |
+
state_dicts = []
|
| 145 |
+
for f in files:
|
| 146 |
+
state_dict = torch.load(f, map_location=device)
|
| 147 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 148 |
+
# and also handle the case where it was already removed by another helper script
|
| 149 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 150 |
+
state_dicts.append(state_dict)
|
| 151 |
+
|
| 152 |
+
if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 153 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 154 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 155 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 156 |
+
|
| 157 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 158 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 159 |
+
# use the max of the partition_count to get the dp world_size.
|
| 160 |
+
|
| 161 |
+
if type(world_size) is list:
|
| 162 |
+
world_size = max(world_size)
|
| 163 |
+
|
| 164 |
+
if world_size != total_files:
|
| 165 |
+
raise ValueError(
|
| 166 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 167 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 168 |
+
)
|
| 169 |
+
|
| 170 |
+
# the groups are named differently in each stage
|
| 171 |
+
if zero_stage <= 2:
|
| 172 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 173 |
+
elif zero_stage == 3:
|
| 174 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 175 |
+
else:
|
| 176 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 177 |
+
|
| 178 |
+
if zero_stage <= 2:
|
| 179 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 180 |
+
elif zero_stage == 3:
|
| 181 |
+
# if there is more than one param group, there will be multiple flattened tensors - one
|
| 182 |
+
# flattened tensor per group - for simplicity merge them into a single tensor
|
| 183 |
+
#
|
| 184 |
+
# XXX: could make the script more memory efficient for when there are multiple groups - it
|
| 185 |
+
# will require matching the sub-lists of param_shapes for each param group flattened tensor
|
| 186 |
+
|
| 187 |
+
fp32_flat_groups = [
|
| 188 |
+
torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
|
| 189 |
+
]
|
| 190 |
+
|
| 191 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir):
|
| 195 |
+
"""
|
| 196 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 197 |
+
|
| 198 |
+
Args:
|
| 199 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 200 |
+
|
| 201 |
+
"""
|
| 202 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 203 |
+
|
| 204 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 205 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 206 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 207 |
+
|
| 208 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 209 |
+
|
| 210 |
+
zero_model_states = parse_model_states(model_files)
|
| 211 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 212 |
+
|
| 213 |
+
if zero_stage <= 2:
|
| 214 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states)
|
| 215 |
+
elif zero_stage == 3:
|
| 216 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states)
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 220 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 221 |
+
return
|
| 222 |
+
|
| 223 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 224 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 225 |
+
|
| 226 |
+
if debug:
|
| 227 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 228 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 229 |
+
|
| 230 |
+
wanted_params = len(frozen_param_shapes)
|
| 231 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 232 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 233 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 234 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 235 |
+
|
| 236 |
+
total_params = 0
|
| 237 |
+
total_numel = 0
|
| 238 |
+
for name, shape in frozen_param_shapes.items():
|
| 239 |
+
total_params += 1
|
| 240 |
+
unpartitioned_numel = shape.numel()
|
| 241 |
+
total_numel += unpartitioned_numel
|
| 242 |
+
|
| 243 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 244 |
+
|
| 245 |
+
if debug:
|
| 246 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 247 |
+
|
| 248 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 252 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 253 |
+
|
| 254 |
+
# Reconstruction protocol:
|
| 255 |
+
#
|
| 256 |
+
# XXX: document this
|
| 257 |
+
|
| 258 |
+
if debug:
|
| 259 |
+
for i in range(world_size):
|
| 260 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 261 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 262 |
+
|
| 263 |
+
# XXX: memory usage doubles here (zero2)
|
| 264 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 265 |
+
merged_single_partition_of_fp32_groups = []
|
| 266 |
+
for i in range(num_param_groups):
|
| 267 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 268 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 269 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 270 |
+
avail_numel = sum(
|
| 271 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 272 |
+
|
| 273 |
+
if debug:
|
| 274 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 275 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 276 |
+
# not asserting if there is a mismatch due to possible padding
|
| 277 |
+
print(f"Have {avail_numel} numels to process.")
|
| 278 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 279 |
+
|
| 280 |
+
# params
|
| 281 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 282 |
+
# out-of-core computing solution
|
| 283 |
+
total_numel = 0
|
| 284 |
+
total_params = 0
|
| 285 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 286 |
+
offset = 0
|
| 287 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 288 |
+
for name, shape in shapes.items():
|
| 289 |
+
|
| 290 |
+
unpartitioned_numel = shape.numel()
|
| 291 |
+
total_numel += unpartitioned_numel
|
| 292 |
+
total_params += 1
|
| 293 |
+
|
| 294 |
+
if debug:
|
| 295 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 296 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 297 |
+
offset += unpartitioned_numel
|
| 298 |
+
|
| 299 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 300 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 301 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 302 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 303 |
+
align_to = 2 * world_size
|
| 304 |
+
|
| 305 |
+
def zero2_align(x):
|
| 306 |
+
return align_to * math.ceil(x / align_to)
|
| 307 |
+
|
| 308 |
+
if debug:
|
| 309 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 310 |
+
|
| 311 |
+
offset = zero2_align(offset)
|
| 312 |
+
avail_numel = zero2_align(avail_numel)
|
| 313 |
+
|
| 314 |
+
if debug:
|
| 315 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 316 |
+
|
| 317 |
+
# Sanity check
|
| 318 |
+
if offset != avail_numel:
|
| 319 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 320 |
+
|
| 321 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 322 |
+
|
| 323 |
+
|
| 324 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states):
|
| 325 |
+
state_dict = OrderedDict()
|
| 326 |
+
|
| 327 |
+
# buffers
|
| 328 |
+
buffers = zero_model_states[0].buffers
|
| 329 |
+
state_dict.update(buffers)
|
| 330 |
+
if debug:
|
| 331 |
+
print(f"added {len(buffers)} buffers")
|
| 332 |
+
|
| 333 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 334 |
+
|
| 335 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 336 |
+
|
| 337 |
+
# recover shared parameters
|
| 338 |
+
for pair in zero_model_states[0].shared_params:
|
| 339 |
+
if pair[1] in state_dict:
|
| 340 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 341 |
+
|
| 342 |
+
return state_dict
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 346 |
+
remainder = unpartitioned_numel % world_size
|
| 347 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 348 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 349 |
+
return partitioned_numel, padding_numel
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 353 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 354 |
+
return
|
| 355 |
+
|
| 356 |
+
if debug:
|
| 357 |
+
for i in range(world_size):
|
| 358 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 359 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 360 |
+
|
| 361 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 362 |
+
wanted_params = len(frozen_param_shapes)
|
| 363 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 364 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 365 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 366 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 367 |
+
|
| 368 |
+
total_params = 0
|
| 369 |
+
total_numel = 0
|
| 370 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 371 |
+
total_params += 1
|
| 372 |
+
unpartitioned_numel = shape.numel()
|
| 373 |
+
total_numel += unpartitioned_numel
|
| 374 |
+
|
| 375 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 376 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 377 |
+
|
| 378 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 379 |
+
|
| 380 |
+
if debug:
|
| 381 |
+
print(
|
| 382 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 383 |
+
)
|
| 384 |
+
|
| 385 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 389 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 390 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 391 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 392 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 393 |
+
|
| 394 |
+
# merge list of dicts, preserving order
|
| 395 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 396 |
+
|
| 397 |
+
if debug:
|
| 398 |
+
for i in range(world_size):
|
| 399 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 400 |
+
|
| 401 |
+
wanted_params = len(param_shapes)
|
| 402 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 403 |
+
# not asserting if there is a mismatch due to possible padding
|
| 404 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 405 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 406 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 407 |
+
|
| 408 |
+
# params
|
| 409 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 410 |
+
# out-of-core computing solution
|
| 411 |
+
offset = 0
|
| 412 |
+
total_numel = 0
|
| 413 |
+
total_params = 0
|
| 414 |
+
for name, shape in param_shapes.items():
|
| 415 |
+
|
| 416 |
+
unpartitioned_numel = shape.numel()
|
| 417 |
+
total_numel += unpartitioned_numel
|
| 418 |
+
total_params += 1
|
| 419 |
+
|
| 420 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 421 |
+
|
| 422 |
+
if debug:
|
| 423 |
+
print(
|
| 424 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 425 |
+
)
|
| 426 |
+
|
| 427 |
+
# XXX: memory usage doubles here
|
| 428 |
+
state_dict[name] = torch.cat(
|
| 429 |
+
tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
|
| 430 |
+
0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 431 |
+
offset += partitioned_numel
|
| 432 |
+
|
| 433 |
+
offset *= world_size
|
| 434 |
+
|
| 435 |
+
# Sanity check
|
| 436 |
+
if offset != avail_numel:
|
| 437 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 438 |
+
|
| 439 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 440 |
+
|
| 441 |
+
|
| 442 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states):
|
| 443 |
+
state_dict = OrderedDict()
|
| 444 |
+
|
| 445 |
+
# buffers
|
| 446 |
+
buffers = zero_model_states[0].buffers
|
| 447 |
+
state_dict.update(buffers)
|
| 448 |
+
if debug:
|
| 449 |
+
print(f"added {len(buffers)} buffers")
|
| 450 |
+
|
| 451 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 452 |
+
|
| 453 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 454 |
+
|
| 455 |
+
# recover shared parameters
|
| 456 |
+
for pair in zero_model_states[0].shared_params:
|
| 457 |
+
if pair[1] in state_dict:
|
| 458 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 459 |
+
|
| 460 |
+
return state_dict
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None):
|
| 464 |
+
"""
|
| 465 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 466 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 467 |
+
via a model hub.
|
| 468 |
+
|
| 469 |
+
Args:
|
| 470 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 471 |
+
- ``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``
|
| 472 |
+
|
| 473 |
+
Returns:
|
| 474 |
+
- pytorch ``state_dict``
|
| 475 |
+
|
| 476 |
+
Note: this approach may not work if your application doesn't have sufficient free CPU memory and
|
| 477 |
+
you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 478 |
+
the checkpoint.
|
| 479 |
+
|
| 480 |
+
A typical usage might be ::
|
| 481 |
+
|
| 482 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 483 |
+
# do the training and checkpoint saving
|
| 484 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 485 |
+
model = model.cpu() # move to cpu
|
| 486 |
+
model.load_state_dict(state_dict)
|
| 487 |
+
# submit to model hub or save the model to share with others
|
| 488 |
+
|
| 489 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 490 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 491 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 492 |
+
|
| 493 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 494 |
+
|
| 495 |
+
"""
|
| 496 |
+
if tag is None:
|
| 497 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 498 |
+
if os.path.isfile(latest_path):
|
| 499 |
+
with open(latest_path, 'r') as fd:
|
| 500 |
+
tag = fd.read().strip()
|
| 501 |
+
else:
|
| 502 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 503 |
+
|
| 504 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 505 |
+
|
| 506 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 507 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 508 |
+
|
| 509 |
+
return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir)
|
| 510 |
+
|
| 511 |
+
|
| 512 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_file, tag=None):
|
| 513 |
+
"""
|
| 514 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 515 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 516 |
+
|
| 517 |
+
Args:
|
| 518 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 519 |
+
- ``output_file``: path to the pytorch fp32 state_dict output file (e.g. path/pytorch_model.bin)
|
| 520 |
+
- ``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``
|
| 521 |
+
"""
|
| 522 |
+
|
| 523 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 524 |
+
print(f"Saving fp32 state dict to {output_file}")
|
| 525 |
+
torch.save(state_dict, output_file)
|
| 526 |
+
|
| 527 |
+
|
| 528 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 529 |
+
"""
|
| 530 |
+
1. Put the provided model to cpu
|
| 531 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 532 |
+
3. Load it into the provided model
|
| 533 |
+
|
| 534 |
+
Args:
|
| 535 |
+
- ``model``: the model object to update
|
| 536 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 537 |
+
- ``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``
|
| 538 |
+
|
| 539 |
+
Returns:
|
| 540 |
+
- ``model`: modified model
|
| 541 |
+
|
| 542 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 543 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 544 |
+
conveniently placed for you in the checkpoint folder.
|
| 545 |
+
|
| 546 |
+
A typical usage might be ::
|
| 547 |
+
|
| 548 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 549 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 550 |
+
# submit to model hub or save the model to share with others
|
| 551 |
+
|
| 552 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 553 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 554 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 555 |
+
|
| 556 |
+
"""
|
| 557 |
+
logger.info(f"Extracting fp32 weights")
|
| 558 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 559 |
+
|
| 560 |
+
logger.info(f"Overwriting model with fp32 weights")
|
| 561 |
+
model = model.cpu()
|
| 562 |
+
model.load_state_dict(state_dict, strict=False)
|
| 563 |
+
|
| 564 |
+
return model
|
| 565 |
+
|
| 566 |
+
|
| 567 |
+
if __name__ == "__main__":
|
| 568 |
+
|
| 569 |
+
parser = argparse.ArgumentParser()
|
| 570 |
+
parser.add_argument("checkpoint_dir",
|
| 571 |
+
type=str,
|
| 572 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 573 |
+
parser.add_argument(
|
| 574 |
+
"output_file",
|
| 575 |
+
type=str,
|
| 576 |
+
help="path to the pytorch fp32 state_dict output file (e.g. path/checkpoint-12/pytorch_model.bin)")
|
| 577 |
+
parser.add_argument("-t",
|
| 578 |
+
"--tag",
|
| 579 |
+
type=str,
|
| 580 |
+
default=None,
|
| 581 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 582 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 583 |
+
args = parser.parse_args()
|
| 584 |
+
|
| 585 |
+
debug = args.debug
|
| 586 |
+
|
| 587 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir, args.output_file, tag=args.tag)
|