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/code-trans-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: false
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 - path: kazuyamaa/CodeLlama-34b-Instruct-hf-synthetic-datasets
61 split: train
62 type: chat_template
63 field_messages: messages
64 message_field_role: role
65 message_field_content: content
66
67# データセット、モデルの出力先に関する設定
68shuffle_merged_datasets: true
69dataset_prepared_path: /workspace/data/sft-data
70output_dir: /workspace/data/models/code-trans-gemma-2-2b-sft-ver01
71
72# valid datasetのサイズ
73val_set_size: 0.05
74
75# LoRAに関する設定(フルファインチューニングしたい場合は全て空欄にする)
76adapter:
77lora_model_dir:
78lora_r:
79lora_alpha:
80lora_dropout:
81lora_target_linear:
82lora_fan_in_fan_out:
83
84# wandbに関する設定
85wandb_project: axolotl
86wandb_entity: kazukitakayamas051-securities-companies
87wandb_watch:
88wandb_name: sft-lora-2
89wandb_log_model:
90
91# 学習に関する様々な設定
92sequence_len: 4096
93sample_packing: true
94eval_sample_packing: false
95pad_to_sequence_len: true
96
97gradient_accumulation_steps: 16
98micro_batch_size: 1
99num_epochs: 1
100optimizer: paged_adamw_8bit
101lr_scheduler: cosine
102cosine_min_lr_ratio: 0.1
103learning_rate: 3e-4
104
105train_on_inputs: false
106group_by_length: false
107bf16: auto
108fp16:
109tf32: false
110
111gradient_checkpointing: false
112early_stopping_patience:
113auto_resume_from_checkpoints: true
114local_rank:
115logging_steps: 1
116xformers_attention:
117flash_attention: true
118
119save_strategy: steps
120save_steps: 50
121save_total_limit: 2
122
123warmup_steps: 10
124eval_steps: 50
125eval_batch_size: 1
126eval_table_size:
127eval_max_new_tokens:
128debug:
129deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json
130weight_decay: 0.01
131fsdp:
132fsdp_config:
133special_tokens:
134 pad_token: <pad>| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.6358 | 0.0019 | 1 | 0.6480 |
| 0.7695 | 0.0936 | 50 | 0.6026 |
| 0.5641 | 0.1871 | 100 | 0.4303 |
| 0.3587 | 0.2807 | 150 | 0.3163 |
| 0.2699 | 0.3742 | 200 | 0.2515 |
| 0.3096 | 0.4678 | 250 | 0.2050 |
| 0.1531 | 0.5613 | 300 | 0.1695 |
| 0.1314 | 0.6549 | 350 | 0.1437 |
| 0.1047 | 0.7485 | 400 | 0.1267 |
| 0.0923 | 0.8420 | 450 | 0.1139 |
| 0.0743 | 0.9356 | 500 | 0.1038 |