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

Enhance support for gemma-4

Open mccatec opened this issue 5 months ago • 5 comments

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:

  1. gemma-4 do not support FA2, so I fallback to sdpa which is too slow;
  2. Do not support padding_free, as a result I cannot use sequence_parallel to decrease GPU memory consumption;
  3. No agent template support currently.

I use pip installed ms-swift 4.3.0 with cu128 & torch2.8

Pull Request / Pull Request 信息

No response

mccatec avatar Jun 10 '26 14:06 mccatec

agent_template: https://github.com/modelscope/ms-swift/pull/9532

Jintao-Huang avatar Jun 11 '26 02:06 Jintao-Huang

FA2, padding_free: https://github.com/Dao-AILab/flash-attention/issues/2427

Jintao-Huang avatar Jun 11 '26 02:06 Jintao-Huang

+1

Minami-su avatar Jul 10 '26 07:07 Minami-su

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 Oct 10 '26 00:10 github-actions[bot]

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

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