Repository navigation
feat(xla): add multimodal RoPE position state - #894
Merged
Merged
Conversation
Represent 1D and three-axis prepared positions explicitly across StableHLO and the IREE C ABI. Track signed M-RoPE decode deltas independently per session and batch slot while preserving physical KV offsets and byte-exact 1D modules.
Build text-only position buffers from the runtime position mode so ragged M-RoPE slot prefill always uploads all three axes. Reuse the same contract for single and diagnostic prefill, and exercise text token admission, decode, cancellation, and mixed slot reuse against real IREE.
Member
Author
|
Addressed the central HIGH finding in
Validation:
|
An explicit mrope rope type previously fell through to the one-dimensional position schema when its section table was missing, silently changing multimodal semantics at load time. Require mrope_section for the explicit mrope type while preserving Qwen configurations that carry the section table with a default or omitted rope type. Cover the rejected and accepted schema variants in the config parser tests. Validation: focused M-RoPE config test, full mlxcel-xla library suite, Clippy with warnings denied, formatting, and diff checks. Refs #864
Member
Author
|
Addressed the M-RoPE config fail-open gap in
Validation:
Real-IREE impact review: this commit changes only config loading and its unit test; it does not modify StableHLO emission, the C ABI, VMFB execution, or runtime position state. The existing exact M-RoPE local-task gates use valid section-bearing configs, and the new regression confirms those configs still reach the same typed M-RoPE schema, so the existing real-IREE evidence remains applicable. |
be-free-snowboy
pushed a commit
to freestylejs/snowbrain-mlxcel
that referenced
this pull request
Oct 27, 2026
* feat(xla): add multimodal RoPE position state Represent 1D and three-axis prepared positions explicitly across StableHLO and the IREE C ABI. Track signed M-RoPE decode deltas independently per session and batch slot while preserving physical KV offsets and byte-exact 1D modules. * fix(xla): canonicalize ragged M-RoPE positions Build text-only position buffers from the runtime position mode so ragged M-RoPE slot prefill always uploads all three axes. Reuse the same contract for single and diagnostic prefill, and exercise text token admission, decode, cancellation, and mixed slot reuse against real IREE. * fix(xla): reject incomplete explicit M-RoPE configs An explicit mrope rope type previously fell through to the one-dimensional position schema when its section table was missing, silently changing multimodal semantics at load time. Require mrope_section for the explicit mrope type while preserving Qwen configurations that carry the section table with a default or omitted rope type. Cover the rejected and accepted schema variants in the config parser tests. Validation: focused M-RoPE config test, full mlxcel-xla library suite, Clippy with warnings denied, formatting, and diff checks. Refs lablup#864
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
Validation
cargo test -p mlxcel-core --lib multimodal --quietcargo test -p mlxcel-xla --lib --quietcargo clippy -p mlxcel-core -p mlxcel-xla --lib --tests -- -D warningscargo clippy -p mlxcel-xla --lib --tests --features iree -- -D warningscargo check -p mlxcel-xla --lib --features ireewith the pinned IREE CUDA toolchainlocal_task_mrope_prefill_decode_and_per_slot_deltas_executeagainst real IREElocal_task_prefill_and_decode_executetoken/prepared mixed-slot gate against real IREECloses #864