-
Notifications
You must be signed in to change notification settings - Fork 342
enable select for NVFP4Tensor #3117
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/135/head
Are you sure you want to change the base?
Conversation
Stack from ghstack (oldest at bottom): |
Summary: This is useful for vLLM 2d -> 3d MoE weight surgery Test Plan: unit tests: ``` pytest test/prototype/mx_formats/ -s ``` Also, after this PR we can run a Qwen 1.5 MoE model quantized with nvfp4 in vLLM, with vllm-project/vllm#25480 Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: db79143 ghstack-comment-id: 3361104836 Pull-Request: #3117
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3117
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit b245367 with merge base 8955739 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Summary: This is useful for vLLM 2d -> 3d MoE weight surgery Test Plan: unit tests: ``` pytest test/prototype/mx_formats/ -s ``` Also, after this PR we can run a Qwen 1.5 MoE model quantized with nvfp4 in vLLM, with vllm-project/vllm#25480 Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 6d7d385 ghstack-comment-id: 3361104836 Pull-Request: #3117
new = old.__class__( | ||
old.qdata[index], | ||
old._scale_e4m3[index], | ||
old._block_size, |
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.
should a dim get knocked off block size after you select?
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.
currently block_size
is an integer for this tensor, 16 for NVFP4. If we change it to a multidimensional block, we'd have to update this code.
Summary:
This is useful for vLLM 2d -> 3d MoE weight surgery
Test Plan:
unit tests:
Also, after this PR we can run a Qwen 1.5 MoE model quantized with nvfp4
in vLLM, with vllm-project/vllm#25480
Reviewers:
Subscribers:
Tasks:
Tags: