Skip to content

Conversation

@vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Oct 24, 2025

Summary:

Adds support for inference mode and rank 3 inputs for nvfp4 inference

Test Plan:

pytest test/prototype/mx_formats/test_inference_workflow.py -s -x -k test_inference_workflow_nvfp4

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@vkuzo
Copy link
Contributor Author

vkuzo commented Oct 24, 2025

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 24, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 1e3d3e3 with merge base 53b5efd (image):
💚 Looks good so far! There are no failures yet. 💚

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

vkuzo added a commit that referenced this pull request Oct 24, 2025
Summary:

Adds support for inference mode and rank 3 inputs for nvfp4 inference

Test Plan:

```
pytest test/prototype/mx_formats/test_inference_workflow.py -s -x -k test_inference_workflow_nvfp4
```

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 459143d
ghstack-comment-id: 3441037282
Pull-Request: #3240
@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 Oct 24, 2025
@vkuzo vkuzo added the topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) label Oct 24, 2025
ids=lambda s: f"{s[0]}x{s[1]}x{s[2]}",
)
@pytest.mark.parametrize("use_inference_mode", [False, True])
@pytest.mark.parametrize("x_rank", [2, 3])
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe instead of x_rank, we can follow this:

((128,), 256, 128),
((32, 128), 64, 256),
?

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: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants