Views
No views yet
0.8.0.dev01# 学習のベースモデルに関する設定
2base_model: google/gemma-2-2b
3model_type: AutoModelForCausalLM
4tokenizer_type: AutoTokenizer
5
6# 学習後のモデルのHFへのアップロードに関する設定
7hub_model_id: kazuyamaa/gemma-2-2b-sft-lora
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: kazuyamaa/multi-language-messages-01
31 split: train
32 type: chat_template
33 field_messages: messages
34 message_field_role: role
35 message_field_content: content
36 - path: kazuyamaa/code-translate-google_messages
37 split: train
38 type: chat_template
39 field_messages: messages
40 message_field_role: role
41 message_field_content: content
42 - path: kazuyamaa/code_x_glue_cc_code_refinement_messages
43 split: train
44 type: chat_template
45 field_messages: messages
46 message_field_role: role
47 message_field_content: content
48 - path: kazuyamaa/CodeTranslatorLLM-Code-Translation_messages
49 split: train
50 type: chat_template
51 field_messages: messages
52 message_field_role: role
53 message_field_content: content
54 - path: kazuyamaa/CodeTranslatorLLM-Code-Translation_messages
55 split: train
56 type: chat_template
57 field_messages: messages
58 message_field_role: role
59 message_field_content: content
60
61# データセット、モデルの出力先に関する設定
62shuffle_merged_datasets: true
63dataset_prepared_path: /workspace/data/sft-data
64output_dir: /workspace/data/models/gemma-2-2b-sft
65
66# valid datasetのサイズ
67val_set_size: 0.05
68
69# LoRAに関する設定(フルファインチューニングしたい場合は全て空欄にする)
70adapter: qlora
71lora_model_dir:
72lora_r: 16
73lora_alpha: 32
74lora_dropout: 0.05
75lora_target_linear: true
76lora_fan_in_fan_out:
77
78# wandbに関する設定
79wandb_project: axolotl
80wandb_entity: kazukitakayamas051-securities-companies
81wandb_watch:
82wandb_name: sft-lora-1
83wandb_log_model:
84
85# 学習に関する様々な設定
86sequence_len: 4096
87sample_packing: true
88eval_sample_packing: false
89pad_to_sequence_len: true
90
91gradient_accumulation_steps: 16
92micro_batch_size: 1
93num_epochs: 1
94optimizer: paged_adamw_8bit
95lr_scheduler: cosine
96cosine_min_lr_ratio: 0.1
97learning_rate: 3e-4
98
99train_on_inputs: false
100group_by_length: false
101bf16: auto
102fp16:
103tf32: false
104
105gradient_checkpointing: false
106early_stopping_patience:
107auto_resume_from_checkpoints: true
108local_rank:
109logging_steps: 1
110xformers_attention:
111flash_attention: true
112
113save_strategy: steps
114save_steps: 50
115save_total_limit: 2
116
117warmup_steps: 10
118eval_steps: 50
119eval_batch_size: 1
120eval_table_size:
121eval_max_new_tokens:
122debug:
123deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json
124weight_decay: 0.01
125fsdp:
126fsdp_config:
127special_tokens:
128 pad_token: <pad>| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.6413 | 0.0019 | 1 | 0.6653 |
| 0.4044 | 0.0938 | 50 | 0.3591 |
| 0.3151 | 0.1877 | 100 | 0.2964 |
| 0.2916 | 0.2815 | 150 | 0.2508 |
| 0.2053 | 0.3753 | 200 | 0.2177 |
| 0.1833 | 0.4692 | 250 | 0.1907 |
| 0.1789 | 0.5630 | 300 | 0.1711 |
| 0.1414 | 0.6568 | 350 | 0.1529 |
| 0.129 | 0.7506 | 400 | 0.1420 |
| 0.1153 | 0.8445 | 450 | 0.1344 |
| 0.1309 | 0.9383 | 500 | 0.1289 |