-
Notifications
You must be signed in to change notification settings - Fork 367
add support for torch.chunk to float8tensor
#3334
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: main
Are you sure you want to change the base?
Conversation
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3334
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 027eadf with merge base b5587e4 ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Summary: This is needed for LLaMa 4 MoE model weight loading, such as here: https://github.com/vllm-project/vllm/blob/34553b9d2702dd2a27a578fec819e88e76dcbfb4/vllm/model_executor/models/llama4.py#L455 Test Plan: ``` pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -x -k chunk ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 843a40b ghstack-comment-id: 3523627462 Pull-Request: #3334
Summary: This is needed for LLaMa 4 MoE model weight loading, such as here: https://github.com/vllm-project/vllm/blob/34553b9d2702dd2a27a578fec819e88e76dcbfb4/vllm/model_executor/models/llama4.py#L455 Test Plan: ``` pytest test/quantization/quantize_/workflows/float8/test_float8_tensor.py -s -x -k chunk ``` Reviewers: Subscribers: Tasks: Tags: ghstack-source-id: 54dd86f ghstack-comment-id: 3523627462 Pull-Request: #3334
| @implements(aten.split.Tensor) | ||
| def _(func, types, args, kwargs): | ||
| tensor, split_size_or_sections, dim = args | ||
| assert isinstance(split_size_or_sections, int), "unimplemented" |
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: better error message?
Summary:
This is needed for LLaMa 4 MoE model weight loading,
such as here:
https://github.com/vllm-project/vllm/blob/34553b9d2702dd2a27a578fec819e88e76dcbfb4/vllm/model_executor/models/llama4.py#L455
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags: