Instructions to use nomic-ai/nomic-embed-text-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use nomic-ai/nomic-embed-text-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nomic-ai/nomic-embed-text-v1", trust_remote_code=True) sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use nomic-ai/nomic-embed-text-v1 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("nomic-ai/nomic-embed-text-v1", trust_remote_code=True) model = AutoModel.from_pretrained("nomic-ai/nomic-embed-text-v1", trust_remote_code=True, device_map="auto") - Transformers.js
How to use nomic-ai/nomic-embed-text-v1 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('sentence-similarity', 'nomic-ai/nomic-embed-text-v1'); - Notebooks
- Google Colab
- Kaggle
Request for Assistance with Fine-Tuning the nomic-embed-text-v1 Model for spanish language
I hope this message finds you well. My name is Wilfredo, and I am currently working on a project that involves fine-tuning the nomic-ai/nomic-embed-text-v1 model for a specific application in Spanish text processing.
I am reaching out to you to request your assistance in understanding the steps required to fine-tune this model effectively. Specifically, I am looking for guidance on:
Dataset Preparation: What are the recommended practices for preparing the dataset for fine-tuning? Are there any specific data formats or preprocessing steps that should be followed?
Fine-Tuning Process: Could you provide detailed instructions or a framework for fine-tuning the model, including any specific hyperparameters or training configurations that are crucial for achieving optimal performance?
Thank you very much for your time and consideration. I look forward to your response.
Best regards,
hi sentence transformers 3 might be a good place to start! https://x.com/tomaarsen/status/1795425797408235708
as far as data, i would curate a sizeable dataset of at least 10k to finetune on, although I'm not sure how well the model will do since the tokenizer is optimized solely for english.