ms-swift
ms-swift copied to clipboard
相同模型Qwen3VL/Qwen3.5使用swift4.10版本训练grounding任务,比swift3.10指标要差很多~
Checklist / 检查清单
- [x] I have searched existing issues, and this is a new bug report. / 我已经搜索过现有的 issues,确认这是一个新的 bug report。
Bug Description / Bug 描述
Qwen3.5训练Grounding任务指标比Qwen3VL差很多,下面是我的训练参数,是参数设置不对吗?
Qwen3VL使用swift4.1.0训练也是类似的结果(grounding指标不升反降),指标比swift3.10要差非常多
MASTER_PORT=$(shuf -i 29500-29999 -n 1) \
NPROC_PER_NODE=4 \
CUDA_VISIBLE_DEVICES=0,1,2,3 \
swift sft \
--model /s_nfs/dongyongfei/model/Qwen3.5/Qwen3.5-4B \
--model_type qwen3_5 \
--dataset xxx \
--val_dataset xxx \
--tuner_type lora \
--enable_thinking false \
--add_non_thinking_prefix true \
--loss_scale ignore_empty_think \
--torch_dtype bfloat16 \
--num_train_epochs 30 \
--per_device_train_batch_size 2 \
--per_device_eval_batch_size 2 \
--learning_rate 3e-5 \
--warmup_ratio 0.03 \
--lr_scheduler_type cosine\
--lora_rank 8 \
--lora_alpha 32 \
--target_modules all-linear \
--freeze_vit false \
--gradient_accumulation_steps 48 \
--gradient_checkpointing true \
--eval_steps 50 \
--save_steps 50 \
--logging_steps 10 \
--max_length 10000 \
--output_dir xxx \
--dataloader_num_workers 6 \
--predict_with_generate true \
--greater_is_better true\
--max_new_tokens 256\
--fp16 false \
--bf16 true\
--eval_on_start false\
--deepspeed zero1 \
--save_only_model false \
--use_liger_kernel \
--attn_impl flash_attn \
--eval_metric byd_action \
--metric_for_best_model eval_all_extact_match_acc
How to Reproduce / 如何复现
python3.12+swift4.1.0.dev,相同训练数据和grounding任务,swift4.1.0要比swift3.10差很多
Additional Information / 补充信息
No response
更新代码后,正常了~
更新代码后,正常了~
您好,问下您这边更了什么代码
更新代码后,正常了~
同问,请问您这边更新了什么