-
Notifications
You must be signed in to change notification settings - Fork 88
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
Whole model gets offloaded to the CPU #1122
Comments
Hello, we tried to solve the issue. This is what we did: Modified the calculate_offload_device_map function to better utilize available GPU memory. The changes include:
You can review changes in this commit: endic-sam928281@757adce. Caution Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only. Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account. |
same problem~ |
Hi @SzymonOzog and @endic-sam928281, I'm experiencing the same issue where the entire deepseek-r1 bf16 model gets offloaded to the CPU, even though I have 8 GPUs available. The first GPU only occupies 501M of memory, but the rest of the GPUs remain unused, resulting in very slow performance. I noticed that the calculate_offload_device_map function is not effectively utilizing the available GPU memory. Has there been any progress or updates on resolving this issue? Any guidance or workarounds would be greatly appreciated. My device is : a node with 8xH100 int8 W8A8 quantization Thanks! |
you can try with this, I solved the problem this way
|
Int8 W8A8 quantization is still very huge. Need 2 * 8 * A100 to deploy. Has anyone tried int4 w4a16 quantization ? |
I'm running the following code to calculate an offset map:
After it finishes it decides to offload the whole model to my CPU which results in a very slow compression.
vllm 0.7.1
transformers 4.48.2
accelerate 1.0.1
Running on a node with 8xH100
The text was updated successfully, but these errors were encountered: