You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to find a way to use the symlink from my huggingface cache folders. (i have models downloaded there).
I do not want to copy every model from the cache to the local model folder in the webui since it will be a waste of storage.
I tried to create a symlink to the blob file in the HF cache folder for e.g:
HF blob folder:
7440042bbdc8a24813002c09b6b69b64dc90fded4472613437b7f55f9b7d9c5f ---> this is the sd (safetensors model)
but when i create a symlink on the local folder on the model:
webui/models/stable-diffusion/sd.safetensors --> (this is a symlink to the file above)
wherever i triend to load the model in webui, i would get:
line 282, in read_metadata_from_safetensors
assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
or sometimes:
line 259, in load_file
with safe_open(filename, framework="pt", device=device) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge
is there a way to do this? Currently i am copying the 7440042bbdc8a24813002c09b6b69b64dc90fded4472613437b7f55f9b7d9c5f file and add the .safetensors extension manually. and everything works fine, but I do not want to waste my storage.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
I can't seem to find a way to use the symlink from my huggingface cache folders. (i have models downloaded there).
I do not want to copy every model from the cache to the local model folder in the webui since it will be a waste of storage.
I tried to create a symlink to the blob file in the HF cache folder for e.g:
HF blob folder:
7440042bbdc8a24813002c09b6b69b64dc90fded4472613437b7f55f9b7d9c5f ---> this is the sd (safetensors model)
but when i create a symlink on the local folder on the model:
webui/models/stable-diffusion/sd.safetensors --> (this is a symlink to the file above)
wherever i triend to load the model in webui, i would get:
or sometimes:
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge
is there a way to do this? Currently i am copying the 7440042bbdc8a24813002c09b6b69b64dc90fded4472613437b7f55f9b7d9c5f file and add the .safetensors extension manually. and everything works fine, but I do not want to waste my storage.
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions