-
Notifications
You must be signed in to change notification settings - Fork 375
4/x: mx cleanup: use kernel_preference instead of gemm_kernel_choice #3385
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
base: gh/vkuzo/169/head
Are you sure you want to change the base?
Conversation
🔗 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 SEVsThere 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. |
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
| m = nn.Linear(32, 128, bias=bias, dtype=torch.bfloat16, device="cuda") | ||
| m_mx = copy.deepcopy(m) | ||
|
|
||
| if emulate: |
There was a problem hiding this comment.
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
Summary:
Moves MX workflows to use torchao-wide
kernel_preference.Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags: