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

megatron-swift 微调 Qwen3.5 MoE 模型的环境问题

Open ZMY-0309 opened this issue 8 months ago • 4 comments

Checklist / 检查清单

  • [x] I have searched existing issues, and this is a new question or discussion topic. / 我已经搜索过现有的 issues,确认这是一个新的问题与讨论。

Question Description / 问题描述

I am using the following environment to perform SFT on the Qwen3.5 MoE model:

transformers=5.2.0 transformer-engine=2.12.0 flash-attn=2.8.3

The following error occurred when transformer-engine imported flash-attn:

Image

Online research suggests this might be due to version incompatibility between transformer-engine and flash-attn. Could you please advise on how to adjust this, or could there be other causes?

ZMY-0309 avatar Mar 17 '26 08:03 ZMY-0309

Uninstall TE (xxx_torch, xxx_cu12) completely, then add --no-cache-dir when installing.

Jintao-Huang avatar Mar 17 '26 09:03 Jintao-Huang

我试了,还是报一样的错误,请问还有其他的解决方案吗

ZMY-0309 avatar Mar 17 '26 13:03 ZMY-0309

This issue has been inactive for over 3 months and will be automatically closed in 7 days. If this issue is still relevant, please reply to this message.

github-actions[bot] avatar Jun 16 '26 00:06 github-actions[bot]

This issue has been automatically closed due to inactivity. If needed, it can be reopened.

github-actions[bot] avatar Oct 26 '26 00:10 github-actions[bot]