Views
No views yet
0.6.01# 学習のベースモデルに関する設定
2base_model: Kendamarron/Qwen2.5-4x0.5B-cpt
3model_type: AutoModelForCausalLM
4tokenizer_type: AutoTokenizer
5
6# 学習後のモデルのHFへのアップロードに関する設定
7hub_model_id: Kendamarron/Qwen2.5-4x0.5B-sft-v1
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: qwen_25
27
28# 学習データセットの前処理に関する設定
29datasets:
30 - path: Kendamarron/jimba-instruction-all
31 split: train
32 type: chat_template
33 field_messages: conversations
34 message_field_role: role
35 message_field_content: content
36 - path: Kendamarron/OpenMathInstruct-2-ja-CoT-only_thought
37 split: train
38 type: chat_template
39 field_messages: messages
40 message_field_role: role
41 message_field_content: content
42 - path: Aratako/Synthetic-JP-EN-Coding-Dataset-801k
43 split: train[0:10000]
44 type: chat_template
45 field_messages: messages
46 message_field_role: role
47 message_field_content: content
48 - path: llm-jp/magpie-sft-v1.0
49 split: train[0:30000]
50 type: chat_template
51 field_messages: conversations
52 message_field_role: role
53 message_field_content: content
54
55
56# データセット、モデルの出力先に関する設定
57shuffle_merged_datasets: true
58dataset_prepared_path: /workspace/data/sft-data
59output_dir: /workspace/data/models/Qwen2.5-4x0.5B-SFT
60
61# valid datasetのサイズ
62val_set_size: 0.005
63
64# wandbに関する設定
65wandb_project: Qwen2.5-4x0.5B
66wandb_entity: kendamarron
67wandb_watch:
68wandb_name: sft-v1
69wandb_log_model:
70
71# 学習に関する様々な設定
72sequence_len: 8192
73sample_packing: true
74eval_sample_packing: false
75pad_to_sequence_len: true
76
77gradient_accumulation_steps: 8
78micro_batch_size: 1
79num_epochs: 2
80optimizer: adamw_bnb_8bit
81lr_scheduler: cosine
82cosine_min_lr_ratio: 0.1
83learning_rate: 2e-5
84
85train_on_inputs: false
86group_by_length: false
87bf16: auto
88fp16:
89tf32: false
90
91gradient_checkpointing: false
92early_stopping_patience:
93auto_resume_from_checkpoints: true
94local_rank:
95logging_steps: 1
96xformers_attention:
97flash_attention: true
98
99saves_per_epoch: 1
100
101warmup_steps: 60
102eval_steps: 100
103eval_batch_size: 1
104eval_table_size:
105eval_max_new_tokens:
106debug:
107deepspeed: deepspeed_configs/zero3_bf16.json
108weight_decay: 0.1
109fsdp:
110fsdp_config:
111special_tokens:
112 eos_token: "<|im_end|>"
113 pad_token: "<|end_of_text|>"
114tokens:
115 - "<|im_start|>"
116 - "<|im_end|>"| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.3068 | 0.0033 | 1 | 1.3071 |
| 1.1087 | 0.3309 | 100 | 1.0806 |
| 1.1393 | 0.6617 | 200 | 1.0488 |
| 1.0569 | 0.9926 | 300 | 1.0286 |
| 0.9902 | 1.3209 | 400 | 1.0215 |
| 0.9933 | 1.6518 | 500 | 1.0133 |
| 0.9706 | 1.9826 | 600 | 1.0085 |