Views
No views yet
0.8.0.dev01# 学習のベースモデルに関する設定
2base_model: deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
3model_type: AutoModelForCausalLM
4tokenizer_type: AutoTokenizer
5
6# 学習後のモデルのHFへのアップロードに関する設定
7hub_model_id: kazuyamaa/DeepSeek-R1-Distill-Qwen-14B-axolotl-int-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: Aratako/Magpie-Tanuki-Qwen2.5-72B-Answered
37 split: train[0:10000]
38 type: chat_template
39 field_messages: messages
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 - path: Aratako/magpie-reasoning-llama-nemotron-70b-100k-filtered
49 split: train[0:10000]
50 type: chat_template
51 field_messages: conversations
52 message_field_role: role
53 message_field_content: content
54 - path: Aratako/Open-Platypus-Japanese-masked-formatted
55 split: train[0:10000]
56 type: chat_template
57 field_messages: conversations
58 message_field_role: role
59 message_field_content: content
60 - path: kanhatakeyama/wizardlm8x22b-logical-math-coding-sft_additional-ja
61 split: train[0:10000]
62 type: chat_template
63 field_messages: messages
64 message_field_role: role
65 message_field_content: content
66 - path: Aratako/magpie-ultra-v0.1-formatted
67 split: train[0:10000]
68 type: chat_template
69 field_messages: conversations
70 message_field_role: role
71 message_field_content: content
72 - path: Aratako/orca-agentinstruct-1M-v1-selected
73 split: train[0:10000]
74 type: chat_template
75 field_messages: messages
76 message_field_role: role
77 message_field_content: content
78 - path: Aratako/Synthetic-JP-EN-Coding-Dataset-801k-50k
79 split: train[0:10000]
80 type: chat_template
81 field_messages: messages
82 message_field_role: role
83 message_field_content: content
84
85# データセット、モデルの出力先に関する設定
86shuffle_merged_datasets: true
87dataset_prepared_path: /workspace/data/sft-data
88output_dir: /workspace/data/models/DeepSeek-R1-Distill-Qwen-14B-axolotl-int-v1.0
89
90# valid datasetのサイズ
91val_set_size: 0.05
92
93# LoRAに関する設定(フルファインチューニングしたい場合は全て空欄にする)
94adapter: qlora
95lora_model_dir:
96lora_r: 16
97lora_alpha: 32
98lora_dropout: 0.05
99lora_target_linear: true
100lora_fan_in_fan_out:
101
102# wandbに関する設定
103wandb_project: axolotl
104wandb_entity: kazukitakayamas051-securities-companies
105wandb_watch:
106wandb_name: sft-lora-1
107wandb_log_model:
108
109# 学習に関する様々な設定
110sequence_len: 4096
111sample_packing: true
112eval_sample_packing: false
113pad_to_sequence_len: true
114
115gradient_accumulation_steps: 16
116micro_batch_size: 1
117num_epochs: 1
118optimizer: paged_adamw_8bit
119lr_scheduler: cosine
120cosine_min_lr_ratio: 0.1
121learning_rate: 3e-4
122
123train_on_inputs: false
124group_by_length: false
125bf16: auto
126fp16:
127tf32: false
128
129
130gradient_checkpointing: false
131early_stopping_patience:
132auto_resume_from_checkpoints: true
133local_rank:
134logging_steps: 1
135xformers_attention:
136flash_attention: true
137
138save_strategy: steps
139save_steps: 50
140save_total_limit: 2
141
142warmup_steps: 10
143eval_steps: 50
144eval_batch_size: 1
145eval_table_size:
146eval_max_new_tokens:
147debug:
148deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json
149weight_decay: 0.01
150fsdp:
151fsdp_config:
152special_tokens:
153 pad_token: <pad>| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.1079 | 0.0015 | 1 | 1.0631 |
| 0.8387 | 0.0763 | 50 | 0.7640 |
| 0.7109 | 0.1526 | 100 | 0.7312 |
| 0.7324 | 0.2289 | 150 | 0.7155 |
| 0.8239 | 0.3051 | 200 | 0.7045 |
| 0.7019 | 0.3814 | 250 | 0.6967 |
| 0.8834 | 0.4577 | 300 | 0.6910 |
| 0.7097 | 0.5340 | 350 | 0.6857 |
| 0.6659 | 0.6103 | 400 | 0.6821 |
| 0.6755 | 0.6866 | 450 | 0.6785 |
| 0.6465 | 0.7628 | 500 | 0.6755 |
| 0.6697 | 0.8391 | 550 | 0.6735 |
| 0.8425 | 0.9154 | 600 | 0.6720 |
| 0.6461 | 0.9917 | 650 | 0.6711 |