Skip to content

Conversation

@vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Nov 24, 2025

Summary:

Moves MX workflows to use torchao-wide kernel_preference.

  • MXGemmKernelPreference.CUBLAS -> KernelPreference.AUTO
  • MXGemmKernelPreference.CUTLASS -> KernelPreference.AUTO
  • MXGemmKernelPreference.EMULATED -> KernelPreference.EMULATED

Test Plan:

pytest test/prototype/mx_formats/ -s -x

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 24, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

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

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

Moves MX workflows to use torchao-wide `kernel_preference`.

* MXGemmKernelPreference.CUBLAS -> KernelPreference.AUTO
* MXGemmKernelPreference.CUTLASS -> KernelPreference.AUTO
* MXGemmKernelPreference.EMULATED -> KernelPreference.EMULATED

Test Plan:

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

Reviewers:

Subscribers:

Tasks:

Tags:
ghstack-source-id: 726b651
ghstack-comment-id: 3572455799
Pull-Request: #3385
@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 Nov 24, 2025
@vkuzo vkuzo added topic: improvement Use this tag if this PR is an improvement (doesn't fit into any of the other categories) topic: bc-breaking Use this tag if this PR breaks backward compatibility labels Nov 24, 2025
m = nn.Linear(32, 128, bias=bias, dtype=torch.bfloat16, device="cuda")
m_mx = copy.deepcopy(m)

if emulate:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can just use KernelPreference in parametrize as well I think

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: bc-breaking Use this tag if this PR breaks backward compatibility 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.

3 participants