Issue with local_files_only=True

#7
by bzikst - opened

I'm trying to use this model offline with SentenceTransformer. When setting local_files_only=True flag I got error:

    resolved_module_file = cached_file(
                           ^^^^^^^^^^^^
  File "/home/alexeym/.local/lib/python3.12/site-packages/transformers/utils/hub.py", line 446, in cached_file
    raise EnvironmentError(
OSError: We couldn't connect to 'https://huggingface.co.' to load this file, couldn't find it in the cached files and it looks like nomic-ai/nomic-bert-2048 is not the path to a directory containing a file named configuration_hf_nomic_bert.py.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co./docs/transformers/installation#offline-mode'.

Files configuration_hf_nomic_bert.py and modeling_hf_nomic_bert.py is downloading with local_files_only=False. How I can get it pre-downloaded?

Nomic AI org
zpn changed discussion status to closed

Can you please get a repo link where I can find this two files?

Nomic AI org

In the error log it links to this model: nomic-ai/nomic-bert-2048

Oh.. thank you. Missed this.

Sign up or log in to comment