Repository navigation
Studio MOSS rope offset test: skip on Triton ASTSource APIs it does not drive (3.2, 3.3) - #18592
Merged
Merged
Conversation
…ot drive (3.2, 3.3)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
tests/test_diffusion_moss_qk_rope_offsets.py(#18141) checks that the MOSS q/k RMSNorm + RoPE kernel uses int64 row offsets by lowering it to TTIR offline. Its skip guard only checked that the NVIDIA backend loads, then drove the Triton 3.6+ compiler API:ASTSource(..., constexprs=...)andmake_ir(target, options, ...). On Triton 3.2ASTSourcetakesconstants=and the test fails withTypeError: ASTSource.__init__() got an unexpected keyword argument 'constexprs'. On Triton 3.3make_irhas no target argument and the test fails withTypeError: ASTSource.make_ir() takes 5 positional arguments but 6 were given. Both versions pass the backend check, so the test reports a failure without ever checking any arithmetic.Change
The module-level guard also checks that
ASTSource.__init__takesconstexprsandASTSource.make_irtakestarget, and skips the module when either is missing. The TTIR lowering and the int64 assertions are unchanged.Tests
tests/test_diffusion_moss_qk_rope_offsets.py, run with each Triton:constexprsTypeError, skips here.make_irTypeError, skips here.arith.mulirow offsets.Suite (
tests/test_diffusion_moss_qk_rope_offsets.py,tests/test_diffusion_moss_speed_routes.py, Triton 3.8 on CPU): 17 passed, 0 failed on both main and this branch.Not proven here
The arithmetic is not checked on Triton 3.2 or 3.3 at all: the test skips there. Driving those APIs would not help yet, because on Triton 3.3 the kernel itself fails to lower offline with
NameError('tl is not defined')(_qk_rope_kernel()importstlinside the factory). That is a separate kernel issue and this change does not touch it. Triton 3.4, 3.5 and 3.6 were not run here.