-
Notifications
You must be signed in to change notification settings - Fork 543
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
Loading Model Safetensors #136
Comments
i assume you use the docker ? that is probably a mistake as the hf cache path isnt mapped throw - docker files by default are stateless cross restarts there should be either a volume mount or a -v to the local hf cache |
@Aliasthump in whatever app you're using, go digging to where it instantiates the model and replace the load with something like this (it's essentially what the original code does anyway, it just does the hf hub download to cache first, then this):
Works the same for hybrid, just change the paths. I much prefer having the model files/locations under my own control and not let hub do its thing. |
Since I play a lot with different docker containers that uses huggingface cache, usually I map the hub to a specific docker host path like this example that uses relative path
|
Why is it that every time I open Zonos it downloads the 3.3GB safetensors? Why does it have to do it every time? Are they deleted after I close out? Is it just piling up on Model.safetensors and wasting HD space? Also, where is it downloading to? I want to see it on my hard drive.
The text was updated successfully, but these errors were encountered: