Repository navigation
feat(xla): add Gemma3n text runtime and dense PLE prefill - #892
Merged
Merged
Conversation
Implement nested configuration validation, physical shared-KV mapping, token and prepared dense-PLE prefill graphs, decode emission, and deterministic checkpoint weight schemas.\n\nRefs #876
Add the Gemma3n XLA graph family and runtime boundary needed for token and dense-PLE prefill, normal and ragged decode, explicit shared-KV cache mappings, AltUp/Laurel/per-layer GeGLU math, and request-owned PLE lifecycle handling. Embed a versioned CUDA Q4 projection and D=256 decode SDPA bundle with strict ABI guards and materialized fallbacks for unsupported dimensions, capacities, GQA layouts, and truncated sliding windows. Validate the implementation with synthetic structural and numerical oracles, real-IREE mixed-slot lifecycle coverage, actual CUDA QMV/SDPA probes, bounded layer traces, and the pinned E2B canonical gate with exact prefill, top1, and greedy parity. Refs #876
be-free-snowboy
pushed a commit
to freestylejs/snowbrain-mlxcel
that referenced
this pull request
Oct 27, 2026
* feat(xla): add Gemma3n text graph emitter Implement nested configuration validation, physical shared-KV mapping, token and prepared dense-PLE prefill graphs, decode emission, and deterministic checkpoint weight schemas.\n\nRefs lablup#876 * feat(xla): complete Gemma3n native text runtime Add the Gemma3n XLA graph family and runtime boundary needed for token and dense-PLE prefill, normal and ragged decode, explicit shared-KV cache mappings, AltUp/Laurel/per-layer GeGLU math, and request-owned PLE lifecycle handling. Embed a versioned CUDA Q4 projection and D=256 decode SDPA bundle with strict ABI guards and materialized fallbacks for unsupported dimensions, capacities, GQA layouts, and truncated sliding windows. Validate the implementation with synthetic structural and numerical oracles, real-IREE mixed-slot lifecycle coverage, actual CUDA QMV/SDPA probes, bounded layer traces, and the pinned E2B canonical gate with exact prefill, top1, and greedy parity. Refs lablup#876
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
kernel-v8/abi-v6CUDA Q4 projection and D=256 decode SDPA bundle, including dynamic decode-position push constants, exact scale-bit transport, bounded GQA/cache support, and materialized StableHLO fallbacks for unsupported dimensions, capacities, layouts, prefill, and truncated sliding windows.Correctness boundaries
Validation
cargo fmt --all -- --checkcargo clippy --release -p mlxcel-xla --lib --features diagnostics -- -D warningscargo clippy --release -p mlxcel --lib --features xla-iree,xla-diagnostics -- -D warningscargo test --release -p mlxcel-xla --lib --features diagnostics: 185 passed, 0 failed, 10 ignored.kernel-v8/abi-v6, normal and ragged native dispatch, materialized fallbacks, shared-KV mapping, AltUp, LAUREL, activation sparsity, GeGLU, plane collapse, and softcap.[236798, 236789].Closes #876