Skip to content

Models are downloaded repeatedly despite being available in cache #60

Description

@Mohammed-Tabiza

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions