Files
wehub-resource-sync a203934033
Lint test / lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:58 +08:00

24 lines
637 B
Bash

# 70 GiB * 2
nproc_per_node=2
NPROC_PER_NODE=$nproc_per_node \
CUDA_VISIBLE_DEVICES=0,2 \
max_position_embeddings=10240 \
image_area=518400 \
swift sft \
--model BAAI/Emu3-Gen \
--tuner_type lora \
--dataset 'swift/TextCaps#40' \
--torch_dtype bfloat16 \
--num_train_epochs 10 \
--per_device_train_batch_size 1 \
--learning_rate 1e-5 \
--gradient_accumulation_steps 4 \
--warmup_ratio 0.03 \
--eval_steps 500 \
--save_steps 500 \
--save_total_limit 2 \
--logging_steps 5 \
--max_length 1024 \
--weight_decay 0.1 \
--gradient_checkpointing_kwargs '{"use_reentrant": false}'