Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mx formats: create MXLinearConfig #1688

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

mx formats: create MXLinearConfig #1688

wants to merge 8 commits into from

Conversation

vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Feb 10, 2025

Summary:

Creating a config to make it easier to enable more configuration
options. This is important as we enable more functionality from
pytorch/pytorch#146414 in torchao.

Note that future PRs will flesh out the config, to keep PR size small.

Test Plan:

pytest test/prototype/mx_formats/ -s -x

Reviewers:

Subscribers:

Tasks:

Tags:

vkuzo added 6 commits January 29, 2025 20:32
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@vkuzo
Copy link
Contributor Author

vkuzo commented Feb 10, 2025

Copy link

pytorch-bot bot commented Feb 10, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 1064e83 with merge base d3306b2 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-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 Feb 10, 2025
vkuzo added a commit that referenced this pull request Feb 10, 2025
Summary:

Creating a config to make it easier to enable more configuration
options. This is important as we enable more functionality from
pytorch/pytorch#146414 in torchao.

Note that future PRs will flesh out the config, to keep PR size small.

Test Plan:

```
pytest test/prototype/mx_formats/ -s -x
```

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: d6b63187f87dee1467ba2a6377863023df7d9f6f
ghstack-comment-id: 2648821215
Pull Request resolved: #1688
@vkuzo vkuzo added the topic: not user facing Use this tag if you don't want this PR to show up in release notes label Feb 10, 2025
[ghstack-poisoned]
x_mx_dq = to_dtype(
x_mx._data,
x_mx._scale_e8m0,
x_mx._elem_dtype,
x_mx._block_size,
hp_dtype, # noqa: E501
use_fp4_custom_triton_dequant_kernel,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this needed? I did a quick pass through the RFC and didn't see any reference to this functionality

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we'll probably delete it in a future PR. The current PR is a refactor with no logic changes.

[ghstack-poisoned]
@vkuzo vkuzo changed the base branch from gh/vkuzo/23/head to main February 14, 2025 00:02
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: not user facing Use this tag if you don't want this PR to show up in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants