"Could not locate the configuration_hf_nomic_bert.py inside nomic-ai/nomic-embed-text-v1-unsupervised" when load nomic-ai/nomic-embed-text-v1.5

#13
by mingfengxue - opened

When I download the weights in nomic-ai/nomic-embed-text-v1.5 and try to load them from the disk, the error message shows.

"Could not locate the configuration_hf_nomic_bert.py inside nomic-ai/nomic-embed-text-v1-unsupervised"

It seems that the loading V1.5 weights requires the use of the config file in V1.0?

Would you fix this or did I miss something?

Nomic AI org

How are you trying to load the model?

This should work

model = AutoModel.from_pretrained('nomic-ai/nomic-embed-text-v1.5', trust_remote_code=True, safe_serialization=True)
zpn changed discussion status to closed
Nomic AI org

@mingfengxue I just ran into this issue, but upgrading to 4.38.2 of transformers seems to have fixed the issue for me

Sign up or log in to comment