-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[Bugfix] Fix GPTQ and GPTQ Marlin CPU Offloading #7225
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, please make sure to run full CI as it is required to merge (or just use auto-merge). To run full CI, you can do one of these:
🚀 |
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, thanks for the fix!
Signed-off-by: Alvant <alvasian@yandex.ru>
FIX #7204
GPTQ Marlin was failing with cpu offloading enabled during the initial model creation because
qzeros
was specifically made as a"meta"
device parameter. There was no need for this so the simplest method was just to remove it. Another possible fix would be to make cpu offload not touch meta device tensors, but it seems meta isn't used anywhere else at the moment.Upon further testing, GPTQ would produce gibberish with cpu offloading because it shuffled the weights on first forward pass. This was fixed by moving that final preprocessing to
process_weights_after_loading