-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
load_in_8bit doesn't work when set device_map #29691
Comments
Pinging @SunMarc as well here! |
Hi @Vinkle-hzt, thanks for reporting. This should be fixed in the above PR ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Info
platform nvidia/cuda:12.1.0-devel-ubuntu22.04
python 3.10.3
transformers 4.38.2
Who can help?
@ArthurZucker and @younesbelkada
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
I hope when I set both
device_map
andquantization_config
, it will correctly load the quantized model, even if only the middle layers are map to GPU. Especially, in my example, I want layer.11 to layer.22 to be correctly loaded in int8.The text was updated successfully, but these errors were encountered: