Repository navigation
Conversation
…sts as xfail Five hybrid quantization tests quantize per-tensor FP8 columnwise-only (NVFP4 rowwise + FP8 columnwise, or columnwise_source=rowwise_dequantized) but lack the _XFAIL_HOPPER_COLUMNWISE_PER_TENSOR_FP8 marker that the other tests on this path carry. Where non-TN FP8 GEMM is unsupported (Hopper, SM 12.x) they fail with "Columnwise-only per-tensor FP8 quantization is not implemented" instead of xfailing. Add the marker to those tests and mention SM 12.x in its reason. The marker is strict and conditioned on is_non_tn_fp8_gemm_supported(), so the tests still run and must pass on SM 10.x. Signed-off-by: rlaope <105429536+rlaope@users.noreply.github.com>
Contributor
[Low impact] The PR appears safe to merge. SummaryAdds the existing conditional expected-failure marker to five hybrid quantization tests.
Reviews (1) · Last reviewed commit: "[PyTorch] Mark the remaining columnwise-..." · Reviewed by Greptile |
8 of 13 tasks
Collaborator
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
tests/pytorch/test_hybrid_quantization.pyhas five tests that fail on SM 12.0 with:They all build the reversed hybrid (NVFP4 rowwise + per-tensor FP8 columnwise), or use
columnwise_source="rowwise_dequantized". Where non-TN FP8 GEMM is unsupported, that quantizes FP8 columnwise-only, whichcheck_per_tensor_fp8_quantize_output()rejects on purpose (tracked in #3158). The other tests on this path already carry_XFAIL_HOPPER_COLUMNWISE_PER_TENSOR_FP8, which isxfail(condition=not is_non_tn_fp8_gemm_supported(), raises=NotImplementedError, strict=True). These five do not, so on any GPU without non-TN FP8 GEMM (Hopper, and SM 12.x, whereis_non_tn_fp8_gemm_supported()is also False) they fail instead of xfailing:TestHybridQuantize::test_sub_storage_types_reversedTestHybridDequantize::test_dequantize_reversed_close_to_originalTestHybridReversedDirection::test_nvfp4_row_fp8_col_full_fwd_bwdTestHybridCpuOffloadPushPop::test_push_pop_with_columnwise_onlyTestHybridGroupedLinearValidation::test_hybrid_split_quantize_honors_rowwise_dequantized_sourceType of change
Changes
@_XFAIL_HOPPER_COLUMNWISE_PER_TENSOR_FP8to the five tests above.not is_non_tn_fp8_gemm_supported()) is also true there.The marker is strict and conditional, so on SM 10.x these tests still run and must pass. Where they xfail, they must raise exactly
NotImplementedError, so any other failure still shows up.Validation
Hardware: RTX PRO 6000 Blackwell Max-Q (SM 12.0), driver 590.48.01, CUDA 13.0.88, PyTorch 2.14.1+cu130, TE source build at a6393d0.
python -m pytest tests/pytorch/test_hybrid_quantization.py:All 5 failures on main are the
NotImplementedErrorabove. I have no Hopper or SM 10.x card, so I have not run it there. Thestrict=Truemarker is conditioned the same way as on the existing tests, so on SM 10.x these five run exactly as before.Checklist: