Skip to content

Bunch of small community fixes - #96

Draft
pggPL wants to merge 9 commits into
small_community_fixes_2_basefrom
small_community_fixes_2
Draft

pggPL wants to merge 9 commits into
small_community_fixes_2_basefrom
small_community_fixes_2

Conversation

@pggPL

@pggPL pggPL commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Description

Aggregates several small, self-contained community bug fixes with original commit authorship preserved so they can be validated and landed together.

Fixes NVIDIA#4025, NVIDIA#4021, NVIDIA#3975

Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Infra/Build change
  • Code refactoring

Changes

Checklist:

  • I have read and followed the contributing guidelines
  • The functionality is complete
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

bhargavchintam and others added 9 commits December 4, 2026 14:19
Linear._load_from_state_dict looked up basic_ops.N.weight and
basic_ops.N.bias without checking that they exist, so a state dict
without them raised KeyError from the hook, even with strict=False.
Copy a key only when the checkpoint has it, and leave missing params to
the basic ops that own them, so load_state_dict reports them as missing
keys like any other module.

Add TestCheckpointing.test_linear_missing_params.

Signed-off-by: Bindu Bhargava R Chintam <[email protected]>
Signed-off-by: Pawel Gadzinski <[email protected]>
…grouped scale swizzle

Signed-off-by: viking <[email protected]>
Signed-off-by: Pawel Gadzinski <[email protected]>
RMSNorm.op_onnx_forward computed x.pow(2).mean(-1) in the input dtype.
In FP16, any |x| >= 256 overflows x**2, and the export-mode forward and
the exported model return an all-zero row. Compute in FP32, as
onnx_layernorm already does for LayerNormLinear/LayerNormMLP with
RMSNorm, and cast back to the same dtype as before.

Signed-off-by: Netanel Nagar <[email protected]>
Signed-off-by: Pawel Gadzinski <[email protected]>
When torch.__trace has a handler (TORCH_TRACE, or pytest's log capture,
which attaches to non-propagating loggers since pytest 9.2), AOTAutograd
formats its forward metadata with repr() of the fake outputs. NVFP4Tensor
and MXFP8Tensor reprs dequantize their data, which adds guards such as
Eq(s0, 128) and specializes dims marked dynamic, so compiling an op that
returns these tensors raises ConstraintViolationError.

Return the metadata-only repr for fake or meta data, as Float8Tensor
already does, and add a regression test that installs a trace handler.

Signed-off-by: rlaope <[email protected]>
Signed-off-by: Pawel Gadzinski <[email protected]>

This branch has not been deployed

No deployments
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.

5 participants