Repository navigation
gpu-gates: pin the MXFP8 select refusal by kind and tensor - #728
Merged
juliankang4 merged 1 commit intoOct 23, 2026
Merged
Conversation
This was referenced Oct 23, 2026
Closed
Contributor
There was a problem hiding this comment.
Verdict: CLEAN: The gate checks the intended MXFP8 refusal without depending on the supported-format list.
Checked
- Duplicates: 0 new functions, types or constants. Grep found no second refusal clause. No dryer pairs were available.
- Complexity: crapper flagged no functions. The changed clause adds a typed match.
- Silent failure: 2 result paths followed. Missing or wrongly loaded tensors abort; successful launches and unrelated errors fail the clause.
- Tests: static mutation check: replacing the refusal at crates/gpu/src/site.rs:356 with
Ok(())makes the match at crates/gpu-gates/src/bin/gate_mxfp8.rs:560 false and produces a nonzero gate exit. Missing tensors and wrong resident formats fail the precondition. - Gates: the replaced comparison has a dated PIN and reason. The PR includes the failing base run and passing GB10 run.
- Escape catalog: no C1–C4 patterns match.
- Performance: only gate code changes; no inference hot path changes.
Notes
dryer did not run. The GPU gate was not rerun during this review.
Card check: gpu-evidence. This pull request changes crates/gpu-gates/src/bin/gate_mxfp8.rs and carries a gate run on the author's card, which counts as verified.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
Collaborator
Author
|
The review is done and the contribution check passed, so I'm merging this. |
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.
MXFP8 expert-select 거부 검사가 지원 형식 목록의 문장 대신 오류 종류, 발생 함수, 텐서 이름을 확인하도록 고쳤습니다.
Fixes #712. Part of #565. Tracked in #699.
What and why
On main, the
sel.refusalclause ofgate_mxfp8reports a failure, although the refusal it checks is correct. The clause compared the refusal's text witha q8_0 or fp8_b128 stack. Commit5b302b32a(#682) added NVFP4 tosite::resident_sel_f32, so the diagnostic inGpuError::Tensor.neednow readsa q8_0, fp8_b128 or nvfp4 stack. The gate kept the old list, andjust gate-gpu-mxfp8reports that one clause as a failure on every run. The refusal branch incrates/gpu/src/site.rsdid not change.The clause now keeps the real
Resultand requiresErr(GpuError::Tensor { what: "site::resident_sel_f32", name, .. })with the name of the MXFP8 tensor under test. A launch that succeeds, a different error kind, or an error from another function or tensor no longer satisfies it. The supported-format list inneedis no longer compared, so the next format added to the select path cannot break the clause again.Tensoralso covers a missing tensor, so the clause first calls the existingsite::siteto confirm the tensor is there with the expected size and MXFP8 resident format. A missing or wrongly loaded tensor stops there and is not mistaken for the format refusal. The text comparison is replaced under a datedPIN, with its reason beside it.Closes #712
Release notes: Under the hood: the MXFP8 gate checks the expert-select refusal by error kind and tensor name, so it no longer breaks when the supported-format list changes.
Code shape
site::sitefor its precondition and the existingGpuErrortype. It adds no helper. I searchedcrates/andtools/for the old and new wording; the old text was expected only here. The same phrase incrates/gguf/src/card.rsis documentation of how the two formats load, not a check.Resultis matched, not turned into a string, and a wrong kind, function or tensor name does not satisfy the clause.PINfor the replaced comparison.PIN(2026-10-23):line gives the reason.cargo fmtis clean on what I touched. I did not runcargo clippyon this head.Duplication found or removed (
path:line): none.What I ran
The commit is
555c968fon upstream main648dd751. It changescrates/gpu-gates/src/bin/gate_mxfp8.rsonly (9 insertions, 8 deletions).cargo fmt --all -- --checkandgit diff --checkare clean on this commit.FAIL-first and the fixed run, on a DGX Spark (hardware below). The same command ran on main and on this commit, base first:
On main the refusal is the right one: the right function names the right tensor, and only the old format list differed. On this commit the gate completes.
I did not run
cargo clippy,just mac-staticorjust affectedon this head. The diff touches only the gate's refusal check, and no production code, kernel or public signature changes.What I ran into
This does not block the PR. I ran the gate on one GB10 card only; it has not run on an RTX 5090 machine. The changed clause checks an error value on the host side of
site::resident_sel_f32, which does not depend on the card architecture, so I expect the same result there.Hardware (if the change is for a machine)
DGX Spark,
nvidia-smilines from the run above:AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.