Skip to content

Studio MOSS rope offset test: skip on Triton ASTSource APIs it does not drive (3.2, 3.3) - #18592

Merged
danielhanchen merged 1 commit into
mainfrom
fix-recheck-moss-ttir-test
Nov 20, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-recheck-moss-ttir-test

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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=...) and make_ir(target, options, ...). On Triton 3.2 ASTSource takes constants= and the test fails with TypeError: ASTSource.__init__() got an unexpected keyword argument 'constexprs'. On Triton 3.3 make_ir has no target argument and the test fails with TypeError: 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__ takes constexprs and ASTSource.make_ir takes target, 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:

  • Triton 3.2.0 (torch 2.6 CPU): fails on main with the constexprs TypeError, skips here.
  • Triton 3.3.0 (torch 2.7.1 CPU): fails on main with the make_ir TypeError, skips here.
  • Triton 3.8.0 (torch 2.14 CPU): passes on main and here, still lowering the kernel and checking the arith.muli row 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() imports tl inside 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T07:34:24.696274Z 20f3d5e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 20f3d5ef02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@danielhanchen
danielhanchen merged commit 4771177 into main Nov 20, 2026
@danielhanchen
danielhanchen deleted the fix-recheck-moss-ttir-test branch November 20, 2026 08:29
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.

1 participant