-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unable to load unsloth models in just single GPU in a multi GPU system #983
Comments
In the command line, you can try setting the CUDA_VISIBLE_DEVICES environment variable to a single number, e.g.: You could look at nvidia-smi for which GPU you want to use. |
I still get the same error |
Try using the CUDA_VISIBLE_DEVICES environment variable in the script itself. import os
os.environ['CUDA_VISIBLE_DEVICES'] = '0' # Use GPU 0 or import os
os.environ['CUDA_VISIBLE_DEVICES'] = '1' # Use GPU 1 Put it at the top of the script. By the way, the first GPU is "0" and second one is "1". |
I have implemented a fix for this here: |
Will look into @Sehyo's PR and implement a fix - sorry everyone! |
I'm still getting this issue, is there a fix planned? I patched with @Sehyo 's fix locally, but 50% of runs still fail:
|
Any updates on this? Also having the same problem. Would it be possible to put it as a warning to be able to ignore it? |
I have two RTX A6000 and I understand the opensource unsloth version only supports single GPU. Is there anyway I can config to use only one GPU? I currently get this error when I import unsloth and load models
The text was updated successfully, but these errors were encountered: