Deleted the configuration_hf_nomic_bert.py prevent us from using it

#3
by ISK-VAGR - opened

Hi,

I don't understand why did you delete this file since it is necessary for using your embedding. Please explain.

Nomic AI org

You can still use the model, you just may need to delete your huggingface cache. I solidified the code into a single place as it makes it easier for me to maintain.

>>> from transformers import AutoModel
>>> model = AutoModel.from_pretrained("nomic-ai/nomic-embed-text-v1-unsupervised", trust_remote_code=True)
config.json: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.03k/2.03k [00:00<00:00, 8.57MB/s]
modeling_hf_nomic_bert.py: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 52.8k/52.8k [00:00<00:00, 58.1MB/s]
A new version of the following files was downloaded from https://huggingface.co/nomic-ai/nomic-bert-2048:
- modeling_hf_nomic_bert.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
pytorch_model.bin: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 547M/547M [00:11<00:00, 49.3MB/s]
<All keys matched successfully>
zpn changed discussion status to closed

Yes, it did work thanks.

Sign up or log in to comment