--- base_model: codellama/CodeLlama-7b-hf library_name: peft license: llama2 tags: - axolotl - generated_from_trainer model-index: - name: EvolCodeLlama-7b results: [] --- [Built with Axolotl](https://github.com/axolotl-ai-cloud/axolotl)
See axolotl config axolotl version: `0.4.1` ```yaml base_model: codellama/CodeLlama-7b-hf base_model_config: codellama/CodeLlama-7b-hf model_type: LlamaForCausalLM tokenizer_type: LlamaTokenizer is_llama_derived_model: true hub_model_id: EvolCodeLlama-7b load_in_8bit: false load_in_4bit: true strict: false datasets: - path: mlabonne/Evol-Instruct-Python-1k type: alpaca dataset_prepared_path: last_run_prepared val_set_size: 0.02 output_dir: ./qlora-out adapter: qlora lora_model_dir: sequence_len: 2048 sample_packing: true lora_r: 32 lora_alpha: 16 lora_dropout: 0.05 lora_target_modules: lora_target_linear: true lora_fan_in_fan_out: wandb_project: axolotl wandb_entity: wandb_watch: wandb_run_id: wandb_log_model: gradient_accumulation_steps: 4 micro_batch_size: 2 num_epochs: 3 optimizer: paged_adamw_32bit lr_scheduler: cosine learning_rate: 0.0002 train_on_inputs: false group_by_length: false bf16: true fp16: false tf32: false gradient_checkpointing: true early_stopping_patience: resume_from_checkpoint: local_rank: logging_steps: 1 xformers_attention: flash_attention: true warmup_steps: 100 eval_steps: 0.01 save_strategy: epoch save_steps: debug: deepspeed: weight_decay: 0.0 fsdp: fsdp_config: special_tokens: bos_token: "" eos_token: "" unk_token: "" ```

# EvolCodeLlama-7b This model is a fine-tuned version of [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) on the None dataset. It achieves the following results on the evaluation set: - Loss: 0.3807 ## Model description More information needed ## Intended uses & limitations More information needed ## Training and evaluation data More information needed ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 0.0002 - train_batch_size: 2 - eval_batch_size: 2 - seed: 42 - gradient_accumulation_steps: 4 - total_train_batch_size: 8 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: cosine - lr_scheduler_warmup_steps: 100 - num_epochs: 3 ### Training results | Training Loss | Epoch | Step | Validation Loss | |:-------------:|:------:|:----:|:---------------:| | 0.4828 | 0.0086 | 1 | 0.4975 | | 0.4052 | 0.0343 | 4 | 0.4974 | | 0.505 | 0.0685 | 8 | 0.4975 | | 0.3968 | 0.1028 | 12 | 0.4968 | | 0.3404 | 0.1370 | 16 | 0.4949 | | 0.465 | 0.1713 | 20 | 0.4900 | | 0.2893 | 0.2056 | 24 | 0.4790 | | 0.2617 | 0.2398 | 28 | 0.4618 | | 0.2588 | 0.2741 | 32 | 0.4430 | | 0.3148 | 0.3084 | 36 | 0.4268 | | 0.3689 | 0.3426 | 40 | 0.4159 | | 0.2938 | 0.3769 | 44 | 0.4084 | | 0.2419 | 0.4111 | 48 | 0.4024 | | 0.2792 | 0.4454 | 52 | 0.3971 | | 0.2382 | 0.4797 | 56 | 0.3920 | | 0.2408 | 0.5139 | 60 | 0.3887 | | 0.268 | 0.5482 | 64 | 0.3873 | | 0.3677 | 0.5824 | 68 | 0.3875 | | 0.2663 | 0.6167 | 72 | 0.3848 | | 0.3253 | 0.6510 | 76 | 0.3829 | | 0.2366 | 0.6852 | 80 | 0.3798 | | 0.2307 | 0.7195 | 84 | 0.3785 | | 0.3573 | 0.7537 | 88 | 0.3769 | | 0.2407 | 0.7880 | 92 | 0.3749 | | 0.3185 | 0.8223 | 96 | 0.3742 | | 0.2643 | 0.8565 | 100 | 0.3721 | | 0.2347 | 0.8908 | 104 | 0.3716 | | 0.3656 | 0.9251 | 108 | 0.3711 | | 0.166 | 0.9593 | 112 | 0.3714 | | 0.2751 | 0.9936 | 116 | 0.3702 | | 0.2903 | 1.0254 | 120 | 0.3716 | | 0.2088 | 1.0593 | 124 | 0.3704 | | 0.3427 | 1.0932 | 128 | 0.3712 | | 0.33 | 1.1271 | 132 | 0.3727 | | 0.2228 | 1.1610 | 136 | 0.3713 | | 0.2096 | 1.1949 | 140 | 0.3686 | | 0.2922 | 1.2288 | 144 | 0.3708 | | 0.3808 | 1.2627 | 148 | 0.3676 | | 0.2622 | 1.2966 | 152 | 0.3664 | | 0.2274 | 1.3305 | 156 | 0.3679 | | 0.193 | 1.3644 | 160 | 0.3690 | | 0.218 | 1.3983 | 164 | 0.3682 | | 0.2453 | 1.4322 | 168 | 0.3675 | | 0.1983 | 1.4661 | 172 | 0.3673 | | 0.2176 | 1.5 | 176 | 0.3658 | | 0.2607 | 1.5339 | 180 | 0.3657 | | 0.2202 | 1.5678 | 184 | 0.3645 | | 0.3337 | 1.6017 | 188 | 0.3647 | | 0.1766 | 1.6356 | 192 | 0.3643 | | 0.1829 | 1.6695 | 196 | 0.3643 | | 0.2344 | 1.7034 | 200 | 0.3653 | | 0.2576 | 1.7373 | 204 | 0.3656 | | 0.1747 | 1.7712 | 208 | 0.3643 | | 0.2121 | 1.8051 | 212 | 0.3628 | | 0.2248 | 1.8390 | 216 | 0.3616 | | 0.2299 | 1.8729 | 220 | 0.3607 | | 0.1876 | 1.9068 | 224 | 0.3609 | | 0.2027 | 1.9407 | 228 | 0.3608 | | 0.2444 | 1.9746 | 232 | 0.3599 | | 0.2423 | 2.0064 | 236 | 0.3595 | | 0.2028 | 2.0407 | 240 | 0.3626 | | 0.2132 | 2.0749 | 244 | 0.3733 | | 0.177 | 2.1092 | 248 | 0.3845 | | 0.1628 | 2.1435 | 252 | 0.3821 | | 0.1613 | 2.1777 | 256 | 0.3784 | | 0.1713 | 2.2120 | 260 | 0.3769 | | 0.1982 | 2.2463 | 264 | 0.3767 | | 0.1421 | 2.2805 | 268 | 0.3766 | | 0.1998 | 2.3148 | 272 | 0.3782 | | 0.1275 | 2.3490 | 276 | 0.3786 | | 0.1525 | 2.3833 | 280 | 0.3793 | | 0.1553 | 2.4176 | 284 | 0.3782 | | 0.1448 | 2.4518 | 288 | 0.3773 | | 0.1573 | 2.4861 | 292 | 0.3765 | | 0.2112 | 2.5203 | 296 | 0.3772 | | 0.1763 | 2.5546 | 300 | 0.3785 | | 0.2383 | 2.5889 | 304 | 0.3798 | | 0.1401 | 2.6231 | 308 | 0.3808 | | 0.3601 | 2.6574 | 312 | 0.3813 | | 0.1295 | 2.6916 | 316 | 0.3814 | | 0.1349 | 2.7259 | 320 | 0.3816 | | 0.2096 | 2.7602 | 324 | 0.3811 | | 0.165 | 2.7944 | 328 | 0.3808 | | 0.1735 | 2.8287 | 332 | 0.3807 | | 0.16 | 2.8630 | 336 | 0.3806 | | 0.1598 | 2.8972 | 340 | 0.3806 | | 0.1788 | 2.9315 | 344 | 0.3805 | | 0.1696 | 2.9657 | 348 | 0.3805 | | 0.1892 | 3.0 | 352 | 0.3807 | ### Framework versions - PEFT 0.13.0 - Transformers 4.45.0 - Pytorch 2.3.1+cu121 - Datasets 2.21.0 - Tokenizers 0.20.0