haofanwang / Lora-for-Diffusers

The most easy-to-understand tutorial for using LoRA (Low-Rank Adaptation) within diffusers framework for AI Generation Researchers🔥
MIT License
739 stars 46 forks source link

Exception: Error while deserializing header: HeaderTooLarge #3

Closed zhuofengli closed 1 year ago

zhuofengli commented 1 year ago

Hi again

the script worked fine on my dev machine, but when I moved it to production, exception happens:

line 242, in applyLora state_dict = load_file(lora['path']) File "/usr/local/lib/python3.8/dist-packages/safetensors/torch.py", line 98, in load_file with safe_open(filename, framework="pt", device=device) as f: Exception: Error while deserializing header: HeaderTooLarge

Do you know what might be the cause?

zhuofengli commented 1 year ago

NVM, the safetensor file wasn't completely downloaded with git lfs install, now it's fixed