Views
No views yet
0.5.3.dev01# 学習のベースモデルに関する設定
2base_model: google/gemma-2-2b
3model_type: AutoModelForCausalLM
4tokenizer_type: AutoTokenizer
5
6# 学習後のモデルのHFへのアップロードに関する設定
7hub_model_id: Aratako/gemma-2-2b-axolotl-sft-v1.0
8hub_strategy: "end"
9push_dataset_to_hub:
10hf_use_auth_token: true
11
12# Liger Kernelの設定(学習の軽量・高速化)
13plugins:
14 - axolotl.integrations.liger.LigerPlugin
15liger_cross_entropy: false
16liger_rope: true
17liger_rms_norm: true
18liger_swiglu: true
19liger_fused_linear_cross_entropy: true
20
21# 量子化に関する設定
22load_in_8bit: false
23load_in_4bit: true
24
25# SFTに利用するchat templateの設定
26chat_template: gemma
27
28# 学習データセットの前処理に関する設定
29datasets:
30 - path: kanhatakeyama/ramdom-to-fixed-multiturn-Calm3
31 split: 20240806filtered[0:10000]
32 type: chat_template
33 field_messages: messages
34 message_field_role: role
35 message_field_content: content
36 - path: llm-jp/magpie-sft-v1.0
37 split: train[0:10000]
38 type: chat_template
39 field_messages: conversations
40 message_field_role: role
41 message_field_content: content
42 - path: Aratako/magpie-qwen2.5-32b-reasoning-100k-formatted
43 split: train[0:10000]
44 type: chat_template
45 field_messages: conversations
46 message_field_role: role
47 message_field_content: content
48
49# データセット、モデルの出力先に関する設定
50shuffle_merged_datasets: true
51dataset_prepared_path: /workspace/data/sft-data
52output_dir: /workspace/data/models/gemma-2-2b-axolotl-sft-v1.0
53
54# valid datasetのサイズ
55val_set_size: 0.05
56
57# LoRAに関する設定(フルファインチューニングしたい場合は全て空欄にする)
58adapter: qlora
59lora_model_dir:
60lora_r: 16
61lora_alpha: 32
62lora_dropout: 0.05
63lora_target_linear: true
64lora_fan_in_fan_out:
65
66# wandbに関する設定
67wandb_project: axolotl
68wandb_entity: aratako-lm
69wandb_watch:
70wandb_name: sft-lora-1
71wandb_log_model:
72
73# 学習に関する様々な設定
74sequence_len: 4096
75sample_packing: true
76eval_sample_packing: false
77pad_to_sequence_len: true
78
79gradient_accumulation_steps: 16
80micro_batch_size: 1
81num_epochs: 1
82optimizer: paged_adamw_8bit
83lr_scheduler: cosine
84cosine_min_lr_ratio: 0.1
85learning_rate: 3e-4
86
87train_on_inputs: false
88group_by_length: false
89bf16: auto
90fp16:
91tf32: false
92
93gradient_checkpointing: false
94early_stopping_patience:
95auto_resume_from_checkpoints: true
96local_rank:
97logging_steps: 1
98xformers_attention:
99flash_attention: true
100
101save_strategy: steps
102save_steps: 50
103save_total_limit: 2
104
105warmup_steps: 10
106eval_steps: 50
107eval_batch_size: 1
108eval_table_size:
109eval_max_new_tokens:
110debug:
111deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json
112weight_decay: 0.01
113fsdp:
114fsdp_config:
115special_tokens:
116 pad_token: <pad>| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.3251 | 0.3726 | 50 | 1.3855 |
| 1.3015 | 0.7452 | 100 | 1.3378 |