---
library_name: peft
license: apache-2.0
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
tags:
- axolotl
- base_model:adapter:Qwen/Qwen2.5-Coder-7B-Instruct
- lora
- transformers
datasets:
- felixwangg/evol-instruction-66k
pipeline_tag: text-generation
model-index:
- name: home/tkwang/scratch/SecSteer-v2/axolotl-outputs/lora/Qwen2.5-Coder-7B-evol-stage1
results: []
---
[
](https://github.com/axolotl-ai-cloud/axolotl)
See axolotl config
axolotl version: `0.16.1`
```yaml
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
model_type: Qwen2ForCausalLM
tokenizer_type: AutoTokenizer
load_in_8bit: false
load_in_4bit: false
datasets:
- path: felixwangg/evol-instruction-66k
type: chat_template
split: train
test_datasets:
- path: felixwangg/evol-instruction-66k
type: chat_template
split: validation
dataset_prepared_path: /home/tkwang/scratch/SecSteer-v2/axolotl-datasets/lora/Qwen2.5-Coder-7B/evol-stage1
val_set_size: 0
output_dir: /home/tkwang/scratch/SecSteer-v2/axolotl-outputs/lora/Qwen2.5-Coder-7B-evol-stage1
sequence_len: 4096
sample_packing: false
eval_sample_packing: false
pad_to_sequence_len: true
adapter: lora
lora_model_dir:
lora_r: 16
lora_alpha: 16
lora_dropout: 0.05
lora_target_linear: true
merge_lora: true
wandb_project: sft-primevul-sweep-ctx-0
wandb_entity: wtkuan
wandb_watch: "false"
wandb_name: Qwen2.5-Coder-7B-evol-stage1
wandb_log_model: "false"
gradient_accumulation_steps: 4
micro_batch_size: 4
optimizer: adamw_torch
lr_scheduler: cosine
learning_rate: 4e-5
bf16: true
tf32: false
train_on_inputs: false
roles_to_train: ['assistant']
gradient_checkpointing: true
resume_from_checkpoint:
logging_steps: 1
flash_attention: true
num_epochs: 1
warmup_ratio: 0.1
early_stopping_patience: 1000
eval_steps: 150
save_steps: 150
save_total_limit: 1000
load_best_model_at_end: true
weight_decay: 0.02
special_tokens:
plugins:
```
# home/tkwang/scratch/SecSteer-v2/axolotl-outputs/lora/Qwen2.5-Coder-7B-evol-stage1
This model is a fine-tuned version of [Qwen/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct) on the felixwangg/evol-instruction-66k dataset.
It achieves the following results on the evaluation set:
- Loss: 0.7696
- Ppl: 2.1589
- Memory/max Active (gib): 38.19
- Memory/max Allocated (gib): 38.19
- Memory/device Reserved (gib): 52.46
## 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: 4e-05
- train_batch_size: 4
- eval_batch_size: 4
- seed: 42
- distributed_type: multi-GPU
- num_devices: 4
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- total_eval_batch_size: 16
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 94
- training_steps: 941
### Training results
| Training Loss | Epoch | Step | Validation Loss | Ppl | Active (gib) | Allocated (gib) | Reserved (gib) |
|:-------------:|:------:|:----:|:---------------:|:------:|:------------:|:---------------:|:--------------:|
| No log | 0 | 0 | 0.8050 | 2.2366 | 37.85 | 37.85 | 41.82 |
| 0.7306 | 0.1595 | 150 | 0.7756 | 2.1719 | 38.19 | 38.19 | 51.31 |
| 0.7813 | 0.3191 | 300 | 0.7725 | 2.1652 | 38.19 | 38.19 | 52.46 |
| 0.7790 | 0.4786 | 450 | 0.7710 | 2.162 | 38.19 | 38.19 | 52.46 |
| 0.7768 | 0.6381 | 600 | 0.7701 | 2.1601 | 38.19 | 38.19 | 52.46 |
| 0.7329 | 0.7977 | 750 | 0.7697 | 2.1592 | 38.19 | 38.19 | 52.46 |
| 0.8182 | 0.9572 | 900 | 0.7696 | 2.1589 | 38.19 | 38.19 | 52.46 |
| 0.7281 | 1.0 | 941 | 0.7696 | 2.1589 | 38.19 | 38.19 | 52.46 |
### Framework versions
- PEFT 0.19.1
- Transformers 5.5.4
- Pytorch 2.11.0+cu130
- Datasets 4.5.0
- Tokenizers 0.22.2