minimind-v/scripts/sft_vlm.sh

28 lines
721 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!/bin/bash
# 设置运行脚本的参数
python train_sft_vlm.py \
--out_dir="out" \
--epochs=6 \
--batch_size=8 \
--learning_rate=0.000001 \
--device="cuda:0" \
--dtype="bfloat16" \
# --use_wandb \ # 如果使用wandb,请取消注释
--wandb_project="MiniMind-V" \
--num_workers=8 \
--data_path="./dataset/sft_data.jsonl" \
--images_path="./dataset/sft_images" \
# --ddp \ # 如果使用DDP分布式训练,请取消注释
--accumulation_steps=1 \
--grad_clip=1.0 \
--warmup_iters=0 \
--log_interval=10 \
--save_interval=10 \
--local_rank=-1 \
# 模型参数
--dim=512 \
--n_layers=8 \
--max_seq_len=1536 \
--use_moe=False