Closed Ainaemaet closed 1 year ago
Hi,
It appears that the prompt processor fails to generate a text embedding, resulting in the file not found error. I believe this error is caused by libbitsandbytes. You can refer to this issue https://github.com/TimDettmers/bitsandbytes/issues/156 to resolve it.
Thank you, I just seen another post talking about bitsandbytes issue and have had to solve it before for other programs so I have a good feeling that should work. I will update and close this after I have some sleep and get a chance to check it!
For anybody who needs it, I fixed the issue by following the advice given on the page @DSaurus linked to copy over libbitsandbytes_cuda.so version to libbitsandbytes_cpu.so Specifically as I'm running python3.10.9 and cuda 11.8, in your env directory: copy your lib\python3.10\site-packages\bitsandbytes\bitsandbytes_cuda118.so (or whatever your version of cuda is) over libbitsandbytes_cpu.so) as well as added export LD_LIBRARY_PATH="/usr/lib/wsl/lib:/usr/local/cuda/lib64" export PATH=/usr/local/cuda-11.8/bin${PATH:+:${PATH}} to .bashrc (being sure to source it after making the changes).
After that, everything seems to be running perfectly! :)
Glad to hear this and thanks for sharing the solution! @Ainaemaet
Hi, I made the code run via change the line 61 in deepfloyd_prompt_processor.py
to
text_encoder = T5EncoderModel.from_pretrained(
pretrained_model_name_or_path,
subfolder="text_encoder",
torch_dtype=torch.float16, # suppress warning
load_in_8bit=True,
variant="8bit",
device_map="auto",
)
I simply let the load_in_8bit=False
and it work. Does this operation hurt the performance or simply make it a bit slower?
Hello, all sorts of issues here culminating in a "FileNotFoundError: Text embedding file .threestudio_cache/text_embeddings/380af1c90b3b8ac914fde9dd32b144db.pt for model DeepFloyd/IF-I-XL-v1.0 and prompt [a zoomed out DSLR photo of a baby bunny sitting on top of a stack of pancakes] not found."
Fresh env and install, problem only exists when trying DeepFloyd method. Assuming it has something to do with the authentication but I really have no idea.