Views
No views yet
0.15.0.dev01# === Model Configuration ===
2base_model: rpDungeon/new-apertus-12b-untrained
3load_in_8bit: false
4load_in_4bit: false
5
6# === HF Configuration ===
7hub_model_id: BirdToast/new-apertus-12b-s1
8hub_strategy: "every_save"
9output_dir: ckpts
10
11# === Wandb Tracking ===
12wandb_project: ApertusV4
13# wandb_entity: [WANDB_ENTITY]
14wandb_name: 12b-cpt-s1
15
16# === Training Setup ===
17num_epochs: 1
18micro_batch_size: 4
19gradient_accumulation_steps: 1
20sequence_len: 512
21#sequence_parallel_degree: 2
22#heads_k_stride: 1
23sample_packing: true
24#pad_to_sequence_len: true
25#temperature: 0.7
26#max_steps: 10
27# === Evaluation ===
28#val_set_size: 100
29#evals_per_epoch: 10
30#eval_steps: 20
31#max_steps: 60
32#eval_table_size:
33#eval_max_new_tokens: 128
34#eval_sample_packing: true
35eval_strategy: "no"
36
37# === LoRA Configuration ===
38adapter:
39lora_model_dir:
40lora_r: 128
41lora_alpha: 16
42lora_dropout: 0.05
43lora_target_linear: true
44lora_target_modules:
45# - up_proj
46# - down_proj
47# - gate_proj
48# - q_proj
49# - v_proj
50# - k_proj
51# - o_proj
52# - input_layernorm
53# - post_attention_layernorm
54# - embed_tokens
55# - lm_head
56
57lora_fan_in_fan_out:
58peft_use_rslora: true
59lora_modules_to_save:
60# - embed_tokens
61# - lm_head
62#fix_untrained_tokens: true
63#lora_mlp_kernel: true
64#lora_qkv_kernel: true
65#lora_o_kernel: true
66unfrozen_parameters:
67 - model.layers.(2[4-9]|3[0-9]).*
68# - model.layers.[0-9+].mlp.up_proj
69# - model.layers.[0-9+].mlp.down_proj
70# - model.layers.[0-9+].feedforward_layernorm
71# - embed_tokens
72# - lm_head
73# === Hyperparameter Configuration ===
74#optimizer: apollo_adamw_layerwise
75#warmup_steps: 0
76warmup_ratio: 0.025
77#optimizer: adamw_torch_fused
78optimizer: came_pytorch
79optim_args:
80 enable_stochastic_rounding: true
81 enable_cautious: true
82 enable_cautious_weight_decay: true
83# enable_8bit: true
84# Apollo-mini configuration:
85#optim_args: "proj=random,rank=128,scale=128.0,scale_type=tensor,update_proj_gap=100"
86# Regular Apollo configuration:
87# optim_args:
88#optim_target_modules: all_linear
89learning_rate: 1e-4
90lr_scheduler: cosine
91#cosine_min_lr_ratio: 0.2
92#lr_scheduler: cosine_with_min_lr
93#lr_scheduler_kwargs:
94# cosine_min_lr: 1e-6
95weight_decay: 0.01
96max_grad_norm: 1.0
97#warmup_steps: 0
98#warmup_ratio: 0.025
99
100
101# === Data Configuration ===
102#
103#chat_template: jinja
104chat_template: chatml
105special_tokens:
106# eos_token: "<|im_end|>"
107# eos_token: "</s>"
108#tokenizer_use_mistral_common: true
109shuffle_merged_datasets: true
110datasets:
111 - path: rpDungeon/marvin
112 data_files: marvin_full_text_only.json
113 type: completion
114
115dataset_prepared_path: last_run_prepared
116
117
118# === Plugins ===
119plugins:
120 - axolotl.integrations.liger.LigerPlugin
121 - axolotl.integrations.cut_cross_entropy.CutCrossEntropyPlugin
122
123# === Hardware Optimization ===
124gradient_checkpointing: true
125liger_rope: true
126liger_rms_norm: true
127liger_layer_norm: true
128liger_glu_activation: true
129#liger_fused_linear_cross_entropy: true
130cut_cross_entropy: true
131
132#deepspeed: ../axolotl/deepspeed_configs/zero2.json
133
134# === Checkpointing ===
135#save_steps: 2
136saves_per_epoch: 1
137save_total_limit: 1
138
139# === Advanced Settings ===
140bf16: auto
141flash_attention: true
142train_on_inputs: false
143group_by_length: false
144save_safetensors: true
145logging_steps: 1
146seed: 69
147gc_steps: 10
148