-
Notifications
You must be signed in to change notification settings - Fork 252
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
multi-gpu fix #668
multi-gpu fix #668
Conversation
Not sure if you’ve already fully tested this, but tomorrow I will run some tests to see how things look similar to the old PR and will let you know. Really appreciate your work on this! |
Just confirmed this works perfectly using the recommended approach, i.e., model = AutoAWQForCausalLM.from_pretrained(model_path) Tested with both one and two GPUs (with the former being slightly faster likely due to less transfer). |
I reproduced two device error while quantizing qwen2 7b lora with the latest version. deps:
I set two cuda devices available and track this error. The AlignDevicesHook.execution_device attached on model.rotary_emb is still equal to cuda:1 after awq.models.qwen2.move_embed set model.rotary_emb to cuda:0. after removing this [move_embed] code, quantization task got executed. hope it helps |
sorry, I didn't follow the recommended usage examples. It works perfectly now. |
Closes #667 #666 #662 #652 #638 (if not, please let me know in a new issue with traceback + code).