Open
test: stabilize flaky int4-sym fp16 MoE prefill accuracy test#2033
Conversation
Copilot created this pull request from a session on behalf of
a32543254
July 9, 2026 08:03
View session
Copilot stopped work on behalf of
a32543254 due to an error
July 9, 2026 12:58
Collaborator
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
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.
Description
test_accuracy_int4[False-dtype0](int4-sym + fp16) intest/test_moe_prefill_accuracy.pyfails intermittently onmain. The XPU MoE prefill kernel does not guarantee a deterministic reduction order, so long K-reductions (up to K=14336) occasionally produce a few outliers per ~2M outputs that cross the tight fp16 tolerance bound. A pinned RNG seed cannot mask this because the nondeterminism originates in the kernel, not the input.Changes:
_tol_for_dtypepreviously applied the1e-1floor only to bf16, leaving the known-problematic int4-sym+fp16 path at the tight bound. It now applies the floor to fp16 as well.The reference and kernel share the same dequantized weights, so the widened floor still catches real matmul/dequant regressions while absorbing accumulator-order noise. Only quantized paths routed through
_tol_for_dtypeare affected; the unquantized fp path (_TOL_FP) is unchanged.Type of Change
Bug fix
Related Issues
Checklist Before Submitting
/azp run Unit-Test-CUDA-AutoRound.