Views
No views yet
0.6.01# === Model Configuration ===
2base_model: Columbidae/mixed-model-prune-52
3load_in_8bit: false
4load_in_4bit: true
5
6# === HF Configuration ===
7hub_model_id: Columbidae/mixed-model-prune-trained-ws
8hub_strategy: "every_save"
9
10# === Training Setup ===
11num_epochs: 1
12micro_batch_size: 1
13#eval_batch_size: 1
14gradient_accumulation_steps: 4
15sequence_len: 4096
16sample_packing: true
17pad_to_sequence_len: true
18
19# === Evaluation ===
20#val_set_size: 100
21eval_strategy: "no"
22#evals_per_epoch: 10
23eval_table_size:
24eval_max_new_tokens: 256
25eval_sample_packing: true
26
27# === LoRA Configuration ===
28adapter: qlora
29lora_model_dir:
30lora_r: 64
31lora_alpha: 32
32lora_dropout: 0.5
33lora_target_linear:
34lora_fan_in_fan_out:
35lora_target_modules:
36 - gate_proj
37 - down_proj
38 - up_proj
39 - q_proj
40 - v_proj
41 - k_proj
42 - o_proj
43
44# === Hyperparameter Configuration ===
45optimizer: paged_ademamix_8bit #apollo_adamw
46# Apollo-mini configuration:
47#optim_args: "proj=random,rank=1,scale=128.0,scale_type=tensor,update_proj_gap=200"
48# Regular Apollo configuration:
49# optim_args:
50#optim_target_modules: all_linear
51learning_rate: 1e-5
52lr_scheduler: cosine
53weight_decay: 0.01
54warmup_ratio: 0.05
55
56
57# === Data Configuration ===
58datasets:
59 - path: Columbidae/merge-glue-4k
60 data_files: conversation-glue-4k.json
61 type: chat_template
62 split: train
63 field_messages: conversations
64 message_field_role: from
65 message_field_content: value
66 - path: Columbidae/merge-glue-4k
67 data_files: completion-glue-4k.json
68 type: completion
69 split: train
70 field: text
71
72dataset_prepared_path: last_run_prepared
73chat_template: tokenizer_default
74# Example custom template:
75# chat_template: jinja
76# chat_template_jinja: |
77# {{- bos_token }}{%- for message in messages %}
78# {%- if message['role'] == 'system' %}
79# {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }}
80# {%- elif message['role'] == 'user' %}
81# {{- '[INST]' + message['content'] + '[/INST]' }}
82# {%- elif message['role'] == 'assistant' %}
83# {{- message['content'] + eos_token }}
84# {%- endif %}
85# {%- endfor %}
86
87# === Plugins ===
88plugins:
89 - axolotl.integrations.liger.LigerPlugin
90# - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
91
92# === Hardware Optimization ===
93gradient_checkpointing: unsloth
94gradient_checkpointing_kwargs:
95 use_reentrant: false
96liger_rope: true
97liger_rms_norm: true
98liger_glu_activation: true
99liger_fused_linear_cross_entropy: true
100unsloth_cross_entropy_loss: true
101#cut_cross_entropy: true
102# Only if using multiple GPUs:
103deepspeed: axolotl/deepspeed_configs/zero3_bf16.json
104
105# === Wandb Tracking ===
106wandb_project: Qwen-27
107# wandb_entity: [WANDB_ENTITY]
108# wandb_name: [WANDB_RUN_NAME]
109
110# === Checkpointing ===
111saves_per_epoch: 2
112save_total_limit: 2
113
114# === Advanced Settings ===
115output_dir: ./ckpts
116bf16: auto
117flash_attention: true
118train_on_inputs: false
119group_by_length: false
120save_safetensors: true
121logging_steps: 1
122gc_steps: 10
123seed: 69