-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failed to load any .safetensors model, returns OSError: No such device (os error 19) #752
Comments
MY first step would be to recreate the docker container using a 'std' compose file. Mine works fine. I would recommend using docker-compose.override.yml to add your additional folders. |
I'd try destroying and rebuilding the container docker stop webui-docker-auto-1 I also wouldn't recommend memory: 6G at all. Stable Diffusion is very memory heavy. This is mine: CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS |
I ran it again with all unimportant container stopped, and the memory limit removed, allowing it to use all memory fully. Anyway, I'll try installing A1111 the non-docker way, to see whether the problem only happens with this or not. |
I would say that 'No such device' means that your GPU is not configured/working. Nvidia needs the driver installed as well as nvidia container toolkit. |
NVIDIA Container Toolkit was configured properly, as I could observe with nvtop that it was using my GPU for computing via the VRAM and computation usage, when using the ckpt checkpoint. Nothing happens when using a safetensors checkpoint. BTW, the A1111 instance installed the non-docker way on this works without issue. |
Has this issue been opened before?
Describe the bug
It fails to open any safetensors format models, including checkpoints and LoRAs.
Only the .ckpt checkpoint this came with was able to generate something.
The problem persists even with a new safetensors model downloaded fresh from CivitAI placed in the same directory as the ckpt model;
this rules out the possibility of my model files being corrupted or some filesystem quirk happened.
The following traceback will appear when this occurs:
File "/opt/conda/lib/python3.10/site-packages/safetensors/torch.py", line 308, in load_file
with safe_open(filename, framework="pt", device=device) as f:
OSError: No such device (os error 19)
Which UI
auto.
Hardware / Software
Steps to Reproduce
Additional context
Any other context about the problem here. If applicable, add screenshots to help explain your problem.
My docker compose file:
Log file of the error while attempting to load a safetensors checkpoint:
webui-docker-auto-1-2024-12-13T07-50-01.log
Log file of the error when it asks for a safetensors LoRA included in the prompt:
webui-docker-auto-1-2024-12-13T08-21-30.log
The text was updated successfully, but these errors were encountered: