-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[#13580][fix] AutoDeploy: Support Gemma3n/4 E2B variants #13630
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b61e1e4
[None][fix] correct Gemma4 shared KV eager path
bmarimuthu-nv 872335f
[None][fix] support Gemma4 shared KV with triton paged attention
bmarimuthu-nv a34c875
[None][fix] wire Gemma3n conditional factory
bmarimuthu-nv 5af200a
[None][fix] clarify Gemma4 cudagraph input path
bmarimuthu-nv 2103510
[None][fix] address Gemma4 review feedback
bmarimuthu-nv f1ce4b4
[None][fix] preserve triton paged SDPA dispatch
bmarimuthu-nv b84f431
[None][fix] restore triton SDPA comment context
bmarimuthu-nv f02971e
added CI tests
bmarimuthu-nv ce4f573
[None][fix] support Gemma4 E2B shared KV cudagraph
bmarimuthu-nv f5e6f7e
move tests to correct directory
bmarimuthu-nv 2f09d51
register in registry
bmarimuthu-nv 5ad4a21
CI and review fixes
bmarimuthu-nv 65ad2c1
lint fixes
bmarimuthu-nv 81ab8d4
[None][fix] use native Gemma tokenizers in AutoDeploy
bmarimuthu-nv c8d88b5
fix cudagraph extent
bmarimuthu-nv 1bdba70
address review comments
bmarimuthu-nv 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
30 changes: 30 additions & 0 deletions
30
examples/auto_deploy/model_registry/configs/gemma4_e2b.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # Gemma 4 E2B-it — text-only AD export path. | ||
| # Uses triton paged attention backend: supports head_dim=512 (global_head_dim), | ||
| # paged KV cache, CUDA-graph-compatible, FlashDecoding for decode. | ||
| model_factory: Gemma4ForConditionalGeneration | ||
| # Use the instruction-tuned tokenizer/chat template for end-to-end prompting. | ||
| tokenizer: google/gemma-4-E2B-it | ||
| attn_backend: triton_paged | ||
| compile_backend: torch-cudagraph | ||
| cuda_graph_config: | ||
| batch_sizes: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] | ||
| max_num_tokens: 8192 | ||
| max_batch_size: 512 | ||
| max_seq_len: 8192 | ||
| enable_chunked_prefill: true | ||
| kv_cache_config: | ||
| enable_block_reuse: false | ||
| free_gpu_memory_fraction: 0.8 | ||
| transforms: | ||
| compile_model: | ||
| piecewise_enabled: true | ||
| mlir_elementwise_fusion: | ||
| # MLIR elementwise kernels currently corrupt piecewise CUDA graph replay for Gemma4 E2B. | ||
| enabled: false | ||
|
bmarimuthu-nv marked this conversation as resolved.
|
||
| gather_logits_before_lm_head: | ||
| enabled: true | ||
| fuse_gemms: | ||
| enabled: true | ||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.