-
Notifications
You must be signed in to change notification settings - Fork 42
feat: add Gemma4 31B support for standalone and vLLM plugin mode on MI355X #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ClementLinCF
wants to merge
19
commits into
main
Choose a base branch
from
gemma4-dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
786dd86
fix(plugin): support Gemma 4 attention with head_dim > 256 fallback
ClementLinCF c9add87
fix(plugin): handle Gemma 4 heterogeneous head_dim in extend path
ClementLinCF bf992a1
feat: add Gemma 4 standalone support for ATOM server mode
ClementLinCF 2a3e8f9
feat: use AITER rmsnorm kernel in _Gemma4RMSNorm, enable CUDA graphs
ClementLinCF bb4a53f
refactor: consolidate SDPA fallbacks, add logging to silent exceptions
ClementLinCF db594dc
fix(plugin): CUDA graph output corruption (accept_output_buffer)
ClementLinCF 2cf338d
Register gemma4
MHYangAMD 354fb32
Revert "fix(plugin): CUDA graph output corruption (accept_output_buff…
MHYangAMD db7ecfc
refactor: remove Gemma4 config fallback, use HF transformers native s…
ClementLinCF 3fdac16
docs: restore deleted comments in model_runner.py KV cache logic
ClementLinCF 320faa1
docs: restore deleted comments in attention_mha.py
ClementLinCF 953e43f
style: align gemma4.py file header with project convention
ClementLinCF a618cf9
style: align gemma4_moe_gelu.py file header with project convention
ClementLinCF fa2f5af
cleanup: remove unused gemma4_ops_optimization.py
ClementLinCF c669a10
cleanup: remove unused gemma4_moe_gelu.py
ClementLinCF 108145d
docs: restore deleted comment in attention_mha.py plugin path
ClementLinCF ac0fc6a
feat: add MXFP4 quantization support for Gemma4
ClementLinCF 82a77d8
perf: fuse residual add + RMSNorm in Gemma4DecoderLayer
ClementLinCF 2a52286
fix: use 256-byte K alignment for MXFP4 FP4 GEMM when 128-align has n…
ClementLinCF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_get_per_layer_kv_dims()computes per-rank KV heads viamax(num_*_kv_heads // ws, 1)without the divisibility checks used in_get_num_kv_heads(). For unsupported TP sizes this can silently under-allocate KV cache and fail later in harder-to-debug ways; consider mirroring the same>= ws/% ws == 0assertions for both sliding and global KV heads.