Views
No views yet
0.10.01# ---------------- 核心模型路径 ----------------
2base_model: /nfs/data/johnsonk/mllm_models/RAFT/Oct2/lr1e-5_epoch4_warm0.03_training_6k_GPU_0_1_2_3_20251001_172635/trained_model
3# output_dir: /work/nvme/bckr/wli18/RAFT/exp_1
4dataset_prepared_path: last_run_prepared
5# --------------- 数据集 ----------------------
6datasets:
7 # 训练集
8 - path: /home/johnsonk/RAFT/1exp/exp_1.0.2_questionize_high_school_physics_861_img/result/image_captions_2_sft_data_format_shuffled.jsonl
9 type: chat_template
10 split: train
11 field_messages: messages
12 message_property_mappings:
13 role: role
14 content: content
15val_set_size: 0.05
16
17# --------------- 训练超参 ---------------------
18
19sequence_len: 2048
20micro_batch_size: 1
21gradient_accumulation_steps: 8
22num_epochs: 3
23learning_rate: 1e-5
24optimizer: adamw_torch
25lr_scheduler: cosine
26warmup_ratio: 0.03
27weight_decay: 0.01
28
29
30
31# max_steps: 100 # <--- 新增此行,强制运行100步
32# --------------- 精度 / 显存 ------------------
33bf16: auto
34tf32: true
35gradient_checkpointing: true
36# gradient_checkpointing_kwargs:
37# use_reentrant: false
38
39# --------------- DeepSpeed --------------------
40deepspeed: /home/johnsonk/RAFT/configs/deepspeed_stage3.json
41
42# ----------- 关闭所有 LoRA / 量化 -------------
43# (配置已为全参数训练)
44# load_in_4bit: true
45# adapter: qlora
46# lora_r: 16
47# lora_alpha: 32
48# lora_target_modules:
49# - q_proj
50# - k_proj
51# - v_proj
52# - o_proj
53# - down_proj
54# - up_proj
55# lora_mlp_kernel: true
56# lora_qkv_kernel: true
57# lora_o_kernel: true
58
59# -------------- 其它杂项 ----------------------
60strict: false
61chat_template: qwen_25
62save_steps: 100000 # 每50个step保存一次
63
64# [关键] 设置最多只保留2个最新的checkpoint,自动删除旧的
65save_total_limit: 0
66
67evals_per_epoch: 1
68# saves_per_epoch: 100
69logging_steps: 1
70flash_attention: true
71
72
73### WandB ###
74report_to: wandb
75wandb_project: test_axolotl
76wandb_entity: johnson0213-ucla
77wandb_name: Qwen2.5-Coder-7B-TikZ-SFT-860-v1-3epoch-grad_acc8-lr1e-5
78
79
80
81| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0 | 0 | 1.0554 |
| 0.4585 | 1.0 | 23 | 0.4498 |
| 0.4266 | 2.0 | 46 | 0.4049 |