1# base_model: mistralai/Mistral-Nemo-Base-2407
2base_model: kakaocorp/kanana-1.5-2.1b-instruct-2505
3
4# Enable to use mistral-common tokenizer
5# tokenizer_use_mistral_common: true
6
7# Automatically upload checkpoint and final model to HF
8# hub_model_id: username/custom_model_name
9
10load_in_8bit: false
11load_in_4bit: false
12
13# datasets:
14# - path: fozziethebeat/alpaca_messages_2k_test
15# type: chat_template
16
17datasets:
18 - path: train.jsonl
19 type: chat_template
20
21dataset_prepared_path: preprocess
22val_set_size: 0.01
23output_dir: ./outputs
24dataloader_num_workers: 56
25
26adapter:
27# adapter: lora
28lora_model_dir:
29
30# lora_r: 32
31# lora_alpha: 16
32# lora_dropout: 0.05
33# lora_target_linear: true
34# lora_target_modules:
35# - gate_proj
36# - down_proj
37# - up_proj
38# - q_proj
39# - v_proj
40# - k_proj
41# - o_proj
42
43# lora_mlp_kernel: true
44# lora_qkv_kernel: true
45# lora_o_kernel: true
46
47sequence_len: 8192
48sample_packing: false
49eval_sample_packing: false
50pad_to_sequence_len: false
51
52plugins:
53 - axolotl.integrations.liger.LigerPlugin
54liger_rope: true
55liger_rms_norm: true
56liger_swiglu: true
57liger_fused_linear_cross_entropy: true
58
59wandb_project: fastcampus
60wandb_entity:
61wandb_watch:
62wandb_name: fc-proj1-test01
63wandb_log_model:
64hub_model_id: amphora/fc-proj1-test01
65
66gradient_accumulation_steps: 4
67micro_batch_size: 16
68num_epochs: 3
69optimizer: adamw_torch_fused
70# optimizer: adamw_bnb_8bit
71lr_scheduler: cosine
72learning_rate: 2e-5
73
74bf16: auto
75tf32: false
76
77# torch_compile: auto
78# torch_compile_backend: inductor
79
80gradient_checkpointing:
81resume_from_checkpoint:
82logging_steps: 1
83flash_attention: true
84# flash_attn_rms_norm: true
85# flash_attn_cross_entropy: true
86# flash_attn_fuse_qkv: true
87flash_attn_fuse_mlp: true
88
89warmup_ratio: 0.05
90# warmup_steps: 10
91weight_decay: 0.01
92evals_per_epoch: 0
93saves_per_epoch: 1
94
95# deepspeed: deepspeed_configs/zero3_bf16.json
96# fsdp:
97# # - shard_grad_ops
98# - full_shard
99# - auto_wrap
100# fsdp_config:
101# fsdp_state_dict_type: FULL_STATE_DICT
102# fsdp_transformer_layer_cls_to_wrap: LlamaDecoderLayer
103# fsdp_activation_checkpointing: true
104
105fsdp:
106 # - shard_grad_ops
107 - full_shard
108 - auto_wrap
109fsdp_config:
110 fsdp_backward_prefetch: BACKWARD_PRE
111 fsdp_state_dict_type: SHARDED_STATE_DICT
112 fsdp_transformer_layer_cls_to_wrap: LlamaDecoderLayer
113 fsdp_activation_checkpointing: true