Views
No views yet
0.8.01# === Model Configuration ===
2base_model: THUDM/GLM-4-32B-0414 # e.g. "mistralai/Mistral-Small-24B-Instruct-2501"
3load_in_8bit: false
4load_in_4bit: true
5
6# === Training Setup ===
7num_epochs: 2
8micro_batch_size: 3
9gradient_accumulation_steps: 2
10sequence_len: 8192
11sample_packing: true
12pad_to_sequence_len: true
13
14# === Hyperparameter Configuration ===
15optimizer: adamw_8bit
16# Apollo-mini configuration:
17#optim_args: "proj=random,rank=1,scale=128.0,scale_type=tensor,update_proj_gap=200"
18# Regular Apollo configuration:
19# optim_args:
20#optim_target_modules: all_linear
21learning_rate: 1e-5
22lr_scheduler: rex
23weight_decay: 0.01
24warmup_ratio: 0.05
25
26# === LoRA Configuration ===
27adapter: qlora
28lora_r: 16
29lora_alpha: 32
30lora_dropout: 0.25
31lora_target_modules:
32lora_target_linear: true
33
34# === Data Configuration ===
35datasets:
36 - path: allura-org/inkmix-v3.0
37 type: chat_template
38 split: train
39 field_messages: conversations
40 message_field_role: from
41 message_field_content: value
42 train_on_eos: all
43
44dataset_prepared_path: last_run_prepared
45chat_template: jinja
46chat_template_jinja: |
47 [gMASK]<sop>{%- for msg in messages %}{%- if msg.role == 'system' %}<|system|>
48 {{ msg.content }}{%- elif msg.role == 'user' %}<|user|>
49 {{ msg.content }}{%- elif msg.role == 'assistant' %}<|assistant|>
50 {{ msg.content }}{%- endif %}{%- endfor %}{% if add_generation_prompt %}<|assistant|>{% else %}<|user|>{% endif %}
51
52# === Plugins ===
53plugins:
54 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
55
56# === Hardware Optimization ===
57gradient_checkpointing: offload
58gradient_checkpointing_kwargs:
59 use_reentrant: false
60cut_cross_entropy: true
61deepspeed: deepspeed_configs/zero3_bf16.json
62
63# === Wandb Tracking ===
64wandb_project: glm4-32b-inkmix-v3
65
66# === Checkpointing ===
67saves_per_epoch: 2
68save_total_limit: 3
69
70# === Advanced Settings ===
71output_dir: /workspace/ckpts
72bf16: auto
73flash_attention: true
74train_on_inputs: false
75group_by_length: false
76logging_steps: 1
77trust_remote_code: true
78