Enhance support for gemma-4
Checklist / 检查清单
- [x] I have searched existing issues, and this is a new feature request. / 我已经搜索过现有的 issues,确认这是一个新的 Feature Request。
Feature Request Description / Feature Request 描述
I tried to SFT gemma-4 with internal datasets today. There are several problems:
- gemma-4 do not support FA2, so I fallback to sdpa which is too slow;
- Do not support padding_free, as a result I cannot use sequence_parallel to decrease GPU memory consumption;
- No agent template support currently.
I use pip installed ms-swift 4.3.0 with cu128 & torch2.8
Pull Request / Pull Request 信息
No response
agent_template: https://github.com/modelscope/ms-swift/pull/9532
FA2, padding_free: https://github.com/Dao-AILab/flash-attention/issues/2427
+1
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.
This issue has been automatically closed due to inactivity. If needed, it can be reopened.