Could not locate the configuration_hf_nomic_bert.py inside nomic-ai/nomic-bert-2048. Error

#25
by Usersh - opened

I downloaded model manually from files and versions tab, then packaged into a folder that I scp to linux box. The remote server on linux box is refusing any connection so I can't download model from url or use from_pretrained method to download. So this "solution" won't work for me, https://huggingface.co/nomic-ai/nomic-embed-text-v1/discussions/17#6633bb7e7881bff9ddfca8d6.
configuration_hf_nomic_bert.py is in nomic-bert-2048 directory, which is in model folder along with nomic-embed-text-v.15 model folder.
I'm not sure why it can detect nomic-bert-2048 folder, which I didn't define path to, but not the configuration_hf_nomic_bert.py in this folder.
I tried adding nomic-bert-2048 model folder path with sys.path, tried using os.path.abspath and os.path.join, but none of those seems to solve this error: "Could not locate the configuration_hf_nomic_bert.py inside nomic-ai/nomic-bert-2048."
What is causing this? How did it successfully search for nomic-bert-2048 folder when I didn't specify it's directory?
Does anyone know how to resolve this error?
Should I put nomic-bert-2048 folder in the nomic-embed-text-v1.5 model folder?

Sign up or log in to comment