ms-swift icon indicating copy to clipboard operation
ms-swift copied to clipboard

Qwen3.5-27B训练非常慢

Open zht8506 opened this issue 8 months ago • 5 comments

Checklist / 检查清单

  • [x] I have searched existing issues, and this is a new bug report. / 我已经搜索过现有的 issues,确认这是一个新的 bug report。

Bug Description / Bug 描述

同样的iteration数,qwen3.5-27B训练时长是qwen3-32b的5-6倍

How to Reproduce / 如何复现

无

Additional Information / 补充信息

No response

zht8506 avatar Mar 14 '26 04:03 zht8506

https://swift.readthedocs.io/zh-cn/latest/BestPractices/Qwen3_5-Best-Practice.html

try use packing

Jintao-Huang avatar Mar 14 '26 08:03 Jintao-Huang

更新一下,使用最新的flash attention可以提速到和qwen3-32b差不多

zht8506 avatar Mar 15 '26 02:03 zht8506

更新一下,使用最新的flash attention可以提速到和qwen3-32b差不多 @zht8506 请教下最新版是指attn_impl=flash_attention_3吗?感谢!

Sarahtorekryo avatar Mar 23 '26 12:03 Sarahtorekryo

是的,还需要flash linear attention。 flash_attn 2.8.3 flash-attn-3 3.0.0b1 flash-linear-attention 0.4.2 torch 2.8.0+cu128 torchaudio 2.8.0+cu128 torchvision 0.23.0+cu128

zht8506 avatar Mar 24 '26 10:03 zht8506

是的,还需要flash linear attention。 flash_attn 2.8.3 flash-attn-3 3.0.0b1 flash-linear-attention 0.4.2 torch 2.8.0+cu128 torchaudio 2.8.0+cu128 torchvision 0.23.0+cu128

@zht8506 您好,flash linear attention和flash_attn 都配置了,版本也相同,但是在训练qwen3.5-9B的时候比qwen3-9b慢不少,请问方便贴一下您的训练脚本吗

qy0110 avatar Mar 30 '26 13:03 qy0110