Skip to content

fix(gemma4): reuse upstream's post-MLP step instead of inlining it - #269

Merged
hjh0119 merged 1 commit into
modelscope:mainfrom
hjh0119:fix/gemma4-mlp-post-step
Nov 25, 2026
Merged

hjh0119 merged 1 commit into
modelscope:mainfrom
hjh0119:fix/gemma4-mlp-post-step

Conversation

@hjh0119

@hjh0119 hjh0119 commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Restores the mlp_norm handle release and the pre-MLP layernorm recompute discard that gemma4's forked _forward_mlp had dropped, across mcore 0.18-0.20.

@hjh0119
hjh0119 merged commit 63f975d into modelscope:main Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants