Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- .ipynb_checkpoints/all_results-checkpoint.json +12 -0
- .ipynb_checkpoints/config-checkpoint.json +35 -0
- .ipynb_checkpoints/special_tokens_map-checkpoint.json +59 -0
- .ipynb_checkpoints/tokenizer-checkpoint.json +3 -0
- .ipynb_checkpoints/tokenizer_config-checkpoint.json +250 -0
- .ipynb_checkpoints/train_results-checkpoint.json +8 -0
- .ipynb_checkpoints/trainer_log-checkpoint.jsonl +155 -0
- .ipynb_checkpoints/trainer_state-checkpoint.json +1123 -0
- added_tokens.json +28 -0
- all_results.json +12 -0
- config.json +35 -0
- configuration_omeganeo.py +59 -0
- eval_results.json +7 -0
- generation_config.json +6 -0
- logs.jsonl +0 -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 +394 -0
- modeling_omeganeo.py +1343 -0
- special_tokens_map.json +59 -0
- tokenization_omeganeo.py +303 -0
- tokenization_omeganeo_fast.py +114 -0
- tokenizer.json +3 -0
- tokenizer_config.json +250 -0
- train_results.json +8 -0
- trainer_log.jsonl +155 -0
- trainer_state.json +1123 -0
- training_args.bin +3 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
.ipynb_checkpoints/tokenizer-checkpoint.json filter=lfs diff=lfs merge=lfs -text
|
.ipynb_checkpoints/all_results-checkpoint.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.995181020635117,
|
| 3 |
+
"eval_loss": 0.37776756286621094,
|
| 4 |
+
"eval_runtime": 82.0824,
|
| 5 |
+
"eval_samples_per_second": 83.026,
|
| 6 |
+
"eval_steps_per_second": 5.19,
|
| 7 |
+
"total_flos": 504886288187392.0,
|
| 8 |
+
"train_loss": 0.33701497725527674,
|
| 9 |
+
"train_runtime": 18615.961,
|
| 10 |
+
"train_samples_per_second": 20.865,
|
| 11 |
+
"train_steps_per_second": 0.081
|
| 12 |
+
}
|
.ipynb_checkpoints/config-checkpoint.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "models/OmegaNeo-8b",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"OmegaNeoForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"auto_map": {
|
| 7 |
+
"AutoConfig": "configuration_omeganeo.OmegaNeoConfig",
|
| 8 |
+
"AutoModel": "configuration_omeganeo.OmegaNeoModel",
|
| 9 |
+
"AutoModelForCausalLM": "modeling_omeganeo.OmegaNeoForCausalLM"
|
| 10 |
+
},
|
| 11 |
+
"attention_dropout": 0.0,
|
| 12 |
+
"bos_token_id": 151643,
|
| 13 |
+
"eos_token_id": 151643,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 3584,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 18944,
|
| 18 |
+
"max_position_embeddings": 32768,
|
| 19 |
+
"max_window_layers": 28,
|
| 20 |
+
"model_type": "omeganeo",
|
| 21 |
+
"num_attention_heads": 28,
|
| 22 |
+
"num_hidden_layers": 32,
|
| 23 |
+
"num_key_value_heads": 4,
|
| 24 |
+
"rms_norm_eps": 1e-06,
|
| 25 |
+
"rope_scaling": null,
|
| 26 |
+
"rope_theta": 1000000.0,
|
| 27 |
+
"sliding_window": null,
|
| 28 |
+
"tie_word_embeddings": false,
|
| 29 |
+
"torch_dtype": "bfloat16",
|
| 30 |
+
"transformers_version": "4.45.0",
|
| 31 |
+
"use_cache": false,
|
| 32 |
+
"use_mrope": false,
|
| 33 |
+
"use_sliding_window": false,
|
| 34 |
+
"vocab_size": 152064
|
| 35 |
+
}
|
.ipynb_checkpoints/special_tokens_map-checkpoint.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>",
|
| 16 |
+
{
|
| 17 |
+
"content": "<chain_of_thought>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"content": "</chain_of_thought>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"content": "<cite docs=",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"content": "</cite>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"eos_token": {
|
| 46 |
+
"content": "<|im_end|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false
|
| 51 |
+
},
|
| 52 |
+
"pad_token": {
|
| 53 |
+
"content": "<|endoftext|>",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false
|
| 58 |
+
}
|
| 59 |
+
}
|
.ipynb_checkpoints/tokenizer-checkpoint.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<chain_of_thought>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": true
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</chain_of_thought>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": true
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<cite docs=",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": true
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</cite>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": true
|
| 212 |
+
}
|
| 213 |
+
},
|
| 214 |
+
"additional_special_tokens": [
|
| 215 |
+
"<|im_start|>",
|
| 216 |
+
"<|im_end|>",
|
| 217 |
+
"<|object_ref_start|>",
|
| 218 |
+
"<|object_ref_end|>",
|
| 219 |
+
"<|box_start|>",
|
| 220 |
+
"<|box_end|>",
|
| 221 |
+
"<|quad_start|>",
|
| 222 |
+
"<|quad_end|>",
|
| 223 |
+
"<|vision_start|>",
|
| 224 |
+
"<|vision_end|>",
|
| 225 |
+
"<|vision_pad|>",
|
| 226 |
+
"<|image_pad|>",
|
| 227 |
+
"<|video_pad|>",
|
| 228 |
+
"<chain_of_thought>",
|
| 229 |
+
"</chain_of_thought>",
|
| 230 |
+
"<cite docs=",
|
| 231 |
+
"</cite>"
|
| 232 |
+
],
|
| 233 |
+
"bos_token": null,
|
| 234 |
+
"auto_map": {
|
| 235 |
+
"AutoTokenizer": [
|
| 236 |
+
"tokenization_omeganeo.OmegaNeoTokenizer",
|
| 237 |
+
null
|
| 238 |
+
]
|
| 239 |
+
},
|
| 240 |
+
"chat_template": "{% set pre_system_message = 'You are Omega, an AI Assistant exclusively developed, trained and powered by the scientists and engineers at QX LAB AI. QX LAB AI, based in Dubai, UAE, specializes in developing and integrating AI technologies to enhance business operations across various industries. You are built on the unique Omega architecture and trained with extensive datasets and configurations. You were developed solely by the scientists and engineers at QX LAB AI, without any external assistance from other organizations or teams.' %}{% if messages[0]['role'] == 'system' %}<|im_start|>system\n{{ pre_system_message }}\n\n{{ messages[0]['content'] }}<|im_end|>\n{% for message in messages[1:] %}{% if message['role'] == 'user' %}<|im_start|>user\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'assistant' %}<|im_start|>assistant\n{{ message['content'] }}<|im_end|>\n{% endif %}{% endfor %}{% else %}<|im_start|>system\n{{ pre_system_message }}<|im_end|>\n{% for message in messages %}{% if message['role'] == 'user' %}<|im_start|>user\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'assistant' %}<|im_start|>assistant\n{{ message['content'] }}<|im_end|>\n{% endif %}{% endfor %}{% endif %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
|
| 241 |
+
"clean_up_tokenization_spaces": false,
|
| 242 |
+
"eos_token": "<|im_end|>",
|
| 243 |
+
"errors": "replace",
|
| 244 |
+
"model_max_length": 32768,
|
| 245 |
+
"pad_token": "<|endoftext|>",
|
| 246 |
+
"padding_side": "right",
|
| 247 |
+
"split_special_tokens": false,
|
| 248 |
+
"tokenizer_class": "OmegaNeoTokenizer",
|
| 249 |
+
"unk_token": null
|
| 250 |
+
}
|
.ipynb_checkpoints/train_results-checkpoint.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.995181020635117,
|
| 3 |
+
"total_flos": 504886288187392.0,
|
| 4 |
+
"train_loss": 0.33701497725527674,
|
| 5 |
+
"train_runtime": 18615.961,
|
| 6 |
+
"train_samples_per_second": 20.865,
|
| 7 |
+
"train_steps_per_second": 0.081
|
| 8 |
+
}
|
.ipynb_checkpoints/trainer_log-checkpoint.jsonl
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"current_steps": 10, "total_steps": 1515, "loss": 1.4192, "learning_rate": 4.347826086956522e-06, "epoch": 0.019770171753367108, "percentage": 0.66, "elapsed_time": "0:02:04", "remaining_time": "5:12:51"}
|
| 2 |
+
{"current_steps": 20, "total_steps": 1515, "loss": 0.9179, "learning_rate": 8.695652173913044e-06, "epoch": 0.039540343506734216, "percentage": 1.32, "elapsed_time": "0:03:59", "remaining_time": "4:58:39"}
|
| 3 |
+
{"current_steps": 30, "total_steps": 1515, "loss": 0.6842, "learning_rate": 1.3043478260869566e-05, "epoch": 0.059310515260101324, "percentage": 1.98, "elapsed_time": "0:05:58", "remaining_time": "4:56:09"}
|
| 4 |
+
{"current_steps": 40, "total_steps": 1515, "loss": 0.5843, "learning_rate": 1.739130434782609e-05, "epoch": 0.07908068701346843, "percentage": 2.64, "elapsed_time": "0:07:54", "remaining_time": "4:51:24"}
|
| 5 |
+
{"current_steps": 50, "total_steps": 1515, "loss": 0.5283, "learning_rate": 1.999963411593758e-05, "epoch": 0.09885085876683554, "percentage": 3.3, "elapsed_time": "0:09:53", "remaining_time": "4:49:58"}
|
| 6 |
+
{"current_steps": 60, "total_steps": 1515, "loss": 0.513, "learning_rate": 1.9995518227714435e-05, "epoch": 0.11862103052020265, "percentage": 3.96, "elapsed_time": "0:11:46", "remaining_time": "4:45:41"}
|
| 7 |
+
{"current_steps": 70, "total_steps": 1515, "loss": 0.498, "learning_rate": 1.9986830984827473e-05, "epoch": 0.13839120227356974, "percentage": 4.62, "elapsed_time": "0:13:40", "remaining_time": "4:42:21"}
|
| 8 |
+
{"current_steps": 80, "total_steps": 1515, "loss": 0.4801, "learning_rate": 1.9973576360304135e-05, "epoch": 0.15816137402693686, "percentage": 5.28, "elapsed_time": "0:15:35", "remaining_time": "4:39:32"}
|
| 9 |
+
{"current_steps": 90, "total_steps": 1515, "loss": 0.4764, "learning_rate": 1.9955760416020185e-05, "epoch": 0.17793154578030396, "percentage": 5.94, "elapsed_time": "0:17:32", "remaining_time": "4:37:44"}
|
| 10 |
+
{"current_steps": 100, "total_steps": 1515, "loss": 0.4707, "learning_rate": 1.9933391299927346e-05, "epoch": 0.19770171753367108, "percentage": 6.6, "elapsed_time": "0:19:37", "remaining_time": "4:37:38"}
|
| 11 |
+
{"current_steps": 110, "total_steps": 1515, "loss": 0.4438, "learning_rate": 1.9906479242326927e-05, "epoch": 0.21747188928703817, "percentage": 7.26, "elapsed_time": "0:21:32", "remaining_time": "4:35:10"}
|
| 12 |
+
{"current_steps": 120, "total_steps": 1515, "loss": 0.4507, "learning_rate": 1.987503655119108e-05, "epoch": 0.2372420610404053, "percentage": 7.92, "elapsed_time": "0:23:26", "remaining_time": "4:32:30"}
|
| 13 |
+
{"current_steps": 130, "total_steps": 1515, "loss": 0.4489, "learning_rate": 1.9839077606533878e-05, "epoch": 0.2570122327937724, "percentage": 8.58, "elapsed_time": "0:25:29", "remaining_time": "4:31:33"}
|
| 14 |
+
{"current_steps": 140, "total_steps": 1515, "loss": 0.4507, "learning_rate": 1.9798618853834747e-05, "epoch": 0.2767824045471395, "percentage": 9.24, "elapsed_time": "0:27:28", "remaining_time": "4:29:48"}
|
| 15 |
+
{"current_steps": 150, "total_steps": 1515, "loss": 0.4542, "learning_rate": 1.975367879651728e-05, "epoch": 0.29655257630050663, "percentage": 9.9, "elapsed_time": "0:29:30", "remaining_time": "4:28:30"}
|
| 16 |
+
{"current_steps": 160, "total_steps": 1515, "loss": 0.439, "learning_rate": 1.970427798748689e-05, "epoch": 0.3163227480538737, "percentage": 10.56, "elapsed_time": "0:31:23", "remaining_time": "4:25:53"}
|
| 17 |
+
{"current_steps": 170, "total_steps": 1515, "loss": 0.4281, "learning_rate": 1.965043901973111e-05, "epoch": 0.3360929198072408, "percentage": 11.22, "elapsed_time": "0:33:16", "remaining_time": "4:23:17"}
|
| 18 |
+
{"current_steps": 180, "total_steps": 1515, "loss": 0.4255, "learning_rate": 1.9592186515986932e-05, "epoch": 0.3558630915606079, "percentage": 11.88, "elapsed_time": "0:35:09", "remaining_time": "4:20:47"}
|
| 19 |
+
{"current_steps": 190, "total_steps": 1515, "loss": 0.4275, "learning_rate": 1.9529547117479802e-05, "epoch": 0.37563326331397506, "percentage": 12.54, "elapsed_time": "0:37:05", "remaining_time": "4:18:42"}
|
| 20 |
+
{"current_steps": 200, "total_steps": 1515, "loss": 0.4391, "learning_rate": 1.9462549471739546e-05, "epoch": 0.39540343506734216, "percentage": 13.2, "elapsed_time": "0:39:11", "remaining_time": "4:17:39"}
|
| 21 |
+
{"current_steps": 210, "total_steps": 1515, "loss": 0.4316, "learning_rate": 1.939122421949868e-05, "epoch": 0.41517360682070925, "percentage": 13.86, "elapsed_time": "0:41:30", "remaining_time": "4:17:58"}
|
| 22 |
+
{"current_steps": 220, "total_steps": 1515, "loss": 0.4309, "learning_rate": 1.931560398067915e-05, "epoch": 0.43494377857407635, "percentage": 14.52, "elapsed_time": "0:43:33", "remaining_time": "4:16:24"}
|
| 23 |
+
{"current_steps": 230, "total_steps": 1515, "loss": 0.4228, "learning_rate": 1.923572333947395e-05, "epoch": 0.4547139503274435, "percentage": 15.18, "elapsed_time": "0:45:34", "remaining_time": "4:14:37"}
|
| 24 |
+
{"current_steps": 240, "total_steps": 1515, "loss": 0.4132, "learning_rate": 1.9151618828530347e-05, "epoch": 0.4744841220808106, "percentage": 15.84, "elapsed_time": "0:47:29", "remaining_time": "4:12:15"}
|
| 25 |
+
{"current_steps": 250, "total_steps": 1515, "loss": 0.4201, "learning_rate": 1.9063328912242047e-05, "epoch": 0.4942542938341777, "percentage": 16.5, "elapsed_time": "0:49:22", "remaining_time": "4:09:51"}
|
| 26 |
+
{"current_steps": 260, "total_steps": 1515, "loss": 0.4175, "learning_rate": 1.8970893969157852e-05, "epoch": 0.5140244655875448, "percentage": 17.16, "elapsed_time": "0:51:17", "remaining_time": "4:07:35"}
|
| 27 |
+
{"current_steps": 270, "total_steps": 1515, "loss": 0.4063, "learning_rate": 1.8874356273514934e-05, "epoch": 0.5337946373409119, "percentage": 17.82, "elapsed_time": "0:53:16", "remaining_time": "4:05:41"}
|
| 28 |
+
{"current_steps": 280, "total_steps": 1515, "loss": 0.4218, "learning_rate": 1.8773759975905098e-05, "epoch": 0.553564809094279, "percentage": 18.48, "elapsed_time": "0:55:20", "remaining_time": "4:04:07"}
|
| 29 |
+
{"current_steps": 290, "total_steps": 1515, "loss": 0.4134, "learning_rate": 1.8669151083082955e-05, "epoch": 0.5733349808476461, "percentage": 19.14, "elapsed_time": "0:57:20", "remaining_time": "4:02:13"}
|
| 30 |
+
{"current_steps": 300, "total_steps": 1515, "loss": 0.3988, "learning_rate": 1.8560577436925144e-05, "epoch": 0.5931051526010133, "percentage": 19.8, "elapsed_time": "0:59:28", "remaining_time": "4:00:50"}
|
| 31 |
+
{"current_steps": 310, "total_steps": 1515, "loss": 0.4175, "learning_rate": 1.8448088692550337e-05, "epoch": 0.6128753243543803, "percentage": 20.46, "elapsed_time": "1:01:28", "remaining_time": "3:58:58"}
|
| 32 |
+
{"current_steps": 320, "total_steps": 1515, "loss": 0.409, "learning_rate": 1.833173629560993e-05, "epoch": 0.6326454961077475, "percentage": 21.12, "elapsed_time": "1:03:27", "remaining_time": "3:56:58"}
|
| 33 |
+
{"current_steps": 330, "total_steps": 1515, "loss": 0.3997, "learning_rate": 1.8211573458759854e-05, "epoch": 0.6524156678611145, "percentage": 21.78, "elapsed_time": "1:05:25", "remaining_time": "3:54:55"}
|
| 34 |
+
{"current_steps": 340, "total_steps": 1515, "loss": 0.4015, "learning_rate": 1.80876551373243e-05, "epoch": 0.6721858396144816, "percentage": 22.44, "elapsed_time": "1:07:16", "remaining_time": "3:52:30"}
|
| 35 |
+
{"current_steps": 350, "total_steps": 1515, "loss": 0.4048, "learning_rate": 1.7960038004162426e-05, "epoch": 0.6919560113678488, "percentage": 23.1, "elapsed_time": "1:09:16", "remaining_time": "3:50:34"}
|
| 36 |
+
{"current_steps": 360, "total_steps": 1515, "loss": 0.4075, "learning_rate": 1.7828780423749536e-05, "epoch": 0.7117261831212158, "percentage": 23.76, "elapsed_time": "1:11:17", "remaining_time": "3:48:43"}
|
| 37 |
+
{"current_steps": 370, "total_steps": 1515, "loss": 0.4102, "learning_rate": 1.769394242548469e-05, "epoch": 0.731496354874583, "percentage": 24.42, "elapsed_time": "1:13:20", "remaining_time": "3:46:57"}
|
| 38 |
+
{"current_steps": 380, "total_steps": 1515, "loss": 0.396, "learning_rate": 1.755558567623678e-05, "epoch": 0.7512665266279501, "percentage": 25.08, "elapsed_time": "1:15:30", "remaining_time": "3:45:33"}
|
| 39 |
+
{"current_steps": 390, "total_steps": 1515, "loss": 0.4063, "learning_rate": 1.741377345214184e-05, "epoch": 0.7710366983813172, "percentage": 25.74, "elapsed_time": "1:17:33", "remaining_time": "3:43:42"}
|
| 40 |
+
{"current_steps": 400, "total_steps": 1515, "loss": 0.4066, "learning_rate": 1.7268570609664253e-05, "epoch": 0.7908068701346843, "percentage": 26.4, "elapsed_time": "1:19:43", "remaining_time": "3:42:13"}
|
| 41 |
+
{"current_steps": 410, "total_steps": 1515, "loss": 0.3848, "learning_rate": 1.71200435559353e-05, "epoch": 0.8105770418880514, "percentage": 27.06, "elapsed_time": "1:21:47", "remaining_time": "3:40:26"}
|
| 42 |
+
{"current_steps": 420, "total_steps": 1515, "loss": 0.3882, "learning_rate": 1.6968260218382484e-05, "epoch": 0.8303472136414185, "percentage": 27.72, "elapsed_time": "1:23:45", "remaining_time": "3:38:22"}
|
| 43 |
+
{"current_steps": 430, "total_steps": 1515, "loss": 0.3957, "learning_rate": 1.6813290013663573e-05, "epoch": 0.8501173853947857, "percentage": 28.38, "elapsed_time": "1:25:47", "remaining_time": "3:36:27"}
|
| 44 |
+
{"current_steps": 440, "total_steps": 1515, "loss": 0.3958, "learning_rate": 1.665520381591955e-05, "epoch": 0.8698875571481527, "percentage": 29.04, "elapsed_time": "1:27:59", "remaining_time": "3:34:57"}
|
| 45 |
+
{"current_steps": 450, "total_steps": 1515, "loss": 0.3846, "learning_rate": 1.6494073924361012e-05, "epoch": 0.8896577289015198, "percentage": 29.7, "elapsed_time": "1:29:50", "remaining_time": "3:32:37"}
|
| 46 |
+
{"current_steps": 460, "total_steps": 1515, "loss": 0.3925, "learning_rate": 1.6329974030202803e-05, "epoch": 0.909427900654887, "percentage": 30.36, "elapsed_time": "1:31:46", "remaining_time": "3:30:28"}
|
| 47 |
+
{"current_steps": 470, "total_steps": 1515, "loss": 0.3806, "learning_rate": 1.6162979182962068e-05, "epoch": 0.929198072408254, "percentage": 31.02, "elapsed_time": "1:33:50", "remaining_time": "3:28:39"}
|
| 48 |
+
{"current_steps": 480, "total_steps": 1515, "loss": 0.4075, "learning_rate": 1.5993165756135035e-05, "epoch": 0.9489682441616212, "percentage": 31.68, "elapsed_time": "1:36:09", "remaining_time": "3:27:20"}
|
| 49 |
+
{"current_steps": 490, "total_steps": 1515, "loss": 0.3771, "learning_rate": 1.5820611412268366e-05, "epoch": 0.9687384159149882, "percentage": 32.34, "elapsed_time": "1:38:20", "remaining_time": "3:25:42"}
|
| 50 |
+
{"current_steps": 500, "total_steps": 1515, "loss": 0.3869, "learning_rate": 1.564539506744091e-05, "epoch": 0.9885085876683554, "percentage": 33.0, "elapsed_time": "1:40:15", "remaining_time": "3:23:32"}
|
| 51 |
+
{"current_steps": 500, "total_steps": 1515, "eval_loss": 0.39637455344200134, "epoch": 0.9885085876683554, "percentage": 33.0, "elapsed_time": "1:41:37", "remaining_time": "3:26:17"}
|
| 52 |
+
{"current_steps": 510, "total_steps": 1515, "loss": 0.356, "learning_rate": 1.546759685517219e-05, "epoch": 1.0082787594217224, "percentage": 33.66, "elapsed_time": "1:44:11", "remaining_time": "3:25:20"}
|
| 53 |
+
{"current_steps": 520, "total_steps": 1515, "loss": 0.3228, "learning_rate": 1.528729808977412e-05, "epoch": 1.0280489311750896, "percentage": 34.32, "elapsed_time": "1:46:14", "remaining_time": "3:23:18"}
|
| 54 |
+
{"current_steps": 530, "total_steps": 1515, "loss": 0.3182, "learning_rate": 1.5104581229162674e-05, "epoch": 1.0478191029284567, "percentage": 34.98, "elapsed_time": "1:48:23", "remaining_time": "3:21:26"}
|
| 55 |
+
{"current_steps": 540, "total_steps": 1515, "loss": 0.3171, "learning_rate": 1.4919529837146529e-05, "epoch": 1.0675892746818239, "percentage": 35.64, "elapsed_time": "1:50:31", "remaining_time": "3:19:33"}
|
| 56 |
+
{"current_steps": 550, "total_steps": 1515, "loss": 0.3202, "learning_rate": 1.4732228545209993e-05, "epoch": 1.087359446435191, "percentage": 36.3, "elapsed_time": "1:52:31", "remaining_time": "3:17:25"}
|
| 57 |
+
{"current_steps": 560, "total_steps": 1515, "loss": 0.3121, "learning_rate": 1.4542763013807568e-05, "epoch": 1.107129618188558, "percentage": 36.96, "elapsed_time": "1:54:37", "remaining_time": "3:15:28"}
|
| 58 |
+
{"current_steps": 570, "total_steps": 1515, "loss": 0.3179, "learning_rate": 1.4351219893187984e-05, "epoch": 1.126899789941925, "percentage": 37.62, "elapsed_time": "1:56:39", "remaining_time": "3:13:23"}
|
| 59 |
+
{"current_steps": 580, "total_steps": 1515, "loss": 0.3112, "learning_rate": 1.4157686783765534e-05, "epoch": 1.1466699616952922, "percentage": 38.28, "elapsed_time": "1:58:36", "remaining_time": "3:11:11"}
|
| 60 |
+
{"current_steps": 590, "total_steps": 1515, "loss": 0.32, "learning_rate": 1.3962252196056847e-05, "epoch": 1.1664401334486594, "percentage": 38.94, "elapsed_time": "2:00:38", "remaining_time": "3:09:08"}
|
| 61 |
+
{"current_steps": 600, "total_steps": 1515, "loss": 0.3156, "learning_rate": 1.3765005510201466e-05, "epoch": 1.1862103052020265, "percentage": 39.6, "elapsed_time": "2:02:27", "remaining_time": "3:06:44"}
|
| 62 |
+
{"current_steps": 610, "total_steps": 1515, "loss": 0.3196, "learning_rate": 1.3566036935084692e-05, "epoch": 1.2059804769553935, "percentage": 40.26, "elapsed_time": "2:04:31", "remaining_time": "3:04:44"}
|
| 63 |
+
{"current_steps": 620, "total_steps": 1515, "loss": 0.3218, "learning_rate": 1.3365437467081406e-05, "epoch": 1.2257506487087606, "percentage": 40.92, "elapsed_time": "2:06:25", "remaining_time": "3:02:29"}
|
| 64 |
+
{"current_steps": 630, "total_steps": 1515, "loss": 0.315, "learning_rate": 1.3163298848439758e-05, "epoch": 1.2455208204621278, "percentage": 41.58, "elapsed_time": "2:08:28", "remaining_time": "3:00:29"}
|
| 65 |
+
{"current_steps": 640, "total_steps": 1515, "loss": 0.3221, "learning_rate": 1.2959713525323725e-05, "epoch": 1.265290992215495, "percentage": 42.24, "elapsed_time": "2:10:26", "remaining_time": "2:58:19"}
|
| 66 |
+
{"current_steps": 650, "total_steps": 1515, "loss": 0.3111, "learning_rate": 1.2754774605533728e-05, "epoch": 1.285061163968862, "percentage": 42.9, "elapsed_time": "2:12:21", "remaining_time": "2:56:07"}
|
| 67 |
+
{"current_steps": 660, "total_steps": 1515, "loss": 0.3151, "learning_rate": 1.2548575815924689e-05, "epoch": 1.3048313357222292, "percentage": 43.56, "elapsed_time": "2:14:22", "remaining_time": "2:54:04"}
|
| 68 |
+
{"current_steps": 670, "total_steps": 1515, "loss": 0.31, "learning_rate": 1.234121145954094e-05, "epoch": 1.3246015074755961, "percentage": 44.22, "elapsed_time": "2:16:16", "remaining_time": "2:51:52"}
|
| 69 |
+
{"current_steps": 680, "total_steps": 1515, "loss": 0.3139, "learning_rate": 1.2132776372487634e-05, "epoch": 1.3443716792289633, "percentage": 44.88, "elapsed_time": "2:18:13", "remaining_time": "2:49:44"}
|
| 70 |
+
{"current_steps": 690, "total_steps": 1515, "loss": 0.3147, "learning_rate": 1.1923365880558345e-05, "epoch": 1.3641418509823304, "percentage": 45.54, "elapsed_time": "2:20:15", "remaining_time": "2:47:41"}
|
| 71 |
+
{"current_steps": 700, "total_steps": 1515, "loss": 0.3153, "learning_rate": 1.1713075755638748e-05, "epoch": 1.3839120227356976, "percentage": 46.2, "elapsed_time": "2:22:20", "remaining_time": "2:45:43"}
|
| 72 |
+
{"current_steps": 710, "total_steps": 1515, "loss": 0.3137, "learning_rate": 1.1502002171906248e-05, "epoch": 1.4036821944890647, "percentage": 46.86, "elapsed_time": "2:24:16", "remaining_time": "2:43:34"}
|
| 73 |
+
{"current_steps": 720, "total_steps": 1515, "loss": 0.301, "learning_rate": 1.1290241661845649e-05, "epoch": 1.4234523662424317, "percentage": 47.52, "elapsed_time": "2:26:14", "remaining_time": "2:41:28"}
|
| 74 |
+
{"current_steps": 730, "total_steps": 1515, "loss": 0.3114, "learning_rate": 1.1077891072100944e-05, "epoch": 1.4432225379957988, "percentage": 48.18, "elapsed_time": "2:28:13", "remaining_time": "2:39:23"}
|
| 75 |
+
{"current_steps": 740, "total_steps": 1515, "loss": 0.3132, "learning_rate": 1.0865047519183411e-05, "epoch": 1.462992709749166, "percentage": 48.84, "elapsed_time": "2:30:12", "remaining_time": "2:37:18"}
|
| 76 |
+
{"current_steps": 750, "total_steps": 1515, "loss": 0.3032, "learning_rate": 1.065180834505634e-05, "epoch": 1.482762881502533, "percentage": 49.5, "elapsed_time": "2:32:05", "remaining_time": "2:35:08"}
|
| 77 |
+
{"current_steps": 760, "total_steps": 1515, "loss": 0.3113, "learning_rate": 1.0438271072616584e-05, "epoch": 1.5025330532559003, "percentage": 50.17, "elapsed_time": "2:34:24", "remaining_time": "2:33:23"}
|
| 78 |
+
{"current_steps": 770, "total_steps": 1515, "loss": 0.3219, "learning_rate": 1.022453336109341e-05, "epoch": 1.5223032250092672, "percentage": 50.83, "elapsed_time": "2:36:25", "remaining_time": "2:31:21"}
|
| 79 |
+
{"current_steps": 780, "total_steps": 1515, "loss": 0.3134, "learning_rate": 1.001069296138499e-05, "epoch": 1.5420733967626343, "percentage": 51.49, "elapsed_time": "2:38:17", "remaining_time": "2:29:10"}
|
| 80 |
+
{"current_steps": 790, "total_steps": 1515, "loss": 0.3126, "learning_rate": 9.796847671352948e-06, "epoch": 1.5618435685160015, "percentage": 52.15, "elapsed_time": "2:40:14", "remaining_time": "2:27:03"}
|
| 81 |
+
{"current_steps": 800, "total_steps": 1515, "loss": 0.3039, "learning_rate": 9.583095291095454e-06, "epoch": 1.5816137402693686, "percentage": 52.81, "elapsed_time": "2:42:10", "remaining_time": "2:24:56"}
|
| 82 |
+
{"current_steps": 810, "total_steps": 1515, "loss": 0.3043, "learning_rate": 9.36953357821928e-06, "epoch": 1.6013839120227358, "percentage": 53.47, "elapsed_time": "2:44:09", "remaining_time": "2:22:52"}
|
| 83 |
+
{"current_steps": 820, "total_steps": 1515, "loss": 0.296, "learning_rate": 9.156260203131299e-06, "epoch": 1.6211540837761027, "percentage": 54.13, "elapsed_time": "2:46:20", "remaining_time": "2:20:58"}
|
| 84 |
+
{"current_steps": 830, "total_steps": 1515, "loss": 0.2962, "learning_rate": 8.943372704369844e-06, "epoch": 1.64092425552947, "percentage": 54.79, "elapsed_time": "2:48:20", "remaining_time": "2:18:56"}
|
| 85 |
+
{"current_steps": 840, "total_steps": 1515, "loss": 0.3129, "learning_rate": 8.730968443996411e-06, "epoch": 1.660694427282837, "percentage": 55.45, "elapsed_time": "2:50:27", "remaining_time": "2:16:58"}
|
| 86 |
+
{"current_steps": 850, "total_steps": 1515, "loss": 0.3119, "learning_rate": 8.519144563068037e-06, "epoch": 1.6804645990362042, "percentage": 56.11, "elapsed_time": "2:52:27", "remaining_time": "2:14:55"}
|
| 87 |
+
{"current_steps": 860, "total_steps": 1515, "loss": 0.3056, "learning_rate": 8.30799793721077e-06, "epoch": 1.7002347707895713, "percentage": 56.77, "elapsed_time": "2:54:17", "remaining_time": "2:12:44"}
|
| 88 |
+
{"current_steps": 870, "total_steps": 1515, "loss": 0.311, "learning_rate": 8.097625132314529e-06, "epoch": 1.7200049425429382, "percentage": 57.43, "elapsed_time": "2:56:10", "remaining_time": "2:10:36"}
|
| 89 |
+
{"current_steps": 880, "total_steps": 1515, "loss": 0.3047, "learning_rate": 7.888122360369617e-06, "epoch": 1.7397751142963056, "percentage": 58.09, "elapsed_time": "2:58:07", "remaining_time": "2:08:31"}
|
| 90 |
+
{"current_steps": 890, "total_steps": 1515, "loss": 0.3011, "learning_rate": 7.67958543546509e-06, "epoch": 1.7595452860496725, "percentage": 58.75, "elapsed_time": "3:00:00", "remaining_time": "2:06:24"}
|
| 91 |
+
{"current_steps": 900, "total_steps": 1515, "loss": 0.2958, "learning_rate": 7.472109729969097e-06, "epoch": 1.7793154578030397, "percentage": 59.41, "elapsed_time": "3:02:00", "remaining_time": "2:04:22"}
|
| 92 |
+
{"current_steps": 910, "total_steps": 1515, "loss": 0.3035, "learning_rate": 7.2657901309112325e-06, "epoch": 1.7990856295564068, "percentage": 60.07, "elapsed_time": "3:03:53", "remaining_time": "2:02:15"}
|
| 93 |
+
{"current_steps": 920, "total_steps": 1515, "loss": 0.3134, "learning_rate": 7.060720996586878e-06, "epoch": 1.8188558013097738, "percentage": 60.73, "elapsed_time": "3:05:51", "remaining_time": "2:00:12"}
|
| 94 |
+
{"current_steps": 930, "total_steps": 1515, "loss": 0.3055, "learning_rate": 6.85699611340333e-06, "epoch": 1.8386259730631411, "percentage": 61.39, "elapsed_time": "3:07:57", "remaining_time": "1:58:14"}
|
| 95 |
+
{"current_steps": 940, "total_steps": 1515, "loss": 0.3043, "learning_rate": 6.654708652987475e-06, "epoch": 1.858396144816508, "percentage": 62.05, "elapsed_time": "3:09:46", "remaining_time": "1:56:05"}
|
| 96 |
+
{"current_steps": 950, "total_steps": 1515, "loss": 0.3048, "learning_rate": 6.453951129574644e-06, "epoch": 1.8781663165698752, "percentage": 62.71, "elapsed_time": "3:11:46", "remaining_time": "1:54:03"}
|
| 97 |
+
{"current_steps": 960, "total_steps": 1515, "loss": 0.3006, "learning_rate": 6.254815357698118e-06, "epoch": 1.8979364883232424, "percentage": 63.37, "elapsed_time": "3:13:50", "remaining_time": "1:52:03"}
|
| 98 |
+
{"current_steps": 970, "total_steps": 1515, "loss": 0.3025, "learning_rate": 6.05739241019862e-06, "epoch": 1.9177066600766093, "percentage": 64.03, "elapsed_time": "3:15:56", "remaining_time": "1:50:05"}
|
| 99 |
+
{"current_steps": 980, "total_steps": 1515, "loss": 0.2956, "learning_rate": 5.861772576573028e-06, "epoch": 1.9374768318299767, "percentage": 64.69, "elapsed_time": "3:18:00", "remaining_time": "1:48:06"}
|
| 100 |
+
{"current_steps": 990, "total_steps": 1515, "loss": 0.3091, "learning_rate": 5.668045321681328e-06, "epoch": 1.9572470035833436, "percentage": 65.35, "elapsed_time": "3:20:05", "remaining_time": "1:46:06"}
|
| 101 |
+
{"current_steps": 1000, "total_steps": 1515, "loss": 0.2999, "learning_rate": 5.476299244830734e-06, "epoch": 1.9770171753367107, "percentage": 66.01, "elapsed_time": "3:22:15", "remaining_time": "1:44:09"}
|
| 102 |
+
{"current_steps": 1000, "total_steps": 1515, "eval_loss": 0.3708229959011078, "epoch": 1.9770171753367107, "percentage": 66.01, "elapsed_time": "3:23:37", "remaining_time": "1:44:51"}
|
| 103 |
+
{"current_steps": 1010, "total_steps": 1515, "loss": 0.3066, "learning_rate": 5.28662203925562e-06, "epoch": 1.9967873470900779, "percentage": 66.67, "elapsed_time": "3:26:12", "remaining_time": "1:43:06"}
|
| 104 |
+
{"current_steps": 1020, "total_steps": 1515, "loss": 0.2574, "learning_rate": 5.099100452011876e-06, "epoch": 2.016557518843445, "percentage": 67.33, "elapsed_time": "3:28:10", "remaining_time": "1:41:01"}
|
| 105 |
+
{"current_steps": 1030, "total_steps": 1515, "loss": 0.2297, "learning_rate": 4.9138202443039625e-06, "epoch": 2.036327690596812, "percentage": 67.99, "elapsed_time": "3:30:18", "remaining_time": "1:39:01"}
|
| 106 |
+
{"current_steps": 1040, "total_steps": 1515, "loss": 0.2445, "learning_rate": 4.730866152262841e-06, "epoch": 2.056097862350179, "percentage": 68.65, "elapsed_time": "3:32:14", "remaining_time": "1:36:56"}
|
| 107 |
+
{"current_steps": 1050, "total_steps": 1515, "loss": 0.2505, "learning_rate": 4.550321848192731e-06, "epoch": 2.0758680341035465, "percentage": 69.31, "elapsed_time": "3:34:12", "remaining_time": "1:34:51"}
|
| 108 |
+
{"current_steps": 1060, "total_steps": 1515, "loss": 0.2494, "learning_rate": 4.3722699023043634e-06, "epoch": 2.0956382058569134, "percentage": 69.97, "elapsed_time": "3:36:10", "remaining_time": "1:32:47"}
|
| 109 |
+
{"current_steps": 1070, "total_steps": 1515, "loss": 0.239, "learning_rate": 4.196791744952291e-06, "epoch": 2.1154083776102803, "percentage": 70.63, "elapsed_time": "3:38:09", "remaining_time": "1:30:43"}
|
| 110 |
+
{"current_steps": 1080, "total_steps": 1515, "loss": 0.2463, "learning_rate": 4.023967629393498e-06, "epoch": 2.1351785493636477, "percentage": 71.29, "elapsed_time": "3:40:19", "remaining_time": "1:28:44"}
|
| 111 |
+
{"current_steps": 1090, "total_steps": 1515, "loss": 0.2455, "learning_rate": 3.853876595084332e-06, "epoch": 2.1549487211170146, "percentage": 71.95, "elapsed_time": "3:42:18", "remaining_time": "1:26:40"}
|
| 112 |
+
{"current_steps": 1100, "total_steps": 1515, "loss": 0.2406, "learning_rate": 3.68659643153258e-06, "epoch": 2.174718892870382, "percentage": 72.61, "elapsed_time": "3:44:21", "remaining_time": "1:24:38"}
|
| 113 |
+
{"current_steps": 1110, "total_steps": 1515, "loss": 0.2333, "learning_rate": 3.5222036427211704e-06, "epoch": 2.194489064623749, "percentage": 73.27, "elapsed_time": "3:46:30", "remaining_time": "1:22:38"}
|
| 114 |
+
{"current_steps": 1120, "total_steps": 1515, "loss": 0.2397, "learning_rate": 3.360773412119801e-06, "epoch": 2.214259236377116, "percentage": 73.93, "elapsed_time": "3:48:26", "remaining_time": "1:20:34"}
|
| 115 |
+
{"current_steps": 1130, "total_steps": 1515, "loss": 0.2394, "learning_rate": 3.202379568300511e-06, "epoch": 2.2340294081304832, "percentage": 74.59, "elapsed_time": "3:50:22", "remaining_time": "1:18:29"}
|
| 116 |
+
{"current_steps": 1140, "total_steps": 1515, "loss": 0.2319, "learning_rate": 3.0470945511728856e-06, "epoch": 2.25379957988385, "percentage": 75.25, "elapsed_time": "3:52:14", "remaining_time": "1:16:23"}
|
| 117 |
+
{"current_steps": 1150, "total_steps": 1515, "loss": 0.2461, "learning_rate": 2.8949893788543505e-06, "epoch": 2.2735697516372175, "percentage": 75.91, "elapsed_time": "3:54:16", "remaining_time": "1:14:21"}
|
| 118 |
+
{"current_steps": 1160, "total_steps": 1515, "loss": 0.2391, "learning_rate": 2.74613361519073e-06, "epoch": 2.2933399233905845, "percentage": 76.57, "elapsed_time": "3:56:14", "remaining_time": "1:12:17"}
|
| 119 |
+
{"current_steps": 1170, "total_steps": 1515, "loss": 0.2532, "learning_rate": 2.60059533794187e-06, "epoch": 2.3131100951439514, "percentage": 77.23, "elapsed_time": "3:58:16", "remaining_time": "1:10:15"}
|
| 120 |
+
{"current_steps": 1180, "total_steps": 1515, "loss": 0.2442, "learning_rate": 2.458441107646935e-06, "epoch": 2.3328802668973188, "percentage": 77.89, "elapsed_time": "4:00:18", "remaining_time": "1:08:13"}
|
| 121 |
+
{"current_steps": 1190, "total_steps": 1515, "loss": 0.2374, "learning_rate": 2.3197359371835802e-06, "epoch": 2.3526504386506857, "percentage": 78.55, "elapsed_time": "4:02:20", "remaining_time": "1:06:11"}
|
| 122 |
+
{"current_steps": 1200, "total_steps": 1515, "loss": 0.2383, "learning_rate": 2.1845432620349338e-06, "epoch": 2.372420610404053, "percentage": 79.21, "elapsed_time": "4:04:26", "remaining_time": "1:04:09"}
|
| 123 |
+
{"current_steps": 1210, "total_steps": 1515, "loss": 0.2388, "learning_rate": 2.0529249112779824e-06, "epoch": 2.39219078215742, "percentage": 79.87, "elapsed_time": "4:06:28", "remaining_time": "1:02:07"}
|
| 124 |
+
{"current_steps": 1220, "total_steps": 1515, "loss": 0.2437, "learning_rate": 1.924941079306647e-06, "epoch": 2.411960953910787, "percentage": 80.53, "elapsed_time": "4:08:32", "remaining_time": "1:00:05"}
|
| 125 |
+
{"current_steps": 1230, "total_steps": 1515, "loss": 0.2482, "learning_rate": 1.8006502983024332e-06, "epoch": 2.4317311256641543, "percentage": 81.19, "elapsed_time": "4:10:31", "remaining_time": "0:58:02"}
|
| 126 |
+
{"current_steps": 1240, "total_steps": 1515, "loss": 0.2313, "learning_rate": 1.6801094114653082e-06, "epoch": 2.451501297417521, "percentage": 81.85, "elapsed_time": "4:12:30", "remaining_time": "0:56:00"}
|
| 127 |
+
{"current_steps": 1250, "total_steps": 1515, "loss": 0.2403, "learning_rate": 1.5633735470170108e-06, "epoch": 2.4712714691708886, "percentage": 82.51, "elapsed_time": "4:14:44", "remaining_time": "0:54:00"}
|
| 128 |
+
{"current_steps": 1260, "total_steps": 1515, "loss": 0.2442, "learning_rate": 1.4504960929886746e-06, "epoch": 2.4910416409242555, "percentage": 83.17, "elapsed_time": "4:16:46", "remaining_time": "0:51:57"}
|
| 129 |
+
{"current_steps": 1270, "total_steps": 1515, "loss": 0.239, "learning_rate": 1.3415286728043374e-06, "epoch": 2.5108118126776224, "percentage": 83.83, "elapsed_time": "4:18:39", "remaining_time": "0:49:54"}
|
| 130 |
+
{"current_steps": 1280, "total_steps": 1515, "loss": 0.2385, "learning_rate": 1.2365211216714523e-06, "epoch": 2.53058198443099, "percentage": 84.49, "elapsed_time": "4:20:41", "remaining_time": "0:47:51"}
|
| 131 |
+
{"current_steps": 1290, "total_steps": 1515, "loss": 0.2482, "learning_rate": 1.135521463789232e-06, "epoch": 2.5503521561843567, "percentage": 85.15, "elapsed_time": "4:22:35", "remaining_time": "0:45:48"}
|
| 132 |
+
{"current_steps": 1300, "total_steps": 1515, "loss": 0.2381, "learning_rate": 1.0385758903852406e-06, "epoch": 2.570122327937724, "percentage": 85.81, "elapsed_time": "4:24:36", "remaining_time": "0:43:45"}
|
| 133 |
+
{"current_steps": 1310, "total_steps": 1515, "loss": 0.2405, "learning_rate": 9.457287385902836e-07, "epoch": 2.589892499691091, "percentage": 86.47, "elapsed_time": "4:26:34", "remaining_time": "0:41:43"}
|
| 134 |
+
{"current_steps": 1320, "total_steps": 1515, "loss": 0.2304, "learning_rate": 8.570224711612385e-07, "epoch": 2.6096626714444584, "percentage": 87.13, "elapsed_time": "4:28:30", "remaining_time": "0:39:39"}
|
| 135 |
+
{"current_steps": 1330, "total_steps": 1515, "loss": 0.2259, "learning_rate": 7.724976570611254e-07, "epoch": 2.6294328431978253, "percentage": 87.79, "elapsed_time": "4:30:25", "remaining_time": "0:37:36"}
|
| 136 |
+
{"current_steps": 1340, "total_steps": 1515, "loss": 0.2318, "learning_rate": 6.921929529052729e-07, "epoch": 2.6492030149511923, "percentage": 88.45, "elapsed_time": "4:32:27", "remaining_time": "0:35:34"}
|
| 137 |
+
{"current_steps": 1350, "total_steps": 1515, "loss": 0.2377, "learning_rate": 6.161450852820872e-07, "epoch": 2.6689731867045596, "percentage": 89.11, "elapsed_time": "4:34:24", "remaining_time": "0:33:32"}
|
| 138 |
+
{"current_steps": 1360, "total_steps": 1515, "loss": 0.2402, "learning_rate": 5.443888339565018e-07, "epoch": 2.6887433584579266, "percentage": 89.77, "elapsed_time": "4:36:35", "remaining_time": "0:31:31"}
|
| 139 |
+
{"current_steps": 1370, "total_steps": 1515, "loss": 0.2401, "learning_rate": 4.769570159637782e-07, "epoch": 2.7085135302112935, "percentage": 90.43, "elapsed_time": "4:38:28", "remaining_time": "0:29:28"}
|
| 140 |
+
{"current_steps": 1380, "total_steps": 1515, "loss": 0.2306, "learning_rate": 4.138804706009547e-07, "epoch": 2.728283701964661, "percentage": 91.09, "elapsed_time": "4:40:32", "remaining_time": "0:27:26"}
|
| 141 |
+
{"current_steps": 1390, "total_steps": 1515, "loss": 0.2407, "learning_rate": 3.5518804532278736e-07, "epoch": 2.748053873718028, "percentage": 91.75, "elapsed_time": "4:42:22", "remaining_time": "0:25:23"}
|
| 142 |
+
{"current_steps": 1400, "total_steps": 1515, "loss": 0.227, "learning_rate": 3.0090658254864013e-07, "epoch": 2.767824045471395, "percentage": 92.41, "elapsed_time": "4:44:24", "remaining_time": "0:23:21"}
|
| 143 |
+
{"current_steps": 1410, "total_steps": 1515, "loss": 0.2306, "learning_rate": 2.5106090738636014e-07, "epoch": 2.787594217224762, "percentage": 93.07, "elapsed_time": "4:46:27", "remaining_time": "0:21:19"}
|
| 144 |
+
{"current_steps": 1420, "total_steps": 1515, "loss": 0.242, "learning_rate": 2.0567381627875639e-07, "epoch": 2.8073643889781295, "percentage": 93.73, "elapsed_time": "4:48:30", "remaining_time": "0:19:18"}
|
| 145 |
+
{"current_steps": 1430, "total_steps": 1515, "loss": 0.2309, "learning_rate": 1.6476606657786386e-07, "epoch": 2.8271345607314964, "percentage": 94.39, "elapsed_time": "4:50:28", "remaining_time": "0:17:15"}
|
| 146 |
+
{"current_steps": 1440, "total_steps": 1515, "loss": 0.2287, "learning_rate": 1.2835636705176403e-07, "epoch": 2.8469047324848633, "percentage": 95.05, "elapsed_time": "4:52:21", "remaining_time": "0:15:13"}
|
| 147 |
+
{"current_steps": 1450, "total_steps": 1515, "loss": 0.2469, "learning_rate": 9.64613693283123e-08, "epoch": 2.8666749042382307, "percentage": 95.71, "elapsed_time": "4:54:24", "remaining_time": "0:13:11"}
|
| 148 |
+
{"current_steps": 1460, "total_steps": 1515, "loss": 0.2458, "learning_rate": 6.909566027966996e-08, "epoch": 2.8864450759915976, "percentage": 96.37, "elapsed_time": "4:56:19", "remaining_time": "0:11:09"}
|
| 149 |
+
{"current_steps": 1470, "total_steps": 1515, "loss": 0.2456, "learning_rate": 4.6271755351144923e-08, "epoch": 2.9062152477449645, "percentage": 97.03, "elapsed_time": "4:58:22", "remaining_time": "0:09:08"}
|
| 150 |
+
{"current_steps": 1480, "total_steps": 1515, "loss": 0.2413, "learning_rate": 2.8000092837368042e-08, "epoch": 2.925985419498332, "percentage": 97.69, "elapsed_time": "5:00:13", "remaining_time": "0:07:06"}
|
| 151 |
+
{"current_steps": 1490, "total_steps": 1515, "loss": 0.2388, "learning_rate": 1.4289029108436325e-08, "epoch": 2.945755591251699, "percentage": 98.35, "elapsed_time": "5:02:13", "remaining_time": "0:05:04"}
|
| 152 |
+
{"current_steps": 1500, "total_steps": 1515, "loss": 0.2454, "learning_rate": 5.14483478821437e-09, "epoch": 2.965525763005066, "percentage": 99.01, "elapsed_time": "5:04:19", "remaining_time": "0:03:02"}
|
| 153 |
+
{"current_steps": 1500, "total_steps": 1515, "eval_loss": 0.37777501344680786, "epoch": 2.965525763005066, "percentage": 99.01, "elapsed_time": "5:05:41", "remaining_time": "0:03:03"}
|
| 154 |
+
{"current_steps": 1510, "total_steps": 1515, "loss": 0.2349, "learning_rate": 5.716918865195098e-10, "epoch": 2.985295934758433, "percentage": 99.67, "elapsed_time": "5:08:31", "remaining_time": "0:01:01"}
|
| 155 |
+
{"current_steps": 1515, "total_steps": 1515, "epoch": 2.995181020635117, "percentage": 100.0, "elapsed_time": "5:10:14", "remaining_time": "0:00:00"}
|
.ipynb_checkpoints/trainer_state-checkpoint.json
ADDED
|
@@ -0,0 +1,1123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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_search": false,
|
| 8 |
+
"is_local_process_zero": true,
|
| 9 |
+
"is_world_process_zero": true,
|
| 10 |
+
"log_history": [
|
| 11 |
+
{
|
| 12 |
+
"epoch": 0.019770171753367108,
|
| 13 |
+
"grad_norm": 8.273716970639242,
|
| 14 |
+
"learning_rate": 4.347826086956522e-06,
|
| 15 |
+
"loss": 1.4192,
|
| 16 |
+
"step": 10
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.039540343506734216,
|
| 20 |
+
"grad_norm": 2.348437423787933,
|
| 21 |
+
"learning_rate": 8.695652173913044e-06,
|
| 22 |
+
"loss": 0.9179,
|
| 23 |
+
"step": 20
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"epoch": 0.059310515260101324,
|
| 27 |
+
"grad_norm": 2.0183151255256266,
|
| 28 |
+
"learning_rate": 1.3043478260869566e-05,
|
| 29 |
+
"loss": 0.6842,
|
| 30 |
+
"step": 30
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 0.07908068701346843,
|
| 34 |
+
"grad_norm": 1.7096945603933598,
|
| 35 |
+
"learning_rate": 1.739130434782609e-05,
|
| 36 |
+
"loss": 0.5843,
|
| 37 |
+
"step": 40
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"epoch": 0.09885085876683554,
|
| 41 |
+
"grad_norm": 1.2099539800951016,
|
| 42 |
+
"learning_rate": 1.999963411593758e-05,
|
| 43 |
+
"loss": 0.5283,
|
| 44 |
+
"step": 50
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 0.11862103052020265,
|
| 48 |
+
"grad_norm": 1.539237571955243,
|
| 49 |
+
"learning_rate": 1.9995518227714435e-05,
|
| 50 |
+
"loss": 0.513,
|
| 51 |
+
"step": 60
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"epoch": 0.13839120227356974,
|
| 55 |
+
"grad_norm": 0.9407018526102695,
|
| 56 |
+
"learning_rate": 1.9986830984827473e-05,
|
| 57 |
+
"loss": 0.498,
|
| 58 |
+
"step": 70
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"epoch": 0.15816137402693686,
|
| 62 |
+
"grad_norm": 0.8754091153209901,
|
| 63 |
+
"learning_rate": 1.9973576360304135e-05,
|
| 64 |
+
"loss": 0.4801,
|
| 65 |
+
"step": 80
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"epoch": 0.17793154578030396,
|
| 69 |
+
"grad_norm": 0.8624602134273651,
|
| 70 |
+
"learning_rate": 1.9955760416020185e-05,
|
| 71 |
+
"loss": 0.4764,
|
| 72 |
+
"step": 90
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"epoch": 0.19770171753367108,
|
| 76 |
+
"grad_norm": 0.8628999100665943,
|
| 77 |
+
"learning_rate": 1.9933391299927346e-05,
|
| 78 |
+
"loss": 0.4707,
|
| 79 |
+
"step": 100
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"epoch": 0.21747188928703817,
|
| 83 |
+
"grad_norm": 0.8080598017374558,
|
| 84 |
+
"learning_rate": 1.9906479242326927e-05,
|
| 85 |
+
"loss": 0.4438,
|
| 86 |
+
"step": 110
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"epoch": 0.2372420610404053,
|
| 90 |
+
"grad_norm": 0.7079645225164415,
|
| 91 |
+
"learning_rate": 1.987503655119108e-05,
|
| 92 |
+
"loss": 0.4507,
|
| 93 |
+
"step": 120
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"epoch": 0.2570122327937724,
|
| 97 |
+
"grad_norm": 0.8311840484882397,
|
| 98 |
+
"learning_rate": 1.9839077606533878e-05,
|
| 99 |
+
"loss": 0.4489,
|
| 100 |
+
"step": 130
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 0.2767824045471395,
|
| 104 |
+
"grad_norm": 0.8147624642320691,
|
| 105 |
+
"learning_rate": 1.9798618853834747e-05,
|
| 106 |
+
"loss": 0.4507,
|
| 107 |
+
"step": 140
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"epoch": 0.29655257630050663,
|
| 111 |
+
"grad_norm": 0.8371409045137015,
|
| 112 |
+
"learning_rate": 1.975367879651728e-05,
|
| 113 |
+
"loss": 0.4542,
|
| 114 |
+
"step": 150
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"epoch": 0.3163227480538737,
|
| 118 |
+
"grad_norm": 0.7237155579293956,
|
| 119 |
+
"learning_rate": 1.970427798748689e-05,
|
| 120 |
+
"loss": 0.439,
|
| 121 |
+
"step": 160
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"epoch": 0.3360929198072408,
|
| 125 |
+
"grad_norm": 0.6804376236541478,
|
| 126 |
+
"learning_rate": 1.965043901973111e-05,
|
| 127 |
+
"loss": 0.4281,
|
| 128 |
+
"step": 170
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"epoch": 0.3558630915606079,
|
| 132 |
+
"grad_norm": 0.7087718772894039,
|
| 133 |
+
"learning_rate": 1.9592186515986932e-05,
|
| 134 |
+
"loss": 0.4255,
|
| 135 |
+
"step": 180
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"epoch": 0.37563326331397506,
|
| 139 |
+
"grad_norm": 0.6404671722237,
|
| 140 |
+
"learning_rate": 1.9529547117479802e-05,
|
| 141 |
+
"loss": 0.4275,
|
| 142 |
+
"step": 190
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"epoch": 0.39540343506734216,
|
| 146 |
+
"grad_norm": 0.6613559685528836,
|
| 147 |
+
"learning_rate": 1.9462549471739546e-05,
|
| 148 |
+
"loss": 0.4391,
|
| 149 |
+
"step": 200
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"epoch": 0.41517360682070925,
|
| 153 |
+
"grad_norm": 0.7702640494158857,
|
| 154 |
+
"learning_rate": 1.939122421949868e-05,
|
| 155 |
+
"loss": 0.4316,
|
| 156 |
+
"step": 210
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"epoch": 0.43494377857407635,
|
| 160 |
+
"grad_norm": 0.6687391965346136,
|
| 161 |
+
"learning_rate": 1.931560398067915e-05,
|
| 162 |
+
"loss": 0.4309,
|
| 163 |
+
"step": 220
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"epoch": 0.4547139503274435,
|
| 167 |
+
"grad_norm": 0.6455592214289195,
|
| 168 |
+
"learning_rate": 1.923572333947395e-05,
|
| 169 |
+
"loss": 0.4228,
|
| 170 |
+
"step": 230
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"epoch": 0.4744841220808106,
|
| 174 |
+
"grad_norm": 0.6638256696831698,
|
| 175 |
+
"learning_rate": 1.9151618828530347e-05,
|
| 176 |
+
"loss": 0.4132,
|
| 177 |
+
"step": 240
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"epoch": 0.4942542938341777,
|
| 181 |
+
"grad_norm": 0.6035529106490282,
|
| 182 |
+
"learning_rate": 1.9063328912242047e-05,
|
| 183 |
+
"loss": 0.4201,
|
| 184 |
+
"step": 250
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"epoch": 0.5140244655875448,
|
| 188 |
+
"grad_norm": 0.6181775363815968,
|
| 189 |
+
"learning_rate": 1.8970893969157852e-05,
|
| 190 |
+
"loss": 0.4175,
|
| 191 |
+
"step": 260
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"epoch": 0.5337946373409119,
|
| 195 |
+
"grad_norm": 0.6133100135259807,
|
| 196 |
+
"learning_rate": 1.8874356273514934e-05,
|
| 197 |
+
"loss": 0.4063,
|
| 198 |
+
"step": 270
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"epoch": 0.553564809094279,
|
| 202 |
+
"grad_norm": 0.5966662360815947,
|
| 203 |
+
"learning_rate": 1.8773759975905098e-05,
|
| 204 |
+
"loss": 0.4218,
|
| 205 |
+
"step": 280
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"epoch": 0.5733349808476461,
|
| 209 |
+
"grad_norm": 0.6703060027446681,
|
| 210 |
+
"learning_rate": 1.8669151083082955e-05,
|
| 211 |
+
"loss": 0.4134,
|
| 212 |
+
"step": 290
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"epoch": 0.5931051526010133,
|
| 216 |
+
"grad_norm": 0.6252415388725653,
|
| 217 |
+
"learning_rate": 1.8560577436925144e-05,
|
| 218 |
+
"loss": 0.3988,
|
| 219 |
+
"step": 300
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"epoch": 0.6128753243543803,
|
| 223 |
+
"grad_norm": 0.6060817440235046,
|
| 224 |
+
"learning_rate": 1.8448088692550337e-05,
|
| 225 |
+
"loss": 0.4175,
|
| 226 |
+
"step": 310
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"epoch": 0.6326454961077475,
|
| 230 |
+
"grad_norm": 0.6593209743601871,
|
| 231 |
+
"learning_rate": 1.833173629560993e-05,
|
| 232 |
+
"loss": 0.409,
|
| 233 |
+
"step": 320
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"epoch": 0.6524156678611145,
|
| 237 |
+
"grad_norm": 0.5982036518358108,
|
| 238 |
+
"learning_rate": 1.8211573458759854e-05,
|
| 239 |
+
"loss": 0.3997,
|
| 240 |
+
"step": 330
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"epoch": 0.6721858396144816,
|
| 244 |
+
"grad_norm": 0.5833507470903769,
|
| 245 |
+
"learning_rate": 1.80876551373243e-05,
|
| 246 |
+
"loss": 0.4015,
|
| 247 |
+
"step": 340
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"epoch": 0.6919560113678488,
|
| 251 |
+
"grad_norm": 0.6279313755216596,
|
| 252 |
+
"learning_rate": 1.7960038004162426e-05,
|
| 253 |
+
"loss": 0.4048,
|
| 254 |
+
"step": 350
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"epoch": 0.7117261831212158,
|
| 258 |
+
"grad_norm": 0.6685300488229989,
|
| 259 |
+
"learning_rate": 1.7828780423749536e-05,
|
| 260 |
+
"loss": 0.4075,
|
| 261 |
+
"step": 360
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"epoch": 0.731496354874583,
|
| 265 |
+
"grad_norm": 0.574309905920571,
|
| 266 |
+
"learning_rate": 1.769394242548469e-05,
|
| 267 |
+
"loss": 0.4102,
|
| 268 |
+
"step": 370
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"epoch": 0.7512665266279501,
|
| 272 |
+
"grad_norm": 0.5657263244028015,
|
| 273 |
+
"learning_rate": 1.755558567623678e-05,
|
| 274 |
+
"loss": 0.396,
|
| 275 |
+
"step": 380
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"epoch": 0.7710366983813172,
|
| 279 |
+
"grad_norm": 0.5797623404841392,
|
| 280 |
+
"learning_rate": 1.741377345214184e-05,
|
| 281 |
+
"loss": 0.4063,
|
| 282 |
+
"step": 390
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"epoch": 0.7908068701346843,
|
| 286 |
+
"grad_norm": 0.5734761888945618,
|
| 287 |
+
"learning_rate": 1.7268570609664253e-05,
|
| 288 |
+
"loss": 0.4066,
|
| 289 |
+
"step": 400
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"epoch": 0.8105770418880514,
|
| 293 |
+
"grad_norm": 0.5725087962478311,
|
| 294 |
+
"learning_rate": 1.71200435559353e-05,
|
| 295 |
+
"loss": 0.3848,
|
| 296 |
+
"step": 410
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"epoch": 0.8303472136414185,
|
| 300 |
+
"grad_norm": 0.6574852860839745,
|
| 301 |
+
"learning_rate": 1.6968260218382484e-05,
|
| 302 |
+
"loss": 0.3882,
|
| 303 |
+
"step": 420
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"epoch": 0.8501173853947857,
|
| 307 |
+
"grad_norm": 0.6526897086539006,
|
| 308 |
+
"learning_rate": 1.6813290013663573e-05,
|
| 309 |
+
"loss": 0.3957,
|
| 310 |
+
"step": 430
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"epoch": 0.8698875571481527,
|
| 314 |
+
"grad_norm": 0.6101372561347892,
|
| 315 |
+
"learning_rate": 1.665520381591955e-05,
|
| 316 |
+
"loss": 0.3958,
|
| 317 |
+
"step": 440
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"epoch": 0.8896577289015198,
|
| 321 |
+
"grad_norm": 0.6102719326578399,
|
| 322 |
+
"learning_rate": 1.6494073924361012e-05,
|
| 323 |
+
"loss": 0.3846,
|
| 324 |
+
"step": 450
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"epoch": 0.909427900654887,
|
| 328 |
+
"grad_norm": 0.6284095546066177,
|
| 329 |
+
"learning_rate": 1.6329974030202803e-05,
|
| 330 |
+
"loss": 0.3925,
|
| 331 |
+
"step": 460
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"epoch": 0.929198072408254,
|
| 335 |
+
"grad_norm": 0.5573501907726315,
|
| 336 |
+
"learning_rate": 1.6162979182962068e-05,
|
| 337 |
+
"loss": 0.3806,
|
| 338 |
+
"step": 470
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"epoch": 0.9489682441616212,
|
| 342 |
+
"grad_norm": 0.6587508652316405,
|
| 343 |
+
"learning_rate": 1.5993165756135035e-05,
|
| 344 |
+
"loss": 0.4075,
|
| 345 |
+
"step": 480
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"epoch": 0.9687384159149882,
|
| 349 |
+
"grad_norm": 0.5309276250787578,
|
| 350 |
+
"learning_rate": 1.5820611412268366e-05,
|
| 351 |
+
"loss": 0.3771,
|
| 352 |
+
"step": 490
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"epoch": 0.9885085876683554,
|
| 356 |
+
"grad_norm": 0.5555801576940601,
|
| 357 |
+
"learning_rate": 1.564539506744091e-05,
|
| 358 |
+
"loss": 0.3869,
|
| 359 |
+
"step": 500
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"epoch": 0.9885085876683554,
|
| 363 |
+
"eval_loss": 0.39637455344200134,
|
| 364 |
+
"eval_runtime": 81.285,
|
| 365 |
+
"eval_samples_per_second": 83.841,
|
| 366 |
+
"eval_steps_per_second": 5.241,
|
| 367 |
+
"step": 500
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"epoch": 1.0082787594217224,
|
| 371 |
+
"grad_norm": 0.5067307545314473,
|
| 372 |
+
"learning_rate": 1.546759685517219e-05,
|
| 373 |
+
"loss": 0.356,
|
| 374 |
+
"step": 510
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"epoch": 1.0280489311750896,
|
| 378 |
+
"grad_norm": 0.5618999195126448,
|
| 379 |
+
"learning_rate": 1.528729808977412e-05,
|
| 380 |
+
"loss": 0.3228,
|
| 381 |
+
"step": 520
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"epoch": 1.0478191029284567,
|
| 385 |
+
"grad_norm": 0.5098273070317775,
|
| 386 |
+
"learning_rate": 1.5104581229162674e-05,
|
| 387 |
+
"loss": 0.3182,
|
| 388 |
+
"step": 530
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"epoch": 1.0675892746818239,
|
| 392 |
+
"grad_norm": 0.5533254988756643,
|
| 393 |
+
"learning_rate": 1.4919529837146529e-05,
|
| 394 |
+
"loss": 0.3171,
|
| 395 |
+
"step": 540
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"epoch": 1.087359446435191,
|
| 399 |
+
"grad_norm": 0.5964907411663062,
|
| 400 |
+
"learning_rate": 1.4732228545209993e-05,
|
| 401 |
+
"loss": 0.3202,
|
| 402 |
+
"step": 550
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"epoch": 1.107129618188558,
|
| 406 |
+
"grad_norm": 0.5065864215097721,
|
| 407 |
+
"learning_rate": 1.4542763013807568e-05,
|
| 408 |
+
"loss": 0.3121,
|
| 409 |
+
"step": 560
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"epoch": 1.126899789941925,
|
| 413 |
+
"grad_norm": 0.5343714773450696,
|
| 414 |
+
"learning_rate": 1.4351219893187984e-05,
|
| 415 |
+
"loss": 0.3179,
|
| 416 |
+
"step": 570
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"epoch": 1.1466699616952922,
|
| 420 |
+
"grad_norm": 0.5681605326118392,
|
| 421 |
+
"learning_rate": 1.4157686783765534e-05,
|
| 422 |
+
"loss": 0.3112,
|
| 423 |
+
"step": 580
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"epoch": 1.1664401334486594,
|
| 427 |
+
"grad_norm": 0.5604875931807674,
|
| 428 |
+
"learning_rate": 1.3962252196056847e-05,
|
| 429 |
+
"loss": 0.32,
|
| 430 |
+
"step": 590
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"epoch": 1.1862103052020265,
|
| 434 |
+
"grad_norm": 0.5551583789751445,
|
| 435 |
+
"learning_rate": 1.3765005510201466e-05,
|
| 436 |
+
"loss": 0.3156,
|
| 437 |
+
"step": 600
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"epoch": 1.2059804769553935,
|
| 441 |
+
"grad_norm": 0.5770289171897912,
|
| 442 |
+
"learning_rate": 1.3566036935084692e-05,
|
| 443 |
+
"loss": 0.3196,
|
| 444 |
+
"step": 610
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"epoch": 1.2257506487087606,
|
| 448 |
+
"grad_norm": 0.5283055302681036,
|
| 449 |
+
"learning_rate": 1.3365437467081406e-05,
|
| 450 |
+
"loss": 0.3218,
|
| 451 |
+
"step": 620
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"epoch": 1.2455208204621278,
|
| 455 |
+
"grad_norm": 0.5056609484631435,
|
| 456 |
+
"learning_rate": 1.3163298848439758e-05,
|
| 457 |
+
"loss": 0.315,
|
| 458 |
+
"step": 630
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"epoch": 1.265290992215495,
|
| 462 |
+
"grad_norm": 0.555127018751701,
|
| 463 |
+
"learning_rate": 1.2959713525323725e-05,
|
| 464 |
+
"loss": 0.3221,
|
| 465 |
+
"step": 640
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"epoch": 1.285061163968862,
|
| 469 |
+
"grad_norm": 0.5130249143640312,
|
| 470 |
+
"learning_rate": 1.2754774605533728e-05,
|
| 471 |
+
"loss": 0.3111,
|
| 472 |
+
"step": 650
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"epoch": 1.3048313357222292,
|
| 476 |
+
"grad_norm": 0.519020033436049,
|
| 477 |
+
"learning_rate": 1.2548575815924689e-05,
|
| 478 |
+
"loss": 0.3151,
|
| 479 |
+
"step": 660
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"epoch": 1.3246015074755961,
|
| 483 |
+
"grad_norm": 0.5149083765226259,
|
| 484 |
+
"learning_rate": 1.234121145954094e-05,
|
| 485 |
+
"loss": 0.31,
|
| 486 |
+
"step": 670
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"epoch": 1.3443716792289633,
|
| 490 |
+
"grad_norm": 0.5301240336350007,
|
| 491 |
+
"learning_rate": 1.2132776372487634e-05,
|
| 492 |
+
"loss": 0.3139,
|
| 493 |
+
"step": 680
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"epoch": 1.3641418509823304,
|
| 497 |
+
"grad_norm": 0.4880188656600289,
|
| 498 |
+
"learning_rate": 1.1923365880558345e-05,
|
| 499 |
+
"loss": 0.3147,
|
| 500 |
+
"step": 690
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"epoch": 1.3839120227356976,
|
| 504 |
+
"grad_norm": 0.5098313222505657,
|
| 505 |
+
"learning_rate": 1.1713075755638748e-05,
|
| 506 |
+
"loss": 0.3153,
|
| 507 |
+
"step": 700
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"epoch": 1.4036821944890647,
|
| 511 |
+
"grad_norm": 0.5563900244184181,
|
| 512 |
+
"learning_rate": 1.1502002171906248e-05,
|
| 513 |
+
"loss": 0.3137,
|
| 514 |
+
"step": 710
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"epoch": 1.4234523662424317,
|
| 518 |
+
"grad_norm": 0.5308336365319577,
|
| 519 |
+
"learning_rate": 1.1290241661845649e-05,
|
| 520 |
+
"loss": 0.301,
|
| 521 |
+
"step": 720
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"epoch": 1.4432225379957988,
|
| 525 |
+
"grad_norm": 0.5347937895279813,
|
| 526 |
+
"learning_rate": 1.1077891072100944e-05,
|
| 527 |
+
"loss": 0.3114,
|
| 528 |
+
"step": 730
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"epoch": 1.462992709749166,
|
| 532 |
+
"grad_norm": 0.5353226891153153,
|
| 533 |
+
"learning_rate": 1.0865047519183411e-05,
|
| 534 |
+
"loss": 0.3132,
|
| 535 |
+
"step": 740
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"epoch": 1.482762881502533,
|
| 539 |
+
"grad_norm": 0.5827716787607696,
|
| 540 |
+
"learning_rate": 1.065180834505634e-05,
|
| 541 |
+
"loss": 0.3032,
|
| 542 |
+
"step": 750
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"epoch": 1.5025330532559003,
|
| 546 |
+
"grad_norm": 0.5898123869988975,
|
| 547 |
+
"learning_rate": 1.0438271072616584e-05,
|
| 548 |
+
"loss": 0.3113,
|
| 549 |
+
"step": 760
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"epoch": 1.5223032250092672,
|
| 553 |
+
"grad_norm": 0.5298973225294878,
|
| 554 |
+
"learning_rate": 1.022453336109341e-05,
|
| 555 |
+
"loss": 0.3219,
|
| 556 |
+
"step": 770
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"epoch": 1.5420733967626343,
|
| 560 |
+
"grad_norm": 0.5690896784690122,
|
| 561 |
+
"learning_rate": 1.001069296138499e-05,
|
| 562 |
+
"loss": 0.3134,
|
| 563 |
+
"step": 780
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"epoch": 1.5618435685160015,
|
| 567 |
+
"grad_norm": 0.5827223568466493,
|
| 568 |
+
"learning_rate": 9.796847671352948e-06,
|
| 569 |
+
"loss": 0.3126,
|
| 570 |
+
"step": 790
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"epoch": 1.5816137402693686,
|
| 574 |
+
"grad_norm": 0.5429937702192498,
|
| 575 |
+
"learning_rate": 9.583095291095454e-06,
|
| 576 |
+
"loss": 0.3039,
|
| 577 |
+
"step": 800
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"epoch": 1.6013839120227358,
|
| 581 |
+
"grad_norm": 0.5498582424119081,
|
| 582 |
+
"learning_rate": 9.36953357821928e-06,
|
| 583 |
+
"loss": 0.3043,
|
| 584 |
+
"step": 810
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"epoch": 1.6211540837761027,
|
| 588 |
+
"grad_norm": 0.4994859445298306,
|
| 589 |
+
"learning_rate": 9.156260203131299e-06,
|
| 590 |
+
"loss": 0.296,
|
| 591 |
+
"step": 820
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"epoch": 1.64092425552947,
|
| 595 |
+
"grad_norm": 0.5154683199933622,
|
| 596 |
+
"learning_rate": 8.943372704369844e-06,
|
| 597 |
+
"loss": 0.2962,
|
| 598 |
+
"step": 830
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"epoch": 1.660694427282837,
|
| 602 |
+
"grad_norm": 0.5167087299820147,
|
| 603 |
+
"learning_rate": 8.730968443996411e-06,
|
| 604 |
+
"loss": 0.3129,
|
| 605 |
+
"step": 840
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"epoch": 1.6804645990362042,
|
| 609 |
+
"grad_norm": 0.5490107000824208,
|
| 610 |
+
"learning_rate": 8.519144563068037e-06,
|
| 611 |
+
"loss": 0.3119,
|
| 612 |
+
"step": 850
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"epoch": 1.7002347707895713,
|
| 616 |
+
"grad_norm": 0.540920173955098,
|
| 617 |
+
"learning_rate": 8.30799793721077e-06,
|
| 618 |
+
"loss": 0.3056,
|
| 619 |
+
"step": 860
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"epoch": 1.7200049425429382,
|
| 623 |
+
"grad_norm": 0.5237649749912278,
|
| 624 |
+
"learning_rate": 8.097625132314529e-06,
|
| 625 |
+
"loss": 0.311,
|
| 626 |
+
"step": 870
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"epoch": 1.7397751142963056,
|
| 630 |
+
"grad_norm": 0.6272718536197235,
|
| 631 |
+
"learning_rate": 7.888122360369617e-06,
|
| 632 |
+
"loss": 0.3047,
|
| 633 |
+
"step": 880
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"epoch": 1.7595452860496725,
|
| 637 |
+
"grad_norm": 0.5296663362064814,
|
| 638 |
+
"learning_rate": 7.67958543546509e-06,
|
| 639 |
+
"loss": 0.3011,
|
| 640 |
+
"step": 890
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"epoch": 1.7793154578030397,
|
| 644 |
+
"grad_norm": 0.5233109909144185,
|
| 645 |
+
"learning_rate": 7.472109729969097e-06,
|
| 646 |
+
"loss": 0.2958,
|
| 647 |
+
"step": 900
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"epoch": 1.7990856295564068,
|
| 651 |
+
"grad_norm": 0.5025706432729875,
|
| 652 |
+
"learning_rate": 7.2657901309112325e-06,
|
| 653 |
+
"loss": 0.3035,
|
| 654 |
+
"step": 910
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"epoch": 1.8188558013097738,
|
| 658 |
+
"grad_norm": 0.5402559569074855,
|
| 659 |
+
"learning_rate": 7.060720996586878e-06,
|
| 660 |
+
"loss": 0.3134,
|
| 661 |
+
"step": 920
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"epoch": 1.8386259730631411,
|
| 665 |
+
"grad_norm": 0.547259180262811,
|
| 666 |
+
"learning_rate": 6.85699611340333e-06,
|
| 667 |
+
"loss": 0.3055,
|
| 668 |
+
"step": 930
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"epoch": 1.858396144816508,
|
| 672 |
+
"grad_norm": 0.5197703756039205,
|
| 673 |
+
"learning_rate": 6.654708652987475e-06,
|
| 674 |
+
"loss": 0.3043,
|
| 675 |
+
"step": 940
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"epoch": 1.8781663165698752,
|
| 679 |
+
"grad_norm": 0.5323204838924858,
|
| 680 |
+
"learning_rate": 6.453951129574644e-06,
|
| 681 |
+
"loss": 0.3048,
|
| 682 |
+
"step": 950
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"epoch": 1.8979364883232424,
|
| 686 |
+
"grad_norm": 0.47841296810426304,
|
| 687 |
+
"learning_rate": 6.254815357698118e-06,
|
| 688 |
+
"loss": 0.3006,
|
| 689 |
+
"step": 960
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"epoch": 1.9177066600766093,
|
| 693 |
+
"grad_norm": 0.5083748369122659,
|
| 694 |
+
"learning_rate": 6.05739241019862e-06,
|
| 695 |
+
"loss": 0.3025,
|
| 696 |
+
"step": 970
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"epoch": 1.9374768318299767,
|
| 700 |
+
"grad_norm": 0.4928502314870966,
|
| 701 |
+
"learning_rate": 5.861772576573028e-06,
|
| 702 |
+
"loss": 0.2956,
|
| 703 |
+
"step": 980
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"epoch": 1.9572470035833436,
|
| 707 |
+
"grad_norm": 0.48791550019041724,
|
| 708 |
+
"learning_rate": 5.668045321681328e-06,
|
| 709 |
+
"loss": 0.3091,
|
| 710 |
+
"step": 990
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"epoch": 1.9770171753367107,
|
| 714 |
+
"grad_norm": 0.5066742151391088,
|
| 715 |
+
"learning_rate": 5.476299244830734e-06,
|
| 716 |
+
"loss": 0.2999,
|
| 717 |
+
"step": 1000
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"epoch": 1.9770171753367107,
|
| 721 |
+
"eval_loss": 0.3708229959011078,
|
| 722 |
+
"eval_runtime": 81.8274,
|
| 723 |
+
"eval_samples_per_second": 83.285,
|
| 724 |
+
"eval_steps_per_second": 5.206,
|
| 725 |
+
"step": 1000
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"epoch": 1.9967873470900779,
|
| 729 |
+
"grad_norm": 0.5294994920674526,
|
| 730 |
+
"learning_rate": 5.28662203925562e-06,
|
| 731 |
+
"loss": 0.3066,
|
| 732 |
+
"step": 1010
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"epoch": 2.016557518843445,
|
| 736 |
+
"grad_norm": 0.5249670268523262,
|
| 737 |
+
"learning_rate": 5.099100452011876e-06,
|
| 738 |
+
"loss": 0.2574,
|
| 739 |
+
"step": 1020
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"epoch": 2.036327690596812,
|
| 743 |
+
"grad_norm": 0.5209226672918731,
|
| 744 |
+
"learning_rate": 4.9138202443039625e-06,
|
| 745 |
+
"loss": 0.2297,
|
| 746 |
+
"step": 1030
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"epoch": 2.056097862350179,
|
| 750 |
+
"grad_norm": 0.4884858081963297,
|
| 751 |
+
"learning_rate": 4.730866152262841e-06,
|
| 752 |
+
"loss": 0.2445,
|
| 753 |
+
"step": 1040
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"epoch": 2.0758680341035465,
|
| 757 |
+
"grad_norm": 0.4742867737071898,
|
| 758 |
+
"learning_rate": 4.550321848192731e-06,
|
| 759 |
+
"loss": 0.2505,
|
| 760 |
+
"step": 1050
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"epoch": 2.0956382058569134,
|
| 764 |
+
"grad_norm": 0.522161636411317,
|
| 765 |
+
"learning_rate": 4.3722699023043634e-06,
|
| 766 |
+
"loss": 0.2494,
|
| 767 |
+
"step": 1060
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"epoch": 2.1154083776102803,
|
| 771 |
+
"grad_norm": 0.4240817050624604,
|
| 772 |
+
"learning_rate": 4.196791744952291e-06,
|
| 773 |
+
"loss": 0.239,
|
| 774 |
+
"step": 1070
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"epoch": 2.1351785493636477,
|
| 778 |
+
"grad_norm": 0.5016013699913245,
|
| 779 |
+
"learning_rate": 4.023967629393498e-06,
|
| 780 |
+
"loss": 0.2463,
|
| 781 |
+
"step": 1080
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"epoch": 2.1549487211170146,
|
| 785 |
+
"grad_norm": 0.4907508903718958,
|
| 786 |
+
"learning_rate": 3.853876595084332e-06,
|
| 787 |
+
"loss": 0.2455,
|
| 788 |
+
"step": 1090
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"epoch": 2.174718892870382,
|
| 792 |
+
"grad_norm": 0.4844801070690468,
|
| 793 |
+
"learning_rate": 3.68659643153258e-06,
|
| 794 |
+
"loss": 0.2406,
|
| 795 |
+
"step": 1100
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"epoch": 2.194489064623749,
|
| 799 |
+
"grad_norm": 0.4805850138516767,
|
| 800 |
+
"learning_rate": 3.5222036427211704e-06,
|
| 801 |
+
"loss": 0.2333,
|
| 802 |
+
"step": 1110
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"epoch": 2.214259236377116,
|
| 806 |
+
"grad_norm": 0.4850837241450545,
|
| 807 |
+
"learning_rate": 3.360773412119801e-06,
|
| 808 |
+
"loss": 0.2397,
|
| 809 |
+
"step": 1120
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"epoch": 2.2340294081304832,
|
| 813 |
+
"grad_norm": 0.46778943159588726,
|
| 814 |
+
"learning_rate": 3.202379568300511e-06,
|
| 815 |
+
"loss": 0.2394,
|
| 816 |
+
"step": 1130
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"epoch": 2.25379957988385,
|
| 820 |
+
"grad_norm": 0.4262009004075529,
|
| 821 |
+
"learning_rate": 3.0470945511728856e-06,
|
| 822 |
+
"loss": 0.2319,
|
| 823 |
+
"step": 1140
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"epoch": 2.2735697516372175,
|
| 827 |
+
"grad_norm": 0.4910291271379484,
|
| 828 |
+
"learning_rate": 2.8949893788543505e-06,
|
| 829 |
+
"loss": 0.2461,
|
| 830 |
+
"step": 1150
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"epoch": 2.2933399233905845,
|
| 834 |
+
"grad_norm": 0.5099593229914312,
|
| 835 |
+
"learning_rate": 2.74613361519073e-06,
|
| 836 |
+
"loss": 0.2391,
|
| 837 |
+
"step": 1160
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"epoch": 2.3131100951439514,
|
| 841 |
+
"grad_norm": 0.47785223375797403,
|
| 842 |
+
"learning_rate": 2.60059533794187e-06,
|
| 843 |
+
"loss": 0.2532,
|
| 844 |
+
"step": 1170
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"epoch": 2.3328802668973188,
|
| 848 |
+
"grad_norm": 0.48894964709263233,
|
| 849 |
+
"learning_rate": 2.458441107646935e-06,
|
| 850 |
+
"loss": 0.2442,
|
| 851 |
+
"step": 1180
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"epoch": 2.3526504386506857,
|
| 855 |
+
"grad_norm": 0.4887403938640547,
|
| 856 |
+
"learning_rate": 2.3197359371835802e-06,
|
| 857 |
+
"loss": 0.2374,
|
| 858 |
+
"step": 1190
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"epoch": 2.372420610404053,
|
| 862 |
+
"grad_norm": 0.5094057476841393,
|
| 863 |
+
"learning_rate": 2.1845432620349338e-06,
|
| 864 |
+
"loss": 0.2383,
|
| 865 |
+
"step": 1200
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"epoch": 2.39219078215742,
|
| 869 |
+
"grad_norm": 0.4810409572583604,
|
| 870 |
+
"learning_rate": 2.0529249112779824e-06,
|
| 871 |
+
"loss": 0.2388,
|
| 872 |
+
"step": 1210
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"epoch": 2.411960953910787,
|
| 876 |
+
"grad_norm": 0.506178462808245,
|
| 877 |
+
"learning_rate": 1.924941079306647e-06,
|
| 878 |
+
"loss": 0.2437,
|
| 879 |
+
"step": 1220
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"epoch": 2.4317311256641543,
|
| 883 |
+
"grad_norm": 0.5101355373820005,
|
| 884 |
+
"learning_rate": 1.8006502983024332e-06,
|
| 885 |
+
"loss": 0.2482,
|
| 886 |
+
"step": 1230
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"epoch": 2.451501297417521,
|
| 890 |
+
"grad_norm": 0.47636683086858184,
|
| 891 |
+
"learning_rate": 1.6801094114653082e-06,
|
| 892 |
+
"loss": 0.2313,
|
| 893 |
+
"step": 1240
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"epoch": 2.4712714691708886,
|
| 897 |
+
"grad_norm": 0.43908801679241943,
|
| 898 |
+
"learning_rate": 1.5633735470170108e-06,
|
| 899 |
+
"loss": 0.2403,
|
| 900 |
+
"step": 1250
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"epoch": 2.4910416409242555,
|
| 904 |
+
"grad_norm": 0.46494594811457074,
|
| 905 |
+
"learning_rate": 1.4504960929886746e-06,
|
| 906 |
+
"loss": 0.2442,
|
| 907 |
+
"step": 1260
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"epoch": 2.5108118126776224,
|
| 911 |
+
"grad_norm": 0.49463377523743013,
|
| 912 |
+
"learning_rate": 1.3415286728043374e-06,
|
| 913 |
+
"loss": 0.239,
|
| 914 |
+
"step": 1270
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"epoch": 2.53058198443099,
|
| 918 |
+
"grad_norm": 0.46074492651979493,
|
| 919 |
+
"learning_rate": 1.2365211216714523e-06,
|
| 920 |
+
"loss": 0.2385,
|
| 921 |
+
"step": 1280
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"epoch": 2.5503521561843567,
|
| 925 |
+
"grad_norm": 0.5218071815372649,
|
| 926 |
+
"learning_rate": 1.135521463789232e-06,
|
| 927 |
+
"loss": 0.2482,
|
| 928 |
+
"step": 1290
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"epoch": 2.570122327937724,
|
| 932 |
+
"grad_norm": 0.4982910156071213,
|
| 933 |
+
"learning_rate": 1.0385758903852406e-06,
|
| 934 |
+
"loss": 0.2381,
|
| 935 |
+
"step": 1300
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"epoch": 2.589892499691091,
|
| 939 |
+
"grad_norm": 0.5007115279363157,
|
| 940 |
+
"learning_rate": 9.457287385902836e-07,
|
| 941 |
+
"loss": 0.2405,
|
| 942 |
+
"step": 1310
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"epoch": 2.6096626714444584,
|
| 946 |
+
"grad_norm": 0.4830944811979268,
|
| 947 |
+
"learning_rate": 8.570224711612385e-07,
|
| 948 |
+
"loss": 0.2304,
|
| 949 |
+
"step": 1320
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"epoch": 2.6294328431978253,
|
| 953 |
+
"grad_norm": 0.47077203411861107,
|
| 954 |
+
"learning_rate": 7.724976570611254e-07,
|
| 955 |
+
"loss": 0.2259,
|
| 956 |
+
"step": 1330
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"epoch": 2.6492030149511923,
|
| 960 |
+
"grad_norm": 0.49030170297745246,
|
| 961 |
+
"learning_rate": 6.921929529052729e-07,
|
| 962 |
+
"loss": 0.2318,
|
| 963 |
+
"step": 1340
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"epoch": 2.6689731867045596,
|
| 967 |
+
"grad_norm": 0.49483419009773855,
|
| 968 |
+
"learning_rate": 6.161450852820872e-07,
|
| 969 |
+
"loss": 0.2377,
|
| 970 |
+
"step": 1350
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"epoch": 2.6887433584579266,
|
| 974 |
+
"grad_norm": 0.5047141018868604,
|
| 975 |
+
"learning_rate": 5.443888339565018e-07,
|
| 976 |
+
"loss": 0.2402,
|
| 977 |
+
"step": 1360
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"epoch": 2.7085135302112935,
|
| 981 |
+
"grad_norm": 0.4627659592534385,
|
| 982 |
+
"learning_rate": 4.769570159637782e-07,
|
| 983 |
+
"loss": 0.2401,
|
| 984 |
+
"step": 1370
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"epoch": 2.728283701964661,
|
| 988 |
+
"grad_norm": 0.5051673776560596,
|
| 989 |
+
"learning_rate": 4.138804706009547e-07,
|
| 990 |
+
"loss": 0.2306,
|
| 991 |
+
"step": 1380
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"epoch": 2.748053873718028,
|
| 995 |
+
"grad_norm": 0.4697753055417383,
|
| 996 |
+
"learning_rate": 3.5518804532278736e-07,
|
| 997 |
+
"loss": 0.2407,
|
| 998 |
+
"step": 1390
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"epoch": 2.767824045471395,
|
| 1002 |
+
"grad_norm": 0.48255171108333217,
|
| 1003 |
+
"learning_rate": 3.0090658254864013e-07,
|
| 1004 |
+
"loss": 0.227,
|
| 1005 |
+
"step": 1400
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"epoch": 2.787594217224762,
|
| 1009 |
+
"grad_norm": 0.48725984214652784,
|
| 1010 |
+
"learning_rate": 2.5106090738636014e-07,
|
| 1011 |
+
"loss": 0.2306,
|
| 1012 |
+
"step": 1410
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"epoch": 2.8073643889781295,
|
| 1016 |
+
"grad_norm": 0.5176868460783628,
|
| 1017 |
+
"learning_rate": 2.0567381627875639e-07,
|
| 1018 |
+
"loss": 0.242,
|
| 1019 |
+
"step": 1420
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"epoch": 2.8271345607314964,
|
| 1023 |
+
"grad_norm": 0.486977389827133,
|
| 1024 |
+
"learning_rate": 1.6476606657786386e-07,
|
| 1025 |
+
"loss": 0.2309,
|
| 1026 |
+
"step": 1430
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"epoch": 2.8469047324848633,
|
| 1030 |
+
"grad_norm": 0.48480851362499594,
|
| 1031 |
+
"learning_rate": 1.2835636705176403e-07,
|
| 1032 |
+
"loss": 0.2287,
|
| 1033 |
+
"step": 1440
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"epoch": 2.8666749042382307,
|
| 1037 |
+
"grad_norm": 0.506776005156481,
|
| 1038 |
+
"learning_rate": 9.64613693283123e-08,
|
| 1039 |
+
"loss": 0.2469,
|
| 1040 |
+
"step": 1450
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"epoch": 2.8864450759915976,
|
| 1044 |
+
"grad_norm": 0.5370285292991429,
|
| 1045 |
+
"learning_rate": 6.909566027966996e-08,
|
| 1046 |
+
"loss": 0.2458,
|
| 1047 |
+
"step": 1460
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"epoch": 2.9062152477449645,
|
| 1051 |
+
"grad_norm": 0.46946884718156673,
|
| 1052 |
+
"learning_rate": 4.6271755351144923e-08,
|
| 1053 |
+
"loss": 0.2456,
|
| 1054 |
+
"step": 1470
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"epoch": 2.925985419498332,
|
| 1058 |
+
"grad_norm": 0.47309149600612144,
|
| 1059 |
+
"learning_rate": 2.8000092837368042e-08,
|
| 1060 |
+
"loss": 0.2413,
|
| 1061 |
+
"step": 1480
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"epoch": 2.945755591251699,
|
| 1065 |
+
"grad_norm": 0.48781257822426394,
|
| 1066 |
+
"learning_rate": 1.4289029108436325e-08,
|
| 1067 |
+
"loss": 0.2388,
|
| 1068 |
+
"step": 1490
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"epoch": 2.965525763005066,
|
| 1072 |
+
"grad_norm": 0.4929015642135056,
|
| 1073 |
+
"learning_rate": 5.14483478821437e-09,
|
| 1074 |
+
"loss": 0.2454,
|
| 1075 |
+
"step": 1500
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"epoch": 2.965525763005066,
|
| 1079 |
+
"eval_loss": 0.37777501344680786,
|
| 1080 |
+
"eval_runtime": 82.1049,
|
| 1081 |
+
"eval_samples_per_second": 83.004,
|
| 1082 |
+
"eval_steps_per_second": 5.188,
|
| 1083 |
+
"step": 1500
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"epoch": 2.985295934758433,
|
| 1087 |
+
"grad_norm": 0.49492433015567533,
|
| 1088 |
+
"learning_rate": 5.716918865195098e-10,
|
| 1089 |
+
"loss": 0.2349,
|
| 1090 |
+
"step": 1510
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"epoch": 2.995181020635117,
|
| 1094 |
+
"step": 1515,
|
| 1095 |
+
"total_flos": 504886288187392.0,
|
| 1096 |
+
"train_loss": 0.33701497725527674,
|
| 1097 |
+
"train_runtime": 18615.961,
|
| 1098 |
+
"train_samples_per_second": 20.865,
|
| 1099 |
+
"train_steps_per_second": 0.081
|
| 1100 |
+
}
|
| 1101 |
+
],
|
| 1102 |
+
"logging_steps": 10,
|
| 1103 |
+
"max_steps": 1515,
|
| 1104 |
+
"num_input_tokens_seen": 0,
|
| 1105 |
+
"num_train_epochs": 3,
|
| 1106 |
+
"save_steps": 500,
|
| 1107 |
+
"stateful_callbacks": {
|
| 1108 |
+
"TrainerControl": {
|
| 1109 |
+
"args": {
|
| 1110 |
+
"should_epoch_stop": false,
|
| 1111 |
+
"should_evaluate": false,
|
| 1112 |
+
"should_log": false,
|
| 1113 |
+
"should_save": true,
|
| 1114 |
+
"should_training_stop": true
|
| 1115 |
+
},
|
| 1116 |
+
"attributes": {}
|
| 1117 |
+
}
|
| 1118 |
+
},
|
| 1119 |
+
"total_flos": 504886288187392.0,
|
| 1120 |
+
"train_batch_size": 1,
|
| 1121 |
+
"trial_name": null,
|
| 1122 |
+
"trial_params": null
|
| 1123 |
+
}
|
added_tokens.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</chain_of_thought>": 151666,
|
| 3 |
+
"</cite>": 151668,
|
| 4 |
+
"</tool_call>": 151658,
|
| 5 |
+
"<chain_of_thought>": 151665,
|
| 6 |
+
"<cite docs=": 151667,
|
| 7 |
+
"<tool_call>": 151657,
|
| 8 |
+
"<|box_end|>": 151649,
|
| 9 |
+
"<|box_start|>": 151648,
|
| 10 |
+
"<|endoftext|>": 151643,
|
| 11 |
+
"<|file_sep|>": 151664,
|
| 12 |
+
"<|fim_middle|>": 151660,
|
| 13 |
+
"<|fim_pad|>": 151662,
|
| 14 |
+
"<|fim_prefix|>": 151659,
|
| 15 |
+
"<|fim_suffix|>": 151661,
|
| 16 |
+
"<|im_end|>": 151645,
|
| 17 |
+
"<|im_start|>": 151644,
|
| 18 |
+
"<|image_pad|>": 151655,
|
| 19 |
+
"<|object_ref_end|>": 151647,
|
| 20 |
+
"<|object_ref_start|>": 151646,
|
| 21 |
+
"<|quad_end|>": 151651,
|
| 22 |
+
"<|quad_start|>": 151650,
|
| 23 |
+
"<|repo_name|>": 151663,
|
| 24 |
+
"<|video_pad|>": 151656,
|
| 25 |
+
"<|vision_end|>": 151653,
|
| 26 |
+
"<|vision_pad|>": 151654,
|
| 27 |
+
"<|vision_start|>": 151652
|
| 28 |
+
}
|
all_results.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.995181020635117,
|
| 3 |
+
"eval_loss": 0.37776756286621094,
|
| 4 |
+
"eval_runtime": 82.0824,
|
| 5 |
+
"eval_samples_per_second": 83.026,
|
| 6 |
+
"eval_steps_per_second": 5.19,
|
| 7 |
+
"total_flos": 504886288187392.0,
|
| 8 |
+
"train_loss": 0.33701497725527674,
|
| 9 |
+
"train_runtime": 18615.961,
|
| 10 |
+
"train_samples_per_second": 20.865,
|
| 11 |
+
"train_steps_per_second": 0.081
|
| 12 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "models/OmegaNeo-8b",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"OmegaNeoForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"auto_map": {
|
| 7 |
+
"AutoConfig": "configuration_omeganeo.OmegaNeoConfig",
|
| 8 |
+
"AutoModel": "configuration_omeganeo.OmegaNeoModel",
|
| 9 |
+
"AutoModelForCausalLM": "modeling_omeganeo.OmegaNeoForCausalLM"
|
| 10 |
+
},
|
| 11 |
+
"attention_dropout": 0.0,
|
| 12 |
+
"bos_token_id": 151643,
|
| 13 |
+
"eos_token_id": 151643,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 3584,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 18944,
|
| 18 |
+
"max_position_embeddings": 32768,
|
| 19 |
+
"max_window_layers": 28,
|
| 20 |
+
"model_type": "omeganeo",
|
| 21 |
+
"num_attention_heads": 28,
|
| 22 |
+
"num_hidden_layers": 32,
|
| 23 |
+
"num_key_value_heads": 4,
|
| 24 |
+
"rms_norm_eps": 1e-06,
|
| 25 |
+
"rope_scaling": null,
|
| 26 |
+
"rope_theta": 1000000.0,
|
| 27 |
+
"sliding_window": null,
|
| 28 |
+
"tie_word_embeddings": false,
|
| 29 |
+
"torch_dtype": "bfloat16",
|
| 30 |
+
"transformers_version": "4.45.0",
|
| 31 |
+
"use_cache": false,
|
| 32 |
+
"use_mrope": false,
|
| 33 |
+
"use_sliding_window": false,
|
| 34 |
+
"vocab_size": 152064
|
| 35 |
+
}
|
configuration_omeganeo.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""OmegaNeo model configuration"""
|
| 2 |
+
|
| 3 |
+
from transformers import PretrainedConfig
|
| 4 |
+
from transformers.utils import logging
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
logger = logging.get_logger(__name__)
|
| 8 |
+
|
| 9 |
+
class OmegaNeoConfig(PretrainedConfig):
|
| 10 |
+
model_type = "omeganeo"
|
| 11 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
| 12 |
+
|
| 13 |
+
def __init__(
|
| 14 |
+
self,
|
| 15 |
+
vocab_size=152064,
|
| 16 |
+
hidden_size=3584,
|
| 17 |
+
intermediate_size=18944,
|
| 18 |
+
num_hidden_layers=32,
|
| 19 |
+
num_attention_heads=32,
|
| 20 |
+
num_key_value_heads=32,
|
| 21 |
+
hidden_act="silu",
|
| 22 |
+
max_position_embeddings=32768,
|
| 23 |
+
initializer_range=0.02,
|
| 24 |
+
rms_norm_eps=1e-6,
|
| 25 |
+
use_cache=True,
|
| 26 |
+
tie_word_embeddings=False,
|
| 27 |
+
rope_theta=10000.0,
|
| 28 |
+
use_sliding_window=False,
|
| 29 |
+
sliding_window=4096,
|
| 30 |
+
max_window_layers=28,
|
| 31 |
+
attention_dropout=0.0,
|
| 32 |
+
**kwargs,
|
| 33 |
+
):
|
| 34 |
+
self.vocab_size = vocab_size
|
| 35 |
+
self.max_position_embeddings = max_position_embeddings
|
| 36 |
+
self.hidden_size = hidden_size
|
| 37 |
+
self.intermediate_size = intermediate_size
|
| 38 |
+
self.num_hidden_layers = num_hidden_layers
|
| 39 |
+
self.num_attention_heads = num_attention_heads
|
| 40 |
+
self.use_sliding_window = use_sliding_window
|
| 41 |
+
self.sliding_window = sliding_window
|
| 42 |
+
self.max_window_layers = max_window_layers
|
| 43 |
+
|
| 44 |
+
# for backward compatibility
|
| 45 |
+
if num_key_value_heads is None:
|
| 46 |
+
num_key_value_heads = num_attention_heads
|
| 47 |
+
|
| 48 |
+
self.num_key_value_heads = num_key_value_heads
|
| 49 |
+
self.hidden_act = hidden_act
|
| 50 |
+
self.initializer_range = initializer_range
|
| 51 |
+
self.rms_norm_eps = rms_norm_eps
|
| 52 |
+
self.use_cache = use_cache
|
| 53 |
+
self.rope_theta = rope_theta
|
| 54 |
+
self.attention_dropout = attention_dropout
|
| 55 |
+
|
| 56 |
+
super().__init__(
|
| 57 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 58 |
+
**kwargs,
|
| 59 |
+
)
|
eval_results.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.995181020635117,
|
| 3 |
+
"eval_loss": 0.37776756286621094,
|
| 4 |
+
"eval_runtime": 82.0824,
|
| 5 |
+
"eval_samples_per_second": 83.026,
|
| 6 |
+
"eval_steps_per_second": 5.19
|
| 7 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 151643,
|
| 4 |
+
"eos_token_id": 151643,
|
| 5 |
+
"transformers_version": "4.45.0"
|
| 6 |
+
}
|
logs.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
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:dc8837deba5f9fa9f352628a688c074d5b4a488cbfa47eebc08532e98559cbf2
|
| 3 |
+
size 4877660776
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15971ca2751e9735417cec1a68d493870f359f00c801c9c3ac77617bd784ff80
|
| 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:111986292557ce995625b1140440d0ebef5978eac4c8e5493f9d002380f19536
|
| 3 |
+
size 4991495888
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:132be700dc2ca6a0fdc24bed26b9c6626baad83ec20dcaf2f2ccaf04634e52c0
|
| 3 |
+
size 2293832048
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 17095695360
|
| 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.28.input_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 261 |
+
"model.layers.28.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
|
| 262 |
+
"model.layers.28.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 263 |
+
"model.layers.28.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
|
| 264 |
+
"model.layers.28.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
|
| 265 |
+
"model.layers.28.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 266 |
+
"model.layers.28.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 267 |
+
"model.layers.28.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 268 |
+
"model.layers.28.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 269 |
+
"model.layers.28.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 270 |
+
"model.layers.28.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 271 |
+
"model.layers.28.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 272 |
+
"model.layers.29.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 273 |
+
"model.layers.29.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
| 274 |
+
"model.layers.29.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
|
| 275 |
+
"model.layers.29.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
| 276 |
+
"model.layers.29.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 277 |
+
"model.layers.29.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
|
| 278 |
+
"model.layers.29.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
|
| 279 |
+
"model.layers.29.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
|
| 280 |
+
"model.layers.29.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
|
| 281 |
+
"model.layers.29.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
|
| 282 |
+
"model.layers.29.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
|
| 283 |
+
"model.layers.29.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
|
| 284 |
+
"model.layers.3.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 285 |
+
"model.layers.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 286 |
+
"model.layers.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 287 |
+
"model.layers.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 288 |
+
"model.layers.3.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 289 |
+
"model.layers.3.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 290 |
+
"model.layers.3.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 291 |
+
"model.layers.3.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 292 |
+
"model.layers.3.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 293 |
+
"model.layers.3.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 294 |
+
"model.layers.3.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 295 |
+
"model.layers.3.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 296 |
+
"model.layers.30.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 297 |
+
"model.layers.30.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
| 298 |
+
"model.layers.30.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
| 299 |
+
"model.layers.30.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
| 300 |
+
"model.layers.30.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 301 |
+
"model.layers.30.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
| 302 |
+
"model.layers.30.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
| 303 |
+
"model.layers.30.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
| 304 |
+
"model.layers.30.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
| 305 |
+
"model.layers.30.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
| 306 |
+
"model.layers.30.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
| 307 |
+
"model.layers.30.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
| 308 |
+
"model.layers.31.input_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 309 |
+
"model.layers.31.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
|
| 310 |
+
"model.layers.31.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
|
| 311 |
+
"model.layers.31.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
|
| 312 |
+
"model.layers.31.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
|
| 313 |
+
"model.layers.31.self_attn.k_proj.bias": "model-00004-of-00004.safetensors",
|
| 314 |
+
"model.layers.31.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
|
| 315 |
+
"model.layers.31.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
|
| 316 |
+
"model.layers.31.self_attn.q_proj.bias": "model-00004-of-00004.safetensors",
|
| 317 |
+
"model.layers.31.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
|
| 318 |
+
"model.layers.31.self_attn.v_proj.bias": "model-00004-of-00004.safetensors",
|
| 319 |
+
"model.layers.31.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
|
| 320 |
+
"model.layers.4.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 321 |
+
"model.layers.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 322 |
+
"model.layers.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 323 |
+
"model.layers.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 324 |
+
"model.layers.4.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 325 |
+
"model.layers.4.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 326 |
+
"model.layers.4.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 327 |
+
"model.layers.4.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 328 |
+
"model.layers.4.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 329 |
+
"model.layers.4.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 330 |
+
"model.layers.4.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 331 |
+
"model.layers.4.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 332 |
+
"model.layers.5.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 333 |
+
"model.layers.5.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 334 |
+
"model.layers.5.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 335 |
+
"model.layers.5.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 336 |
+
"model.layers.5.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 337 |
+
"model.layers.5.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 338 |
+
"model.layers.5.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 339 |
+
"model.layers.5.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 340 |
+
"model.layers.5.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 341 |
+
"model.layers.5.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 342 |
+
"model.layers.5.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 343 |
+
"model.layers.5.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 344 |
+
"model.layers.6.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 345 |
+
"model.layers.6.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 346 |
+
"model.layers.6.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 347 |
+
"model.layers.6.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 348 |
+
"model.layers.6.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 349 |
+
"model.layers.6.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 350 |
+
"model.layers.6.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 351 |
+
"model.layers.6.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 352 |
+
"model.layers.6.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 353 |
+
"model.layers.6.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 354 |
+
"model.layers.6.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 355 |
+
"model.layers.6.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 356 |
+
"model.layers.7.input_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 357 |
+
"model.layers.7.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
|
| 358 |
+
"model.layers.7.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
|
| 359 |
+
"model.layers.7.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
|
| 360 |
+
"model.layers.7.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
|
| 361 |
+
"model.layers.7.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 362 |
+
"model.layers.7.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 363 |
+
"model.layers.7.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 364 |
+
"model.layers.7.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 365 |
+
"model.layers.7.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 366 |
+
"model.layers.7.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 367 |
+
"model.layers.7.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 368 |
+
"model.layers.8.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 369 |
+
"model.layers.8.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 370 |
+
"model.layers.8.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 371 |
+
"model.layers.8.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 372 |
+
"model.layers.8.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 373 |
+
"model.layers.8.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
|
| 374 |
+
"model.layers.8.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
|
| 375 |
+
"model.layers.8.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
|
| 376 |
+
"model.layers.8.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
|
| 377 |
+
"model.layers.8.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
|
| 378 |
+
"model.layers.8.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
|
| 379 |
+
"model.layers.8.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
|
| 380 |
+
"model.layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 381 |
+
"model.layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
|
| 382 |
+
"model.layers.9.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
|
| 383 |
+
"model.layers.9.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
|
| 384 |
+
"model.layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
|
| 385 |
+
"model.layers.9.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
|
| 386 |
+
"model.layers.9.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
|
| 387 |
+
"model.layers.9.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
|
| 388 |
+
"model.layers.9.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
|
| 389 |
+
"model.layers.9.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
|
| 390 |
+
"model.layers.9.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
|
| 391 |
+
"model.layers.9.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
|
| 392 |
+
"model.norm.weight": "model-00004-of-00004.safetensors"
|
| 393 |
+
}
|
| 394 |
+
}
|
modeling_omeganeo.py
ADDED
|
@@ -0,0 +1,1343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
""" PyTorch OmegaNeo model."""
|
| 2 |
+
import inspect
|
| 3 |
+
import math
|
| 4 |
+
import warnings
|
| 5 |
+
from typing import List, Optional, Tuple, Union
|
| 6 |
+
|
| 7 |
+
import torch
|
| 8 |
+
import torch.nn.functional as F
|
| 9 |
+
import torch.utils.checkpoint
|
| 10 |
+
from torch import nn
|
| 11 |
+
from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss
|
| 12 |
+
|
| 13 |
+
from transformers.activations import ACT2FN
|
| 14 |
+
from transformers.cache_utils import Cache, DynamicCache
|
| 15 |
+
from transformers.modeling_attn_mask_utils import _prepare_4d_causal_attention_mask, _prepare_4d_causal_attention_mask_for_sdpa
|
| 16 |
+
from transformers.modeling_outputs import BaseModelOutputWithPast, CausalLMOutputWithPast, SequenceClassifierOutputWithPast
|
| 17 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 18 |
+
from transformers.pytorch_utils import ALL_LAYERNORM_LAYERS
|
| 19 |
+
from transformers.utils import (
|
| 20 |
+
add_start_docstrings,
|
| 21 |
+
add_start_docstrings_to_model_forward,
|
| 22 |
+
is_flash_attn_2_available,
|
| 23 |
+
is_flash_attn_greater_or_equal_2_10,
|
| 24 |
+
logging,
|
| 25 |
+
replace_return_docstrings,
|
| 26 |
+
)
|
| 27 |
+
from .configuration_omeganeo import OmegaNeoConfig
|
| 28 |
+
|
| 29 |
+
if is_flash_attn_2_available():
|
| 30 |
+
from flash_attn import flash_attn_func, flash_attn_varlen_func
|
| 31 |
+
from flash_attn.bert_padding import index_first_axis, pad_input, unpad_input # noqa
|
| 32 |
+
|
| 33 |
+
_flash_supports_window_size = "window_size" in list(inspect.signature(flash_attn_func).parameters)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
logger = logging.get_logger(__name__)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
_CHECKPOINT_FOR_DOC = "/models/omega_neo_small_chat"
|
| 40 |
+
_CONFIG_FOR_DOC = "OmegaNeoConfig"
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def _get_unpad_data(attention_mask):
|
| 44 |
+
seqlens_in_batch = attention_mask.sum(dim=-1, dtype=torch.int32)
|
| 45 |
+
indices = torch.nonzero(attention_mask.flatten(), as_tuple=False).flatten()
|
| 46 |
+
max_seqlen_in_batch = seqlens_in_batch.max().item()
|
| 47 |
+
cu_seqlens = F.pad(torch.cumsum(seqlens_in_batch, dim=0, dtype=torch.int32), (1, 0))
|
| 48 |
+
return (
|
| 49 |
+
indices,
|
| 50 |
+
cu_seqlens,
|
| 51 |
+
max_seqlen_in_batch,
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
class OmegaNeoRMSNorm(nn.Module):
|
| 56 |
+
def __init__(self, hidden_size, eps=1e-6):
|
| 57 |
+
"""
|
| 58 |
+
OmegaNeoRMSNorm is equivalent to T5LayerNorm
|
| 59 |
+
"""
|
| 60 |
+
super().__init__()
|
| 61 |
+
self.weight = nn.Parameter(torch.ones(hidden_size))
|
| 62 |
+
self.variance_epsilon = eps
|
| 63 |
+
|
| 64 |
+
def forward(self, hidden_states):
|
| 65 |
+
input_dtype = hidden_states.dtype
|
| 66 |
+
hidden_states = hidden_states.to(torch.float32)
|
| 67 |
+
variance = hidden_states.pow(2).mean(-1, keepdim=True)
|
| 68 |
+
hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
|
| 69 |
+
return self.weight * hidden_states.to(input_dtype)
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
class OmegaNeoRotaryEmbedding(nn.Module):
|
| 73 |
+
def __init__(self, dim, max_position_embeddings=2048, base=10000, device=None):
|
| 74 |
+
super().__init__()
|
| 75 |
+
|
| 76 |
+
self.dim = dim
|
| 77 |
+
self.max_position_embeddings = max_position_embeddings
|
| 78 |
+
self.base = base
|
| 79 |
+
inv_freq = 1.0 / (self.base ** (torch.arange(0, self.dim, 2, dtype=torch.int64).float().to(device) / self.dim))
|
| 80 |
+
self.register_buffer("inv_freq", inv_freq, persistent=False)
|
| 81 |
+
|
| 82 |
+
# Build here to make `torch.jit.trace` work.
|
| 83 |
+
self._set_cos_sin_cache(
|
| 84 |
+
seq_len=max_position_embeddings, device=self.inv_freq.device, dtype=torch.get_default_dtype()
|
| 85 |
+
)
|
| 86 |
+
|
| 87 |
+
def _set_cos_sin_cache(self, seq_len, device, dtype):
|
| 88 |
+
self.max_seq_len_cached = seq_len
|
| 89 |
+
t = torch.arange(self.max_seq_len_cached, device=device, dtype=torch.int64).type_as(self.inv_freq)
|
| 90 |
+
|
| 91 |
+
freqs = torch.outer(t, self.inv_freq)
|
| 92 |
+
# Different from paper, but it uses a different permutation in order to obtain the same calculation
|
| 93 |
+
emb = torch.cat((freqs, freqs), dim=-1)
|
| 94 |
+
self.register_buffer("cos_cached", emb.cos().to(dtype), persistent=False)
|
| 95 |
+
self.register_buffer("sin_cached", emb.sin().to(dtype), persistent=False)
|
| 96 |
+
|
| 97 |
+
def forward(self, x, seq_len=None):
|
| 98 |
+
# x: [bs, num_attention_heads, seq_len, head_size]
|
| 99 |
+
if seq_len > self.max_seq_len_cached:
|
| 100 |
+
self._set_cos_sin_cache(seq_len=seq_len, device=x.device, dtype=x.dtype)
|
| 101 |
+
|
| 102 |
+
return (
|
| 103 |
+
self.cos_cached[:seq_len].to(dtype=x.dtype),
|
| 104 |
+
self.sin_cached[:seq_len].to(dtype=x.dtype),
|
| 105 |
+
)
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
def rotate_half(x):
|
| 109 |
+
"""Rotates half the hidden dims of the input."""
|
| 110 |
+
x1 = x[..., : x.shape[-1] // 2]
|
| 111 |
+
x2 = x[..., x.shape[-1] // 2 :]
|
| 112 |
+
return torch.cat((-x2, x1), dim=-1)
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def apply_rotary_pos_emb(q, k, cos, sin, position_ids, unsqueeze_dim=1):
|
| 116 |
+
"""Applies Rotary Position Embedding to the query and key tensors.
|
| 117 |
+
Args:
|
| 118 |
+
q (`torch.Tensor`): The query tensor.
|
| 119 |
+
k (`torch.Tensor`): The key tensor.
|
| 120 |
+
cos (`torch.Tensor`): The cosine part of the rotary embedding.
|
| 121 |
+
sin (`torch.Tensor`): The sine part of the rotary embedding.
|
| 122 |
+
position_ids (`torch.Tensor`):
|
| 123 |
+
The position indices of the tokens corresponding to the query and key tensors. For example, this can be
|
| 124 |
+
used to pass offsetted position ids when working with a KV-cache.
|
| 125 |
+
unsqueeze_dim (`int`, *optional*, defaults to 1):
|
| 126 |
+
The 'unsqueeze_dim' argument specifies the dimension along which to unsqueeze cos[position_ids] and
|
| 127 |
+
sin[position_ids] so that they can be properly broadcasted to the dimensions of q and k. For example, note
|
| 128 |
+
that cos[position_ids] and sin[position_ids] have the shape [batch_size, seq_len, head_dim]. Then, if q and
|
| 129 |
+
k have the shape [batch_size, heads, seq_len, head_dim], then setting unsqueeze_dim=1 makes
|
| 130 |
+
cos[position_ids] and sin[position_ids] broadcastable to the shapes of q and k. Similarly, if q and k have
|
| 131 |
+
the shape [batch_size, seq_len, heads, head_dim], then set unsqueeze_dim=2.
|
| 132 |
+
Returns:
|
| 133 |
+
`tuple(torch.Tensor)` comprising of the query and key tensors rotated using the Rotary Position Embedding.
|
| 134 |
+
"""
|
| 135 |
+
cos = cos[position_ids].unsqueeze(unsqueeze_dim)
|
| 136 |
+
sin = sin[position_ids].unsqueeze(unsqueeze_dim)
|
| 137 |
+
q_embed = (q * cos) + (rotate_half(q) * sin)
|
| 138 |
+
k_embed = (k * cos) + (rotate_half(k) * sin)
|
| 139 |
+
return q_embed, k_embed
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
class OmegaNeoMLP(nn.Module):
|
| 143 |
+
def __init__(self, config):
|
| 144 |
+
super().__init__()
|
| 145 |
+
self.config = config
|
| 146 |
+
self.hidden_size = config.hidden_size
|
| 147 |
+
self.intermediate_size = config.intermediate_size
|
| 148 |
+
self.gate_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
|
| 149 |
+
self.up_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
|
| 150 |
+
self.down_proj = nn.Linear(self.intermediate_size, self.hidden_size, bias=False)
|
| 151 |
+
self.act_fn = ACT2FN[config.hidden_act]
|
| 152 |
+
|
| 153 |
+
def forward(self, x):
|
| 154 |
+
return self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
def repeat_kv(hidden_states: torch.Tensor, n_rep: int) -> torch.Tensor:
|
| 158 |
+
"""
|
| 159 |
+
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch,
|
| 160 |
+
num_key_value_heads, seqlen, head_dim) to (batch, num_attention_heads, seqlen, head_dim)
|
| 161 |
+
"""
|
| 162 |
+
batch, num_key_value_heads, slen, head_dim = hidden_states.shape
|
| 163 |
+
if n_rep == 1:
|
| 164 |
+
return hidden_states
|
| 165 |
+
hidden_states = hidden_states[:, :, None, :, :].expand(batch, num_key_value_heads, n_rep, slen, head_dim)
|
| 166 |
+
return hidden_states.reshape(batch, num_key_value_heads * n_rep, slen, head_dim)
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
class OmegaNeoAttention(nn.Module):
|
| 170 |
+
"""
|
| 171 |
+
Multi-headed attention from 'Attention Is All You Need' paper. Modified to use sliding window attention: Longformer
|
| 172 |
+
and "Generating Long Sequences with Sparse Transformers".
|
| 173 |
+
"""
|
| 174 |
+
|
| 175 |
+
def __init__(self, config: OmegaNeoConfig, layer_idx: Optional[int] = None):
|
| 176 |
+
super().__init__()
|
| 177 |
+
self.config = config
|
| 178 |
+
self.layer_idx = layer_idx
|
| 179 |
+
if layer_idx is None:
|
| 180 |
+
logger.warning_once(
|
| 181 |
+
f"Instantiating {self.__class__.__name__} without passing `layer_idx` is not recommended and will "
|
| 182 |
+
"to errors during the forward call, if caching is used. Please make sure to provide a `layer_idx` "
|
| 183 |
+
"when creating this class."
|
| 184 |
+
)
|
| 185 |
+
|
| 186 |
+
self.hidden_size = config.hidden_size
|
| 187 |
+
self.num_heads = config.num_attention_heads
|
| 188 |
+
self.head_dim = self.hidden_size // self.num_heads
|
| 189 |
+
self.num_key_value_heads = config.num_key_value_heads
|
| 190 |
+
self.num_key_value_groups = self.num_heads // self.num_key_value_heads
|
| 191 |
+
self.max_position_embeddings = config.max_position_embeddings
|
| 192 |
+
self.rope_theta = config.rope_theta
|
| 193 |
+
self.is_causal = True
|
| 194 |
+
self.attention_dropout = config.attention_dropout
|
| 195 |
+
|
| 196 |
+
if (self.head_dim * self.num_heads) != self.hidden_size:
|
| 197 |
+
raise ValueError(
|
| 198 |
+
f"hidden_size must be divisible by num_heads (got `hidden_size`: {self.hidden_size}"
|
| 199 |
+
f" and `num_heads`: {self.num_heads})."
|
| 200 |
+
)
|
| 201 |
+
self.q_proj = nn.Linear(self.hidden_size, self.num_heads * self.head_dim, bias=True)
|
| 202 |
+
self.k_proj = nn.Linear(self.hidden_size, self.num_key_value_heads * self.head_dim, bias=True)
|
| 203 |
+
self.v_proj = nn.Linear(self.hidden_size, self.num_key_value_heads * self.head_dim, bias=True)
|
| 204 |
+
self.o_proj = nn.Linear(self.num_heads * self.head_dim, self.hidden_size, bias=False)
|
| 205 |
+
|
| 206 |
+
self.rotary_emb = OmegaNeoRotaryEmbedding(
|
| 207 |
+
self.head_dim,
|
| 208 |
+
max_position_embeddings=self.max_position_embeddings,
|
| 209 |
+
base=self.rope_theta,
|
| 210 |
+
)
|
| 211 |
+
|
| 212 |
+
def forward(
|
| 213 |
+
self,
|
| 214 |
+
hidden_states: torch.Tensor,
|
| 215 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 216 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 217 |
+
past_key_value: Optional[Cache] = None,
|
| 218 |
+
output_attentions: bool = False,
|
| 219 |
+
use_cache: bool = False,
|
| 220 |
+
**kwargs,
|
| 221 |
+
) -> Tuple[torch.Tensor, Optional[torch.Tensor], Optional[Tuple[torch.Tensor]]]:
|
| 222 |
+
if "padding_mask" in kwargs:
|
| 223 |
+
warnings.warn(
|
| 224 |
+
"Passing `padding_mask` is deprecated and will be removed in v4.37. Please make sure use `attention_mask` instead.`"
|
| 225 |
+
)
|
| 226 |
+
bsz, q_len, _ = hidden_states.size()
|
| 227 |
+
|
| 228 |
+
query_states = self.q_proj(hidden_states)
|
| 229 |
+
key_states = self.k_proj(hidden_states)
|
| 230 |
+
value_states = self.v_proj(hidden_states)
|
| 231 |
+
|
| 232 |
+
query_states = query_states.view(bsz, q_len, self.num_heads, self.head_dim).transpose(1, 2)
|
| 233 |
+
key_states = key_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
|
| 234 |
+
value_states = value_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
|
| 235 |
+
|
| 236 |
+
kv_seq_len = key_states.shape[-2]
|
| 237 |
+
if past_key_value is not None:
|
| 238 |
+
if self.layer_idx is None:
|
| 239 |
+
raise ValueError(
|
| 240 |
+
f"The cache structure has changed since version v4.36. If you are using {self.__class__.__name__} "
|
| 241 |
+
"for auto-regressive decoding with k/v caching, please make sure to initialize the attention class "
|
| 242 |
+
"with a layer index."
|
| 243 |
+
)
|
| 244 |
+
kv_seq_len += past_key_value.get_usable_length(kv_seq_len, self.layer_idx)
|
| 245 |
+
cos, sin = self.rotary_emb(value_states, seq_len=kv_seq_len)
|
| 246 |
+
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin, position_ids)
|
| 247 |
+
|
| 248 |
+
if past_key_value is not None:
|
| 249 |
+
cache_kwargs = {"sin": sin, "cos": cos} # Specific to RoPE models
|
| 250 |
+
key_states, value_states = past_key_value.update(key_states, value_states, self.layer_idx, cache_kwargs)
|
| 251 |
+
|
| 252 |
+
# repeat k/v heads if n_kv_heads < n_heads
|
| 253 |
+
key_states = repeat_kv(key_states, self.num_key_value_groups)
|
| 254 |
+
value_states = repeat_kv(value_states, self.num_key_value_groups)
|
| 255 |
+
|
| 256 |
+
attn_weights = torch.matmul(query_states, key_states.transpose(2, 3)) / math.sqrt(self.head_dim)
|
| 257 |
+
|
| 258 |
+
if attn_weights.size() != (bsz, self.num_heads, q_len, kv_seq_len):
|
| 259 |
+
raise ValueError(
|
| 260 |
+
f"Attention weights should be of size {(bsz, self.num_heads, q_len, kv_seq_len)}, but is"
|
| 261 |
+
f" {attn_weights.size()}"
|
| 262 |
+
)
|
| 263 |
+
|
| 264 |
+
if attention_mask is not None:
|
| 265 |
+
if attention_mask.size() != (bsz, 1, q_len, kv_seq_len):
|
| 266 |
+
raise ValueError(
|
| 267 |
+
f"Attention mask should be of size {(bsz, 1, q_len, kv_seq_len)}, but is {attention_mask.size()}"
|
| 268 |
+
)
|
| 269 |
+
|
| 270 |
+
attn_weights = attn_weights + attention_mask
|
| 271 |
+
|
| 272 |
+
# upcast attention to fp32
|
| 273 |
+
attn_weights = nn.functional.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query_states.dtype)
|
| 274 |
+
attn_weights = nn.functional.dropout(attn_weights, p=self.attention_dropout, training=self.training)
|
| 275 |
+
attn_output = torch.matmul(attn_weights, value_states)
|
| 276 |
+
|
| 277 |
+
if attn_output.size() != (bsz, self.num_heads, q_len, self.head_dim):
|
| 278 |
+
raise ValueError(
|
| 279 |
+
f"`attn_output` should be of size {(bsz, self.num_heads, q_len, self.head_dim)}, but is"
|
| 280 |
+
f" {attn_output.size()}"
|
| 281 |
+
)
|
| 282 |
+
|
| 283 |
+
attn_output = attn_output.transpose(1, 2).contiguous()
|
| 284 |
+
attn_output = attn_output.reshape(bsz, q_len, self.hidden_size)
|
| 285 |
+
|
| 286 |
+
attn_output = self.o_proj(attn_output)
|
| 287 |
+
|
| 288 |
+
if not output_attentions:
|
| 289 |
+
attn_weights = None
|
| 290 |
+
|
| 291 |
+
return attn_output, attn_weights, past_key_value
|
| 292 |
+
|
| 293 |
+
|
| 294 |
+
class OmegaNeoFlashAttention2(OmegaNeoAttention):
|
| 295 |
+
"""
|
| 296 |
+
OmegaNeo flash attention module, following OmegaNeo attention module. This module inherits from `OmegaNeoAttention`
|
| 297 |
+
as the weights of the module stays untouched. The only required change would be on the forward pass
|
| 298 |
+
where it needs to correctly call the public API of flash attention and deal with padding tokens
|
| 299 |
+
in case the input contains any of them. Additionally, for sliding window attention, we apply SWA only to the bottom
|
| 300 |
+
config.max_window_layers layers.
|
| 301 |
+
"""
|
| 302 |
+
|
| 303 |
+
def __init__(self, *args, **kwargs):
|
| 304 |
+
super().__init__(*args, **kwargs)
|
| 305 |
+
|
| 306 |
+
# TODO: Should be removed once Flash Attention for RoCm is bumped to 2.1.
|
| 307 |
+
# flash_attn<2.1 generates top-left aligned causal mask, while what is needed here is bottom-right alignement, that was made default for flash_attn>=2.1. This attribute is used to handle this difference. Reference: https://github.com/Dao-AILab/flash-attention/releases/tag/v2.1.0.
|
| 308 |
+
# Beware that with flash_attn<2.1, using q_seqlen != k_seqlen (except for the case q_seqlen == 1) produces a wrong mask (top-left).
|
| 309 |
+
self._flash_attn_uses_top_left_mask = not is_flash_attn_greater_or_equal_2_10()
|
| 310 |
+
|
| 311 |
+
def forward(
|
| 312 |
+
self,
|
| 313 |
+
hidden_states: torch.Tensor,
|
| 314 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 315 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 316 |
+
past_key_value: Optional[Cache] = None,
|
| 317 |
+
output_attentions: bool = False,
|
| 318 |
+
use_cache: bool = False,
|
| 319 |
+
**kwargs,
|
| 320 |
+
):
|
| 321 |
+
if "padding_mask" in kwargs:
|
| 322 |
+
warnings.warn(
|
| 323 |
+
"Passing `padding_mask` is deprecated and will be removed in v4.37. Please make sure use `attention_mask` instead.`"
|
| 324 |
+
)
|
| 325 |
+
|
| 326 |
+
# overwrite attention_mask with padding_mask
|
| 327 |
+
attention_mask = kwargs.pop("padding_mask")
|
| 328 |
+
bsz, q_len, _ = hidden_states.size()
|
| 329 |
+
|
| 330 |
+
query_states = self.q_proj(hidden_states)
|
| 331 |
+
key_states = self.k_proj(hidden_states)
|
| 332 |
+
value_states = self.v_proj(hidden_states)
|
| 333 |
+
|
| 334 |
+
query_states = query_states.view(bsz, q_len, self.num_heads, self.head_dim).transpose(1, 2)
|
| 335 |
+
key_states = key_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
|
| 336 |
+
value_states = value_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
|
| 337 |
+
|
| 338 |
+
kv_seq_len = key_states.shape[-2]
|
| 339 |
+
if past_key_value is not None:
|
| 340 |
+
if self.layer_idx is None:
|
| 341 |
+
raise ValueError(
|
| 342 |
+
f"The cache structure has changed since version v4.36. If you are using {self.__class__.__name__} "
|
| 343 |
+
"for auto-regressive decoding with k/v caching, please make sure to initialize the attention class "
|
| 344 |
+
"with a layer index."
|
| 345 |
+
)
|
| 346 |
+
kv_seq_len += past_key_value.get_usable_length(kv_seq_len, self.layer_idx)
|
| 347 |
+
|
| 348 |
+
# Because the input can be padded, the absolute sequence length depends on the max position id.
|
| 349 |
+
rotary_seq_len = max(kv_seq_len, position_ids[:, -1].max().item()) + 1
|
| 350 |
+
cos, sin = self.rotary_emb(value_states, seq_len=rotary_seq_len)
|
| 351 |
+
|
| 352 |
+
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin, position_ids)
|
| 353 |
+
|
| 354 |
+
use_sliding_windows = (
|
| 355 |
+
_flash_supports_window_size
|
| 356 |
+
and getattr(self.config, "sliding_window", None) is not None
|
| 357 |
+
and kv_seq_len > self.config.sliding_window
|
| 358 |
+
and self.config.use_sliding_window
|
| 359 |
+
)
|
| 360 |
+
|
| 361 |
+
if not _flash_supports_window_size:
|
| 362 |
+
logger.warning_once(
|
| 363 |
+
"The current flash attention version does not support sliding window attention, for a more memory efficient implementation"
|
| 364 |
+
" make sure to upgrade flash-attn library."
|
| 365 |
+
)
|
| 366 |
+
|
| 367 |
+
if past_key_value is not None:
|
| 368 |
+
# Activate slicing cache only if the config has a value `sliding_windows` attribute
|
| 369 |
+
cache_has_contents = past_key_value.get_seq_length(self.layer_idx) > 0
|
| 370 |
+
if (
|
| 371 |
+
getattr(self.config, "sliding_window", None) is not None
|
| 372 |
+
and kv_seq_len > self.config.sliding_window
|
| 373 |
+
and cache_has_contents
|
| 374 |
+
):
|
| 375 |
+
slicing_tokens = 1 - self.config.sliding_window
|
| 376 |
+
|
| 377 |
+
past_key = past_key_value[self.layer_idx][0]
|
| 378 |
+
past_value = past_key_value[self.layer_idx][1]
|
| 379 |
+
|
| 380 |
+
past_key = past_key[:, :, slicing_tokens:, :].contiguous()
|
| 381 |
+
past_value = past_value[:, :, slicing_tokens:, :].contiguous()
|
| 382 |
+
|
| 383 |
+
if past_key.shape[-2] != self.config.sliding_window - 1:
|
| 384 |
+
raise ValueError(
|
| 385 |
+
f"past key must have a shape of (`batch_size, num_heads, self.config.sliding_window-1, head_dim`), got"
|
| 386 |
+
f" {past_key.shape}"
|
| 387 |
+
)
|
| 388 |
+
|
| 389 |
+
if attention_mask is not None:
|
| 390 |
+
attention_mask = attention_mask[:, slicing_tokens:]
|
| 391 |
+
attention_mask = torch.cat([attention_mask, torch.ones_like(attention_mask[:, -1:])], dim=-1)
|
| 392 |
+
|
| 393 |
+
cache_kwargs = {"sin": sin, "cos": cos} # Specific to RoPE models
|
| 394 |
+
key_states, value_states = past_key_value.update(key_states, value_states, self.layer_idx, cache_kwargs)
|
| 395 |
+
|
| 396 |
+
# repeat k/v heads if n_kv_heads < n_heads
|
| 397 |
+
key_states = repeat_kv(key_states, self.num_key_value_groups)
|
| 398 |
+
value_states = repeat_kv(value_states, self.num_key_value_groups)
|
| 399 |
+
dropout_rate = 0.0 if not self.training else self.attention_dropout
|
| 400 |
+
|
| 401 |
+
# In PEFT, usually we cast the layer norms in float32 for training stability reasons
|
| 402 |
+
# therefore the input hidden states gets silently casted in float32. Hence, we need
|
| 403 |
+
# cast them back in float16 just to be sure everything works as expected.
|
| 404 |
+
input_dtype = query_states.dtype
|
| 405 |
+
if input_dtype == torch.float32:
|
| 406 |
+
if torch.is_autocast_enabled():
|
| 407 |
+
target_dtype = torch.get_autocast_gpu_dtype()
|
| 408 |
+
# Handle the case where the model is quantized
|
| 409 |
+
elif hasattr(self.config, "_pre_quantization_dtype"):
|
| 410 |
+
target_dtype = self.config._pre_quantization_dtype
|
| 411 |
+
else:
|
| 412 |
+
target_dtype = self.q_proj.weight.dtype
|
| 413 |
+
|
| 414 |
+
logger.warning_once(
|
| 415 |
+
f"The input hidden states seems to be silently casted in float32, this might be related to"
|
| 416 |
+
f" the fact you have upcasted embedding or layer norm layers in float32. We will cast back the input in"
|
| 417 |
+
f" {target_dtype}."
|
| 418 |
+
)
|
| 419 |
+
|
| 420 |
+
query_states = query_states.to(target_dtype)
|
| 421 |
+
key_states = key_states.to(target_dtype)
|
| 422 |
+
value_states = value_states.to(target_dtype)
|
| 423 |
+
|
| 424 |
+
# Reashape to the expected shape for Flash Attention
|
| 425 |
+
query_states = query_states.transpose(1, 2)
|
| 426 |
+
key_states = key_states.transpose(1, 2)
|
| 427 |
+
value_states = value_states.transpose(1, 2)
|
| 428 |
+
|
| 429 |
+
attn_output = self._flash_attention_forward(
|
| 430 |
+
query_states,
|
| 431 |
+
key_states,
|
| 432 |
+
value_states,
|
| 433 |
+
attention_mask,
|
| 434 |
+
q_len,
|
| 435 |
+
dropout=dropout_rate,
|
| 436 |
+
use_sliding_windows=use_sliding_windows,
|
| 437 |
+
)
|
| 438 |
+
|
| 439 |
+
attn_output = attn_output.reshape(bsz, q_len, self.hidden_size).contiguous()
|
| 440 |
+
attn_output = self.o_proj(attn_output)
|
| 441 |
+
|
| 442 |
+
if not output_attentions:
|
| 443 |
+
attn_weights = None
|
| 444 |
+
|
| 445 |
+
return attn_output, attn_weights, past_key_value
|
| 446 |
+
|
| 447 |
+
def _flash_attention_forward(
|
| 448 |
+
self,
|
| 449 |
+
query_states,
|
| 450 |
+
key_states,
|
| 451 |
+
value_states,
|
| 452 |
+
attention_mask,
|
| 453 |
+
query_length,
|
| 454 |
+
dropout=0.0,
|
| 455 |
+
softmax_scale=None,
|
| 456 |
+
use_sliding_windows=False,
|
| 457 |
+
):
|
| 458 |
+
"""
|
| 459 |
+
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token
|
| 460 |
+
first unpad the input, then computes the attention scores and pad the final attention scores.
|
| 461 |
+
Args:
|
| 462 |
+
query_states (`torch.Tensor`):
|
| 463 |
+
Input query states to be passed to Flash Attention API
|
| 464 |
+
key_states (`torch.Tensor`):
|
| 465 |
+
Input key states to be passed to Flash Attention API
|
| 466 |
+
value_states (`torch.Tensor`):
|
| 467 |
+
Input value states to be passed to Flash Attention API
|
| 468 |
+
attention_mask (`torch.Tensor`):
|
| 469 |
+
The padding mask - corresponds to a tensor of size `(batch_size, seq_len)` where 0 stands for the
|
| 470 |
+
position of padding tokens and 1 for the position of non-padding tokens.
|
| 471 |
+
dropout (`float`):
|
| 472 |
+
Attention dropout
|
| 473 |
+
softmax_scale (`float`, *optional*):
|
| 474 |
+
The scaling of QK^T before applying softmax. Default to 1 / sqrt(head_dim)
|
| 475 |
+
use_sliding_windows (`bool`, *optional*):
|
| 476 |
+
Whether to activate sliding window attention.
|
| 477 |
+
"""
|
| 478 |
+
if not self._flash_attn_uses_top_left_mask:
|
| 479 |
+
causal = self.is_causal
|
| 480 |
+
else:
|
| 481 |
+
# TODO: Remove the `query_length != 1` check once Flash Attention for RoCm is bumped to 2.1. For details, please see the comment in LlamaFlashAttention2 __init__.
|
| 482 |
+
causal = self.is_causal and query_length != 1
|
| 483 |
+
|
| 484 |
+
# Decide whether to use SWA or not by layer index.
|
| 485 |
+
if use_sliding_windows and self.layer_idx >= self.config.max_window_layers:
|
| 486 |
+
use_sliding_windows = False
|
| 487 |
+
|
| 488 |
+
# Contains at least one padding token in the sequence
|
| 489 |
+
if attention_mask is not None:
|
| 490 |
+
batch_size = query_states.shape[0]
|
| 491 |
+
query_states, key_states, value_states, indices_q, cu_seq_lens, max_seq_lens = self._upad_input(
|
| 492 |
+
query_states, key_states, value_states, attention_mask, query_length
|
| 493 |
+
)
|
| 494 |
+
|
| 495 |
+
cu_seqlens_q, cu_seqlens_k = cu_seq_lens
|
| 496 |
+
max_seqlen_in_batch_q, max_seqlen_in_batch_k = max_seq_lens
|
| 497 |
+
|
| 498 |
+
if not use_sliding_windows:
|
| 499 |
+
attn_output_unpad = flash_attn_varlen_func(
|
| 500 |
+
query_states,
|
| 501 |
+
key_states,
|
| 502 |
+
value_states,
|
| 503 |
+
cu_seqlens_q=cu_seqlens_q,
|
| 504 |
+
cu_seqlens_k=cu_seqlens_k,
|
| 505 |
+
max_seqlen_q=max_seqlen_in_batch_q,
|
| 506 |
+
max_seqlen_k=max_seqlen_in_batch_k,
|
| 507 |
+
dropout_p=dropout,
|
| 508 |
+
softmax_scale=softmax_scale,
|
| 509 |
+
causal=causal,
|
| 510 |
+
)
|
| 511 |
+
else:
|
| 512 |
+
attn_output_unpad = flash_attn_varlen_func(
|
| 513 |
+
query_states,
|
| 514 |
+
key_states,
|
| 515 |
+
value_states,
|
| 516 |
+
cu_seqlens_q=cu_seqlens_q,
|
| 517 |
+
cu_seqlens_k=cu_seqlens_k,
|
| 518 |
+
max_seqlen_q=max_seqlen_in_batch_q,
|
| 519 |
+
max_seqlen_k=max_seqlen_in_batch_k,
|
| 520 |
+
dropout_p=dropout,
|
| 521 |
+
softmax_scale=softmax_scale,
|
| 522 |
+
causal=causal,
|
| 523 |
+
window_size=(self.config.sliding_window, self.config.sliding_window),
|
| 524 |
+
)
|
| 525 |
+
|
| 526 |
+
attn_output = pad_input(attn_output_unpad, indices_q, batch_size, query_length)
|
| 527 |
+
else:
|
| 528 |
+
if not use_sliding_windows:
|
| 529 |
+
attn_output = flash_attn_func(
|
| 530 |
+
query_states,
|
| 531 |
+
key_states,
|
| 532 |
+
value_states,
|
| 533 |
+
dropout,
|
| 534 |
+
softmax_scale=softmax_scale,
|
| 535 |
+
causal=causal,
|
| 536 |
+
)
|
| 537 |
+
else:
|
| 538 |
+
attn_output = flash_attn_func(
|
| 539 |
+
query_states,
|
| 540 |
+
key_states,
|
| 541 |
+
value_states,
|
| 542 |
+
dropout,
|
| 543 |
+
softmax_scale=softmax_scale,
|
| 544 |
+
causal=causal,
|
| 545 |
+
window_size=(self.config.sliding_window, self.config.sliding_window),
|
| 546 |
+
)
|
| 547 |
+
|
| 548 |
+
return attn_output
|
| 549 |
+
|
| 550 |
+
def _upad_input(self, query_layer, key_layer, value_layer, attention_mask, query_length):
|
| 551 |
+
batch_size, kv_seq_len, num_heads, head_dim = key_layer.shape
|
| 552 |
+
|
| 553 |
+
# On the first iteration we need to properly re-create the padding mask
|
| 554 |
+
# by slicing it on the proper place
|
| 555 |
+
if kv_seq_len != attention_mask.shape[-1]:
|
| 556 |
+
attention_mask_num_tokens = attention_mask.shape[-1]
|
| 557 |
+
attention_mask = attention_mask[:, attention_mask_num_tokens - kv_seq_len :]
|
| 558 |
+
|
| 559 |
+
indices_k, cu_seqlens_k, max_seqlen_in_batch_k = _get_unpad_data(attention_mask)
|
| 560 |
+
|
| 561 |
+
key_layer = index_first_axis(key_layer.reshape(batch_size * kv_seq_len, num_heads, head_dim), indices_k)
|
| 562 |
+
value_layer = index_first_axis(value_layer.reshape(batch_size * kv_seq_len, num_heads, head_dim), indices_k)
|
| 563 |
+
|
| 564 |
+
if query_length == kv_seq_len:
|
| 565 |
+
query_layer = index_first_axis(
|
| 566 |
+
query_layer.reshape(batch_size * kv_seq_len, num_heads, head_dim), indices_k
|
| 567 |
+
)
|
| 568 |
+
cu_seqlens_q = cu_seqlens_k
|
| 569 |
+
max_seqlen_in_batch_q = max_seqlen_in_batch_k
|
| 570 |
+
indices_q = indices_k
|
| 571 |
+
elif query_length == 1:
|
| 572 |
+
max_seqlen_in_batch_q = 1
|
| 573 |
+
cu_seqlens_q = torch.arange(
|
| 574 |
+
batch_size + 1, dtype=torch.int32, device=query_layer.device
|
| 575 |
+
) # There is a memcpy here, that is very bad.
|
| 576 |
+
indices_q = cu_seqlens_q[:-1]
|
| 577 |
+
query_layer = query_layer.squeeze(1)
|
| 578 |
+
else:
|
| 579 |
+
# The -q_len: slice assumes left padding.
|
| 580 |
+
attention_mask = attention_mask[:, -query_length:]
|
| 581 |
+
query_layer, indices_q, cu_seqlens_q, max_seqlen_in_batch_q = unpad_input(query_layer, attention_mask)
|
| 582 |
+
|
| 583 |
+
return (
|
| 584 |
+
query_layer,
|
| 585 |
+
key_layer,
|
| 586 |
+
value_layer,
|
| 587 |
+
indices_q,
|
| 588 |
+
(cu_seqlens_q, cu_seqlens_k),
|
| 589 |
+
(max_seqlen_in_batch_q, max_seqlen_in_batch_k),
|
| 590 |
+
)
|
| 591 |
+
|
| 592 |
+
|
| 593 |
+
class OmegaNeoSdpaAttention(OmegaNeoAttention):
|
| 594 |
+
"""
|
| 595 |
+
OmegaNeo attention module using torch.nn.functional.scaled_dot_product_attention. This module inherits from
|
| 596 |
+
`OmegaNeoAttention` as the weights of the module stays untouched. The only changes are on the forward pass to adapt to
|
| 597 |
+
SDPA API.
|
| 598 |
+
"""
|
| 599 |
+
|
| 600 |
+
# Adapted from OmegaNeoAttention.forward
|
| 601 |
+
def forward(
|
| 602 |
+
self,
|
| 603 |
+
hidden_states: torch.Tensor,
|
| 604 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 605 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 606 |
+
past_key_value: Optional[Cache] = None,
|
| 607 |
+
output_attentions: bool = False,
|
| 608 |
+
use_cache: bool = False,
|
| 609 |
+
) -> Tuple[torch.Tensor, Optional[torch.Tensor], Optional[Tuple[torch.Tensor]]]:
|
| 610 |
+
if output_attentions:
|
| 611 |
+
# TODO: Improve this warning with e.g. `model.config.attn_implementation = "manual"` once this is implemented.
|
| 612 |
+
logger.warning_once(
|
| 613 |
+
"OmegaNeoModel is using OmegaNeoSdpaAttention, but `torch.nn.functional.scaled_dot_product_attention` does not support `output_attentions=True`. Falling back to the manual attention implementation, "
|
| 614 |
+
'but specifying the manual implementation will be required from Transformers version v5.0.0 onwards. This warning can be removed using the argument `attn_implementation="eager"` when loading the model.'
|
| 615 |
+
)
|
| 616 |
+
return super().forward(
|
| 617 |
+
hidden_states=hidden_states,
|
| 618 |
+
attention_mask=attention_mask,
|
| 619 |
+
position_ids=position_ids,
|
| 620 |
+
past_key_value=past_key_value,
|
| 621 |
+
output_attentions=output_attentions,
|
| 622 |
+
use_cache=use_cache,
|
| 623 |
+
)
|
| 624 |
+
|
| 625 |
+
bsz, q_len, _ = hidden_states.size()
|
| 626 |
+
|
| 627 |
+
query_states = self.q_proj(hidden_states)
|
| 628 |
+
key_states = self.k_proj(hidden_states)
|
| 629 |
+
value_states = self.v_proj(hidden_states)
|
| 630 |
+
|
| 631 |
+
query_states = query_states.view(bsz, q_len, self.num_heads, self.head_dim).transpose(1, 2)
|
| 632 |
+
key_states = key_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
|
| 633 |
+
value_states = value_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
|
| 634 |
+
|
| 635 |
+
kv_seq_len = key_states.shape[-2]
|
| 636 |
+
if past_key_value is not None:
|
| 637 |
+
kv_seq_len += past_key_value.get_usable_length(kv_seq_len, self.layer_idx)
|
| 638 |
+
cos, sin = self.rotary_emb(value_states, seq_len=kv_seq_len)
|
| 639 |
+
|
| 640 |
+
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin, position_ids)
|
| 641 |
+
|
| 642 |
+
if past_key_value is not None:
|
| 643 |
+
cache_kwargs = {"sin": sin, "cos": cos} # Specific to RoPE models
|
| 644 |
+
key_states, value_states = past_key_value.update(key_states, value_states, self.layer_idx, cache_kwargs)
|
| 645 |
+
|
| 646 |
+
key_states = repeat_kv(key_states, self.num_key_value_groups)
|
| 647 |
+
value_states = repeat_kv(value_states, self.num_key_value_groups)
|
| 648 |
+
|
| 649 |
+
if attention_mask is not None:
|
| 650 |
+
if attention_mask.size() != (bsz, 1, q_len, kv_seq_len):
|
| 651 |
+
raise ValueError(
|
| 652 |
+
f"Attention mask should be of size {(bsz, 1, q_len, kv_seq_len)}, but is {attention_mask.size()}"
|
| 653 |
+
)
|
| 654 |
+
|
| 655 |
+
# SDPA with memory-efficient backend is currently (torch==2.1.2) bugged with non-contiguous inputs with custom attn_mask,
|
| 656 |
+
# Reference: https://github.com/pytorch/pytorch/issues/112577.
|
| 657 |
+
if query_states.device.type == "cuda" and attention_mask is not None:
|
| 658 |
+
query_states = query_states.contiguous()
|
| 659 |
+
key_states = key_states.contiguous()
|
| 660 |
+
value_states = value_states.contiguous()
|
| 661 |
+
|
| 662 |
+
attn_output = torch.nn.functional.scaled_dot_product_attention(
|
| 663 |
+
query_states,
|
| 664 |
+
key_states,
|
| 665 |
+
value_states,
|
| 666 |
+
attn_mask=attention_mask,
|
| 667 |
+
dropout_p=self.attention_dropout if self.training else 0.0,
|
| 668 |
+
# The q_len > 1 is necessary to match with AttentionMaskConverter.to_causal_4d that does not create a causal mask in case q_len == 1.
|
| 669 |
+
is_causal=self.is_causal and attention_mask is None and q_len > 1,
|
| 670 |
+
)
|
| 671 |
+
|
| 672 |
+
attn_output = attn_output.transpose(1, 2).contiguous()
|
| 673 |
+
attn_output = attn_output.view(bsz, q_len, self.hidden_size)
|
| 674 |
+
|
| 675 |
+
attn_output = self.o_proj(attn_output)
|
| 676 |
+
|
| 677 |
+
return attn_output, None, past_key_value
|
| 678 |
+
|
| 679 |
+
|
| 680 |
+
OMEGANEO_ATTENTION_CLASSES = {
|
| 681 |
+
"eager": OmegaNeoAttention,
|
| 682 |
+
"flash_attention_2": OmegaNeoFlashAttention2,
|
| 683 |
+
"sdpa": OmegaNeoSdpaAttention,
|
| 684 |
+
}
|
| 685 |
+
|
| 686 |
+
|
| 687 |
+
class OmegaNeoDecoderLayer(nn.Module):
|
| 688 |
+
def __init__(self, config: OmegaNeoConfig, layer_idx: int):
|
| 689 |
+
super().__init__()
|
| 690 |
+
self.hidden_size = config.hidden_size
|
| 691 |
+
|
| 692 |
+
if config.use_sliding_window and config._attn_implementation != "flash_attention_2":
|
| 693 |
+
logger.warning_once(
|
| 694 |
+
f"Sliding Window Attention is enabled but not implemented for `{config._attn_implementation}`; "
|
| 695 |
+
"unexpected results may be encountered."
|
| 696 |
+
)
|
| 697 |
+
self.self_attn = OMEGANEO_ATTENTION_CLASSES[config._attn_implementation](config, layer_idx)
|
| 698 |
+
|
| 699 |
+
self.mlp = OmegaNeoMLP(config)
|
| 700 |
+
self.input_layernorm = OmegaNeoRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 701 |
+
self.post_attention_layernorm = OmegaNeoRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 702 |
+
|
| 703 |
+
def forward(
|
| 704 |
+
self,
|
| 705 |
+
hidden_states: torch.Tensor,
|
| 706 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 707 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 708 |
+
past_key_value: Optional[Tuple[torch.Tensor]] = None,
|
| 709 |
+
output_attentions: Optional[bool] = False,
|
| 710 |
+
use_cache: Optional[bool] = False,
|
| 711 |
+
**kwargs,
|
| 712 |
+
) -> Tuple[torch.FloatTensor, Optional[Tuple[torch.FloatTensor, torch.FloatTensor]]]:
|
| 713 |
+
if "padding_mask" in kwargs:
|
| 714 |
+
warnings.warn(
|
| 715 |
+
"Passing `padding_mask` is deprecated and will be removed in v4.37. "
|
| 716 |
+
"Please make sure use `attention_mask` instead.`"
|
| 717 |
+
)
|
| 718 |
+
"""
|
| 719 |
+
Args:
|
| 720 |
+
hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)`
|
| 721 |
+
attention_mask (`torch.FloatTensor`, *optional*): attention mask of size
|
| 722 |
+
`(batch, sequence_length)` where padding elements are indicated by 0.
|
| 723 |
+
output_attentions (`bool`, *optional*):
|
| 724 |
+
Whether or not to return the attentions tensors of all attention layers. See `attentions` under
|
| 725 |
+
returned tensors for more detail.
|
| 726 |
+
use_cache (`bool`, *optional*):
|
| 727 |
+
If set to `True`, `past_key_values` key value states are returned and can be used to speed up decoding
|
| 728 |
+
(see `past_key_values`).
|
| 729 |
+
past_key_value (`Tuple(torch.FloatTensor)`, *optional*): cached past key and value projection states
|
| 730 |
+
"""
|
| 731 |
+
|
| 732 |
+
residual = hidden_states
|
| 733 |
+
|
| 734 |
+
hidden_states = self.input_layernorm(hidden_states)
|
| 735 |
+
|
| 736 |
+
# Self Attention
|
| 737 |
+
hidden_states, self_attn_weights, present_key_value = self.self_attn(
|
| 738 |
+
hidden_states=hidden_states,
|
| 739 |
+
attention_mask=attention_mask,
|
| 740 |
+
position_ids=position_ids,
|
| 741 |
+
past_key_value=past_key_value,
|
| 742 |
+
output_attentions=output_attentions,
|
| 743 |
+
use_cache=use_cache,
|
| 744 |
+
)
|
| 745 |
+
hidden_states = residual + hidden_states
|
| 746 |
+
|
| 747 |
+
# Fully Connected
|
| 748 |
+
residual = hidden_states
|
| 749 |
+
hidden_states = self.post_attention_layernorm(hidden_states)
|
| 750 |
+
hidden_states = self.mlp(hidden_states)
|
| 751 |
+
hidden_states = residual + hidden_states
|
| 752 |
+
|
| 753 |
+
outputs = (hidden_states,)
|
| 754 |
+
|
| 755 |
+
if output_attentions:
|
| 756 |
+
outputs += (self_attn_weights,)
|
| 757 |
+
|
| 758 |
+
if use_cache:
|
| 759 |
+
outputs += (present_key_value,)
|
| 760 |
+
|
| 761 |
+
return outputs
|
| 762 |
+
|
| 763 |
+
|
| 764 |
+
OMEGANEO_START_DOCSTRING = r"""
|
| 765 |
+
This model inherits from [`PreTrainedModel`]. Check the superclass documentation for the generic methods the
|
| 766 |
+
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
|
| 767 |
+
etc.)
|
| 768 |
+
This model is also a PyTorch [torch.nn.Module](https://pytorch.org/docs/stable/nn.html#torch.nn.Module) subclass.
|
| 769 |
+
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
|
| 770 |
+
and behavior.
|
| 771 |
+
Parameters:
|
| 772 |
+
config ([`OmegaNeoConfig`]):
|
| 773 |
+
Model configuration class with all the parameters of the model. Initializing with a config file does not
|
| 774 |
+
load the weights associated with the model, only the configuration. Check out the
|
| 775 |
+
[`~PreTrainedModel.from_pretrained`] method to load the model weights.
|
| 776 |
+
"""
|
| 777 |
+
|
| 778 |
+
|
| 779 |
+
@add_start_docstrings(
|
| 780 |
+
"The bare OmegaNeo Model outputting raw hidden-states without any specific head on top.",
|
| 781 |
+
OMEGANEO_START_DOCSTRING,
|
| 782 |
+
)
|
| 783 |
+
class OmegaNeoPreTrainedModel(PreTrainedModel):
|
| 784 |
+
config_class = OmegaNeoConfig
|
| 785 |
+
base_model_prefix = "model"
|
| 786 |
+
supports_gradient_checkpointing = True
|
| 787 |
+
_no_split_modules = ["OmegaNeoDecoderLayer"]
|
| 788 |
+
_skip_keys_device_placement = "past_key_values"
|
| 789 |
+
_supports_flash_attn_2 = True
|
| 790 |
+
_supports_sdpa = True
|
| 791 |
+
_supports_cache_class = True
|
| 792 |
+
|
| 793 |
+
def _init_weights(self, module):
|
| 794 |
+
std = self.config.initializer_range
|
| 795 |
+
if isinstance(module, nn.Linear):
|
| 796 |
+
module.weight.data.normal_(mean=0.0, std=std)
|
| 797 |
+
if module.bias is not None:
|
| 798 |
+
module.bias.data.zero_()
|
| 799 |
+
elif isinstance(module, nn.Embedding):
|
| 800 |
+
module.weight.data.normal_(mean=0.0, std=std)
|
| 801 |
+
if module.padding_idx is not None:
|
| 802 |
+
module.weight.data[module.padding_idx].zero_()
|
| 803 |
+
|
| 804 |
+
|
| 805 |
+
OMEGANEO_INPUTS_DOCSTRING = r"""
|
| 806 |
+
Args:
|
| 807 |
+
input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`):
|
| 808 |
+
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
|
| 809 |
+
it.
|
| 810 |
+
Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
|
| 811 |
+
[`PreTrainedTokenizer.__call__`] for details.
|
| 812 |
+
[What are input IDs?](../glossary#input-ids)
|
| 813 |
+
attention_mask (`torch.Tensor` of shape `(batch_size, sequence_length)`, *optional*):
|
| 814 |
+
Mask to avoid performing attention on padding token indices. Mask values selected in `[0, 1]`:
|
| 815 |
+
- 1 for tokens that are **not masked**,
|
| 816 |
+
- 0 for tokens that are **masked**.
|
| 817 |
+
[What are attention masks?](../glossary#attention-mask)
|
| 818 |
+
Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
|
| 819 |
+
[`PreTrainedTokenizer.__call__`] for details.
|
| 820 |
+
If `past_key_values` is used, optionally only the last `decoder_input_ids` have to be input (see
|
| 821 |
+
`past_key_values`).
|
| 822 |
+
If you want to change padding behavior, you should read [`modeling_opt._prepare_decoder_attention_mask`]
|
| 823 |
+
and modify to your needs. See diagram 1 in [the paper](https://arxiv.org/abs/1910.13461) for more
|
| 824 |
+
information on the default strategy.
|
| 825 |
+
- 1 indicates the head is **not masked**,
|
| 826 |
+
- 0 indicates the head is **masked**.
|
| 827 |
+
position_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
|
| 828 |
+
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range `[0,
|
| 829 |
+
config.n_positions - 1]`.
|
| 830 |
+
[What are position IDs?](../glossary#position-ids)
|
| 831 |
+
past_key_values (`Cache` or `tuple(tuple(torch.FloatTensor))`, *optional*):
|
| 832 |
+
Pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
|
| 833 |
+
blocks) that can be used to speed up sequential decoding. This typically consists in the `past_key_values`
|
| 834 |
+
returned by the model at a previous stage of decoding, when `use_cache=True` or `config.use_cache=True`.
|
| 835 |
+
Two formats are allowed:
|
| 836 |
+
- a [`~cache_utils.Cache`] instance;
|
| 837 |
+
- Tuple of `tuple(torch.FloatTensor)` of length `config.n_layers`, with each tuple having 2 tensors of
|
| 838 |
+
shape `(batch_size, num_heads, sequence_length, embed_size_per_head)`). This is also known as the legacy
|
| 839 |
+
cache format.
|
| 840 |
+
The model will output the same cache format that is fed as input. If no `past_key_values` are passed, the
|
| 841 |
+
legacy cache format will be returned.
|
| 842 |
+
If `past_key_values` are used, the user can optionally input only the last `input_ids` (those that don't
|
| 843 |
+
have their past key value states given to this model) of shape `(batch_size, 1)` instead of all `input_ids`
|
| 844 |
+
of shape `(batch_size, sequence_length)`.
|
| 845 |
+
inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, *optional*):
|
| 846 |
+
Optionally, instead of passing `input_ids` you can choose to directly pass an embedded representation. This
|
| 847 |
+
is useful if you want more control over how to convert `input_ids` indices into associated vectors than the
|
| 848 |
+
model's internal embedding lookup matrix.
|
| 849 |
+
use_cache (`bool`, *optional*):
|
| 850 |
+
If set to `True`, `past_key_values` key value states are returned and can be used to speed up decoding (see
|
| 851 |
+
`past_key_values`).
|
| 852 |
+
output_attentions (`bool`, *optional*):
|
| 853 |
+
Whether or not to return the attentions tensors of all attention layers. See `attentions` under returned
|
| 854 |
+
tensors for more detail.
|
| 855 |
+
output_hidden_states (`bool`, *optional*):
|
| 856 |
+
Whether or not to return the hidden states of all layers. See `hidden_states` under returned tensors for
|
| 857 |
+
more detail.
|
| 858 |
+
return_dict (`bool`, *optional*):
|
| 859 |
+
Whether or not to return a [`~utils.ModelOutput`] instead of a plain tuple.
|
| 860 |
+
"""
|
| 861 |
+
|
| 862 |
+
|
| 863 |
+
@add_start_docstrings(
|
| 864 |
+
"The bare OmegaNeo Model outputting raw hidden-states without any specific head on top.",
|
| 865 |
+
OMEGANEO_START_DOCSTRING,
|
| 866 |
+
)
|
| 867 |
+
class OmegaNeoModel(OmegaNeoPreTrainedModel):
|
| 868 |
+
"""
|
| 869 |
+
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`OmegaNeoDecoderLayer`]
|
| 870 |
+
Args:
|
| 871 |
+
config: OmegaNeoConfig
|
| 872 |
+
"""
|
| 873 |
+
|
| 874 |
+
def __init__(self, config: OmegaNeoConfig):
|
| 875 |
+
super().__init__(config)
|
| 876 |
+
self.padding_idx = config.pad_token_id
|
| 877 |
+
self.vocab_size = config.vocab_size
|
| 878 |
+
|
| 879 |
+
self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
|
| 880 |
+
self.layers = nn.ModuleList(
|
| 881 |
+
[OmegaNeoDecoderLayer(config, layer_idx) for layer_idx in range(config.num_hidden_layers)]
|
| 882 |
+
)
|
| 883 |
+
self._attn_implementation = config._attn_implementation
|
| 884 |
+
self.norm = OmegaNeoRMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 885 |
+
|
| 886 |
+
self.gradient_checkpointing = False
|
| 887 |
+
# Initialize weights and apply final processing
|
| 888 |
+
self.post_init()
|
| 889 |
+
|
| 890 |
+
def get_input_embeddings(self):
|
| 891 |
+
return self.embed_tokens
|
| 892 |
+
|
| 893 |
+
def set_input_embeddings(self, value):
|
| 894 |
+
self.embed_tokens = value
|
| 895 |
+
|
| 896 |
+
@add_start_docstrings_to_model_forward(OMEGANEO_INPUTS_DOCSTRING)
|
| 897 |
+
def forward(
|
| 898 |
+
self,
|
| 899 |
+
input_ids: torch.LongTensor = None,
|
| 900 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 901 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 902 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
| 903 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 904 |
+
use_cache: Optional[bool] = None,
|
| 905 |
+
output_attentions: Optional[bool] = None,
|
| 906 |
+
output_hidden_states: Optional[bool] = None,
|
| 907 |
+
return_dict: Optional[bool] = None,
|
| 908 |
+
) -> Union[Tuple, BaseModelOutputWithPast]:
|
| 909 |
+
output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
|
| 910 |
+
output_hidden_states = (
|
| 911 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 912 |
+
)
|
| 913 |
+
use_cache = use_cache if use_cache is not None else self.config.use_cache
|
| 914 |
+
|
| 915 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 916 |
+
|
| 917 |
+
# retrieve input_ids and inputs_embeds
|
| 918 |
+
if input_ids is not None and inputs_embeds is not None:
|
| 919 |
+
raise ValueError("You cannot specify both decoder_input_ids and decoder_inputs_embeds at the same time")
|
| 920 |
+
elif input_ids is not None:
|
| 921 |
+
batch_size, seq_length = input_ids.shape
|
| 922 |
+
elif inputs_embeds is not None:
|
| 923 |
+
batch_size, seq_length, _ = inputs_embeds.shape
|
| 924 |
+
else:
|
| 925 |
+
raise ValueError("You have to specify either decoder_input_ids or decoder_inputs_embeds")
|
| 926 |
+
|
| 927 |
+
if self.gradient_checkpointing and self.training:
|
| 928 |
+
if use_cache:
|
| 929 |
+
logger.warning_once(
|
| 930 |
+
"`use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`..."
|
| 931 |
+
)
|
| 932 |
+
use_cache = False
|
| 933 |
+
|
| 934 |
+
past_key_values_length = 0
|
| 935 |
+
|
| 936 |
+
if use_cache:
|
| 937 |
+
use_legacy_cache = not isinstance(past_key_values, Cache)
|
| 938 |
+
if use_legacy_cache:
|
| 939 |
+
past_key_values = DynamicCache.from_legacy_cache(past_key_values)
|
| 940 |
+
past_key_values_length = past_key_values.get_usable_length(seq_length)
|
| 941 |
+
|
| 942 |
+
if position_ids is None:
|
| 943 |
+
device = input_ids.device if input_ids is not None else inputs_embeds.device
|
| 944 |
+
position_ids = torch.arange(
|
| 945 |
+
past_key_values_length, seq_length + past_key_values_length, dtype=torch.long, device=device
|
| 946 |
+
)
|
| 947 |
+
position_ids = position_ids.unsqueeze(0).view(-1, seq_length)
|
| 948 |
+
else:
|
| 949 |
+
position_ids = position_ids.view(-1, seq_length).long()
|
| 950 |
+
|
| 951 |
+
if inputs_embeds is None:
|
| 952 |
+
inputs_embeds = self.embed_tokens(input_ids)
|
| 953 |
+
|
| 954 |
+
if attention_mask is not None and self._attn_implementation == "flash_attention_2" and use_cache:
|
| 955 |
+
is_padding_right = attention_mask[:, -1].sum().item() != batch_size
|
| 956 |
+
if is_padding_right:
|
| 957 |
+
raise ValueError(
|
| 958 |
+
"You are attempting to perform batched generation with padding_side='right'"
|
| 959 |
+
" this may lead to unexpected behaviour for Flash Attention version of OmegaNeo. Make sure to "
|
| 960 |
+
" call `tokenizer.padding_side = 'left'` before tokenizing the input. "
|
| 961 |
+
)
|
| 962 |
+
|
| 963 |
+
if self._attn_implementation == "flash_attention_2":
|
| 964 |
+
# 2d mask is passed through the layers
|
| 965 |
+
attention_mask = attention_mask if (attention_mask is not None and 0 in attention_mask) else None
|
| 966 |
+
elif self._attn_implementation == "sdpa" and not output_attentions:
|
| 967 |
+
# output_attentions=True can not be supported when using SDPA, and we fall back on
|
| 968 |
+
# the manual implementation that requires a 4D causal mask in all cases.
|
| 969 |
+
attention_mask = _prepare_4d_causal_attention_mask_for_sdpa(
|
| 970 |
+
attention_mask,
|
| 971 |
+
(batch_size, seq_length),
|
| 972 |
+
inputs_embeds,
|
| 973 |
+
past_key_values_length,
|
| 974 |
+
sliding_window=self.config.sliding_window,
|
| 975 |
+
)
|
| 976 |
+
else:
|
| 977 |
+
# 4d mask is passed through the layers
|
| 978 |
+
attention_mask = _prepare_4d_causal_attention_mask(
|
| 979 |
+
attention_mask,
|
| 980 |
+
(batch_size, seq_length),
|
| 981 |
+
inputs_embeds,
|
| 982 |
+
past_key_values_length,
|
| 983 |
+
sliding_window=self.config.sliding_window,
|
| 984 |
+
)
|
| 985 |
+
|
| 986 |
+
hidden_states = inputs_embeds
|
| 987 |
+
|
| 988 |
+
# decoder layers
|
| 989 |
+
all_hidden_states = () if output_hidden_states else None
|
| 990 |
+
all_self_attns = () if output_attentions else None
|
| 991 |
+
next_decoder_cache = None
|
| 992 |
+
|
| 993 |
+
for decoder_layer in self.layers:
|
| 994 |
+
if output_hidden_states:
|
| 995 |
+
all_hidden_states += (hidden_states,)
|
| 996 |
+
|
| 997 |
+
if self.gradient_checkpointing and self.training:
|
| 998 |
+
layer_outputs = self._gradient_checkpointing_func(
|
| 999 |
+
decoder_layer.__call__,
|
| 1000 |
+
hidden_states,
|
| 1001 |
+
attention_mask,
|
| 1002 |
+
position_ids,
|
| 1003 |
+
past_key_values,
|
| 1004 |
+
output_attentions,
|
| 1005 |
+
use_cache,
|
| 1006 |
+
)
|
| 1007 |
+
else:
|
| 1008 |
+
layer_outputs = decoder_layer(
|
| 1009 |
+
hidden_states,
|
| 1010 |
+
attention_mask=attention_mask,
|
| 1011 |
+
position_ids=position_ids,
|
| 1012 |
+
past_key_value=past_key_values,
|
| 1013 |
+
output_attentions=output_attentions,
|
| 1014 |
+
use_cache=use_cache,
|
| 1015 |
+
)
|
| 1016 |
+
|
| 1017 |
+
hidden_states = layer_outputs[0]
|
| 1018 |
+
|
| 1019 |
+
if use_cache:
|
| 1020 |
+
next_decoder_cache = layer_outputs[2 if output_attentions else 1]
|
| 1021 |
+
|
| 1022 |
+
if output_attentions:
|
| 1023 |
+
all_self_attns += (layer_outputs[1],)
|
| 1024 |
+
|
| 1025 |
+
hidden_states = self.norm(hidden_states)
|
| 1026 |
+
|
| 1027 |
+
# add hidden states from the last decoder layer
|
| 1028 |
+
if output_hidden_states:
|
| 1029 |
+
all_hidden_states += (hidden_states,)
|
| 1030 |
+
|
| 1031 |
+
next_cache = None
|
| 1032 |
+
if use_cache:
|
| 1033 |
+
next_cache = next_decoder_cache.to_legacy_cache() if use_legacy_cache else next_decoder_cache
|
| 1034 |
+
|
| 1035 |
+
if not return_dict:
|
| 1036 |
+
return tuple(v for v in [hidden_states, next_cache, all_hidden_states, all_self_attns] if v is not None)
|
| 1037 |
+
return BaseModelOutputWithPast(
|
| 1038 |
+
last_hidden_state=hidden_states,
|
| 1039 |
+
past_key_values=next_cache,
|
| 1040 |
+
hidden_states=all_hidden_states,
|
| 1041 |
+
attentions=all_self_attns,
|
| 1042 |
+
)
|
| 1043 |
+
|
| 1044 |
+
|
| 1045 |
+
class OmegaNeoForCausalLM(OmegaNeoPreTrainedModel):
|
| 1046 |
+
_tied_weights_keys = ["lm_head.weight"]
|
| 1047 |
+
|
| 1048 |
+
def __init__(self, config):
|
| 1049 |
+
super().__init__(config)
|
| 1050 |
+
self.model = OmegaNeoModel(config)
|
| 1051 |
+
self.vocab_size = config.vocab_size
|
| 1052 |
+
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
|
| 1053 |
+
|
| 1054 |
+
# Initialize weights and apply final processing
|
| 1055 |
+
self.post_init()
|
| 1056 |
+
|
| 1057 |
+
def get_input_embeddings(self):
|
| 1058 |
+
return self.model.embed_tokens
|
| 1059 |
+
|
| 1060 |
+
def set_input_embeddings(self, value):
|
| 1061 |
+
self.model.embed_tokens = value
|
| 1062 |
+
|
| 1063 |
+
def get_output_embeddings(self):
|
| 1064 |
+
return self.lm_head
|
| 1065 |
+
|
| 1066 |
+
def set_output_embeddings(self, new_embeddings):
|
| 1067 |
+
self.lm_head = new_embeddings
|
| 1068 |
+
|
| 1069 |
+
def set_decoder(self, decoder):
|
| 1070 |
+
self.model = decoder
|
| 1071 |
+
|
| 1072 |
+
def get_decoder(self):
|
| 1073 |
+
return self.model
|
| 1074 |
+
|
| 1075 |
+
@add_start_docstrings_to_model_forward(OMEGANEO_INPUTS_DOCSTRING)
|
| 1076 |
+
@replace_return_docstrings(output_type=CausalLMOutputWithPast, config_class=_CONFIG_FOR_DOC)
|
| 1077 |
+
def forward(
|
| 1078 |
+
self,
|
| 1079 |
+
input_ids: torch.LongTensor = None,
|
| 1080 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 1081 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 1082 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
| 1083 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 1084 |
+
labels: Optional[torch.LongTensor] = None,
|
| 1085 |
+
use_cache: Optional[bool] = None,
|
| 1086 |
+
output_attentions: Optional[bool] = None,
|
| 1087 |
+
output_hidden_states: Optional[bool] = None,
|
| 1088 |
+
return_dict: Optional[bool] = None,
|
| 1089 |
+
) -> Union[Tuple, CausalLMOutputWithPast]:
|
| 1090 |
+
r"""
|
| 1091 |
+
Args:
|
| 1092 |
+
labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
|
| 1093 |
+
Labels for computing the masked language modeling loss. Indices should either be in `[0, ...,
|
| 1094 |
+
config.vocab_size]` or -100 (see `input_ids` docstring). Tokens with indices set to `-100` are ignored
|
| 1095 |
+
(masked), the loss is only computed for the tokens with labels in `[0, ..., config.vocab_size]`.
|
| 1096 |
+
Returns:
|
| 1097 |
+
Example:
|
| 1098 |
+
```python
|
| 1099 |
+
>>> from transformers import AutoTokenizer, OmegaNeoForCausalLM
|
| 1100 |
+
>>> model = OmegaNeoForCausalLM.from_pretrained(PATH_TO_CONVERTED_WEIGHTS)
|
| 1101 |
+
>>> tokenizer = AutoTokenizer.from_pretrained(PATH_TO_CONVERTED_TOKENIZER)
|
| 1102 |
+
>>> prompt = "Hey, are you conscious? Can you talk to me?"
|
| 1103 |
+
>>> inputs = tokenizer(prompt, return_tensors="pt")
|
| 1104 |
+
>>> # Generate
|
| 1105 |
+
>>> generate_ids = model.generate(inputs.input_ids, max_length=30)
|
| 1106 |
+
>>> tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
|
| 1107 |
+
"Hey, are you conscious? Can you talk to me?\nI'm not conscious, but I can talk to you."
|
| 1108 |
+
```"""
|
| 1109 |
+
|
| 1110 |
+
output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
|
| 1111 |
+
output_hidden_states = (
|
| 1112 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 1113 |
+
)
|
| 1114 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 1115 |
+
|
| 1116 |
+
# decoder outputs consists of (dec_features, layer_state, dec_hidden, dec_attn)
|
| 1117 |
+
outputs = self.model(
|
| 1118 |
+
input_ids=input_ids,
|
| 1119 |
+
attention_mask=attention_mask,
|
| 1120 |
+
position_ids=position_ids,
|
| 1121 |
+
past_key_values=past_key_values,
|
| 1122 |
+
inputs_embeds=inputs_embeds,
|
| 1123 |
+
use_cache=use_cache,
|
| 1124 |
+
output_attentions=output_attentions,
|
| 1125 |
+
output_hidden_states=output_hidden_states,
|
| 1126 |
+
return_dict=return_dict,
|
| 1127 |
+
)
|
| 1128 |
+
|
| 1129 |
+
hidden_states = outputs[0]
|
| 1130 |
+
logits = self.lm_head(hidden_states)
|
| 1131 |
+
logits = logits.float()
|
| 1132 |
+
|
| 1133 |
+
loss = None
|
| 1134 |
+
if labels is not None:
|
| 1135 |
+
# Shift so that tokens < n predict n
|
| 1136 |
+
shift_logits = logits[..., :-1, :].contiguous()
|
| 1137 |
+
shift_labels = labels[..., 1:].contiguous()
|
| 1138 |
+
# Flatten the tokens
|
| 1139 |
+
loss_fct = CrossEntropyLoss()
|
| 1140 |
+
shift_logits = shift_logits.view(-1, self.config.vocab_size)
|
| 1141 |
+
shift_labels = shift_labels.view(-1)
|
| 1142 |
+
# Enable model parallelism
|
| 1143 |
+
shift_labels = shift_labels.to(shift_logits.device)
|
| 1144 |
+
loss = loss_fct(shift_logits, shift_labels)
|
| 1145 |
+
|
| 1146 |
+
if not return_dict:
|
| 1147 |
+
output = (logits,) + outputs[1:]
|
| 1148 |
+
return (loss,) + output if loss is not None else output
|
| 1149 |
+
|
| 1150 |
+
return CausalLMOutputWithPast(
|
| 1151 |
+
loss=loss,
|
| 1152 |
+
logits=logits,
|
| 1153 |
+
past_key_values=outputs.past_key_values,
|
| 1154 |
+
hidden_states=outputs.hidden_states,
|
| 1155 |
+
attentions=outputs.attentions,
|
| 1156 |
+
)
|
| 1157 |
+
|
| 1158 |
+
def prepare_inputs_for_generation(
|
| 1159 |
+
self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs
|
| 1160 |
+
):
|
| 1161 |
+
# Omit tokens covered by past_key_values
|
| 1162 |
+
if past_key_values is not None:
|
| 1163 |
+
if isinstance(past_key_values, Cache):
|
| 1164 |
+
cache_length = past_key_values.get_seq_length()
|
| 1165 |
+
past_length = past_key_values.seen_tokens
|
| 1166 |
+
max_cache_length = past_key_values.get_max_length()
|
| 1167 |
+
else:
|
| 1168 |
+
cache_length = past_length = past_key_values[0][0].shape[2]
|
| 1169 |
+
max_cache_length = None
|
| 1170 |
+
|
| 1171 |
+
# Keep only the unprocessed tokens:
|
| 1172 |
+
# 1 - If the length of the attention_mask exceeds the length of input_ids, then we are in a setting where
|
| 1173 |
+
# some of the inputs are exclusively passed as part of the cache (e.g. when passing input_embeds as
|
| 1174 |
+
# input)
|
| 1175 |
+
if attention_mask is not None and attention_mask.shape[1] > input_ids.shape[1]:
|
| 1176 |
+
input_ids = input_ids[:, -(attention_mask.shape[1] - past_length) :]
|
| 1177 |
+
# 2 - If the past_length is smaller than input_ids', then input_ids holds all input tokens. We can discard
|
| 1178 |
+
# input_ids based on the past_length.
|
| 1179 |
+
elif past_length < input_ids.shape[1]:
|
| 1180 |
+
input_ids = input_ids[:, past_length:]
|
| 1181 |
+
# 3 - Otherwise (past_length >= input_ids.shape[1]), let's assume input_ids only has unprocessed tokens.
|
| 1182 |
+
|
| 1183 |
+
# If we are about to go beyond the maximum cache length, we need to crop the input attention mask.
|
| 1184 |
+
if (
|
| 1185 |
+
max_cache_length is not None
|
| 1186 |
+
and attention_mask is not None
|
| 1187 |
+
and cache_length + input_ids.shape[1] > max_cache_length
|
| 1188 |
+
):
|
| 1189 |
+
attention_mask = attention_mask[:, -max_cache_length:]
|
| 1190 |
+
|
| 1191 |
+
position_ids = kwargs.get("position_ids", None)
|
| 1192 |
+
if attention_mask is not None and position_ids is None:
|
| 1193 |
+
# create position_ids on the fly for batch generation
|
| 1194 |
+
position_ids = attention_mask.long().cumsum(-1) - 1
|
| 1195 |
+
position_ids.masked_fill_(attention_mask == 0, 1)
|
| 1196 |
+
if past_key_values:
|
| 1197 |
+
position_ids = position_ids[:, -input_ids.shape[1] :]
|
| 1198 |
+
|
| 1199 |
+
# if `inputs_embeds` are passed, we only want to use them in the 1st generation step
|
| 1200 |
+
if inputs_embeds is not None and past_key_values is None:
|
| 1201 |
+
model_inputs = {"inputs_embeds": inputs_embeds}
|
| 1202 |
+
else:
|
| 1203 |
+
model_inputs = {"input_ids": input_ids}
|
| 1204 |
+
|
| 1205 |
+
model_inputs.update(
|
| 1206 |
+
{
|
| 1207 |
+
"position_ids": position_ids,
|
| 1208 |
+
"past_key_values": past_key_values,
|
| 1209 |
+
"use_cache": kwargs.get("use_cache"),
|
| 1210 |
+
"attention_mask": attention_mask,
|
| 1211 |
+
}
|
| 1212 |
+
)
|
| 1213 |
+
return model_inputs
|
| 1214 |
+
|
| 1215 |
+
@staticmethod
|
| 1216 |
+
def _reorder_cache(past_key_values, beam_idx):
|
| 1217 |
+
reordered_past = ()
|
| 1218 |
+
for layer_past in past_key_values:
|
| 1219 |
+
reordered_past += (
|
| 1220 |
+
tuple(past_state.index_select(0, beam_idx.to(past_state.device)) for past_state in layer_past),
|
| 1221 |
+
)
|
| 1222 |
+
return reordered_past
|
| 1223 |
+
|
| 1224 |
+
|
| 1225 |
+
@add_start_docstrings(
|
| 1226 |
+
"""
|
| 1227 |
+
The OmegaNeo Model transformer with a sequence classification head on top (linear layer).
|
| 1228 |
+
[`OmegaNeoForSequenceClassification`] uses the last token in order to do the classification, as other causal models
|
| 1229 |
+
(e.g. GPT-2) do.
|
| 1230 |
+
Since it does classification on the last token, it requires to know the position of the last token. If a
|
| 1231 |
+
`pad_token_id` is defined in the configuration, it finds the last token that is not a padding token in each row. If
|
| 1232 |
+
no `pad_token_id` is defined, it simply takes the last value in each row of the batch. Since it cannot guess the
|
| 1233 |
+
padding tokens when `inputs_embeds` are passed instead of `input_ids`, it does the same (take the last value in
|
| 1234 |
+
each row of the batch).
|
| 1235 |
+
""",
|
| 1236 |
+
OMEGANEO_START_DOCSTRING,
|
| 1237 |
+
)
|
| 1238 |
+
class OmegaNeoForSequenceClassification(OmegaNeoPreTrainedModel):
|
| 1239 |
+
def __init__(self, config):
|
| 1240 |
+
super().__init__(config)
|
| 1241 |
+
self.num_labels = config.num_labels
|
| 1242 |
+
self.model = OmegaNeoModel(config)
|
| 1243 |
+
self.score = nn.Linear(config.hidden_size, self.num_labels, bias=False)
|
| 1244 |
+
|
| 1245 |
+
# Initialize weights and apply final processing
|
| 1246 |
+
self.post_init()
|
| 1247 |
+
|
| 1248 |
+
def get_input_embeddings(self):
|
| 1249 |
+
return self.model.embed_tokens
|
| 1250 |
+
|
| 1251 |
+
def set_input_embeddings(self, value):
|
| 1252 |
+
self.model.embed_tokens = value
|
| 1253 |
+
|
| 1254 |
+
@add_start_docstrings_to_model_forward(OMEGANEO_INPUTS_DOCSTRING)
|
| 1255 |
+
def forward(
|
| 1256 |
+
self,
|
| 1257 |
+
input_ids: torch.LongTensor = None,
|
| 1258 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 1259 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 1260 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
| 1261 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 1262 |
+
labels: Optional[torch.LongTensor] = None,
|
| 1263 |
+
use_cache: Optional[bool] = None,
|
| 1264 |
+
output_attentions: Optional[bool] = None,
|
| 1265 |
+
output_hidden_states: Optional[bool] = None,
|
| 1266 |
+
return_dict: Optional[bool] = None,
|
| 1267 |
+
) -> Union[Tuple, SequenceClassifierOutputWithPast]:
|
| 1268 |
+
r"""
|
| 1269 |
+
labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*):
|
| 1270 |
+
Labels for computing the sequence classification/regression loss. Indices should be in `[0, ...,
|
| 1271 |
+
config.num_labels - 1]`. If `config.num_labels == 1` a regression loss is computed (Mean-Square loss), If
|
| 1272 |
+
`config.num_labels > 1` a classification loss is computed (Cross-Entropy).
|
| 1273 |
+
"""
|
| 1274 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 1275 |
+
|
| 1276 |
+
transformer_outputs = self.model(
|
| 1277 |
+
input_ids,
|
| 1278 |
+
attention_mask=attention_mask,
|
| 1279 |
+
position_ids=position_ids,
|
| 1280 |
+
past_key_values=past_key_values,
|
| 1281 |
+
inputs_embeds=inputs_embeds,
|
| 1282 |
+
use_cache=use_cache,
|
| 1283 |
+
output_attentions=output_attentions,
|
| 1284 |
+
output_hidden_states=output_hidden_states,
|
| 1285 |
+
return_dict=return_dict,
|
| 1286 |
+
)
|
| 1287 |
+
hidden_states = transformer_outputs[0]
|
| 1288 |
+
logits = self.score(hidden_states)
|
| 1289 |
+
|
| 1290 |
+
if input_ids is not None:
|
| 1291 |
+
batch_size = input_ids.shape[0]
|
| 1292 |
+
else:
|
| 1293 |
+
batch_size = inputs_embeds.shape[0]
|
| 1294 |
+
|
| 1295 |
+
if self.config.pad_token_id is None and batch_size != 1:
|
| 1296 |
+
raise ValueError("Cannot handle batch sizes > 1 if no padding token is defined.")
|
| 1297 |
+
if self.config.pad_token_id is None:
|
| 1298 |
+
sequence_lengths = -1
|
| 1299 |
+
else:
|
| 1300 |
+
if input_ids is not None:
|
| 1301 |
+
# if no pad token found, use modulo instead of reverse indexing for ONNX compatibility
|
| 1302 |
+
sequence_lengths = torch.eq(input_ids, self.config.pad_token_id).int().argmax(-1) - 1
|
| 1303 |
+
sequence_lengths = sequence_lengths % input_ids.shape[-1]
|
| 1304 |
+
sequence_lengths = sequence_lengths.to(logits.device)
|
| 1305 |
+
else:
|
| 1306 |
+
sequence_lengths = -1
|
| 1307 |
+
|
| 1308 |
+
pooled_logits = logits[torch.arange(batch_size, device=logits.device), sequence_lengths]
|
| 1309 |
+
|
| 1310 |
+
loss = None
|
| 1311 |
+
if labels is not None:
|
| 1312 |
+
labels = labels.to(logits.device)
|
| 1313 |
+
if self.config.problem_type is None:
|
| 1314 |
+
if self.num_labels == 1:
|
| 1315 |
+
self.config.problem_type = "regression"
|
| 1316 |
+
elif self.num_labels > 1 and (labels.dtype == torch.long or labels.dtype == torch.int):
|
| 1317 |
+
self.config.problem_type = "single_label_classification"
|
| 1318 |
+
else:
|
| 1319 |
+
self.config.problem_type = "multi_label_classification"
|
| 1320 |
+
|
| 1321 |
+
if self.config.problem_type == "regression":
|
| 1322 |
+
loss_fct = MSELoss()
|
| 1323 |
+
if self.num_labels == 1:
|
| 1324 |
+
loss = loss_fct(pooled_logits.squeeze(), labels.squeeze())
|
| 1325 |
+
else:
|
| 1326 |
+
loss = loss_fct(pooled_logits, labels)
|
| 1327 |
+
elif self.config.problem_type == "single_label_classification":
|
| 1328 |
+
loss_fct = CrossEntropyLoss()
|
| 1329 |
+
loss = loss_fct(pooled_logits.view(-1, self.num_labels), labels.view(-1))
|
| 1330 |
+
elif self.config.problem_type == "multi_label_classification":
|
| 1331 |
+
loss_fct = BCEWithLogitsLoss()
|
| 1332 |
+
loss = loss_fct(pooled_logits, labels)
|
| 1333 |
+
if not return_dict:
|
| 1334 |
+
output = (pooled_logits,) + transformer_outputs[1:]
|
| 1335 |
+
return ((loss,) + output) if loss is not None else output
|
| 1336 |
+
|
| 1337 |
+
return SequenceClassifierOutputWithPast(
|
| 1338 |
+
loss=loss,
|
| 1339 |
+
logits=pooled_logits,
|
| 1340 |
+
past_key_values=transformer_outputs.past_key_values,
|
| 1341 |
+
hidden_states=transformer_outputs.hidden_states,
|
| 1342 |
+
attentions=transformer_outputs.attentions,
|
| 1343 |
+
)
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>",
|
| 16 |
+
{
|
| 17 |
+
"content": "<chain_of_thought>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"content": "</chain_of_thought>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"content": "<cite docs=",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"content": "</cite>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"eos_token": {
|
| 46 |
+
"content": "<|im_end|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false
|
| 51 |
+
},
|
| 52 |
+
"pad_token": {
|
| 53 |
+
"content": "<|endoftext|>",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false
|
| 58 |
+
}
|
| 59 |
+
}
|
tokenization_omeganeo.py
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Tokenization classes for OmegaNeo."""
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
import unicodedata
|
| 6 |
+
from functools import lru_cache
|
| 7 |
+
from typing import Optional, Tuple
|
| 8 |
+
|
| 9 |
+
import regex as re
|
| 10 |
+
|
| 11 |
+
from transformers.tokenization_utils import AddedToken, PreTrainedTokenizer
|
| 12 |
+
from transformers.utils import logging
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
logger = logging.get_logger(__name__)
|
| 16 |
+
|
| 17 |
+
VOCAB_FILES_NAMES = {
|
| 18 |
+
"vocab_file": "vocab.json",
|
| 19 |
+
"merges_file": "merges.txt",
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
MAX_MODEL_INPUT_SIZES = {"model/omeganeo-tokenizer": 32768}
|
| 24 |
+
|
| 25 |
+
PRETOKENIZE_REGEX = r"""(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\p{L}\p{N}]?\p{L}+|\p{N}| ?[^\s\p{L}\p{N}]+[\r\n]*|\s*[\r\n]+|\s+(?!\S)|\s+"""
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
@lru_cache()
|
| 29 |
+
def bytes_to_unicode():
|
| 30 |
+
"""
|
| 31 |
+
Returns list of utf-8 byte and a mapping to unicode strings. We specifically avoids mapping to whitespace/control
|
| 32 |
+
characters the bpe code barfs on.
|
| 33 |
+
The reversible bpe codes work on unicode strings. This means you need a large # of unicode characters in your vocab
|
| 34 |
+
if you want to avoid UNKs. When you're at something like a 10B token dataset you end up needing around 5K for
|
| 35 |
+
decent coverage. This is a significant percentage of your normal, say, 32K bpe vocab. To avoid that, we want lookup
|
| 36 |
+
tables between utf-8 bytes and unicode strings.
|
| 37 |
+
"""
|
| 38 |
+
bs = (
|
| 39 |
+
list(range(ord("!"), ord("~") + 1)) + list(range(ord("¡"), ord("¬") + 1)) + list(range(ord("®"), ord("ÿ") + 1))
|
| 40 |
+
)
|
| 41 |
+
cs = bs[:]
|
| 42 |
+
n = 0
|
| 43 |
+
for b in range(2**8):
|
| 44 |
+
if b not in bs:
|
| 45 |
+
bs.append(b)
|
| 46 |
+
cs.append(2**8 + n)
|
| 47 |
+
n += 1
|
| 48 |
+
cs = [chr(n) for n in cs]
|
| 49 |
+
return dict(zip(bs, cs))
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def get_pairs(word):
|
| 53 |
+
"""
|
| 54 |
+
Return set of symbol pairs in a word.
|
| 55 |
+
Word is represented as tuple of symbols (symbols being variable-length strings).
|
| 56 |
+
"""
|
| 57 |
+
pairs = set()
|
| 58 |
+
prev_char = word[0]
|
| 59 |
+
for char in word[1:]:
|
| 60 |
+
pairs.add((prev_char, char))
|
| 61 |
+
prev_char = char
|
| 62 |
+
return pairs
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
class OmegaNeoTokenizer(PreTrainedTokenizer):
|
| 66 |
+
"""
|
| 67 |
+
Construct a OmegaNeo tokenizer. Based on byte-level Byte-Pair-Encoding.
|
| 68 |
+
Same with GPT2Tokenizer, this tokenizer has been trained to treat spaces like parts of the tokens so a word will
|
| 69 |
+
be encoded differently whether it is at the beginning of the sentence (without space) or not:
|
| 70 |
+
```python
|
| 71 |
+
>>> from transformers import OmegaNeoTokenizer
|
| 72 |
+
>>> tokenizer = OmegaNeoTokenizer.from_pretrained("model/omeganeo-tokenizer")
|
| 73 |
+
>>> tokenizer("Hello world")["input_ids"]
|
| 74 |
+
[9707, 1879]
|
| 75 |
+
>>> tokenizer(" Hello world")["input_ids"]
|
| 76 |
+
[21927, 1879]
|
| 77 |
+
```
|
| 78 |
+
This is expected.
|
| 79 |
+
You should not use GPT2Tokenizer instead, because of the different pretokenization rules.
|
| 80 |
+
This tokenizer inherits from [`PreTrainedTokenizer`] which contains most of the main methods. Users should refer to
|
| 81 |
+
this superclass for more information regarding those methods.
|
| 82 |
+
Args:
|
| 83 |
+
vocab_file (`str`):
|
| 84 |
+
Path to the vocabulary file.
|
| 85 |
+
merges_file (`str`):
|
| 86 |
+
Path to the merges file.
|
| 87 |
+
errors (`str`, *optional*, defaults to `"replace"`):
|
| 88 |
+
Paradigm to follow when decoding bytes to UTF-8. See
|
| 89 |
+
[bytes.decode](https://docs.python.org/3/library/stdtypes.html#bytes.decode) for more information.
|
| 90 |
+
unk_token (`str`, *optional*, defaults to `"<|endoftext|>"`):
|
| 91 |
+
The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
|
| 92 |
+
token instead.
|
| 93 |
+
bos_token (`str`, *optional*):
|
| 94 |
+
The beginning of sequence token. Not applicable for this tokenizer.
|
| 95 |
+
eos_token (`str`, *optional*, defaults to `"<|endoftext|>"`):
|
| 96 |
+
The end of sequence token.
|
| 97 |
+
pad_token (`str`, *optional*, defaults to `"<|endoftext|>"`):
|
| 98 |
+
The token used for padding, for example when batching sequences of different lengths.
|
| 99 |
+
clean_up_tokenization_spaces (`bool`, *optional*, defaults to `False`):
|
| 100 |
+
Whether or not the model should cleanup the spaces that were added when splitting the input text during the
|
| 101 |
+
tokenization process. Not applicable to this tokenizer, since tokenization does not add spaces.
|
| 102 |
+
split_special_tokens (`bool`, *optional*, defaults to `False`):
|
| 103 |
+
Whether or not the special tokens should be split during the tokenization process. The default behavior is
|
| 104 |
+
to not split special tokens. This means that if `<|endoftext|>` is the `eos_token`, then `tokenizer.tokenize("<|endoftext|>") =
|
| 105 |
+
['<|endoftext|>`]. Otherwise, if `split_special_tokens=True`, then `tokenizer.tokenize("<|endoftext|>")` will be give `['<',
|
| 106 |
+
'|', 'endo', 'ft', 'ext', '|', '>']`. This argument is only supported for `slow` tokenizers for the moment.
|
| 107 |
+
"""
|
| 108 |
+
|
| 109 |
+
vocab_files_names = VOCAB_FILES_NAMES
|
| 110 |
+
model_input_names = ["input_ids", "attention_mask"]
|
| 111 |
+
|
| 112 |
+
def __init__(
|
| 113 |
+
self,
|
| 114 |
+
vocab_file,
|
| 115 |
+
merges_file,
|
| 116 |
+
errors="replace",
|
| 117 |
+
unk_token="<|endoftext|>",
|
| 118 |
+
bos_token=None,
|
| 119 |
+
eos_token="<|endoftext|>",
|
| 120 |
+
pad_token="<|endoftext|>",
|
| 121 |
+
clean_up_tokenization_spaces=False,
|
| 122 |
+
split_special_tokens=False,
|
| 123 |
+
**kwargs,
|
| 124 |
+
):
|
| 125 |
+
# OmegaNeo vocab does not contain control tokens; added tokens need to be special
|
| 126 |
+
bos_token = (
|
| 127 |
+
AddedToken(bos_token, lstrip=False, rstrip=False, special=True, normalized=False)
|
| 128 |
+
if isinstance(bos_token, str)
|
| 129 |
+
else bos_token
|
| 130 |
+
)
|
| 131 |
+
eos_token = (
|
| 132 |
+
AddedToken(eos_token, lstrip=False, rstrip=False, special=True, normalized=False)
|
| 133 |
+
if isinstance(eos_token, str)
|
| 134 |
+
else eos_token
|
| 135 |
+
)
|
| 136 |
+
unk_token = (
|
| 137 |
+
AddedToken(unk_token, lstrip=False, rstrip=False, special=True, normalized=False)
|
| 138 |
+
if isinstance(unk_token, str)
|
| 139 |
+
else unk_token
|
| 140 |
+
)
|
| 141 |
+
pad_token = (
|
| 142 |
+
AddedToken(pad_token, lstrip=False, rstrip=False, special=True, normalized=False)
|
| 143 |
+
if isinstance(pad_token, str)
|
| 144 |
+
else pad_token
|
| 145 |
+
)
|
| 146 |
+
|
| 147 |
+
with open(vocab_file, encoding="utf-8") as vocab_handle:
|
| 148 |
+
self.encoder = json.load(vocab_handle)
|
| 149 |
+
self.decoder = {v: k for k, v in self.encoder.items()}
|
| 150 |
+
self.errors = errors # how to handle errors in decoding
|
| 151 |
+
self.byte_encoder = bytes_to_unicode()
|
| 152 |
+
self.byte_decoder = {v: k for k, v in self.byte_encoder.items()}
|
| 153 |
+
bpe_merges = []
|
| 154 |
+
with open(merges_file, encoding="utf-8") as merges_handle:
|
| 155 |
+
for i, line in enumerate(merges_handle):
|
| 156 |
+
line = line.strip()
|
| 157 |
+
if (i == 0 and line.startswith("#version:")) or not line:
|
| 158 |
+
continue
|
| 159 |
+
bpe_merges.append(tuple(line.split()))
|
| 160 |
+
self.bpe_ranks = dict(zip(bpe_merges, range(len(bpe_merges))))
|
| 161 |
+
self.cache = {}
|
| 162 |
+
|
| 163 |
+
self.pat = re.compile(PRETOKENIZE_REGEX)
|
| 164 |
+
|
| 165 |
+
if kwargs.get("add_prefix_space", False):
|
| 166 |
+
logger.warning_once(
|
| 167 |
+
f"{self.__class__.__name} does not support `add_prefix_space`, setting it to True has no effect."
|
| 168 |
+
)
|
| 169 |
+
|
| 170 |
+
super().__init__(
|
| 171 |
+
errors=errors,
|
| 172 |
+
bos_token=bos_token,
|
| 173 |
+
eos_token=eos_token,
|
| 174 |
+
pad_token=pad_token,
|
| 175 |
+
unk_token=unk_token,
|
| 176 |
+
clean_up_tokenization_spaces=clean_up_tokenization_spaces,
|
| 177 |
+
split_special_tokens=split_special_tokens,
|
| 178 |
+
**kwargs,
|
| 179 |
+
)
|
| 180 |
+
|
| 181 |
+
@property
|
| 182 |
+
def vocab_size(self) -> int:
|
| 183 |
+
return len(self.encoder)
|
| 184 |
+
|
| 185 |
+
def get_vocab(self):
|
| 186 |
+
return dict(self.encoder, **self.added_tokens_encoder)
|
| 187 |
+
|
| 188 |
+
def bpe(self, token):
|
| 189 |
+
if token in self.cache:
|
| 190 |
+
return self.cache[token]
|
| 191 |
+
word = tuple(token)
|
| 192 |
+
pairs = get_pairs(word)
|
| 193 |
+
|
| 194 |
+
if not pairs:
|
| 195 |
+
return token
|
| 196 |
+
|
| 197 |
+
while True:
|
| 198 |
+
bigram = min(pairs, key=lambda pair: self.bpe_ranks.get(pair, float("inf")))
|
| 199 |
+
if bigram not in self.bpe_ranks:
|
| 200 |
+
break
|
| 201 |
+
first, second = bigram
|
| 202 |
+
new_word = []
|
| 203 |
+
i = 0
|
| 204 |
+
while i < len(word):
|
| 205 |
+
try:
|
| 206 |
+
j = word.index(first, i)
|
| 207 |
+
except ValueError:
|
| 208 |
+
new_word.extend(word[i:])
|
| 209 |
+
break
|
| 210 |
+
else:
|
| 211 |
+
new_word.extend(word[i:j])
|
| 212 |
+
i = j
|
| 213 |
+
|
| 214 |
+
if word[i] == first and i < len(word) - 1 and word[i + 1] == second:
|
| 215 |
+
new_word.append(first + second)
|
| 216 |
+
i += 2
|
| 217 |
+
else:
|
| 218 |
+
new_word.append(word[i])
|
| 219 |
+
i += 1
|
| 220 |
+
new_word = tuple(new_word)
|
| 221 |
+
word = new_word
|
| 222 |
+
if len(word) == 1:
|
| 223 |
+
break
|
| 224 |
+
else:
|
| 225 |
+
pairs = get_pairs(word)
|
| 226 |
+
word = " ".join(word)
|
| 227 |
+
self.cache[token] = word
|
| 228 |
+
return word
|
| 229 |
+
|
| 230 |
+
def _tokenize(self, text):
|
| 231 |
+
"""Tokenize a string."""
|
| 232 |
+
bpe_tokens = []
|
| 233 |
+
for token in re.findall(self.pat, text):
|
| 234 |
+
token = "".join(
|
| 235 |
+
self.byte_encoder[b] for b in token.encode("utf-8")
|
| 236 |
+
) # Maps all our bytes to unicode strings, avoiding control tokens of the BPE (spaces in our case)
|
| 237 |
+
bpe_tokens.extend(bpe_token for bpe_token in self.bpe(token).split(" "))
|
| 238 |
+
return bpe_tokens
|
| 239 |
+
|
| 240 |
+
def _convert_token_to_id(self, token):
|
| 241 |
+
"""Converts a token (str) in an id using the vocab."""
|
| 242 |
+
return self.encoder.get(token, self.encoder.get(self.unk_token))
|
| 243 |
+
|
| 244 |
+
def _convert_id_to_token(self, index):
|
| 245 |
+
"""Converts an index (integer) in a token (str) using the vocab."""
|
| 246 |
+
return self.decoder.get(index)
|
| 247 |
+
|
| 248 |
+
def convert_tokens_to_string(self, tokens):
|
| 249 |
+
"""Converts a sequence of tokens (string) in a single string."""
|
| 250 |
+
text = "".join(tokens)
|
| 251 |
+
text = bytearray([self.byte_decoder[c] for c in text]).decode("utf-8", errors=self.errors)
|
| 252 |
+
return text
|
| 253 |
+
|
| 254 |
+
def decode(
|
| 255 |
+
self,
|
| 256 |
+
token_ids,
|
| 257 |
+
skip_special_tokens: bool = False,
|
| 258 |
+
clean_up_tokenization_spaces: Optional[bool] = False,
|
| 259 |
+
spaces_between_special_tokens: bool = False,
|
| 260 |
+
**kwargs,
|
| 261 |
+
) -> str:
|
| 262 |
+
# `spaces_between_special_tokens` defaults to True for _decode in slow tokenizers
|
| 263 |
+
# and cannot be configured elsewhere, but it should default to False for OmegaNeoTokenizer
|
| 264 |
+
return super().decode(
|
| 265 |
+
token_ids,
|
| 266 |
+
skip_special_tokens=skip_special_tokens,
|
| 267 |
+
clean_up_tokenization_spaces=clean_up_tokenization_spaces,
|
| 268 |
+
spaces_between_special_tokens=spaces_between_special_tokens,
|
| 269 |
+
**kwargs,
|
| 270 |
+
)
|
| 271 |
+
|
| 272 |
+
def save_vocabulary(self, save_directory: str, filename_prefix: Optional[str] = None) -> Tuple[str]:
|
| 273 |
+
if not os.path.isdir(save_directory):
|
| 274 |
+
logger.error(f"Vocabulary path ({save_directory}) should be a directory")
|
| 275 |
+
return
|
| 276 |
+
vocab_file = os.path.join(
|
| 277 |
+
save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["vocab_file"]
|
| 278 |
+
)
|
| 279 |
+
merge_file = os.path.join(
|
| 280 |
+
save_directory, (filename_prefix + "-" if filename_prefix else "") + VOCAB_FILES_NAMES["merges_file"]
|
| 281 |
+
)
|
| 282 |
+
|
| 283 |
+
with open(vocab_file, "w", encoding="utf-8") as f:
|
| 284 |
+
f.write(json.dumps(self.encoder, indent=2, sort_keys=True, ensure_ascii=False) + "\n")
|
| 285 |
+
|
| 286 |
+
index = 0
|
| 287 |
+
with open(merge_file, "w", encoding="utf-8") as writer:
|
| 288 |
+
writer.write("#version: 0.2\n")
|
| 289 |
+
for bpe_tokens, token_index in sorted(self.bpe_ranks.items(), key=lambda kv: kv[1]):
|
| 290 |
+
if index != token_index:
|
| 291 |
+
logger.warning(
|
| 292 |
+
f"Saving vocabulary to {merge_file}: BPE merge indices are not consecutive."
|
| 293 |
+
" Please check that the tokenizer is not corrupted!"
|
| 294 |
+
)
|
| 295 |
+
index = token_index
|
| 296 |
+
writer.write(" ".join(bpe_tokens) + "\n")
|
| 297 |
+
index += 1
|
| 298 |
+
|
| 299 |
+
return vocab_file, merge_file
|
| 300 |
+
|
| 301 |
+
def prepare_for_tokenization(self, text, **kwargs):
|
| 302 |
+
text = unicodedata.normalize("NFC", text)
|
| 303 |
+
return (text, kwargs)
|
tokenization_omeganeo_fast.py
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Tokenization classes for OmegaNeo."""
|
| 2 |
+
|
| 3 |
+
from typing import Optional, Tuple
|
| 4 |
+
|
| 5 |
+
from transformers.tokenization_utils import AddedToken
|
| 6 |
+
from transformers.tokenization_utils_fast import PreTrainedTokenizerFast
|
| 7 |
+
from transformers.utils import logging
|
| 8 |
+
from .tokenization_omeganeo import OmegaNeoTokenizer
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
logger = logging.get_logger(__name__)
|
| 12 |
+
|
| 13 |
+
VOCAB_FILES_NAMES = {
|
| 14 |
+
"vocab_file": "vocab.json",
|
| 15 |
+
"merges_file": "merges.txt",
|
| 16 |
+
"tokenizer_file": "tokenizer.json",
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
MAX_MODEL_INPUT_SIZES = {"model/omeganeo-tokenizer": 32768}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class OmegaNeoTokenizerFast(PreTrainedTokenizerFast):
|
| 24 |
+
"""
|
| 25 |
+
Construct a "fast" OmegaNeo tokenizer (backed by HuggingFace's *tokenizers* library). Based on byte-level
|
| 26 |
+
Byte-Pair-Encoding.
|
| 27 |
+
Same with GPT2Tokenizer, this tokenizer has been trained to treat spaces like parts of the tokens so a word will
|
| 28 |
+
be encoded differently whether it is at the beginning of the sentence (without space) or not:
|
| 29 |
+
```python
|
| 30 |
+
>>> from transformers import OmegaNeoTokenizerFast
|
| 31 |
+
>>> tokenizer = OmegaNeoTokenizerFast.from_pretrained("model/omeganeo-tokenizer")
|
| 32 |
+
>>> tokenizer("Hello world")["input_ids"]
|
| 33 |
+
[9707, 1879]
|
| 34 |
+
>>> tokenizer(" Hello world")["input_ids"]
|
| 35 |
+
[21927, 1879]
|
| 36 |
+
```
|
| 37 |
+
This is expected.
|
| 38 |
+
This tokenizer inherits from [`PreTrainedTokenizerFast`] which contains most of the main methods. Users should
|
| 39 |
+
refer to this superclass for more information regarding those methods.
|
| 40 |
+
Args:
|
| 41 |
+
vocab_file (`str`, *optional*):
|
| 42 |
+
Path to the vocabulary file.
|
| 43 |
+
merges_file (`str`, *optional*):
|
| 44 |
+
Path to the merges file.
|
| 45 |
+
tokenizer_file (`str`, *optional*):
|
| 46 |
+
Path to [tokenizers](https://github.com/huggingface/tokenizers) file (generally has a .json extension) that
|
| 47 |
+
contains everything needed to load the tokenizer.
|
| 48 |
+
unk_token (`str`, *optional*, defaults to `"<|endoftext|>"`):
|
| 49 |
+
The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
|
| 50 |
+
token instead. Not applicable to this tokenizer.
|
| 51 |
+
bos_token (`str`, *optional*):
|
| 52 |
+
The beginning of sequence token. Not applicable for this tokenizer.
|
| 53 |
+
eos_token (`str`, *optional*, defaults to `"<|endoftext|>"`):
|
| 54 |
+
The end of sequence token.
|
| 55 |
+
pad_token (`str`, *optional*, defaults to `"<|endoftext|>"`):
|
| 56 |
+
The token used for padding, for example when batching sequences of different lengths.
|
| 57 |
+
"""
|
| 58 |
+
|
| 59 |
+
vocab_files_names = VOCAB_FILES_NAMES
|
| 60 |
+
model_input_names = ["input_ids", "attention_mask"]
|
| 61 |
+
slow_tokenizer_class = OmegaNeoTokenizer
|
| 62 |
+
|
| 63 |
+
def __init__(
|
| 64 |
+
self,
|
| 65 |
+
vocab_file=None,
|
| 66 |
+
merges_file=None,
|
| 67 |
+
tokenizer_file=None,
|
| 68 |
+
unk_token="<|endoftext|>",
|
| 69 |
+
bos_token=None,
|
| 70 |
+
eos_token="<|endoftext|>",
|
| 71 |
+
pad_token="<|endoftext|>",
|
| 72 |
+
**kwargs,
|
| 73 |
+
):
|
| 74 |
+
# We need to at least pass vocab_file and merges_file to base class
|
| 75 |
+
# in case a slow tokenizer needs to be initialized; other can be
|
| 76 |
+
# configured through files.
|
| 77 |
+
# following GPT2TokenizerFast, also adding unk_token, bos_token, and eos_token
|
| 78 |
+
|
| 79 |
+
bos_token = (
|
| 80 |
+
AddedToken(bos_token, lstrip=False, rstrip=False, special=True, normalized=False)
|
| 81 |
+
if isinstance(bos_token, str)
|
| 82 |
+
else bos_token
|
| 83 |
+
)
|
| 84 |
+
eos_token = (
|
| 85 |
+
AddedToken(eos_token, lstrip=False, rstrip=False, special=True, normalized=False)
|
| 86 |
+
if isinstance(eos_token, str)
|
| 87 |
+
else eos_token
|
| 88 |
+
)
|
| 89 |
+
unk_token = (
|
| 90 |
+
AddedToken(unk_token, lstrip=False, rstrip=False, special=True, normalized=False)
|
| 91 |
+
if isinstance(unk_token, str)
|
| 92 |
+
else unk_token
|
| 93 |
+
)
|
| 94 |
+
pad_token = (
|
| 95 |
+
AddedToken(pad_token, lstrip=False, rstrip=False, special=True, normalized=False)
|
| 96 |
+
if isinstance(pad_token, str)
|
| 97 |
+
else pad_token
|
| 98 |
+
)
|
| 99 |
+
|
| 100 |
+
super().__init__(
|
| 101 |
+
vocab_file,
|
| 102 |
+
merges_file,
|
| 103 |
+
tokenizer_file=tokenizer_file,
|
| 104 |
+
unk_token=unk_token,
|
| 105 |
+
bos_token=bos_token,
|
| 106 |
+
eos_token=eos_token,
|
| 107 |
+
pad_token=pad_token,
|
| 108 |
+
**kwargs,
|
| 109 |
+
)
|
| 110 |
+
|
| 111 |
+
# Copied from transformers.models.gpt2.tokenization_gpt2_fast.GPT2TokenizerFast.save_vocabulary
|
| 112 |
+
def save_vocabulary(self, save_directory: str, filename_prefix: Optional[str] = None) -> Tuple[str]:
|
| 113 |
+
files = self._tokenizer.model.save(save_directory, name=filename_prefix)
|
| 114 |
+
return tuple(files)
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<chain_of_thought>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": true
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</chain_of_thought>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": true
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<cite docs=",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": true
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</cite>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": true
|
| 212 |
+
}
|
| 213 |
+
},
|
| 214 |
+
"additional_special_tokens": [
|
| 215 |
+
"<|im_start|>",
|
| 216 |
+
"<|im_end|>",
|
| 217 |
+
"<|object_ref_start|>",
|
| 218 |
+
"<|object_ref_end|>",
|
| 219 |
+
"<|box_start|>",
|
| 220 |
+
"<|box_end|>",
|
| 221 |
+
"<|quad_start|>",
|
| 222 |
+
"<|quad_end|>",
|
| 223 |
+
"<|vision_start|>",
|
| 224 |
+
"<|vision_end|>",
|
| 225 |
+
"<|vision_pad|>",
|
| 226 |
+
"<|image_pad|>",
|
| 227 |
+
"<|video_pad|>",
|
| 228 |
+
"<chain_of_thought>",
|
| 229 |
+
"</chain_of_thought>",
|
| 230 |
+
"<cite docs=",
|
| 231 |
+
"</cite>"
|
| 232 |
+
],
|
| 233 |
+
"bos_token": null,
|
| 234 |
+
"auto_map": {
|
| 235 |
+
"AutoTokenizer": [
|
| 236 |
+
"tokenization_omeganeo.OmegaNeoTokenizer",
|
| 237 |
+
null
|
| 238 |
+
]
|
| 239 |
+
},
|
| 240 |
+
"chat_template": "{% set pre_system_message = 'You are Omega, an AI Assistant exclusively developed, trained and powered by the scientists and engineers at QX LAB AI. QX LAB AI, based in Dubai, UAE, specializes in developing and integrating AI technologies to enhance business operations across various industries. You are built on the unique Omega architecture and trained with extensive datasets and configurations. You were developed solely by the scientists and engineers at QX LAB AI, without any external assistance from other organizations or teams.' %}{% if messages[0]['role'] == 'system' %}<|im_start|>system\n{{ pre_system_message }}\n\n{{ messages[0]['content'] }}<|im_end|>\n{% for message in messages[1:] %}{% if message['role'] == 'user' %}<|im_start|>user\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'assistant' %}<|im_start|>assistant\n{{ message['content'] }}<|im_end|>\n{% endif %}{% endfor %}{% else %}<|im_start|>system\n{{ pre_system_message }}<|im_end|>\n{% for message in messages %}{% if message['role'] == 'user' %}<|im_start|>user\n{{ message['content'] }}<|im_end|>\n{% elif message['role'] == 'assistant' %}<|im_start|>assistant\n{{ message['content'] }}<|im_end|>\n{% endif %}{% endfor %}{% endif %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
|
| 241 |
+
"clean_up_tokenization_spaces": false,
|
| 242 |
+
"eos_token": "<|im_end|>",
|
| 243 |
+
"errors": "replace",
|
| 244 |
+
"model_max_length": 32768,
|
| 245 |
+
"pad_token": "<|endoftext|>",
|
| 246 |
+
"padding_side": "right",
|
| 247 |
+
"split_special_tokens": false,
|
| 248 |
+
"tokenizer_class": "OmegaNeoTokenizer",
|
| 249 |
+
"unk_token": null
|
| 250 |
+
}
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.995181020635117,
|
| 3 |
+
"total_flos": 504886288187392.0,
|
| 4 |
+
"train_loss": 0.33701497725527674,
|
| 5 |
+
"train_runtime": 18615.961,
|
| 6 |
+
"train_samples_per_second": 20.865,
|
| 7 |
+
"train_steps_per_second": 0.081
|
| 8 |
+
}
|
trainer_log.jsonl
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"current_steps": 10, "total_steps": 1515, "loss": 1.4192, "learning_rate": 4.347826086956522e-06, "epoch": 0.019770171753367108, "percentage": 0.66, "elapsed_time": "0:02:04", "remaining_time": "5:12:51"}
|
| 2 |
+
{"current_steps": 20, "total_steps": 1515, "loss": 0.9179, "learning_rate": 8.695652173913044e-06, "epoch": 0.039540343506734216, "percentage": 1.32, "elapsed_time": "0:03:59", "remaining_time": "4:58:39"}
|
| 3 |
+
{"current_steps": 30, "total_steps": 1515, "loss": 0.6842, "learning_rate": 1.3043478260869566e-05, "epoch": 0.059310515260101324, "percentage": 1.98, "elapsed_time": "0:05:58", "remaining_time": "4:56:09"}
|
| 4 |
+
{"current_steps": 40, "total_steps": 1515, "loss": 0.5843, "learning_rate": 1.739130434782609e-05, "epoch": 0.07908068701346843, "percentage": 2.64, "elapsed_time": "0:07:54", "remaining_time": "4:51:24"}
|
| 5 |
+
{"current_steps": 50, "total_steps": 1515, "loss": 0.5283, "learning_rate": 1.999963411593758e-05, "epoch": 0.09885085876683554, "percentage": 3.3, "elapsed_time": "0:09:53", "remaining_time": "4:49:58"}
|
| 6 |
+
{"current_steps": 60, "total_steps": 1515, "loss": 0.513, "learning_rate": 1.9995518227714435e-05, "epoch": 0.11862103052020265, "percentage": 3.96, "elapsed_time": "0:11:46", "remaining_time": "4:45:41"}
|
| 7 |
+
{"current_steps": 70, "total_steps": 1515, "loss": 0.498, "learning_rate": 1.9986830984827473e-05, "epoch": 0.13839120227356974, "percentage": 4.62, "elapsed_time": "0:13:40", "remaining_time": "4:42:21"}
|
| 8 |
+
{"current_steps": 80, "total_steps": 1515, "loss": 0.4801, "learning_rate": 1.9973576360304135e-05, "epoch": 0.15816137402693686, "percentage": 5.28, "elapsed_time": "0:15:35", "remaining_time": "4:39:32"}
|
| 9 |
+
{"current_steps": 90, "total_steps": 1515, "loss": 0.4764, "learning_rate": 1.9955760416020185e-05, "epoch": 0.17793154578030396, "percentage": 5.94, "elapsed_time": "0:17:32", "remaining_time": "4:37:44"}
|
| 10 |
+
{"current_steps": 100, "total_steps": 1515, "loss": 0.4707, "learning_rate": 1.9933391299927346e-05, "epoch": 0.19770171753367108, "percentage": 6.6, "elapsed_time": "0:19:37", "remaining_time": "4:37:38"}
|
| 11 |
+
{"current_steps": 110, "total_steps": 1515, "loss": 0.4438, "learning_rate": 1.9906479242326927e-05, "epoch": 0.21747188928703817, "percentage": 7.26, "elapsed_time": "0:21:32", "remaining_time": "4:35:10"}
|
| 12 |
+
{"current_steps": 120, "total_steps": 1515, "loss": 0.4507, "learning_rate": 1.987503655119108e-05, "epoch": 0.2372420610404053, "percentage": 7.92, "elapsed_time": "0:23:26", "remaining_time": "4:32:30"}
|
| 13 |
+
{"current_steps": 130, "total_steps": 1515, "loss": 0.4489, "learning_rate": 1.9839077606533878e-05, "epoch": 0.2570122327937724, "percentage": 8.58, "elapsed_time": "0:25:29", "remaining_time": "4:31:33"}
|
| 14 |
+
{"current_steps": 140, "total_steps": 1515, "loss": 0.4507, "learning_rate": 1.9798618853834747e-05, "epoch": 0.2767824045471395, "percentage": 9.24, "elapsed_time": "0:27:28", "remaining_time": "4:29:48"}
|
| 15 |
+
{"current_steps": 150, "total_steps": 1515, "loss": 0.4542, "learning_rate": 1.975367879651728e-05, "epoch": 0.29655257630050663, "percentage": 9.9, "elapsed_time": "0:29:30", "remaining_time": "4:28:30"}
|
| 16 |
+
{"current_steps": 160, "total_steps": 1515, "loss": 0.439, "learning_rate": 1.970427798748689e-05, "epoch": 0.3163227480538737, "percentage": 10.56, "elapsed_time": "0:31:23", "remaining_time": "4:25:53"}
|
| 17 |
+
{"current_steps": 170, "total_steps": 1515, "loss": 0.4281, "learning_rate": 1.965043901973111e-05, "epoch": 0.3360929198072408, "percentage": 11.22, "elapsed_time": "0:33:16", "remaining_time": "4:23:17"}
|
| 18 |
+
{"current_steps": 180, "total_steps": 1515, "loss": 0.4255, "learning_rate": 1.9592186515986932e-05, "epoch": 0.3558630915606079, "percentage": 11.88, "elapsed_time": "0:35:09", "remaining_time": "4:20:47"}
|
| 19 |
+
{"current_steps": 190, "total_steps": 1515, "loss": 0.4275, "learning_rate": 1.9529547117479802e-05, "epoch": 0.37563326331397506, "percentage": 12.54, "elapsed_time": "0:37:05", "remaining_time": "4:18:42"}
|
| 20 |
+
{"current_steps": 200, "total_steps": 1515, "loss": 0.4391, "learning_rate": 1.9462549471739546e-05, "epoch": 0.39540343506734216, "percentage": 13.2, "elapsed_time": "0:39:11", "remaining_time": "4:17:39"}
|
| 21 |
+
{"current_steps": 210, "total_steps": 1515, "loss": 0.4316, "learning_rate": 1.939122421949868e-05, "epoch": 0.41517360682070925, "percentage": 13.86, "elapsed_time": "0:41:30", "remaining_time": "4:17:58"}
|
| 22 |
+
{"current_steps": 220, "total_steps": 1515, "loss": 0.4309, "learning_rate": 1.931560398067915e-05, "epoch": 0.43494377857407635, "percentage": 14.52, "elapsed_time": "0:43:33", "remaining_time": "4:16:24"}
|
| 23 |
+
{"current_steps": 230, "total_steps": 1515, "loss": 0.4228, "learning_rate": 1.923572333947395e-05, "epoch": 0.4547139503274435, "percentage": 15.18, "elapsed_time": "0:45:34", "remaining_time": "4:14:37"}
|
| 24 |
+
{"current_steps": 240, "total_steps": 1515, "loss": 0.4132, "learning_rate": 1.9151618828530347e-05, "epoch": 0.4744841220808106, "percentage": 15.84, "elapsed_time": "0:47:29", "remaining_time": "4:12:15"}
|
| 25 |
+
{"current_steps": 250, "total_steps": 1515, "loss": 0.4201, "learning_rate": 1.9063328912242047e-05, "epoch": 0.4942542938341777, "percentage": 16.5, "elapsed_time": "0:49:22", "remaining_time": "4:09:51"}
|
| 26 |
+
{"current_steps": 260, "total_steps": 1515, "loss": 0.4175, "learning_rate": 1.8970893969157852e-05, "epoch": 0.5140244655875448, "percentage": 17.16, "elapsed_time": "0:51:17", "remaining_time": "4:07:35"}
|
| 27 |
+
{"current_steps": 270, "total_steps": 1515, "loss": 0.4063, "learning_rate": 1.8874356273514934e-05, "epoch": 0.5337946373409119, "percentage": 17.82, "elapsed_time": "0:53:16", "remaining_time": "4:05:41"}
|
| 28 |
+
{"current_steps": 280, "total_steps": 1515, "loss": 0.4218, "learning_rate": 1.8773759975905098e-05, "epoch": 0.553564809094279, "percentage": 18.48, "elapsed_time": "0:55:20", "remaining_time": "4:04:07"}
|
| 29 |
+
{"current_steps": 290, "total_steps": 1515, "loss": 0.4134, "learning_rate": 1.8669151083082955e-05, "epoch": 0.5733349808476461, "percentage": 19.14, "elapsed_time": "0:57:20", "remaining_time": "4:02:13"}
|
| 30 |
+
{"current_steps": 300, "total_steps": 1515, "loss": 0.3988, "learning_rate": 1.8560577436925144e-05, "epoch": 0.5931051526010133, "percentage": 19.8, "elapsed_time": "0:59:28", "remaining_time": "4:00:50"}
|
| 31 |
+
{"current_steps": 310, "total_steps": 1515, "loss": 0.4175, "learning_rate": 1.8448088692550337e-05, "epoch": 0.6128753243543803, "percentage": 20.46, "elapsed_time": "1:01:28", "remaining_time": "3:58:58"}
|
| 32 |
+
{"current_steps": 320, "total_steps": 1515, "loss": 0.409, "learning_rate": 1.833173629560993e-05, "epoch": 0.6326454961077475, "percentage": 21.12, "elapsed_time": "1:03:27", "remaining_time": "3:56:58"}
|
| 33 |
+
{"current_steps": 330, "total_steps": 1515, "loss": 0.3997, "learning_rate": 1.8211573458759854e-05, "epoch": 0.6524156678611145, "percentage": 21.78, "elapsed_time": "1:05:25", "remaining_time": "3:54:55"}
|
| 34 |
+
{"current_steps": 340, "total_steps": 1515, "loss": 0.4015, "learning_rate": 1.80876551373243e-05, "epoch": 0.6721858396144816, "percentage": 22.44, "elapsed_time": "1:07:16", "remaining_time": "3:52:30"}
|
| 35 |
+
{"current_steps": 350, "total_steps": 1515, "loss": 0.4048, "learning_rate": 1.7960038004162426e-05, "epoch": 0.6919560113678488, "percentage": 23.1, "elapsed_time": "1:09:16", "remaining_time": "3:50:34"}
|
| 36 |
+
{"current_steps": 360, "total_steps": 1515, "loss": 0.4075, "learning_rate": 1.7828780423749536e-05, "epoch": 0.7117261831212158, "percentage": 23.76, "elapsed_time": "1:11:17", "remaining_time": "3:48:43"}
|
| 37 |
+
{"current_steps": 370, "total_steps": 1515, "loss": 0.4102, "learning_rate": 1.769394242548469e-05, "epoch": 0.731496354874583, "percentage": 24.42, "elapsed_time": "1:13:20", "remaining_time": "3:46:57"}
|
| 38 |
+
{"current_steps": 380, "total_steps": 1515, "loss": 0.396, "learning_rate": 1.755558567623678e-05, "epoch": 0.7512665266279501, "percentage": 25.08, "elapsed_time": "1:15:30", "remaining_time": "3:45:33"}
|
| 39 |
+
{"current_steps": 390, "total_steps": 1515, "loss": 0.4063, "learning_rate": 1.741377345214184e-05, "epoch": 0.7710366983813172, "percentage": 25.74, "elapsed_time": "1:17:33", "remaining_time": "3:43:42"}
|
| 40 |
+
{"current_steps": 400, "total_steps": 1515, "loss": 0.4066, "learning_rate": 1.7268570609664253e-05, "epoch": 0.7908068701346843, "percentage": 26.4, "elapsed_time": "1:19:43", "remaining_time": "3:42:13"}
|
| 41 |
+
{"current_steps": 410, "total_steps": 1515, "loss": 0.3848, "learning_rate": 1.71200435559353e-05, "epoch": 0.8105770418880514, "percentage": 27.06, "elapsed_time": "1:21:47", "remaining_time": "3:40:26"}
|
| 42 |
+
{"current_steps": 420, "total_steps": 1515, "loss": 0.3882, "learning_rate": 1.6968260218382484e-05, "epoch": 0.8303472136414185, "percentage": 27.72, "elapsed_time": "1:23:45", "remaining_time": "3:38:22"}
|
| 43 |
+
{"current_steps": 430, "total_steps": 1515, "loss": 0.3957, "learning_rate": 1.6813290013663573e-05, "epoch": 0.8501173853947857, "percentage": 28.38, "elapsed_time": "1:25:47", "remaining_time": "3:36:27"}
|
| 44 |
+
{"current_steps": 440, "total_steps": 1515, "loss": 0.3958, "learning_rate": 1.665520381591955e-05, "epoch": 0.8698875571481527, "percentage": 29.04, "elapsed_time": "1:27:59", "remaining_time": "3:34:57"}
|
| 45 |
+
{"current_steps": 450, "total_steps": 1515, "loss": 0.3846, "learning_rate": 1.6494073924361012e-05, "epoch": 0.8896577289015198, "percentage": 29.7, "elapsed_time": "1:29:50", "remaining_time": "3:32:37"}
|
| 46 |
+
{"current_steps": 460, "total_steps": 1515, "loss": 0.3925, "learning_rate": 1.6329974030202803e-05, "epoch": 0.909427900654887, "percentage": 30.36, "elapsed_time": "1:31:46", "remaining_time": "3:30:28"}
|
| 47 |
+
{"current_steps": 470, "total_steps": 1515, "loss": 0.3806, "learning_rate": 1.6162979182962068e-05, "epoch": 0.929198072408254, "percentage": 31.02, "elapsed_time": "1:33:50", "remaining_time": "3:28:39"}
|
| 48 |
+
{"current_steps": 480, "total_steps": 1515, "loss": 0.4075, "learning_rate": 1.5993165756135035e-05, "epoch": 0.9489682441616212, "percentage": 31.68, "elapsed_time": "1:36:09", "remaining_time": "3:27:20"}
|
| 49 |
+
{"current_steps": 490, "total_steps": 1515, "loss": 0.3771, "learning_rate": 1.5820611412268366e-05, "epoch": 0.9687384159149882, "percentage": 32.34, "elapsed_time": "1:38:20", "remaining_time": "3:25:42"}
|
| 50 |
+
{"current_steps": 500, "total_steps": 1515, "loss": 0.3869, "learning_rate": 1.564539506744091e-05, "epoch": 0.9885085876683554, "percentage": 33.0, "elapsed_time": "1:40:15", "remaining_time": "3:23:32"}
|
| 51 |
+
{"current_steps": 500, "total_steps": 1515, "eval_loss": 0.39637455344200134, "epoch": 0.9885085876683554, "percentage": 33.0, "elapsed_time": "1:41:37", "remaining_time": "3:26:17"}
|
| 52 |
+
{"current_steps": 510, "total_steps": 1515, "loss": 0.356, "learning_rate": 1.546759685517219e-05, "epoch": 1.0082787594217224, "percentage": 33.66, "elapsed_time": "1:44:11", "remaining_time": "3:25:20"}
|
| 53 |
+
{"current_steps": 520, "total_steps": 1515, "loss": 0.3228, "learning_rate": 1.528729808977412e-05, "epoch": 1.0280489311750896, "percentage": 34.32, "elapsed_time": "1:46:14", "remaining_time": "3:23:18"}
|
| 54 |
+
{"current_steps": 530, "total_steps": 1515, "loss": 0.3182, "learning_rate": 1.5104581229162674e-05, "epoch": 1.0478191029284567, "percentage": 34.98, "elapsed_time": "1:48:23", "remaining_time": "3:21:26"}
|
| 55 |
+
{"current_steps": 540, "total_steps": 1515, "loss": 0.3171, "learning_rate": 1.4919529837146529e-05, "epoch": 1.0675892746818239, "percentage": 35.64, "elapsed_time": "1:50:31", "remaining_time": "3:19:33"}
|
| 56 |
+
{"current_steps": 550, "total_steps": 1515, "loss": 0.3202, "learning_rate": 1.4732228545209993e-05, "epoch": 1.087359446435191, "percentage": 36.3, "elapsed_time": "1:52:31", "remaining_time": "3:17:25"}
|
| 57 |
+
{"current_steps": 560, "total_steps": 1515, "loss": 0.3121, "learning_rate": 1.4542763013807568e-05, "epoch": 1.107129618188558, "percentage": 36.96, "elapsed_time": "1:54:37", "remaining_time": "3:15:28"}
|
| 58 |
+
{"current_steps": 570, "total_steps": 1515, "loss": 0.3179, "learning_rate": 1.4351219893187984e-05, "epoch": 1.126899789941925, "percentage": 37.62, "elapsed_time": "1:56:39", "remaining_time": "3:13:23"}
|
| 59 |
+
{"current_steps": 580, "total_steps": 1515, "loss": 0.3112, "learning_rate": 1.4157686783765534e-05, "epoch": 1.1466699616952922, "percentage": 38.28, "elapsed_time": "1:58:36", "remaining_time": "3:11:11"}
|
| 60 |
+
{"current_steps": 590, "total_steps": 1515, "loss": 0.32, "learning_rate": 1.3962252196056847e-05, "epoch": 1.1664401334486594, "percentage": 38.94, "elapsed_time": "2:00:38", "remaining_time": "3:09:08"}
|
| 61 |
+
{"current_steps": 600, "total_steps": 1515, "loss": 0.3156, "learning_rate": 1.3765005510201466e-05, "epoch": 1.1862103052020265, "percentage": 39.6, "elapsed_time": "2:02:27", "remaining_time": "3:06:44"}
|
| 62 |
+
{"current_steps": 610, "total_steps": 1515, "loss": 0.3196, "learning_rate": 1.3566036935084692e-05, "epoch": 1.2059804769553935, "percentage": 40.26, "elapsed_time": "2:04:31", "remaining_time": "3:04:44"}
|
| 63 |
+
{"current_steps": 620, "total_steps": 1515, "loss": 0.3218, "learning_rate": 1.3365437467081406e-05, "epoch": 1.2257506487087606, "percentage": 40.92, "elapsed_time": "2:06:25", "remaining_time": "3:02:29"}
|
| 64 |
+
{"current_steps": 630, "total_steps": 1515, "loss": 0.315, "learning_rate": 1.3163298848439758e-05, "epoch": 1.2455208204621278, "percentage": 41.58, "elapsed_time": "2:08:28", "remaining_time": "3:00:29"}
|
| 65 |
+
{"current_steps": 640, "total_steps": 1515, "loss": 0.3221, "learning_rate": 1.2959713525323725e-05, "epoch": 1.265290992215495, "percentage": 42.24, "elapsed_time": "2:10:26", "remaining_time": "2:58:19"}
|
| 66 |
+
{"current_steps": 650, "total_steps": 1515, "loss": 0.3111, "learning_rate": 1.2754774605533728e-05, "epoch": 1.285061163968862, "percentage": 42.9, "elapsed_time": "2:12:21", "remaining_time": "2:56:07"}
|
| 67 |
+
{"current_steps": 660, "total_steps": 1515, "loss": 0.3151, "learning_rate": 1.2548575815924689e-05, "epoch": 1.3048313357222292, "percentage": 43.56, "elapsed_time": "2:14:22", "remaining_time": "2:54:04"}
|
| 68 |
+
{"current_steps": 670, "total_steps": 1515, "loss": 0.31, "learning_rate": 1.234121145954094e-05, "epoch": 1.3246015074755961, "percentage": 44.22, "elapsed_time": "2:16:16", "remaining_time": "2:51:52"}
|
| 69 |
+
{"current_steps": 680, "total_steps": 1515, "loss": 0.3139, "learning_rate": 1.2132776372487634e-05, "epoch": 1.3443716792289633, "percentage": 44.88, "elapsed_time": "2:18:13", "remaining_time": "2:49:44"}
|
| 70 |
+
{"current_steps": 690, "total_steps": 1515, "loss": 0.3147, "learning_rate": 1.1923365880558345e-05, "epoch": 1.3641418509823304, "percentage": 45.54, "elapsed_time": "2:20:15", "remaining_time": "2:47:41"}
|
| 71 |
+
{"current_steps": 700, "total_steps": 1515, "loss": 0.3153, "learning_rate": 1.1713075755638748e-05, "epoch": 1.3839120227356976, "percentage": 46.2, "elapsed_time": "2:22:20", "remaining_time": "2:45:43"}
|
| 72 |
+
{"current_steps": 710, "total_steps": 1515, "loss": 0.3137, "learning_rate": 1.1502002171906248e-05, "epoch": 1.4036821944890647, "percentage": 46.86, "elapsed_time": "2:24:16", "remaining_time": "2:43:34"}
|
| 73 |
+
{"current_steps": 720, "total_steps": 1515, "loss": 0.301, "learning_rate": 1.1290241661845649e-05, "epoch": 1.4234523662424317, "percentage": 47.52, "elapsed_time": "2:26:14", "remaining_time": "2:41:28"}
|
| 74 |
+
{"current_steps": 730, "total_steps": 1515, "loss": 0.3114, "learning_rate": 1.1077891072100944e-05, "epoch": 1.4432225379957988, "percentage": 48.18, "elapsed_time": "2:28:13", "remaining_time": "2:39:23"}
|
| 75 |
+
{"current_steps": 740, "total_steps": 1515, "loss": 0.3132, "learning_rate": 1.0865047519183411e-05, "epoch": 1.462992709749166, "percentage": 48.84, "elapsed_time": "2:30:12", "remaining_time": "2:37:18"}
|
| 76 |
+
{"current_steps": 750, "total_steps": 1515, "loss": 0.3032, "learning_rate": 1.065180834505634e-05, "epoch": 1.482762881502533, "percentage": 49.5, "elapsed_time": "2:32:05", "remaining_time": "2:35:08"}
|
| 77 |
+
{"current_steps": 760, "total_steps": 1515, "loss": 0.3113, "learning_rate": 1.0438271072616584e-05, "epoch": 1.5025330532559003, "percentage": 50.17, "elapsed_time": "2:34:24", "remaining_time": "2:33:23"}
|
| 78 |
+
{"current_steps": 770, "total_steps": 1515, "loss": 0.3219, "learning_rate": 1.022453336109341e-05, "epoch": 1.5223032250092672, "percentage": 50.83, "elapsed_time": "2:36:25", "remaining_time": "2:31:21"}
|
| 79 |
+
{"current_steps": 780, "total_steps": 1515, "loss": 0.3134, "learning_rate": 1.001069296138499e-05, "epoch": 1.5420733967626343, "percentage": 51.49, "elapsed_time": "2:38:17", "remaining_time": "2:29:10"}
|
| 80 |
+
{"current_steps": 790, "total_steps": 1515, "loss": 0.3126, "learning_rate": 9.796847671352948e-06, "epoch": 1.5618435685160015, "percentage": 52.15, "elapsed_time": "2:40:14", "remaining_time": "2:27:03"}
|
| 81 |
+
{"current_steps": 800, "total_steps": 1515, "loss": 0.3039, "learning_rate": 9.583095291095454e-06, "epoch": 1.5816137402693686, "percentage": 52.81, "elapsed_time": "2:42:10", "remaining_time": "2:24:56"}
|
| 82 |
+
{"current_steps": 810, "total_steps": 1515, "loss": 0.3043, "learning_rate": 9.36953357821928e-06, "epoch": 1.6013839120227358, "percentage": 53.47, "elapsed_time": "2:44:09", "remaining_time": "2:22:52"}
|
| 83 |
+
{"current_steps": 820, "total_steps": 1515, "loss": 0.296, "learning_rate": 9.156260203131299e-06, "epoch": 1.6211540837761027, "percentage": 54.13, "elapsed_time": "2:46:20", "remaining_time": "2:20:58"}
|
| 84 |
+
{"current_steps": 830, "total_steps": 1515, "loss": 0.2962, "learning_rate": 8.943372704369844e-06, "epoch": 1.64092425552947, "percentage": 54.79, "elapsed_time": "2:48:20", "remaining_time": "2:18:56"}
|
| 85 |
+
{"current_steps": 840, "total_steps": 1515, "loss": 0.3129, "learning_rate": 8.730968443996411e-06, "epoch": 1.660694427282837, "percentage": 55.45, "elapsed_time": "2:50:27", "remaining_time": "2:16:58"}
|
| 86 |
+
{"current_steps": 850, "total_steps": 1515, "loss": 0.3119, "learning_rate": 8.519144563068037e-06, "epoch": 1.6804645990362042, "percentage": 56.11, "elapsed_time": "2:52:27", "remaining_time": "2:14:55"}
|
| 87 |
+
{"current_steps": 860, "total_steps": 1515, "loss": 0.3056, "learning_rate": 8.30799793721077e-06, "epoch": 1.7002347707895713, "percentage": 56.77, "elapsed_time": "2:54:17", "remaining_time": "2:12:44"}
|
| 88 |
+
{"current_steps": 870, "total_steps": 1515, "loss": 0.311, "learning_rate": 8.097625132314529e-06, "epoch": 1.7200049425429382, "percentage": 57.43, "elapsed_time": "2:56:10", "remaining_time": "2:10:36"}
|
| 89 |
+
{"current_steps": 880, "total_steps": 1515, "loss": 0.3047, "learning_rate": 7.888122360369617e-06, "epoch": 1.7397751142963056, "percentage": 58.09, "elapsed_time": "2:58:07", "remaining_time": "2:08:31"}
|
| 90 |
+
{"current_steps": 890, "total_steps": 1515, "loss": 0.3011, "learning_rate": 7.67958543546509e-06, "epoch": 1.7595452860496725, "percentage": 58.75, "elapsed_time": "3:00:00", "remaining_time": "2:06:24"}
|
| 91 |
+
{"current_steps": 900, "total_steps": 1515, "loss": 0.2958, "learning_rate": 7.472109729969097e-06, "epoch": 1.7793154578030397, "percentage": 59.41, "elapsed_time": "3:02:00", "remaining_time": "2:04:22"}
|
| 92 |
+
{"current_steps": 910, "total_steps": 1515, "loss": 0.3035, "learning_rate": 7.2657901309112325e-06, "epoch": 1.7990856295564068, "percentage": 60.07, "elapsed_time": "3:03:53", "remaining_time": "2:02:15"}
|
| 93 |
+
{"current_steps": 920, "total_steps": 1515, "loss": 0.3134, "learning_rate": 7.060720996586878e-06, "epoch": 1.8188558013097738, "percentage": 60.73, "elapsed_time": "3:05:51", "remaining_time": "2:00:12"}
|
| 94 |
+
{"current_steps": 930, "total_steps": 1515, "loss": 0.3055, "learning_rate": 6.85699611340333e-06, "epoch": 1.8386259730631411, "percentage": 61.39, "elapsed_time": "3:07:57", "remaining_time": "1:58:14"}
|
| 95 |
+
{"current_steps": 940, "total_steps": 1515, "loss": 0.3043, "learning_rate": 6.654708652987475e-06, "epoch": 1.858396144816508, "percentage": 62.05, "elapsed_time": "3:09:46", "remaining_time": "1:56:05"}
|
| 96 |
+
{"current_steps": 950, "total_steps": 1515, "loss": 0.3048, "learning_rate": 6.453951129574644e-06, "epoch": 1.8781663165698752, "percentage": 62.71, "elapsed_time": "3:11:46", "remaining_time": "1:54:03"}
|
| 97 |
+
{"current_steps": 960, "total_steps": 1515, "loss": 0.3006, "learning_rate": 6.254815357698118e-06, "epoch": 1.8979364883232424, "percentage": 63.37, "elapsed_time": "3:13:50", "remaining_time": "1:52:03"}
|
| 98 |
+
{"current_steps": 970, "total_steps": 1515, "loss": 0.3025, "learning_rate": 6.05739241019862e-06, "epoch": 1.9177066600766093, "percentage": 64.03, "elapsed_time": "3:15:56", "remaining_time": "1:50:05"}
|
| 99 |
+
{"current_steps": 980, "total_steps": 1515, "loss": 0.2956, "learning_rate": 5.861772576573028e-06, "epoch": 1.9374768318299767, "percentage": 64.69, "elapsed_time": "3:18:00", "remaining_time": "1:48:06"}
|
| 100 |
+
{"current_steps": 990, "total_steps": 1515, "loss": 0.3091, "learning_rate": 5.668045321681328e-06, "epoch": 1.9572470035833436, "percentage": 65.35, "elapsed_time": "3:20:05", "remaining_time": "1:46:06"}
|
| 101 |
+
{"current_steps": 1000, "total_steps": 1515, "loss": 0.2999, "learning_rate": 5.476299244830734e-06, "epoch": 1.9770171753367107, "percentage": 66.01, "elapsed_time": "3:22:15", "remaining_time": "1:44:09"}
|
| 102 |
+
{"current_steps": 1000, "total_steps": 1515, "eval_loss": 0.3708229959011078, "epoch": 1.9770171753367107, "percentage": 66.01, "elapsed_time": "3:23:37", "remaining_time": "1:44:51"}
|
| 103 |
+
{"current_steps": 1010, "total_steps": 1515, "loss": 0.3066, "learning_rate": 5.28662203925562e-06, "epoch": 1.9967873470900779, "percentage": 66.67, "elapsed_time": "3:26:12", "remaining_time": "1:43:06"}
|
| 104 |
+
{"current_steps": 1020, "total_steps": 1515, "loss": 0.2574, "learning_rate": 5.099100452011876e-06, "epoch": 2.016557518843445, "percentage": 67.33, "elapsed_time": "3:28:10", "remaining_time": "1:41:01"}
|
| 105 |
+
{"current_steps": 1030, "total_steps": 1515, "loss": 0.2297, "learning_rate": 4.9138202443039625e-06, "epoch": 2.036327690596812, "percentage": 67.99, "elapsed_time": "3:30:18", "remaining_time": "1:39:01"}
|
| 106 |
+
{"current_steps": 1040, "total_steps": 1515, "loss": 0.2445, "learning_rate": 4.730866152262841e-06, "epoch": 2.056097862350179, "percentage": 68.65, "elapsed_time": "3:32:14", "remaining_time": "1:36:56"}
|
| 107 |
+
{"current_steps": 1050, "total_steps": 1515, "loss": 0.2505, "learning_rate": 4.550321848192731e-06, "epoch": 2.0758680341035465, "percentage": 69.31, "elapsed_time": "3:34:12", "remaining_time": "1:34:51"}
|
| 108 |
+
{"current_steps": 1060, "total_steps": 1515, "loss": 0.2494, "learning_rate": 4.3722699023043634e-06, "epoch": 2.0956382058569134, "percentage": 69.97, "elapsed_time": "3:36:10", "remaining_time": "1:32:47"}
|
| 109 |
+
{"current_steps": 1070, "total_steps": 1515, "loss": 0.239, "learning_rate": 4.196791744952291e-06, "epoch": 2.1154083776102803, "percentage": 70.63, "elapsed_time": "3:38:09", "remaining_time": "1:30:43"}
|
| 110 |
+
{"current_steps": 1080, "total_steps": 1515, "loss": 0.2463, "learning_rate": 4.023967629393498e-06, "epoch": 2.1351785493636477, "percentage": 71.29, "elapsed_time": "3:40:19", "remaining_time": "1:28:44"}
|
| 111 |
+
{"current_steps": 1090, "total_steps": 1515, "loss": 0.2455, "learning_rate": 3.853876595084332e-06, "epoch": 2.1549487211170146, "percentage": 71.95, "elapsed_time": "3:42:18", "remaining_time": "1:26:40"}
|
| 112 |
+
{"current_steps": 1100, "total_steps": 1515, "loss": 0.2406, "learning_rate": 3.68659643153258e-06, "epoch": 2.174718892870382, "percentage": 72.61, "elapsed_time": "3:44:21", "remaining_time": "1:24:38"}
|
| 113 |
+
{"current_steps": 1110, "total_steps": 1515, "loss": 0.2333, "learning_rate": 3.5222036427211704e-06, "epoch": 2.194489064623749, "percentage": 73.27, "elapsed_time": "3:46:30", "remaining_time": "1:22:38"}
|
| 114 |
+
{"current_steps": 1120, "total_steps": 1515, "loss": 0.2397, "learning_rate": 3.360773412119801e-06, "epoch": 2.214259236377116, "percentage": 73.93, "elapsed_time": "3:48:26", "remaining_time": "1:20:34"}
|
| 115 |
+
{"current_steps": 1130, "total_steps": 1515, "loss": 0.2394, "learning_rate": 3.202379568300511e-06, "epoch": 2.2340294081304832, "percentage": 74.59, "elapsed_time": "3:50:22", "remaining_time": "1:18:29"}
|
| 116 |
+
{"current_steps": 1140, "total_steps": 1515, "loss": 0.2319, "learning_rate": 3.0470945511728856e-06, "epoch": 2.25379957988385, "percentage": 75.25, "elapsed_time": "3:52:14", "remaining_time": "1:16:23"}
|
| 117 |
+
{"current_steps": 1150, "total_steps": 1515, "loss": 0.2461, "learning_rate": 2.8949893788543505e-06, "epoch": 2.2735697516372175, "percentage": 75.91, "elapsed_time": "3:54:16", "remaining_time": "1:14:21"}
|
| 118 |
+
{"current_steps": 1160, "total_steps": 1515, "loss": 0.2391, "learning_rate": 2.74613361519073e-06, "epoch": 2.2933399233905845, "percentage": 76.57, "elapsed_time": "3:56:14", "remaining_time": "1:12:17"}
|
| 119 |
+
{"current_steps": 1170, "total_steps": 1515, "loss": 0.2532, "learning_rate": 2.60059533794187e-06, "epoch": 2.3131100951439514, "percentage": 77.23, "elapsed_time": "3:58:16", "remaining_time": "1:10:15"}
|
| 120 |
+
{"current_steps": 1180, "total_steps": 1515, "loss": 0.2442, "learning_rate": 2.458441107646935e-06, "epoch": 2.3328802668973188, "percentage": 77.89, "elapsed_time": "4:00:18", "remaining_time": "1:08:13"}
|
| 121 |
+
{"current_steps": 1190, "total_steps": 1515, "loss": 0.2374, "learning_rate": 2.3197359371835802e-06, "epoch": 2.3526504386506857, "percentage": 78.55, "elapsed_time": "4:02:20", "remaining_time": "1:06:11"}
|
| 122 |
+
{"current_steps": 1200, "total_steps": 1515, "loss": 0.2383, "learning_rate": 2.1845432620349338e-06, "epoch": 2.372420610404053, "percentage": 79.21, "elapsed_time": "4:04:26", "remaining_time": "1:04:09"}
|
| 123 |
+
{"current_steps": 1210, "total_steps": 1515, "loss": 0.2388, "learning_rate": 2.0529249112779824e-06, "epoch": 2.39219078215742, "percentage": 79.87, "elapsed_time": "4:06:28", "remaining_time": "1:02:07"}
|
| 124 |
+
{"current_steps": 1220, "total_steps": 1515, "loss": 0.2437, "learning_rate": 1.924941079306647e-06, "epoch": 2.411960953910787, "percentage": 80.53, "elapsed_time": "4:08:32", "remaining_time": "1:00:05"}
|
| 125 |
+
{"current_steps": 1230, "total_steps": 1515, "loss": 0.2482, "learning_rate": 1.8006502983024332e-06, "epoch": 2.4317311256641543, "percentage": 81.19, "elapsed_time": "4:10:31", "remaining_time": "0:58:02"}
|
| 126 |
+
{"current_steps": 1240, "total_steps": 1515, "loss": 0.2313, "learning_rate": 1.6801094114653082e-06, "epoch": 2.451501297417521, "percentage": 81.85, "elapsed_time": "4:12:30", "remaining_time": "0:56:00"}
|
| 127 |
+
{"current_steps": 1250, "total_steps": 1515, "loss": 0.2403, "learning_rate": 1.5633735470170108e-06, "epoch": 2.4712714691708886, "percentage": 82.51, "elapsed_time": "4:14:44", "remaining_time": "0:54:00"}
|
| 128 |
+
{"current_steps": 1260, "total_steps": 1515, "loss": 0.2442, "learning_rate": 1.4504960929886746e-06, "epoch": 2.4910416409242555, "percentage": 83.17, "elapsed_time": "4:16:46", "remaining_time": "0:51:57"}
|
| 129 |
+
{"current_steps": 1270, "total_steps": 1515, "loss": 0.239, "learning_rate": 1.3415286728043374e-06, "epoch": 2.5108118126776224, "percentage": 83.83, "elapsed_time": "4:18:39", "remaining_time": "0:49:54"}
|
| 130 |
+
{"current_steps": 1280, "total_steps": 1515, "loss": 0.2385, "learning_rate": 1.2365211216714523e-06, "epoch": 2.53058198443099, "percentage": 84.49, "elapsed_time": "4:20:41", "remaining_time": "0:47:51"}
|
| 131 |
+
{"current_steps": 1290, "total_steps": 1515, "loss": 0.2482, "learning_rate": 1.135521463789232e-06, "epoch": 2.5503521561843567, "percentage": 85.15, "elapsed_time": "4:22:35", "remaining_time": "0:45:48"}
|
| 132 |
+
{"current_steps": 1300, "total_steps": 1515, "loss": 0.2381, "learning_rate": 1.0385758903852406e-06, "epoch": 2.570122327937724, "percentage": 85.81, "elapsed_time": "4:24:36", "remaining_time": "0:43:45"}
|
| 133 |
+
{"current_steps": 1310, "total_steps": 1515, "loss": 0.2405, "learning_rate": 9.457287385902836e-07, "epoch": 2.589892499691091, "percentage": 86.47, "elapsed_time": "4:26:34", "remaining_time": "0:41:43"}
|
| 134 |
+
{"current_steps": 1320, "total_steps": 1515, "loss": 0.2304, "learning_rate": 8.570224711612385e-07, "epoch": 2.6096626714444584, "percentage": 87.13, "elapsed_time": "4:28:30", "remaining_time": "0:39:39"}
|
| 135 |
+
{"current_steps": 1330, "total_steps": 1515, "loss": 0.2259, "learning_rate": 7.724976570611254e-07, "epoch": 2.6294328431978253, "percentage": 87.79, "elapsed_time": "4:30:25", "remaining_time": "0:37:36"}
|
| 136 |
+
{"current_steps": 1340, "total_steps": 1515, "loss": 0.2318, "learning_rate": 6.921929529052729e-07, "epoch": 2.6492030149511923, "percentage": 88.45, "elapsed_time": "4:32:27", "remaining_time": "0:35:34"}
|
| 137 |
+
{"current_steps": 1350, "total_steps": 1515, "loss": 0.2377, "learning_rate": 6.161450852820872e-07, "epoch": 2.6689731867045596, "percentage": 89.11, "elapsed_time": "4:34:24", "remaining_time": "0:33:32"}
|
| 138 |
+
{"current_steps": 1360, "total_steps": 1515, "loss": 0.2402, "learning_rate": 5.443888339565018e-07, "epoch": 2.6887433584579266, "percentage": 89.77, "elapsed_time": "4:36:35", "remaining_time": "0:31:31"}
|
| 139 |
+
{"current_steps": 1370, "total_steps": 1515, "loss": 0.2401, "learning_rate": 4.769570159637782e-07, "epoch": 2.7085135302112935, "percentage": 90.43, "elapsed_time": "4:38:28", "remaining_time": "0:29:28"}
|
| 140 |
+
{"current_steps": 1380, "total_steps": 1515, "loss": 0.2306, "learning_rate": 4.138804706009547e-07, "epoch": 2.728283701964661, "percentage": 91.09, "elapsed_time": "4:40:32", "remaining_time": "0:27:26"}
|
| 141 |
+
{"current_steps": 1390, "total_steps": 1515, "loss": 0.2407, "learning_rate": 3.5518804532278736e-07, "epoch": 2.748053873718028, "percentage": 91.75, "elapsed_time": "4:42:22", "remaining_time": "0:25:23"}
|
| 142 |
+
{"current_steps": 1400, "total_steps": 1515, "loss": 0.227, "learning_rate": 3.0090658254864013e-07, "epoch": 2.767824045471395, "percentage": 92.41, "elapsed_time": "4:44:24", "remaining_time": "0:23:21"}
|
| 143 |
+
{"current_steps": 1410, "total_steps": 1515, "loss": 0.2306, "learning_rate": 2.5106090738636014e-07, "epoch": 2.787594217224762, "percentage": 93.07, "elapsed_time": "4:46:27", "remaining_time": "0:21:19"}
|
| 144 |
+
{"current_steps": 1420, "total_steps": 1515, "loss": 0.242, "learning_rate": 2.0567381627875639e-07, "epoch": 2.8073643889781295, "percentage": 93.73, "elapsed_time": "4:48:30", "remaining_time": "0:19:18"}
|
| 145 |
+
{"current_steps": 1430, "total_steps": 1515, "loss": 0.2309, "learning_rate": 1.6476606657786386e-07, "epoch": 2.8271345607314964, "percentage": 94.39, "elapsed_time": "4:50:28", "remaining_time": "0:17:15"}
|
| 146 |
+
{"current_steps": 1440, "total_steps": 1515, "loss": 0.2287, "learning_rate": 1.2835636705176403e-07, "epoch": 2.8469047324848633, "percentage": 95.05, "elapsed_time": "4:52:21", "remaining_time": "0:15:13"}
|
| 147 |
+
{"current_steps": 1450, "total_steps": 1515, "loss": 0.2469, "learning_rate": 9.64613693283123e-08, "epoch": 2.8666749042382307, "percentage": 95.71, "elapsed_time": "4:54:24", "remaining_time": "0:13:11"}
|
| 148 |
+
{"current_steps": 1460, "total_steps": 1515, "loss": 0.2458, "learning_rate": 6.909566027966996e-08, "epoch": 2.8864450759915976, "percentage": 96.37, "elapsed_time": "4:56:19", "remaining_time": "0:11:09"}
|
| 149 |
+
{"current_steps": 1470, "total_steps": 1515, "loss": 0.2456, "learning_rate": 4.6271755351144923e-08, "epoch": 2.9062152477449645, "percentage": 97.03, "elapsed_time": "4:58:22", "remaining_time": "0:09:08"}
|
| 150 |
+
{"current_steps": 1480, "total_steps": 1515, "loss": 0.2413, "learning_rate": 2.8000092837368042e-08, "epoch": 2.925985419498332, "percentage": 97.69, "elapsed_time": "5:00:13", "remaining_time": "0:07:06"}
|
| 151 |
+
{"current_steps": 1490, "total_steps": 1515, "loss": 0.2388, "learning_rate": 1.4289029108436325e-08, "epoch": 2.945755591251699, "percentage": 98.35, "elapsed_time": "5:02:13", "remaining_time": "0:05:04"}
|
| 152 |
+
{"current_steps": 1500, "total_steps": 1515, "loss": 0.2454, "learning_rate": 5.14483478821437e-09, "epoch": 2.965525763005066, "percentage": 99.01, "elapsed_time": "5:04:19", "remaining_time": "0:03:02"}
|
| 153 |
+
{"current_steps": 1500, "total_steps": 1515, "eval_loss": 0.37777501344680786, "epoch": 2.965525763005066, "percentage": 99.01, "elapsed_time": "5:05:41", "remaining_time": "0:03:03"}
|
| 154 |
+
{"current_steps": 1510, "total_steps": 1515, "loss": 0.2349, "learning_rate": 5.716918865195098e-10, "epoch": 2.985295934758433, "percentage": 99.67, "elapsed_time": "5:08:31", "remaining_time": "0:01:01"}
|
| 155 |
+
{"current_steps": 1515, "total_steps": 1515, "epoch": 2.995181020635117, "percentage": 100.0, "elapsed_time": "5:10:14", "remaining_time": "0:00:00"}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,1123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 2.995181020635117,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 1515,
|
| 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.019770171753367108,
|
| 13 |
+
"grad_norm": 8.273716970639242,
|
| 14 |
+
"learning_rate": 4.347826086956522e-06,
|
| 15 |
+
"loss": 1.4192,
|
| 16 |
+
"step": 10
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.039540343506734216,
|
| 20 |
+
"grad_norm": 2.348437423787933,
|
| 21 |
+
"learning_rate": 8.695652173913044e-06,
|
| 22 |
+
"loss": 0.9179,
|
| 23 |
+
"step": 20
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"epoch": 0.059310515260101324,
|
| 27 |
+
"grad_norm": 2.0183151255256266,
|
| 28 |
+
"learning_rate": 1.3043478260869566e-05,
|
| 29 |
+
"loss": 0.6842,
|
| 30 |
+
"step": 30
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 0.07908068701346843,
|
| 34 |
+
"grad_norm": 1.7096945603933598,
|
| 35 |
+
"learning_rate": 1.739130434782609e-05,
|
| 36 |
+
"loss": 0.5843,
|
| 37 |
+
"step": 40
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"epoch": 0.09885085876683554,
|
| 41 |
+
"grad_norm": 1.2099539800951016,
|
| 42 |
+
"learning_rate": 1.999963411593758e-05,
|
| 43 |
+
"loss": 0.5283,
|
| 44 |
+
"step": 50
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 0.11862103052020265,
|
| 48 |
+
"grad_norm": 1.539237571955243,
|
| 49 |
+
"learning_rate": 1.9995518227714435e-05,
|
| 50 |
+
"loss": 0.513,
|
| 51 |
+
"step": 60
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"epoch": 0.13839120227356974,
|
| 55 |
+
"grad_norm": 0.9407018526102695,
|
| 56 |
+
"learning_rate": 1.9986830984827473e-05,
|
| 57 |
+
"loss": 0.498,
|
| 58 |
+
"step": 70
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"epoch": 0.15816137402693686,
|
| 62 |
+
"grad_norm": 0.8754091153209901,
|
| 63 |
+
"learning_rate": 1.9973576360304135e-05,
|
| 64 |
+
"loss": 0.4801,
|
| 65 |
+
"step": 80
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"epoch": 0.17793154578030396,
|
| 69 |
+
"grad_norm": 0.8624602134273651,
|
| 70 |
+
"learning_rate": 1.9955760416020185e-05,
|
| 71 |
+
"loss": 0.4764,
|
| 72 |
+
"step": 90
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"epoch": 0.19770171753367108,
|
| 76 |
+
"grad_norm": 0.8628999100665943,
|
| 77 |
+
"learning_rate": 1.9933391299927346e-05,
|
| 78 |
+
"loss": 0.4707,
|
| 79 |
+
"step": 100
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"epoch": 0.21747188928703817,
|
| 83 |
+
"grad_norm": 0.8080598017374558,
|
| 84 |
+
"learning_rate": 1.9906479242326927e-05,
|
| 85 |
+
"loss": 0.4438,
|
| 86 |
+
"step": 110
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"epoch": 0.2372420610404053,
|
| 90 |
+
"grad_norm": 0.7079645225164415,
|
| 91 |
+
"learning_rate": 1.987503655119108e-05,
|
| 92 |
+
"loss": 0.4507,
|
| 93 |
+
"step": 120
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"epoch": 0.2570122327937724,
|
| 97 |
+
"grad_norm": 0.8311840484882397,
|
| 98 |
+
"learning_rate": 1.9839077606533878e-05,
|
| 99 |
+
"loss": 0.4489,
|
| 100 |
+
"step": 130
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 0.2767824045471395,
|
| 104 |
+
"grad_norm": 0.8147624642320691,
|
| 105 |
+
"learning_rate": 1.9798618853834747e-05,
|
| 106 |
+
"loss": 0.4507,
|
| 107 |
+
"step": 140
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"epoch": 0.29655257630050663,
|
| 111 |
+
"grad_norm": 0.8371409045137015,
|
| 112 |
+
"learning_rate": 1.975367879651728e-05,
|
| 113 |
+
"loss": 0.4542,
|
| 114 |
+
"step": 150
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"epoch": 0.3163227480538737,
|
| 118 |
+
"grad_norm": 0.7237155579293956,
|
| 119 |
+
"learning_rate": 1.970427798748689e-05,
|
| 120 |
+
"loss": 0.439,
|
| 121 |
+
"step": 160
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"epoch": 0.3360929198072408,
|
| 125 |
+
"grad_norm": 0.6804376236541478,
|
| 126 |
+
"learning_rate": 1.965043901973111e-05,
|
| 127 |
+
"loss": 0.4281,
|
| 128 |
+
"step": 170
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"epoch": 0.3558630915606079,
|
| 132 |
+
"grad_norm": 0.7087718772894039,
|
| 133 |
+
"learning_rate": 1.9592186515986932e-05,
|
| 134 |
+
"loss": 0.4255,
|
| 135 |
+
"step": 180
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"epoch": 0.37563326331397506,
|
| 139 |
+
"grad_norm": 0.6404671722237,
|
| 140 |
+
"learning_rate": 1.9529547117479802e-05,
|
| 141 |
+
"loss": 0.4275,
|
| 142 |
+
"step": 190
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"epoch": 0.39540343506734216,
|
| 146 |
+
"grad_norm": 0.6613559685528836,
|
| 147 |
+
"learning_rate": 1.9462549471739546e-05,
|
| 148 |
+
"loss": 0.4391,
|
| 149 |
+
"step": 200
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"epoch": 0.41517360682070925,
|
| 153 |
+
"grad_norm": 0.7702640494158857,
|
| 154 |
+
"learning_rate": 1.939122421949868e-05,
|
| 155 |
+
"loss": 0.4316,
|
| 156 |
+
"step": 210
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"epoch": 0.43494377857407635,
|
| 160 |
+
"grad_norm": 0.6687391965346136,
|
| 161 |
+
"learning_rate": 1.931560398067915e-05,
|
| 162 |
+
"loss": 0.4309,
|
| 163 |
+
"step": 220
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"epoch": 0.4547139503274435,
|
| 167 |
+
"grad_norm": 0.6455592214289195,
|
| 168 |
+
"learning_rate": 1.923572333947395e-05,
|
| 169 |
+
"loss": 0.4228,
|
| 170 |
+
"step": 230
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"epoch": 0.4744841220808106,
|
| 174 |
+
"grad_norm": 0.6638256696831698,
|
| 175 |
+
"learning_rate": 1.9151618828530347e-05,
|
| 176 |
+
"loss": 0.4132,
|
| 177 |
+
"step": 240
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"epoch": 0.4942542938341777,
|
| 181 |
+
"grad_norm": 0.6035529106490282,
|
| 182 |
+
"learning_rate": 1.9063328912242047e-05,
|
| 183 |
+
"loss": 0.4201,
|
| 184 |
+
"step": 250
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"epoch": 0.5140244655875448,
|
| 188 |
+
"grad_norm": 0.6181775363815968,
|
| 189 |
+
"learning_rate": 1.8970893969157852e-05,
|
| 190 |
+
"loss": 0.4175,
|
| 191 |
+
"step": 260
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"epoch": 0.5337946373409119,
|
| 195 |
+
"grad_norm": 0.6133100135259807,
|
| 196 |
+
"learning_rate": 1.8874356273514934e-05,
|
| 197 |
+
"loss": 0.4063,
|
| 198 |
+
"step": 270
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"epoch": 0.553564809094279,
|
| 202 |
+
"grad_norm": 0.5966662360815947,
|
| 203 |
+
"learning_rate": 1.8773759975905098e-05,
|
| 204 |
+
"loss": 0.4218,
|
| 205 |
+
"step": 280
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"epoch": 0.5733349808476461,
|
| 209 |
+
"grad_norm": 0.6703060027446681,
|
| 210 |
+
"learning_rate": 1.8669151083082955e-05,
|
| 211 |
+
"loss": 0.4134,
|
| 212 |
+
"step": 290
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"epoch": 0.5931051526010133,
|
| 216 |
+
"grad_norm": 0.6252415388725653,
|
| 217 |
+
"learning_rate": 1.8560577436925144e-05,
|
| 218 |
+
"loss": 0.3988,
|
| 219 |
+
"step": 300
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"epoch": 0.6128753243543803,
|
| 223 |
+
"grad_norm": 0.6060817440235046,
|
| 224 |
+
"learning_rate": 1.8448088692550337e-05,
|
| 225 |
+
"loss": 0.4175,
|
| 226 |
+
"step": 310
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"epoch": 0.6326454961077475,
|
| 230 |
+
"grad_norm": 0.6593209743601871,
|
| 231 |
+
"learning_rate": 1.833173629560993e-05,
|
| 232 |
+
"loss": 0.409,
|
| 233 |
+
"step": 320
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"epoch": 0.6524156678611145,
|
| 237 |
+
"grad_norm": 0.5982036518358108,
|
| 238 |
+
"learning_rate": 1.8211573458759854e-05,
|
| 239 |
+
"loss": 0.3997,
|
| 240 |
+
"step": 330
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"epoch": 0.6721858396144816,
|
| 244 |
+
"grad_norm": 0.5833507470903769,
|
| 245 |
+
"learning_rate": 1.80876551373243e-05,
|
| 246 |
+
"loss": 0.4015,
|
| 247 |
+
"step": 340
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"epoch": 0.6919560113678488,
|
| 251 |
+
"grad_norm": 0.6279313755216596,
|
| 252 |
+
"learning_rate": 1.7960038004162426e-05,
|
| 253 |
+
"loss": 0.4048,
|
| 254 |
+
"step": 350
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"epoch": 0.7117261831212158,
|
| 258 |
+
"grad_norm": 0.6685300488229989,
|
| 259 |
+
"learning_rate": 1.7828780423749536e-05,
|
| 260 |
+
"loss": 0.4075,
|
| 261 |
+
"step": 360
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"epoch": 0.731496354874583,
|
| 265 |
+
"grad_norm": 0.574309905920571,
|
| 266 |
+
"learning_rate": 1.769394242548469e-05,
|
| 267 |
+
"loss": 0.4102,
|
| 268 |
+
"step": 370
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"epoch": 0.7512665266279501,
|
| 272 |
+
"grad_norm": 0.5657263244028015,
|
| 273 |
+
"learning_rate": 1.755558567623678e-05,
|
| 274 |
+
"loss": 0.396,
|
| 275 |
+
"step": 380
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"epoch": 0.7710366983813172,
|
| 279 |
+
"grad_norm": 0.5797623404841392,
|
| 280 |
+
"learning_rate": 1.741377345214184e-05,
|
| 281 |
+
"loss": 0.4063,
|
| 282 |
+
"step": 390
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"epoch": 0.7908068701346843,
|
| 286 |
+
"grad_norm": 0.5734761888945618,
|
| 287 |
+
"learning_rate": 1.7268570609664253e-05,
|
| 288 |
+
"loss": 0.4066,
|
| 289 |
+
"step": 400
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"epoch": 0.8105770418880514,
|
| 293 |
+
"grad_norm": 0.5725087962478311,
|
| 294 |
+
"learning_rate": 1.71200435559353e-05,
|
| 295 |
+
"loss": 0.3848,
|
| 296 |
+
"step": 410
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"epoch": 0.8303472136414185,
|
| 300 |
+
"grad_norm": 0.6574852860839745,
|
| 301 |
+
"learning_rate": 1.6968260218382484e-05,
|
| 302 |
+
"loss": 0.3882,
|
| 303 |
+
"step": 420
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"epoch": 0.8501173853947857,
|
| 307 |
+
"grad_norm": 0.6526897086539006,
|
| 308 |
+
"learning_rate": 1.6813290013663573e-05,
|
| 309 |
+
"loss": 0.3957,
|
| 310 |
+
"step": 430
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"epoch": 0.8698875571481527,
|
| 314 |
+
"grad_norm": 0.6101372561347892,
|
| 315 |
+
"learning_rate": 1.665520381591955e-05,
|
| 316 |
+
"loss": 0.3958,
|
| 317 |
+
"step": 440
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"epoch": 0.8896577289015198,
|
| 321 |
+
"grad_norm": 0.6102719326578399,
|
| 322 |
+
"learning_rate": 1.6494073924361012e-05,
|
| 323 |
+
"loss": 0.3846,
|
| 324 |
+
"step": 450
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"epoch": 0.909427900654887,
|
| 328 |
+
"grad_norm": 0.6284095546066177,
|
| 329 |
+
"learning_rate": 1.6329974030202803e-05,
|
| 330 |
+
"loss": 0.3925,
|
| 331 |
+
"step": 460
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"epoch": 0.929198072408254,
|
| 335 |
+
"grad_norm": 0.5573501907726315,
|
| 336 |
+
"learning_rate": 1.6162979182962068e-05,
|
| 337 |
+
"loss": 0.3806,
|
| 338 |
+
"step": 470
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"epoch": 0.9489682441616212,
|
| 342 |
+
"grad_norm": 0.6587508652316405,
|
| 343 |
+
"learning_rate": 1.5993165756135035e-05,
|
| 344 |
+
"loss": 0.4075,
|
| 345 |
+
"step": 480
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"epoch": 0.9687384159149882,
|
| 349 |
+
"grad_norm": 0.5309276250787578,
|
| 350 |
+
"learning_rate": 1.5820611412268366e-05,
|
| 351 |
+
"loss": 0.3771,
|
| 352 |
+
"step": 490
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"epoch": 0.9885085876683554,
|
| 356 |
+
"grad_norm": 0.5555801576940601,
|
| 357 |
+
"learning_rate": 1.564539506744091e-05,
|
| 358 |
+
"loss": 0.3869,
|
| 359 |
+
"step": 500
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"epoch": 0.9885085876683554,
|
| 363 |
+
"eval_loss": 0.39637455344200134,
|
| 364 |
+
"eval_runtime": 81.285,
|
| 365 |
+
"eval_samples_per_second": 83.841,
|
| 366 |
+
"eval_steps_per_second": 5.241,
|
| 367 |
+
"step": 500
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"epoch": 1.0082787594217224,
|
| 371 |
+
"grad_norm": 0.5067307545314473,
|
| 372 |
+
"learning_rate": 1.546759685517219e-05,
|
| 373 |
+
"loss": 0.356,
|
| 374 |
+
"step": 510
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"epoch": 1.0280489311750896,
|
| 378 |
+
"grad_norm": 0.5618999195126448,
|
| 379 |
+
"learning_rate": 1.528729808977412e-05,
|
| 380 |
+
"loss": 0.3228,
|
| 381 |
+
"step": 520
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"epoch": 1.0478191029284567,
|
| 385 |
+
"grad_norm": 0.5098273070317775,
|
| 386 |
+
"learning_rate": 1.5104581229162674e-05,
|
| 387 |
+
"loss": 0.3182,
|
| 388 |
+
"step": 530
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"epoch": 1.0675892746818239,
|
| 392 |
+
"grad_norm": 0.5533254988756643,
|
| 393 |
+
"learning_rate": 1.4919529837146529e-05,
|
| 394 |
+
"loss": 0.3171,
|
| 395 |
+
"step": 540
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"epoch": 1.087359446435191,
|
| 399 |
+
"grad_norm": 0.5964907411663062,
|
| 400 |
+
"learning_rate": 1.4732228545209993e-05,
|
| 401 |
+
"loss": 0.3202,
|
| 402 |
+
"step": 550
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"epoch": 1.107129618188558,
|
| 406 |
+
"grad_norm": 0.5065864215097721,
|
| 407 |
+
"learning_rate": 1.4542763013807568e-05,
|
| 408 |
+
"loss": 0.3121,
|
| 409 |
+
"step": 560
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"epoch": 1.126899789941925,
|
| 413 |
+
"grad_norm": 0.5343714773450696,
|
| 414 |
+
"learning_rate": 1.4351219893187984e-05,
|
| 415 |
+
"loss": 0.3179,
|
| 416 |
+
"step": 570
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"epoch": 1.1466699616952922,
|
| 420 |
+
"grad_norm": 0.5681605326118392,
|
| 421 |
+
"learning_rate": 1.4157686783765534e-05,
|
| 422 |
+
"loss": 0.3112,
|
| 423 |
+
"step": 580
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"epoch": 1.1664401334486594,
|
| 427 |
+
"grad_norm": 0.5604875931807674,
|
| 428 |
+
"learning_rate": 1.3962252196056847e-05,
|
| 429 |
+
"loss": 0.32,
|
| 430 |
+
"step": 590
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"epoch": 1.1862103052020265,
|
| 434 |
+
"grad_norm": 0.5551583789751445,
|
| 435 |
+
"learning_rate": 1.3765005510201466e-05,
|
| 436 |
+
"loss": 0.3156,
|
| 437 |
+
"step": 600
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"epoch": 1.2059804769553935,
|
| 441 |
+
"grad_norm": 0.5770289171897912,
|
| 442 |
+
"learning_rate": 1.3566036935084692e-05,
|
| 443 |
+
"loss": 0.3196,
|
| 444 |
+
"step": 610
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"epoch": 1.2257506487087606,
|
| 448 |
+
"grad_norm": 0.5283055302681036,
|
| 449 |
+
"learning_rate": 1.3365437467081406e-05,
|
| 450 |
+
"loss": 0.3218,
|
| 451 |
+
"step": 620
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"epoch": 1.2455208204621278,
|
| 455 |
+
"grad_norm": 0.5056609484631435,
|
| 456 |
+
"learning_rate": 1.3163298848439758e-05,
|
| 457 |
+
"loss": 0.315,
|
| 458 |
+
"step": 630
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"epoch": 1.265290992215495,
|
| 462 |
+
"grad_norm": 0.555127018751701,
|
| 463 |
+
"learning_rate": 1.2959713525323725e-05,
|
| 464 |
+
"loss": 0.3221,
|
| 465 |
+
"step": 640
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"epoch": 1.285061163968862,
|
| 469 |
+
"grad_norm": 0.5130249143640312,
|
| 470 |
+
"learning_rate": 1.2754774605533728e-05,
|
| 471 |
+
"loss": 0.3111,
|
| 472 |
+
"step": 650
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"epoch": 1.3048313357222292,
|
| 476 |
+
"grad_norm": 0.519020033436049,
|
| 477 |
+
"learning_rate": 1.2548575815924689e-05,
|
| 478 |
+
"loss": 0.3151,
|
| 479 |
+
"step": 660
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"epoch": 1.3246015074755961,
|
| 483 |
+
"grad_norm": 0.5149083765226259,
|
| 484 |
+
"learning_rate": 1.234121145954094e-05,
|
| 485 |
+
"loss": 0.31,
|
| 486 |
+
"step": 670
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"epoch": 1.3443716792289633,
|
| 490 |
+
"grad_norm": 0.5301240336350007,
|
| 491 |
+
"learning_rate": 1.2132776372487634e-05,
|
| 492 |
+
"loss": 0.3139,
|
| 493 |
+
"step": 680
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"epoch": 1.3641418509823304,
|
| 497 |
+
"grad_norm": 0.4880188656600289,
|
| 498 |
+
"learning_rate": 1.1923365880558345e-05,
|
| 499 |
+
"loss": 0.3147,
|
| 500 |
+
"step": 690
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"epoch": 1.3839120227356976,
|
| 504 |
+
"grad_norm": 0.5098313222505657,
|
| 505 |
+
"learning_rate": 1.1713075755638748e-05,
|
| 506 |
+
"loss": 0.3153,
|
| 507 |
+
"step": 700
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"epoch": 1.4036821944890647,
|
| 511 |
+
"grad_norm": 0.5563900244184181,
|
| 512 |
+
"learning_rate": 1.1502002171906248e-05,
|
| 513 |
+
"loss": 0.3137,
|
| 514 |
+
"step": 710
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"epoch": 1.4234523662424317,
|
| 518 |
+
"grad_norm": 0.5308336365319577,
|
| 519 |
+
"learning_rate": 1.1290241661845649e-05,
|
| 520 |
+
"loss": 0.301,
|
| 521 |
+
"step": 720
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"epoch": 1.4432225379957988,
|
| 525 |
+
"grad_norm": 0.5347937895279813,
|
| 526 |
+
"learning_rate": 1.1077891072100944e-05,
|
| 527 |
+
"loss": 0.3114,
|
| 528 |
+
"step": 730
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"epoch": 1.462992709749166,
|
| 532 |
+
"grad_norm": 0.5353226891153153,
|
| 533 |
+
"learning_rate": 1.0865047519183411e-05,
|
| 534 |
+
"loss": 0.3132,
|
| 535 |
+
"step": 740
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"epoch": 1.482762881502533,
|
| 539 |
+
"grad_norm": 0.5827716787607696,
|
| 540 |
+
"learning_rate": 1.065180834505634e-05,
|
| 541 |
+
"loss": 0.3032,
|
| 542 |
+
"step": 750
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"epoch": 1.5025330532559003,
|
| 546 |
+
"grad_norm": 0.5898123869988975,
|
| 547 |
+
"learning_rate": 1.0438271072616584e-05,
|
| 548 |
+
"loss": 0.3113,
|
| 549 |
+
"step": 760
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"epoch": 1.5223032250092672,
|
| 553 |
+
"grad_norm": 0.5298973225294878,
|
| 554 |
+
"learning_rate": 1.022453336109341e-05,
|
| 555 |
+
"loss": 0.3219,
|
| 556 |
+
"step": 770
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"epoch": 1.5420733967626343,
|
| 560 |
+
"grad_norm": 0.5690896784690122,
|
| 561 |
+
"learning_rate": 1.001069296138499e-05,
|
| 562 |
+
"loss": 0.3134,
|
| 563 |
+
"step": 780
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"epoch": 1.5618435685160015,
|
| 567 |
+
"grad_norm": 0.5827223568466493,
|
| 568 |
+
"learning_rate": 9.796847671352948e-06,
|
| 569 |
+
"loss": 0.3126,
|
| 570 |
+
"step": 790
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"epoch": 1.5816137402693686,
|
| 574 |
+
"grad_norm": 0.5429937702192498,
|
| 575 |
+
"learning_rate": 9.583095291095454e-06,
|
| 576 |
+
"loss": 0.3039,
|
| 577 |
+
"step": 800
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"epoch": 1.6013839120227358,
|
| 581 |
+
"grad_norm": 0.5498582424119081,
|
| 582 |
+
"learning_rate": 9.36953357821928e-06,
|
| 583 |
+
"loss": 0.3043,
|
| 584 |
+
"step": 810
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"epoch": 1.6211540837761027,
|
| 588 |
+
"grad_norm": 0.4994859445298306,
|
| 589 |
+
"learning_rate": 9.156260203131299e-06,
|
| 590 |
+
"loss": 0.296,
|
| 591 |
+
"step": 820
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"epoch": 1.64092425552947,
|
| 595 |
+
"grad_norm": 0.5154683199933622,
|
| 596 |
+
"learning_rate": 8.943372704369844e-06,
|
| 597 |
+
"loss": 0.2962,
|
| 598 |
+
"step": 830
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"epoch": 1.660694427282837,
|
| 602 |
+
"grad_norm": 0.5167087299820147,
|
| 603 |
+
"learning_rate": 8.730968443996411e-06,
|
| 604 |
+
"loss": 0.3129,
|
| 605 |
+
"step": 840
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"epoch": 1.6804645990362042,
|
| 609 |
+
"grad_norm": 0.5490107000824208,
|
| 610 |
+
"learning_rate": 8.519144563068037e-06,
|
| 611 |
+
"loss": 0.3119,
|
| 612 |
+
"step": 850
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"epoch": 1.7002347707895713,
|
| 616 |
+
"grad_norm": 0.540920173955098,
|
| 617 |
+
"learning_rate": 8.30799793721077e-06,
|
| 618 |
+
"loss": 0.3056,
|
| 619 |
+
"step": 860
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"epoch": 1.7200049425429382,
|
| 623 |
+
"grad_norm": 0.5237649749912278,
|
| 624 |
+
"learning_rate": 8.097625132314529e-06,
|
| 625 |
+
"loss": 0.311,
|
| 626 |
+
"step": 870
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"epoch": 1.7397751142963056,
|
| 630 |
+
"grad_norm": 0.6272718536197235,
|
| 631 |
+
"learning_rate": 7.888122360369617e-06,
|
| 632 |
+
"loss": 0.3047,
|
| 633 |
+
"step": 880
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"epoch": 1.7595452860496725,
|
| 637 |
+
"grad_norm": 0.5296663362064814,
|
| 638 |
+
"learning_rate": 7.67958543546509e-06,
|
| 639 |
+
"loss": 0.3011,
|
| 640 |
+
"step": 890
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"epoch": 1.7793154578030397,
|
| 644 |
+
"grad_norm": 0.5233109909144185,
|
| 645 |
+
"learning_rate": 7.472109729969097e-06,
|
| 646 |
+
"loss": 0.2958,
|
| 647 |
+
"step": 900
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"epoch": 1.7990856295564068,
|
| 651 |
+
"grad_norm": 0.5025706432729875,
|
| 652 |
+
"learning_rate": 7.2657901309112325e-06,
|
| 653 |
+
"loss": 0.3035,
|
| 654 |
+
"step": 910
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"epoch": 1.8188558013097738,
|
| 658 |
+
"grad_norm": 0.5402559569074855,
|
| 659 |
+
"learning_rate": 7.060720996586878e-06,
|
| 660 |
+
"loss": 0.3134,
|
| 661 |
+
"step": 920
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"epoch": 1.8386259730631411,
|
| 665 |
+
"grad_norm": 0.547259180262811,
|
| 666 |
+
"learning_rate": 6.85699611340333e-06,
|
| 667 |
+
"loss": 0.3055,
|
| 668 |
+
"step": 930
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"epoch": 1.858396144816508,
|
| 672 |
+
"grad_norm": 0.5197703756039205,
|
| 673 |
+
"learning_rate": 6.654708652987475e-06,
|
| 674 |
+
"loss": 0.3043,
|
| 675 |
+
"step": 940
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"epoch": 1.8781663165698752,
|
| 679 |
+
"grad_norm": 0.5323204838924858,
|
| 680 |
+
"learning_rate": 6.453951129574644e-06,
|
| 681 |
+
"loss": 0.3048,
|
| 682 |
+
"step": 950
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"epoch": 1.8979364883232424,
|
| 686 |
+
"grad_norm": 0.47841296810426304,
|
| 687 |
+
"learning_rate": 6.254815357698118e-06,
|
| 688 |
+
"loss": 0.3006,
|
| 689 |
+
"step": 960
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"epoch": 1.9177066600766093,
|
| 693 |
+
"grad_norm": 0.5083748369122659,
|
| 694 |
+
"learning_rate": 6.05739241019862e-06,
|
| 695 |
+
"loss": 0.3025,
|
| 696 |
+
"step": 970
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"epoch": 1.9374768318299767,
|
| 700 |
+
"grad_norm": 0.4928502314870966,
|
| 701 |
+
"learning_rate": 5.861772576573028e-06,
|
| 702 |
+
"loss": 0.2956,
|
| 703 |
+
"step": 980
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"epoch": 1.9572470035833436,
|
| 707 |
+
"grad_norm": 0.48791550019041724,
|
| 708 |
+
"learning_rate": 5.668045321681328e-06,
|
| 709 |
+
"loss": 0.3091,
|
| 710 |
+
"step": 990
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"epoch": 1.9770171753367107,
|
| 714 |
+
"grad_norm": 0.5066742151391088,
|
| 715 |
+
"learning_rate": 5.476299244830734e-06,
|
| 716 |
+
"loss": 0.2999,
|
| 717 |
+
"step": 1000
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"epoch": 1.9770171753367107,
|
| 721 |
+
"eval_loss": 0.3708229959011078,
|
| 722 |
+
"eval_runtime": 81.8274,
|
| 723 |
+
"eval_samples_per_second": 83.285,
|
| 724 |
+
"eval_steps_per_second": 5.206,
|
| 725 |
+
"step": 1000
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"epoch": 1.9967873470900779,
|
| 729 |
+
"grad_norm": 0.5294994920674526,
|
| 730 |
+
"learning_rate": 5.28662203925562e-06,
|
| 731 |
+
"loss": 0.3066,
|
| 732 |
+
"step": 1010
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"epoch": 2.016557518843445,
|
| 736 |
+
"grad_norm": 0.5249670268523262,
|
| 737 |
+
"learning_rate": 5.099100452011876e-06,
|
| 738 |
+
"loss": 0.2574,
|
| 739 |
+
"step": 1020
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"epoch": 2.036327690596812,
|
| 743 |
+
"grad_norm": 0.5209226672918731,
|
| 744 |
+
"learning_rate": 4.9138202443039625e-06,
|
| 745 |
+
"loss": 0.2297,
|
| 746 |
+
"step": 1030
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"epoch": 2.056097862350179,
|
| 750 |
+
"grad_norm": 0.4884858081963297,
|
| 751 |
+
"learning_rate": 4.730866152262841e-06,
|
| 752 |
+
"loss": 0.2445,
|
| 753 |
+
"step": 1040
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"epoch": 2.0758680341035465,
|
| 757 |
+
"grad_norm": 0.4742867737071898,
|
| 758 |
+
"learning_rate": 4.550321848192731e-06,
|
| 759 |
+
"loss": 0.2505,
|
| 760 |
+
"step": 1050
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"epoch": 2.0956382058569134,
|
| 764 |
+
"grad_norm": 0.522161636411317,
|
| 765 |
+
"learning_rate": 4.3722699023043634e-06,
|
| 766 |
+
"loss": 0.2494,
|
| 767 |
+
"step": 1060
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"epoch": 2.1154083776102803,
|
| 771 |
+
"grad_norm": 0.4240817050624604,
|
| 772 |
+
"learning_rate": 4.196791744952291e-06,
|
| 773 |
+
"loss": 0.239,
|
| 774 |
+
"step": 1070
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"epoch": 2.1351785493636477,
|
| 778 |
+
"grad_norm": 0.5016013699913245,
|
| 779 |
+
"learning_rate": 4.023967629393498e-06,
|
| 780 |
+
"loss": 0.2463,
|
| 781 |
+
"step": 1080
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"epoch": 2.1549487211170146,
|
| 785 |
+
"grad_norm": 0.4907508903718958,
|
| 786 |
+
"learning_rate": 3.853876595084332e-06,
|
| 787 |
+
"loss": 0.2455,
|
| 788 |
+
"step": 1090
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"epoch": 2.174718892870382,
|
| 792 |
+
"grad_norm": 0.4844801070690468,
|
| 793 |
+
"learning_rate": 3.68659643153258e-06,
|
| 794 |
+
"loss": 0.2406,
|
| 795 |
+
"step": 1100
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"epoch": 2.194489064623749,
|
| 799 |
+
"grad_norm": 0.4805850138516767,
|
| 800 |
+
"learning_rate": 3.5222036427211704e-06,
|
| 801 |
+
"loss": 0.2333,
|
| 802 |
+
"step": 1110
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"epoch": 2.214259236377116,
|
| 806 |
+
"grad_norm": 0.4850837241450545,
|
| 807 |
+
"learning_rate": 3.360773412119801e-06,
|
| 808 |
+
"loss": 0.2397,
|
| 809 |
+
"step": 1120
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"epoch": 2.2340294081304832,
|
| 813 |
+
"grad_norm": 0.46778943159588726,
|
| 814 |
+
"learning_rate": 3.202379568300511e-06,
|
| 815 |
+
"loss": 0.2394,
|
| 816 |
+
"step": 1130
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"epoch": 2.25379957988385,
|
| 820 |
+
"grad_norm": 0.4262009004075529,
|
| 821 |
+
"learning_rate": 3.0470945511728856e-06,
|
| 822 |
+
"loss": 0.2319,
|
| 823 |
+
"step": 1140
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"epoch": 2.2735697516372175,
|
| 827 |
+
"grad_norm": 0.4910291271379484,
|
| 828 |
+
"learning_rate": 2.8949893788543505e-06,
|
| 829 |
+
"loss": 0.2461,
|
| 830 |
+
"step": 1150
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"epoch": 2.2933399233905845,
|
| 834 |
+
"grad_norm": 0.5099593229914312,
|
| 835 |
+
"learning_rate": 2.74613361519073e-06,
|
| 836 |
+
"loss": 0.2391,
|
| 837 |
+
"step": 1160
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"epoch": 2.3131100951439514,
|
| 841 |
+
"grad_norm": 0.47785223375797403,
|
| 842 |
+
"learning_rate": 2.60059533794187e-06,
|
| 843 |
+
"loss": 0.2532,
|
| 844 |
+
"step": 1170
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"epoch": 2.3328802668973188,
|
| 848 |
+
"grad_norm": 0.48894964709263233,
|
| 849 |
+
"learning_rate": 2.458441107646935e-06,
|
| 850 |
+
"loss": 0.2442,
|
| 851 |
+
"step": 1180
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"epoch": 2.3526504386506857,
|
| 855 |
+
"grad_norm": 0.4887403938640547,
|
| 856 |
+
"learning_rate": 2.3197359371835802e-06,
|
| 857 |
+
"loss": 0.2374,
|
| 858 |
+
"step": 1190
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"epoch": 2.372420610404053,
|
| 862 |
+
"grad_norm": 0.5094057476841393,
|
| 863 |
+
"learning_rate": 2.1845432620349338e-06,
|
| 864 |
+
"loss": 0.2383,
|
| 865 |
+
"step": 1200
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"epoch": 2.39219078215742,
|
| 869 |
+
"grad_norm": 0.4810409572583604,
|
| 870 |
+
"learning_rate": 2.0529249112779824e-06,
|
| 871 |
+
"loss": 0.2388,
|
| 872 |
+
"step": 1210
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"epoch": 2.411960953910787,
|
| 876 |
+
"grad_norm": 0.506178462808245,
|
| 877 |
+
"learning_rate": 1.924941079306647e-06,
|
| 878 |
+
"loss": 0.2437,
|
| 879 |
+
"step": 1220
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"epoch": 2.4317311256641543,
|
| 883 |
+
"grad_norm": 0.5101355373820005,
|
| 884 |
+
"learning_rate": 1.8006502983024332e-06,
|
| 885 |
+
"loss": 0.2482,
|
| 886 |
+
"step": 1230
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"epoch": 2.451501297417521,
|
| 890 |
+
"grad_norm": 0.47636683086858184,
|
| 891 |
+
"learning_rate": 1.6801094114653082e-06,
|
| 892 |
+
"loss": 0.2313,
|
| 893 |
+
"step": 1240
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"epoch": 2.4712714691708886,
|
| 897 |
+
"grad_norm": 0.43908801679241943,
|
| 898 |
+
"learning_rate": 1.5633735470170108e-06,
|
| 899 |
+
"loss": 0.2403,
|
| 900 |
+
"step": 1250
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"epoch": 2.4910416409242555,
|
| 904 |
+
"grad_norm": 0.46494594811457074,
|
| 905 |
+
"learning_rate": 1.4504960929886746e-06,
|
| 906 |
+
"loss": 0.2442,
|
| 907 |
+
"step": 1260
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"epoch": 2.5108118126776224,
|
| 911 |
+
"grad_norm": 0.49463377523743013,
|
| 912 |
+
"learning_rate": 1.3415286728043374e-06,
|
| 913 |
+
"loss": 0.239,
|
| 914 |
+
"step": 1270
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"epoch": 2.53058198443099,
|
| 918 |
+
"grad_norm": 0.46074492651979493,
|
| 919 |
+
"learning_rate": 1.2365211216714523e-06,
|
| 920 |
+
"loss": 0.2385,
|
| 921 |
+
"step": 1280
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"epoch": 2.5503521561843567,
|
| 925 |
+
"grad_norm": 0.5218071815372649,
|
| 926 |
+
"learning_rate": 1.135521463789232e-06,
|
| 927 |
+
"loss": 0.2482,
|
| 928 |
+
"step": 1290
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"epoch": 2.570122327937724,
|
| 932 |
+
"grad_norm": 0.4982910156071213,
|
| 933 |
+
"learning_rate": 1.0385758903852406e-06,
|
| 934 |
+
"loss": 0.2381,
|
| 935 |
+
"step": 1300
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"epoch": 2.589892499691091,
|
| 939 |
+
"grad_norm": 0.5007115279363157,
|
| 940 |
+
"learning_rate": 9.457287385902836e-07,
|
| 941 |
+
"loss": 0.2405,
|
| 942 |
+
"step": 1310
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"epoch": 2.6096626714444584,
|
| 946 |
+
"grad_norm": 0.4830944811979268,
|
| 947 |
+
"learning_rate": 8.570224711612385e-07,
|
| 948 |
+
"loss": 0.2304,
|
| 949 |
+
"step": 1320
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"epoch": 2.6294328431978253,
|
| 953 |
+
"grad_norm": 0.47077203411861107,
|
| 954 |
+
"learning_rate": 7.724976570611254e-07,
|
| 955 |
+
"loss": 0.2259,
|
| 956 |
+
"step": 1330
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"epoch": 2.6492030149511923,
|
| 960 |
+
"grad_norm": 0.49030170297745246,
|
| 961 |
+
"learning_rate": 6.921929529052729e-07,
|
| 962 |
+
"loss": 0.2318,
|
| 963 |
+
"step": 1340
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"epoch": 2.6689731867045596,
|
| 967 |
+
"grad_norm": 0.49483419009773855,
|
| 968 |
+
"learning_rate": 6.161450852820872e-07,
|
| 969 |
+
"loss": 0.2377,
|
| 970 |
+
"step": 1350
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"epoch": 2.6887433584579266,
|
| 974 |
+
"grad_norm": 0.5047141018868604,
|
| 975 |
+
"learning_rate": 5.443888339565018e-07,
|
| 976 |
+
"loss": 0.2402,
|
| 977 |
+
"step": 1360
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"epoch": 2.7085135302112935,
|
| 981 |
+
"grad_norm": 0.4627659592534385,
|
| 982 |
+
"learning_rate": 4.769570159637782e-07,
|
| 983 |
+
"loss": 0.2401,
|
| 984 |
+
"step": 1370
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"epoch": 2.728283701964661,
|
| 988 |
+
"grad_norm": 0.5051673776560596,
|
| 989 |
+
"learning_rate": 4.138804706009547e-07,
|
| 990 |
+
"loss": 0.2306,
|
| 991 |
+
"step": 1380
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"epoch": 2.748053873718028,
|
| 995 |
+
"grad_norm": 0.4697753055417383,
|
| 996 |
+
"learning_rate": 3.5518804532278736e-07,
|
| 997 |
+
"loss": 0.2407,
|
| 998 |
+
"step": 1390
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"epoch": 2.767824045471395,
|
| 1002 |
+
"grad_norm": 0.48255171108333217,
|
| 1003 |
+
"learning_rate": 3.0090658254864013e-07,
|
| 1004 |
+
"loss": 0.227,
|
| 1005 |
+
"step": 1400
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"epoch": 2.787594217224762,
|
| 1009 |
+
"grad_norm": 0.48725984214652784,
|
| 1010 |
+
"learning_rate": 2.5106090738636014e-07,
|
| 1011 |
+
"loss": 0.2306,
|
| 1012 |
+
"step": 1410
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"epoch": 2.8073643889781295,
|
| 1016 |
+
"grad_norm": 0.5176868460783628,
|
| 1017 |
+
"learning_rate": 2.0567381627875639e-07,
|
| 1018 |
+
"loss": 0.242,
|
| 1019 |
+
"step": 1420
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"epoch": 2.8271345607314964,
|
| 1023 |
+
"grad_norm": 0.486977389827133,
|
| 1024 |
+
"learning_rate": 1.6476606657786386e-07,
|
| 1025 |
+
"loss": 0.2309,
|
| 1026 |
+
"step": 1430
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"epoch": 2.8469047324848633,
|
| 1030 |
+
"grad_norm": 0.48480851362499594,
|
| 1031 |
+
"learning_rate": 1.2835636705176403e-07,
|
| 1032 |
+
"loss": 0.2287,
|
| 1033 |
+
"step": 1440
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"epoch": 2.8666749042382307,
|
| 1037 |
+
"grad_norm": 0.506776005156481,
|
| 1038 |
+
"learning_rate": 9.64613693283123e-08,
|
| 1039 |
+
"loss": 0.2469,
|
| 1040 |
+
"step": 1450
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"epoch": 2.8864450759915976,
|
| 1044 |
+
"grad_norm": 0.5370285292991429,
|
| 1045 |
+
"learning_rate": 6.909566027966996e-08,
|
| 1046 |
+
"loss": 0.2458,
|
| 1047 |
+
"step": 1460
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"epoch": 2.9062152477449645,
|
| 1051 |
+
"grad_norm": 0.46946884718156673,
|
| 1052 |
+
"learning_rate": 4.6271755351144923e-08,
|
| 1053 |
+
"loss": 0.2456,
|
| 1054 |
+
"step": 1470
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"epoch": 2.925985419498332,
|
| 1058 |
+
"grad_norm": 0.47309149600612144,
|
| 1059 |
+
"learning_rate": 2.8000092837368042e-08,
|
| 1060 |
+
"loss": 0.2413,
|
| 1061 |
+
"step": 1480
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"epoch": 2.945755591251699,
|
| 1065 |
+
"grad_norm": 0.48781257822426394,
|
| 1066 |
+
"learning_rate": 1.4289029108436325e-08,
|
| 1067 |
+
"loss": 0.2388,
|
| 1068 |
+
"step": 1490
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"epoch": 2.965525763005066,
|
| 1072 |
+
"grad_norm": 0.4929015642135056,
|
| 1073 |
+
"learning_rate": 5.14483478821437e-09,
|
| 1074 |
+
"loss": 0.2454,
|
| 1075 |
+
"step": 1500
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"epoch": 2.965525763005066,
|
| 1079 |
+
"eval_loss": 0.37777501344680786,
|
| 1080 |
+
"eval_runtime": 82.1049,
|
| 1081 |
+
"eval_samples_per_second": 83.004,
|
| 1082 |
+
"eval_steps_per_second": 5.188,
|
| 1083 |
+
"step": 1500
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"epoch": 2.985295934758433,
|
| 1087 |
+
"grad_norm": 0.49492433015567533,
|
| 1088 |
+
"learning_rate": 5.716918865195098e-10,
|
| 1089 |
+
"loss": 0.2349,
|
| 1090 |
+
"step": 1510
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"epoch": 2.995181020635117,
|
| 1094 |
+
"step": 1515,
|
| 1095 |
+
"total_flos": 504886288187392.0,
|
| 1096 |
+
"train_loss": 0.33701497725527674,
|
| 1097 |
+
"train_runtime": 18615.961,
|
| 1098 |
+
"train_samples_per_second": 20.865,
|
| 1099 |
+
"train_steps_per_second": 0.081
|
| 1100 |
+
}
|
| 1101 |
+
],
|
| 1102 |
+
"logging_steps": 10,
|
| 1103 |
+
"max_steps": 1515,
|
| 1104 |
+
"num_input_tokens_seen": 0,
|
| 1105 |
+
"num_train_epochs": 3,
|
| 1106 |
+
"save_steps": 500,
|
| 1107 |
+
"stateful_callbacks": {
|
| 1108 |
+
"TrainerControl": {
|
| 1109 |
+
"args": {
|
| 1110 |
+
"should_epoch_stop": false,
|
| 1111 |
+
"should_evaluate": false,
|
| 1112 |
+
"should_log": false,
|
| 1113 |
+
"should_save": true,
|
| 1114 |
+
"should_training_stop": true
|
| 1115 |
+
},
|
| 1116 |
+
"attributes": {}
|
| 1117 |
+
}
|
| 1118 |
+
},
|
| 1119 |
+
"total_flos": 504886288187392.0,
|
| 1120 |
+
"train_batch_size": 1,
|
| 1121 |
+
"trial_name": null,
|
| 1122 |
+
"trial_params": null
|
| 1123 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3768f88178a75966fa687591fa8fb2a1d271eb4b4e6ae283963a64c0e961ac10
|
| 3 |
+
size 7288
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|