-
Notifications
You must be signed in to change notification settings - Fork 64
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat2 in method wrapper_CUDA_bmm) #89
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
Comments
HItting the same issue with --multigpu and even without it |
Hi, there:
in quantize/omniquant.py |
Not use --multigpu, and change with:
if don't set |
I want to use 8 4090(24G) to quantize the W4A4 for llama-7b, but it will have this error. python main.py \ RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:7 and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select) |
The server is three A10s(24 G), I didn't add --multigpu.
The text was updated successfully, but these errors were encountered: