Repository navigation
Conversation
pggPL
force-pushed
the
small_community_fixes
branch
from
November 24, 2026 15:37
8e87d75 to
87a3694
Compare
cast_gated_tma rejected outputs that also request column-wise data, but the delayed-scaling dispatcher already fills column-wise data with a transpose of the row-wise output after either kernel runs. On SM 12.0, which needs both usages because it has no non-TN FP8 GEMM, every delayed-scaling gated activation with an FP8 output hit this assertion. Require row-wise data instead, which is what the kernel writes. Signed-off-by: rlaope <105429536+rlaope@users.noreply.github.com> Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
On SM 12.0/12.1 the exact RHT test takes the column-wise reference from TE's unfused kernel, including the padded scale rows and columns that the reference quantizer does not compute. That padding is not initialized, so the test failed whenever the column-wise scale tensor is padded (e.g. 256x272, 304x304, 32x128). Slice the native reference to the shape of the reference quantizer's scales, as the test already does for the kernel under test. Signed-off-by: rlaope <105429536+rlaope@users.noreply.github.com> Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
TE runs pure FP32 GEMMs with CUBLAS_COMPUTE_32F_FAST_TF32, while the PyTorch reference modules in test_numerics.py use TF32 only when torch.backends.cuda.matmul.allow_tf32 is set. NGC containers set it via TORCH_ALLOW_TF32_CUBLAS_OVERRIDE=1, so CI passes; on a plain PyTorch install it is False and 72 FP32 cases of test_linear_accuracy, test_layernorm_linear_accuracy and test_layernorm_mlp_accuracy fail. Enable TF32 matmul for the PyTorch references through an autouse fixture, next to the existing BF16 reduced-precision fixture, and restore the previous value afterwards. Signed-off-by: rlaope <105429536+rlaope@users.noreply.github.com> Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…12.x FusedMLAQUpProjRopeQuant.is_supported() only checks for compute capability major >= 10, so it returns True on SM 12.0. The cuDNN frontend gemm_proj_rope_mxfp8 kernel needs tcgen05, which SM 12.x does not have, and run() then raises "GemmProjRopeMxfp8 requires SM100+ compute capability with tcgen05 (not cc 12.x)". Callers that use is_supported() to choose the fused path crash instead of falling back. Return False for major == 12, matching the cuDNN frontend has_tcgen05() check. Signed-off-by: rlaope <105429536+rlaope@users.noreply.github.com> Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…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> Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Linear._load_from_state_dict added state_dict["bias"] = None when the op had no bias. torch leaves None parameters out of the keys it expects, so a strict load reported the added key as unexpected, and a bias-free te.ops.Linear could not load the state dict it had just saved. Add the bias key only when the op has a bias. Run TestCheckpointing.test_linear with bias=False as well as bias=True. Signed-off-by: Bindu Bhargava R Chintam <bindubhargavareddy@gmail.com> Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
The installation guide tells users to set NVTE_CUDA_INCLUDE_PATH when CUDA headers are not in a standard location, but nothing reads that variable. The runtime header lookup in common/util/cuda_runtime.cpp (used for NVRTC) reads NVTE_CUDA_INCLUDE_DIR, which is also the name documented in envvars.rst and set by transformer_engine/common/__init__.py. Use the correct name and link it to its envvars.rst entry. Fixes NVIDIA#3882 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: ArchanaChetan07 <apatil@sandiego.edu> Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…hape is omitted Fixes NVIDIA#3888 Signed-off-by: lxcxjxhx <lxcxjxhx@users.noreply.github.com> Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
pggPL
force-pushed
the
small_community_fixes
branch
from
November 24, 2026 15:40
87a3694 to
163a8eb
Compare
pggPL
marked this pull request as ready for review
November 24, 2026 15:55
pggPL
requested review from
Oleg-Goncharov,
cyanguwa,
ksivaman and
timmoon10
as code owners
November 24, 2026 15:55
Collaborator
Author
|
/te-ci pytorch core L0 |
Contributor
[Medium impact] The PR appears safe to merge, with no actionable new issues found. SummaryThis PR bundles small fixes for quantization, checkpoint loading, MoE token shapes, tests, and installation docs.
No actionable new issues were found in the change since the previous review. No previous review threads were supplied. GPU tests were not run. Reviews (2) · Last reviewed commit: "[PyTorch] Restrict FusedMLAQUpProjRopeQu..." · Reviewed by Greptile |
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
This was referenced Nov 24, 2026
This branch has not been deployed
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
Aggregates several small, self-contained community fixes (bug fixes, test fixes, and a docs fix) with original commit authorship preserved so they can be validated and landed together.
Fixes #3914, #3882, #3888
Type of change
Changes
cast_gated_tma(requiring row-wise allocation instead of rejecting column-wise output; dispatcher already transposes).tests/pytorch/nvfp4/test_nvfp4_rht_quantize_exact.pyon SM 12.x so uninitialized scale padding is not compared.torch.backends.cuda.matmul.allow_tf32via an autouse fixture intests/pytorch/test_numerics.pyso PyTorch FP32 references match TE's TF32 GEMM precision outside NGC containers.FalsefromFusedMLAQUpProjRopeQuant.is_supported()outside SM 10.x (major != 10), matching the cuDNN FEtcgen05requirement.@_XFAIL_HOPPER_COLUMNWISE_PER_TENSOR_FP8to the remaining five columnwise-only per-tensor FP8 tests intests/pytorch/test_hybrid_quantization.pyand mention SM 12.x in the reason.load_state_dictforte.ops.Linear(bias=False)by not insertingstate_dict["bias"] = None, and parametrizeTestCheckpointing.test_linearoverbias=(False, True).NVTE_CUDA_INCLUDE_PATH->:envvar:`NVTE_CUDA_INCLUDE_DIR`indocs/installation.rst.restore_shapeis omitted #3892 (@lxcxjxhx): infer token count fromrow_id_map.shape[0]instead ofinp.shapewhenrestore_shape is Noneinmoe_unpermute(..., map_type="mask"), and verify inferred shape intest_permutation_mask_map_capacity_drop.Checklist: