Skip to content
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

Models are downloaded repeatedly despite being available in cache #60

Open
Mohammed-Tabiza opened this issue Nov 14, 2024 · 0 comments
Open

Comments

@Mohammed-Tabiza
Copy link

I am encountering an issue with the vidore/colqwen2-v1.0 model. Every time I run my script, the model downloads two versions:

models--vidore--colqwen2-v1.0
models--vidore--colqwen2-base

This occurs even though I have the two models already saved in my ~/.cache/huggingface/hub directory.
I have tried specifying the HF_HOME environment variable to point to the cache directory, but it still creates a .cache directory in the current working directory and downloads the models there.
I would like to be able to provide the absolute paths to the two model directories:
~/.cache/huggingface/hub/models--vidore--colqwen2-v1.0/snapshots/d6601e2379896aaa912c176eab8927a9b961a0e4
~/.cache/huggingface/hub/models--vidore--colqwen2-base/snapshots/fa8c8a27704510c9e4fa79b187141a1db76f50e7
However, I'm not sure how to do this correctly. Can you please help me understand how to prevent the repeated downloads and use the cached models directly?
Thank you for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant