progressive-llm/config/training_config_13b.yaml
2025-07-10 18:09:14 +09:00

83 lines
No EOL
2.3 KiB
YAML

experiment:
name: "progressive_reasoning_13b"
base_model: "meta-llama/Llama-3.2-13B" # 13B model
output_dir: "./outputs"
use_wandb: true
wandb_project: "matsuo-llm-comp-2025"
model:
load_in_4bit: true
bnb_4bit_compute_dtype: "bfloat16"
bnb_4bit_use_double_quant: true
bnb_4bit_quant_type: "nf4"
device_map: "auto"
gradient_checkpointing: true
use_flash_attention_2: true
progressive_stages:
- name: "basic_cot"
description: "Basic Chain-of-Thought reasoning"
dataset_path: "./data/basic_cot/"
adapter_config:
r: 32 # Higher rank for 13B models
lora_alpha: 64
lora_dropout: 0.05
target_modules: ["q_proj", "v_proj", "k_proj", "o_proj"]
init_lora_weights: true
training:
num_epochs: 1
per_device_batch_size: 1
gradient_accumulation_steps: 32
learning_rate: 1e-4
warmup_steps: 100
max_length: 2048
bf16: true
max_grad_norm: 0.3
weight_decay: 0.001
- name: "math_reasoning"
description: "Mathematical reasoning with think tags"
dataset_path: "./data/math_reasoning/"
inherit_from: "basic_cot"
adapter_config:
r: 64
lora_alpha: 128
lora_dropout: 0.05
target_modules: ["q_proj", "v_proj", "k_proj", "o_proj", "gate_proj", "up_proj", "down_proj"]
init_lora_weights: true
training:
num_epochs: 2
per_device_batch_size: 1
gradient_accumulation_steps: 64
learning_rate: 8e-5
warmup_steps: 200
max_length: 4096
bf16: true
max_grad_norm: 0.3
- name: "complex_reasoning"
description: "Complex multi-step reasoning"
dataset_path: "./data/complex_reasoning/"
inherit_from: "math_reasoning"
adapter_config:
r: 128 # Maximum rank for 13B models
lora_alpha: 256
lora_dropout: 0.05
target_modules: ["q_proj", "v_proj", "k_proj", "o_proj", "gate_proj", "up_proj", "down_proj"]
init_lora_weights: true
training:
num_epochs: 1
per_device_batch_size: 1
gradient_accumulation_steps: 128
learning_rate: 5e-5
warmup_steps: 300
max_length: 8192
bf16: true
max_grad_norm: 0.3
evaluation:
benchmarks:
- "HLE"
- "Do-Not-Answer"
save_results: true
results_dir: "./outputs/evaluation_results"