llm / examples /train_full /test_20k_samples_4gpu.yaml
dongxx1104's picture
Upload folder using huggingface_hub
db704cb verified
### model
model_name_or_path: /shared_workspace_mfs/ximing/Qwen3-8B-Base
trust_remote_code: true
### method
stage: sft
do_train: true
finetuning_type: full
deepspeed: /shared_workspace_mfs/ximing/LLaMA-Factory/examples/deepspeed/ds_z2_offload_config.json
### dataset
dataset: test_20k_samples_fixed
template: qwen3_nothink
cutoff_len: 65536
rope_scaling: yarn
overwrite_cache: true
preprocessing_num_workers: 8
dataloader_num_workers: 2
### output
output_dir: /shared_workspace_mfs/ximing/sft_test_20k_samples_4gpu
logging_steps: 10
save_strategy: steps
save_steps: 500
plot_loss: true
overwrite_output_dir: true
report_to: wandb
### train
per_device_train_batch_size: 1
gradient_accumulation_steps: 8 # 4 GPUs * 8 = 32 total batch size
learning_rate: 5e-5
num_train_epochs: 2
lr_scheduler_type: cosine
warmup_ratio: 0.1
bf16: true
ddp_timeout: 180000000
enable_liger_kernel: true
use_unsloth_gc: true
flash_attn: fa2