-
Notifications
You must be signed in to change notification settings - Fork 172
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
RuntimeError: CUDA error: invalid device ordinal #40
Comments
contents of sdxl-env.sh
|
Tried with batch size 1 and 2, and with and without multi-gpu support. They all fail. |
Maybe same problem as ProGamerGov/neural-style-pt#70?:
If so, how do I make sure PyTorch sees the specified device? Issuing any of those two commands before EDIT:
Ok, I tried but it didn't work. Same |
Ok. I solved it with |
you might have missed the |
I'm just using 1 gpu. So i commented the I think my problem now is how to configure the following lines considering I'm using a 1x 4090 24GB.
|
I uncommented the `export ACCELERATE_EXTRA_ARGS="--multi_gpu" and now I get this error:
I'm pretty sure |
Anyway, I started afresh. Now I commented the following line:
...and this happens:
Immediately after the crash, I open the python interpreter (within venv) and get:
|
I think issue's root cause was the
...so it was bound to fail. Thing is tried changing it to Anyway, I solved the |
Docker image: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
OS: Ubuntu 20.04.5 LTS
24 GB VRAM
29 GB RAM 4 vCPU
I tried with batch size 1 and 2. And with and without multi-gpu support. Both fail.
The text was updated successfully, but these errors were encountered: