You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pushed fix here, changed check_nvidia as well as patched the handler to check only the GPU that is set by os environ. If no os environ set, defaults to original behaviour.
The text was updated successfully, but these errors were encountered:
Single GPU training in Multi-GPU system doesn't work even if limited to 1 GPU with os.environ CUDA_VISIBLE_DEVICES before importing unsloth.
Reason:
check_nvidia function spawns new process to check nvidia-smi, thus bypassing the cuda_visible_devices set.
Fix:
#974
Pushed fix here, changed check_nvidia as well as patched the handler to check only the GPU that is set by os environ. If no os environ set, defaults to original behaviour.
The text was updated successfully, but these errors were encountered: