Skip to content

[Model] Add Gemma 4 26B-A4B and 31B text decoders - #3603

Merged
akaashrp merged 4 commits into
mlc-ai:mainfrom
JCNTH:codex/gemma4-large-review
Nov 21, 2026
Merged

akaashrp merged 4 commits into
mlc-ai:mainfrom
JCNTH:codex/gemma4-large-review

Conversation

@JCNTH

@JCNTH JCNTH commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Add text-only support for Gemma 4 26B-A4B and 31B, with Hugging Face weight conversion and q0/q4 builds. Apply RoPE at each layer's original head dimension before packing the KV cache.

The WebGPU MoE path uses #3602. Wide FP32 prefill uses apache/tvm#21002 on Metal and apache/tvm#21012 on CUDA. CUDA graph capture uses apache/tvm#21013. FlashInfer 0.7.4 builds also need apache/tvm#21019 and flashinfer-ai/flashinfer#9681.

Keep projection, routing, and expert dispatch in the decoder. Exercise the weight loader directly and retain numerical comparisons against Transformers.
@akaashrp akaashrp changed the title [Model] Add Gemma4 26B and 31B text decoders [Model] Add Gemma 4 26B-A4B and 31B text decoders Nov 21, 2026
@akaashrp
akaashrp merged commit 8ec044d into mlc-ai:main Nov 21, 2026
2 checks 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