Skip to content

Tests: FP8 routing tests pin the NVIDIA path so they pass on ROCm runners - #15838

Merged
danielhanchen merged 1 commit into
mainfrom
fp8-route-tests-rocm
Oct 28, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fp8-route-tests-rocm

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

On the AMD gfx1151 runner (ROCm 7.13, torch 2.11), 11 FP8 routing tests from #15584 and #15791 fail:

  • 6 in tests/test_fp8_dequant_max_rows.py: assert None == 'dequant';
  • 5 in tests/test_fp8_rowwise_direct_route.py: assert 'compiled' == 'direct'.

_fp8_rowwise_direct_route deliberately keeps the direct path off on ROCm (torch.version.hip is None). The tests check the NVIDIA routing table but read the real torch.version.hip, so on a ROCm build the route they expect never happens. FP8 outputs on that card are bit-identical before and after those PRs, and the routing did not change.

Change

  • Both routing fixtures pin torch.version.hip = None, so the NVIDIA routing table is tested on every runner.
  • New test_rocm_keeps_the_compiled_path sets a HIP version and checks that inference calls at 32 and 128 rows stay on the compiled path.

Tests

  • On CPU: 22 passed, 2 skipped.
  • With torch.version.hip = "7.0" set before pytest (simulating the ROCm runner): main fails exactly these 11 tests (11 failed, 10 passed), and this branch passes all 22.

@danielhanchen danielhanchen self-assigned this Oct 28, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T19:39:45.569710Z f462757 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. Nice work!

Reviewed commit: f462757aa6

ℹ️ 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 338616d into main Oct 28, 2026
7 of 21 checks passed
@danielhanchen
danielhanchen deleted the fp8-route-tests-rocm branch October 28, 2026 19:52
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