Safetensor safeopen OS Error device not found
Running inference on severless endpoint and this line of code:
Throws
OSError: No such device (os error 19)
Running on RTX5000. Attached a network volume. The path used in the safe_open
leads to a safetensor file in /runpod-volume/example.safetensor
Anyone got this error before?9 Replies
Are you using network storage?
Yes I am! I have attached it to the runpod serverless instance under the advanced settings as well.
Sounds like it could be an issue with unstable network storage:
I see. To be honest, I have restarted it multiple time and even managed to print out the contents of the network mounted disk. I guess I could try it without a network disk and update this post accordingly.
Yeah worth a shot to try and figure out where its going wrong.
Just tried, same error haha.
What is the path to the file you are trying to open?
I am trying to open
/runpod-volume/example.safetensor
. Note that I didn't rename runpod-volume
to something else since I assume runpod-volume
is just a folder with or without a network disk mounted.Does the folder exist without a network volume though? Your network volume gets mounted there automatically by serverless if you attach a network volume to your endpoint, but it doesn't exist without a network volume unless you create it.