Skip to content

Conversation

andrewor14
Copy link
Contributor

Summary: Fixes #2811

Test Plan:

pytest test/prototype/mx_formats/test_nvfp4_tensor.py -k to_copy

**Summary:** Fixes #2811

**Test Plan:**
```
pytest test/prototype/mx_formats/test_nvfp4_tensor.py -k to_copy
```
Copy link

pytorch-bot bot commented Aug 19, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2812

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 1 Cancelled Job

As of commit fb5e41c with merge base 083361b (image):

NEW FAILURE - The following job has failed:

CANCELLED JOB - The following job was cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@andrewor14 andrewor14 requested a review from drisspg August 19, 2025 23:51
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 19, 2025
@andrewor14 andrewor14 requested a review from vkuzo August 19, 2025 23:51
@andrewor14 andrewor14 added the topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) label Aug 19, 2025
@drisspg
Copy link
Contributor

drisspg commented Aug 19, 2025

Great catch!

@andrewor14 andrewor14 added topic: bug fix Use this tag for PRs that fix bugs and removed topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) labels Aug 20, 2025
@pytest.mark.skipif(
not TORCH_VERSION_AT_LEAST_2_8, reason="NVFP4 requires PyTorch 2.8+"
)
def test_nvfp4_to_copy():
Copy link
Contributor

@jerryzh168 jerryzh168 Aug 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we verify the effect for to_copy as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@andrewor14 andrewor14 merged commit 2fd06de into main Aug 22, 2025
16 of 18 checks passed
andrewor14 added a commit that referenced this pull request Aug 22, 2025
andrewor14 added a commit that referenced this pull request Aug 22, 2025
liangel-02 pushed a commit that referenced this pull request Aug 25, 2025
* Fix NVFP4 to_copy

**Summary:** Fixes #2811

**Test Plan:**
```
pytest test/prototype/mx_formats/test_nvfp4_tensor.py -k to_copy
```

* Update test_nvfp4_tensor.py
liangel-02 pushed a commit that referenced this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: bug fix Use this tag for PRs that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NVFP4Tensor to_copy is wrong?
3 participants