File size: 14,629 Bytes
89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 89de10b e6db5d4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 |
[INFO|2024-12-18 09:25:29] configuration_utils.py:679 >> loading configuration file config.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/config.json [INFO|2024-12-18 09:25:29] configuration_utils.py:746 >> Model config LlamaConfig { "_name_or_path": "meta-llama/Llama-3.2-1B", "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 128000, "eos_token_id": 128001, "head_dim": 64, "hidden_act": "silu", "hidden_size": 2048, "initializer_range": 0.02, "intermediate_size": 8192, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 16, "num_key_value_heads": 8, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": { "factor": 32.0, "high_freq_factor": 4.0, "low_freq_factor": 1.0, "original_max_position_embeddings": 8192, "rope_type": "llama3" }, "rope_theta": 500000.0, "tie_word_embeddings": true, "torch_dtype": "bfloat16", "transformers_version": "4.46.1", "use_cache": true, "vocab_size": 128256 } [INFO|2024-12-18 09:25:30] parser.py:355 >> Process rank: 1, device: cuda:1, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16 [INFO|2024-12-18 09:25:29] tokenization_utils_base.py:2211 >> loading file tokenizer.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/tokenizer.json [INFO|2024-12-18 09:25:29] tokenization_utils_base.py:2211 >> loading file tokenizer.model from cache at None [INFO|2024-12-18 09:25:29] tokenization_utils_base.py:2211 >> loading file added_tokens.json from cache at None [INFO|2024-12-18 09:25:29] tokenization_utils_base.py:2211 >> loading file special_tokens_map.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/special_tokens_map.json [INFO|2024-12-18 09:25:29] tokenization_utils_base.py:2211 >> loading file tokenizer_config.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/tokenizer_config.json [INFO|2024-12-18 09:25:30] tokenization_utils_base.py:2475 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. [INFO|2024-12-18 09:25:30] parser.py:355 >> Process rank: 2, device: cuda:2, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16 [INFO|2024-12-18 09:25:30] parser.py:355 >> Process rank: 3, device: cuda:3, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16 [INFO|2024-12-18 09:25:31] configuration_utils.py:679 >> loading configuration file config.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/config.json [INFO|2024-12-18 09:25:31] configuration_utils.py:746 >> Model config LlamaConfig { "_name_or_path": "meta-llama/Llama-3.2-1B", "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 128000, "eos_token_id": 128001, "head_dim": 64, "hidden_act": "silu", "hidden_size": 2048, "initializer_range": 0.02, "intermediate_size": 8192, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 16, "num_key_value_heads": 8, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": { "factor": 32.0, "high_freq_factor": 4.0, "low_freq_factor": 1.0, "original_max_position_embeddings": 8192, "rope_type": "llama3" }, "rope_theta": 500000.0, "tie_word_embeddings": true, "torch_dtype": "bfloat16", "transformers_version": "4.46.1", "use_cache": true, "vocab_size": 128256 } [INFO|2024-12-18 09:25:31] tokenization_utils_base.py:2211 >> loading file tokenizer.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/tokenizer.json [INFO|2024-12-18 09:25:31] tokenization_utils_base.py:2211 >> loading file tokenizer.model from cache at None [INFO|2024-12-18 09:25:31] tokenization_utils_base.py:2211 >> loading file added_tokens.json from cache at None [INFO|2024-12-18 09:25:31] tokenization_utils_base.py:2211 >> loading file special_tokens_map.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/special_tokens_map.json [INFO|2024-12-18 09:25:31] tokenization_utils_base.py:2211 >> loading file tokenizer_config.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/tokenizer_config.json [INFO|2024-12-18 09:25:31] tokenization_utils_base.py:2475 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. [INFO|2024-12-18 09:25:31] logging.py:157 >> Add pad token: <|end_of_text|> [INFO|2024-12-18 09:25:31] logging.py:157 >> Loading dataset Harish-as-harry/openledger... [INFO|2024-12-18 09:25:45] configuration_utils.py:679 >> loading configuration file config.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/config.json [INFO|2024-12-18 09:25:45] configuration_utils.py:746 >> Model config LlamaConfig { "_name_or_path": "meta-llama/Llama-3.2-1B", "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 128000, "eos_token_id": 128001, "head_dim": 64, "hidden_act": "silu", "hidden_size": 2048, "initializer_range": 0.02, "intermediate_size": 8192, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 16, "num_key_value_heads": 8, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": { "factor": 32.0, "high_freq_factor": 4.0, "low_freq_factor": 1.0, "original_max_position_embeddings": 8192, "rope_type": "llama3" }, "rope_theta": 500000.0, "tie_word_embeddings": true, "torch_dtype": "bfloat16", "transformers_version": "4.46.1", "use_cache": true, "vocab_size": 128256 } [INFO|2024-12-18 09:25:45] modeling_utils.py:3937 >> loading weights file model.safetensors from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/model.safetensors [INFO|2024-12-18 09:25:45] modeling_utils.py:1670 >> Instantiating LlamaForCausalLM model under default dtype torch.bfloat16. [INFO|2024-12-18 09:25:45] configuration_utils.py:1096 >> Generate config GenerationConfig { "bos_token_id": 128000, "eos_token_id": 128001 } [INFO|2024-12-18 09:25:46] modeling_utils.py:4800 >> All model checkpoint weights were used when initializing LlamaForCausalLM. [INFO|2024-12-18 09:25:46] modeling_utils.py:4808 >> All the weights of LlamaForCausalLM were initialized from the model checkpoint at meta-llama/Llama-3.2-1B. If your task is similar to the task the model of the checkpoint was trained on, you can already use LlamaForCausalLM for predictions without further training. [INFO|2024-12-18 09:25:46] configuration_utils.py:1051 >> loading configuration file generation_config.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/generation_config.json [INFO|2024-12-18 09:25:46] configuration_utils.py:1096 >> Generate config GenerationConfig { "bos_token_id": 128000, "do_sample": true, "eos_token_id": 128001, "temperature": 0.6, "top_p": 0.9 } [INFO|2024-12-18 09:25:46] logging.py:157 >> Gradient checkpointing enabled. [INFO|2024-12-18 09:25:46] logging.py:157 >> Using torch SDPA for faster training and inference. [INFO|2024-12-18 09:25:46] logging.py:157 >> Upcasting trainable params to float32. [INFO|2024-12-18 09:25:46] logging.py:157 >> Fine-tuning method: LoRA [INFO|2024-12-18 09:25:46] logging.py:157 >> Found linear modules: q_proj,down_proj,o_proj,v_proj,up_proj,gate_proj,k_proj [INFO|2024-12-18 09:25:47] logging.py:157 >> trainable params: 11,272,192 || all params: 1,247,086,592 || trainable%: 0.9039 [INFO|2024-12-18 09:25:47] trainer.py:698 >> Using auto half precision backend [INFO|2024-12-18 09:25:47] trainer.py:2313 >> ***** Running training ***** [INFO|2024-12-18 09:25:47] trainer.py:2314 >> Num examples = 153 [INFO|2024-12-18 09:25:47] trainer.py:2315 >> Num Epochs = 30 [INFO|2024-12-18 09:25:47] trainer.py:2316 >> Instantaneous batch size per device = 2 [INFO|2024-12-18 09:25:47] trainer.py:2319 >> Total train batch size (w. parallel, distributed & accumulation) = 64 [INFO|2024-12-18 09:25:47] trainer.py:2320 >> Gradient Accumulation steps = 8 [INFO|2024-12-18 09:25:47] trainer.py:2321 >> Total optimization steps = 60 [INFO|2024-12-18 09:25:47] trainer.py:2322 >> Number of trainable parameters = 11,272,192 [INFO|2024-12-18 09:25:53] logging.py:157 >> {'loss': 3.3709, 'learning_rate': 1.9659e-04, 'epoch': 2.30} [INFO|2024-12-18 09:25:58] logging.py:157 >> {'loss': 2.7270, 'learning_rate': 1.8660e-04, 'epoch': 4.60} [INFO|2024-12-18 09:26:03] logging.py:157 >> {'loss': 2.6508, 'learning_rate': 1.7071e-04, 'epoch': 7.05} [INFO|2024-12-18 09:26:09] logging.py:157 >> {'loss': 1.9384, 'learning_rate': 1.5000e-04, 'epoch': 9.35} [INFO|2024-12-18 09:26:14] logging.py:157 >> {'loss': 1.3815, 'learning_rate': 1.2588e-04, 'epoch': 11.65} [INFO|2024-12-18 09:26:19] logging.py:157 >> {'loss': 1.2123, 'learning_rate': 1.0000e-04, 'epoch': 14.10} [INFO|2024-12-18 09:26:24] logging.py:157 >> {'loss': 0.7774, 'learning_rate': 7.4118e-05, 'epoch': 16.40} [INFO|2024-12-18 09:26:30] logging.py:157 >> {'loss': 0.5555, 'learning_rate': 5.0000e-05, 'epoch': 18.70} [INFO|2024-12-18 09:26:35] logging.py:157 >> {'loss': 0.4299, 'learning_rate': 2.9289e-05, 'epoch': 21.15} [INFO|2024-12-18 09:26:40] logging.py:157 >> {'loss': 0.2811, 'learning_rate': 1.3397e-05, 'epoch': 23.45} [INFO|2024-12-18 09:26:45] logging.py:157 >> {'loss': 0.2445, 'learning_rate': 3.4074e-06, 'epoch': 25.75} [INFO|2024-12-18 09:26:51] logging.py:157 >> {'loss': 0.2564, 'learning_rate': 0.0000e+00, 'epoch': 28.20} [INFO|2024-12-18 09:26:51] trainer.py:3801 >> Saving model checkpoint to saves/Llama-3.2-1B/lora/openledger-18-12-2024--try-01/checkpoint-60 [INFO|2024-12-18 09:26:51] configuration_utils.py:679 >> loading configuration file config.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/config.json [INFO|2024-12-18 09:26:51] configuration_utils.py:746 >> Model config LlamaConfig { "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 128000, "eos_token_id": 128001, "head_dim": 64, "hidden_act": "silu", "hidden_size": 2048, "initializer_range": 0.02, "intermediate_size": 8192, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 16, "num_key_value_heads": 8, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": { "factor": 32.0, "high_freq_factor": 4.0, "low_freq_factor": 1.0, "original_max_position_embeddings": 8192, "rope_type": "llama3" }, "rope_theta": 500000.0, "tie_word_embeddings": true, "torch_dtype": "bfloat16", "transformers_version": "4.46.1", "use_cache": true, "vocab_size": 128256 } [INFO|2024-12-18 09:26:51] tokenization_utils_base.py:2646 >> tokenizer config file saved in saves/Llama-3.2-1B/lora/openledger-18-12-2024--try-01/checkpoint-60/tokenizer_config.json [INFO|2024-12-18 09:26:51] tokenization_utils_base.py:2655 >> Special tokens file saved in saves/Llama-3.2-1B/lora/openledger-18-12-2024--try-01/checkpoint-60/special_tokens_map.json [INFO|2024-12-18 09:26:52] trainer.py:2584 >> Training completed. Do not forget to share your model on huggingface.co/models =) [INFO|2024-12-18 09:26:52] trainer.py:3801 >> Saving model checkpoint to saves/Llama-3.2-1B/lora/openledger-18-12-2024--try-01 [INFO|2024-12-18 09:26:52] configuration_utils.py:679 >> loading configuration file config.json from cache at /home/ubuntu/.cache/huggingface/hub/models--meta-llama--Llama-3.2-1B/snapshots/4e20de362430cd3b72f300e6b0f18e50e7166e08/config.json [INFO|2024-12-18 09:26:52] configuration_utils.py:746 >> Model config LlamaConfig { "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 128000, "eos_token_id": 128001, "head_dim": 64, "hidden_act": "silu", "hidden_size": 2048, "initializer_range": 0.02, "intermediate_size": 8192, "max_position_embeddings": 131072, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 16, "num_key_value_heads": 8, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_scaling": { "factor": 32.0, "high_freq_factor": 4.0, "low_freq_factor": 1.0, "original_max_position_embeddings": 8192, "rope_type": "llama3" }, "rope_theta": 500000.0, "tie_word_embeddings": true, "torch_dtype": "bfloat16", "transformers_version": "4.46.1", "use_cache": true, "vocab_size": 128256 } [INFO|2024-12-18 09:26:52] tokenization_utils_base.py:2646 >> tokenizer config file saved in saves/Llama-3.2-1B/lora/openledger-18-12-2024--try-01/tokenizer_config.json [INFO|2024-12-18 09:26:52] tokenization_utils_base.py:2655 >> Special tokens file saved in saves/Llama-3.2-1B/lora/openledger-18-12-2024--try-01/special_tokens_map.json [WARNING|2024-12-18 09:26:52] logging.py:162 >> No metric eval_loss to plot. [WARNING|2024-12-18 09:26:52] logging.py:162 >> No metric eval_accuracy to plot. [INFO|2024-12-18 09:26:52] trainer.py:4117 >> ***** Running Evaluation ***** [INFO|2024-12-18 09:26:52] trainer.py:4119 >> Num examples = 9 [INFO|2024-12-18 09:26:52] trainer.py:4122 >> Batch size = 2 [INFO|2024-12-18 09:26:52] modelcard.py:449 >> Dropping the following result as it does not have all the necessary fields: {'task': {'name': 'Causal Language Modeling', 'type': 'text-generation'}} |