#Trying to generate embeddings using Nomic 1.5 error on Mac

8 messages · Page 1 of 1 (latest)

opaque otter
#
Traceback (most recent call last):
  File "/Users/brianjking/Documents/Work/IgniteIQ/dev/BrandMuscle/mixologist/bm-cw-db-search/nomic.py", line 20, in <module>
    model = AutoModel.from_pretrained("nomic-ai/nomic-embed-text-v1.5", config=config, trust_remote_code=True)
  File "/Users/brianjking/opt/anaconda3/envs/wine-embeddings/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 561, in from_pretrained
    return model_class.from_pretrained(
  File "/Users/brianjking/.cache/huggingface/modules/transformers_modules/nomic-ai/nomic-embed-text-v1-unsupervised/62fe27d25832db69e9002f0ba71f9b3c2e7bad63/modeling_hf_nomic_bert.py", line 345, in from_pretrained
    state_dict = state_dict_from_pretrained(model_name, safe_serialization=kwargs.get("safe_serialization", False))
  File "/Users/brianjking/.cache/huggingface/modules/transformers_modules/nomic-ai/nomic-embed-text-v1-unsupervised/62fe27d25832db69e9002f0ba71f9b3c2e7bad63/modeling_hf_nomic_bert.py", line 73, in state_dict_from_pretrained
    raise EnvironmentError(f"Model name {model_name} was not found.")
OSError: Model name nomic-ai/nomic-embed-text-v1.5 was not found.
drowsy craneBOT
#

Hi @opaque otter. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in the extracts, it seems like you're trying to use a model version (nomic-embed-text-v1.5) that is not mentioned or documented in the provided extracts. The extracts only mention the nomic-embed-text-v1 model.

Here is an example of how to use the nomic-embed-text-v1 model in Python, as per the Python API documentation (https://docs.nomic.ai/reference/python-api/embeddings):

from nomic import embed  
  
output = embed.text(  
 texts=['Nomic Embedding API', '#keepAIOpen'],  
 model='nomic-embed-text-v1',  
 task_type='search_document'  
)  
  
print(output)  

If you're still encountering issues, it might be best to check the official Nomic documentation or reach out to their support for further assistance.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@opaque otter kapa.ai is still learning and improving, please let us know how it did by reacting below

drowsy craneBOT
#

Let me check the knowledge base for you. One moment! :books:

#

I'm sorry, but the information extracts provided do not contain any information about the nomic-embed-text-v1.5 model on Hugging Face. The extracts only mention the nomic-embed-text-v1 model.

For accurate information, please refer to the official Nomic documentation or the Hugging Face model page directly.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@opaque otter kapa.ai is still learning and improving, please let us know how it did by reacting below