-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
[Core] Refactor QKVCrossParallelLinear
implementation to support BNB 4-bit quantization
#14545
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
Conversation
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
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.
Thanks a lot for this!
I do agree the solution is a bit involved rn, but perhaps we can find a way to simplify it a bit..
Apart from the comments I left, I would also:
- add a test for
unsloth/Llama-3.2-11B-Vision-Instruct-unsloth-bnb-4bit
- make sure
VLLM_ATTENTION_BACKEND=XFORMERS python -m pytest -v tests/models/encoder_decoder/language/test_bart.py
is also still working (not the case for me locally rn)
Signed-off-by: Isotr0py <[email protected]>
Mllama is quite large for testing, and we won't test it by running inference on CI. I think testing it on whisper or bart might be a better selection. |
Signed-off-by: Isotr0py <[email protected]>
Sure but we already have tests for it, though they're guarded by the 48gb requirement so they won't run on L4, still it is useful to run them locally with a single command. |
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
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.
LGTM, also cc @mgoin
…B 4-bit quantization (vllm-project#14545) Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Richard Liu <[email protected]>
This PR has a regression, breaking support for amd/Llama-3.2-11B-Vision-Instruct-FP8-KV quantized models. @Isotr0py |
Oh, fp8 need to call |
…B 4-bit quantization (vllm-project#14545) Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Louis Ulmer <[email protected]>
…B 4-bit quantization (vllm-project#14545) Signed-off-by: Isotr0py <[email protected]>
…B 4-bit quantization (vllm-project#14545) Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Mu Huai <[email protected]>
QKVCrossParallelLinear
cc @NickLucche