Views
No views yet
0.8.0.dev01base_model: FuseAI/FuseO1-DeepSeekR1-QwQ-SkyT1-32B-Preview
2model_type: AutoModelForCausalLM
3tokenizer_type: AutoTokenizer
4
5hub_model_id: downquark/v12_qwen_datav5_lora
6hub_strategy: "checkpoint"
7push_dataset_to_hub:
8hf_use_auth_token: true
9
10plugins:
11 - axolotl.integrations.liger.LigerPlugin
12liger_rope: true
13liger_rms_norm: true
14liger_glu_activation: true
15liger_fused_linear_cross_entropy: true
16
17load_in_8bit: false
18load_in_4bit: true
19strict: false
20
21datasets:
22 - path: downquark/dataset_llm_finetune
23 type: input_output
24 revision: dataset_v5_2025_2_23_qwen
25 train_on_split: train
26
27# A list of one or more datasets to eval the model with.
28# You can use either test_datasets, or val_set_size, but not both.
29test_datasets:
30 - path: /workspace/test.jsonl
31 ds_type: json
32 type: input_output
33 split: train
34 data_files:
35 - /workspace/test.jsonl
36
37shuffle_merged_datasets: true
38dataset_exact_deduplication: true
39
40dataset_prepared_path: /workspace/data/last_run_prepared
41val_set_size: 0.0
42output_dir: /workspace/data/out
43
44sequence_len: 2048 # magnum-v4: 32768
45sample_packing: true
46pad_to_sequence_len: true
47
48adapter: qlora
49lora_model_dir:
50lora_r: 64
51lora_alpha: 128
52lora_dropout: 0.1
53lora_target_linear: true
54lora_fan_in_fan_out:
55peft_use_rslora: true
56
57# unsloth_lora_mlp: true
58# unsloth_lora_qkv: true
59# unsloth_lora_o: true
60# unsloth_cross_entropy_loss: true
61# unsloth_rms_norm: true
62# unsloth_rope: true
63
64wandb_project: llm_finetune
65wandb_entity:
66wandb_watch:
67wandb_name: v12_qwen_datav5_lora
68wandb_log_model:
69
70# LIMO: https://github.com/GAIR-NLP/LIMO/blob/main/train/examples/train_limo.yaml
71#
72# Critique fine-tuning: ... we select the best-performing checkpoint after training on the entire
73# dataset for 1 epoch. We maintain consistent hyperparameters across all experiments with a learning rate of 5e-6,
74# a cosine decay learning schedule with a warm-up ratio of 0.1, and a global batch size of 512.
75#
76
77# memory requirement table: https://www.reddit.com/r/LocalLLaMA/comments/18o5u0k/helpful_vram_requirement_table_for_qlora_lora_and/
78# https://unsloth.ai/blog/mistral-benchmark
79# mistral 7B lora 19.3GB (r16 a16, batch_size 4: 16GB, proj layers, seq 2048)
80#
81gradient_accumulation_steps: 4 # LIMO: 1, magnum-v4: 2
82micro_batch_size: 1 # LIMO: 1, Critique Fine-Tuning: 512, magnum-v4: 1
83num_epochs: 2 # LIMO: 15, Critique Fine-Tuning: 1, magnum-v4: 2
84optimizer: adamw_bnb_8bit
85lr_scheduler: cosine # LIMO, Critique Fine-Tuning, magnum-v4: cosine
86learning_rate: 5.0e-6 # LIMO and Critique Fine-Tuning: 5.0e-6, magnum-v4: 1.0e-5
87
88train_on_inputs: false
89group_by_length: false
90bf16: auto
91fp16:
92tf32: false
93
94gradient_checkpointing: true
95early_stopping_patience:
96resume_from_checkpoint:
97local_rank:
98logging_steps: 1
99xformers_attention:
100flash_attention: true
101
102warmup_steps: 40
103evals_per_epoch: 6
104eval_batch_size: 1
105eval_sample_packing: false
106eval_max_new_tokens: 2048
107saves_per_epoch: 3
108debug:
109deepspeed: deepspeed_configs/zero1.json
110# deepspeed: ./deepspeed_configs/zero3_bf16.json
111weight_decay: 0.1
112fsdp:
113fsdp_config:
114special_tokens:
115 pad_token: <pad>| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.0202 | 0.0014 | 1 | 2.0575 |
| 1.0964 | 0.1666 | 117 | 1.1130 |
| 1.0717 | 0.3332 | 234 | 1.0510 |
| 0.9258 | 0.4998 | 351 | 1.0206 |
| 1.0243 | 0.6664 | 468 | 1.0057 |
| 1.0016 | 0.8330 | 585 | 0.9957 |
| 1.0392 | 0.9996 | 702 | 0.9826 |
| 0.9533 | 1.1652 | 819 | 0.9817 |
| 0.9055 | 1.3318 | 936 | 0.9747 |
| 0.9562 | 1.4984 | 1053 | 0.9713 |
| 0.8825 | 1.6650 | 1170 | 0.9691 |
| 0.8486 | 1.8316 | 1287 | 0.9682 |
| 0.9038 | 1.9982 | 1404 | 0.9681 |