Sentence Similarity
sentence-transformers
ONNX
Safetensors
Transformers.js
bert
feature-extraction
mteb
arctic
snowflake-arctic-embed
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run Snowflake/snowflake-arctic-embed-l on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Snowflake/snowflake-arctic-embed-l. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Snowflake/snowflake-arctic-embed-l on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Snowflake/snowflake-arctic-embed-l with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Snowflake/snowflake-arctic-embed-l with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Snowflake/snowflake-arctic-embed-l") 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.js
How to use Snowflake/snowflake-arctic-embed-l with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'Snowflake/snowflake-arctic-embed-l'); - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files2998 unmodified lines299930003001300230033004300530063007300830093010301130122998 unmodified lines# Compute token embeddingswith torch.no_grad():query_embeddings = model(**query_tokens)[0][:, 0]doument_embeddings = model(**document_tokens)[0][:, 0]# normalize embeddingsquery_embeddings = torch.nn.functional.normalize(query_embeddings, p=2, dim=1)doument_embeddings = torch.nn.functional.normalize(doument_embeddings, p=2, dim=1)scores = torch.mm(query_embeddings, doument_embeddings.transpose(0, 1))for query, query_scores in zip(queries, scores):doc_score_pairs = list(zip(documents, query_scores))doc_score_pairs = sorted(doc_score_pairs, key=lambda x: x[1], reverse=True)2998 unmodified lines299930003001300230033004300530063007300830093010301130122998 unmodified lines# Compute token embeddingswith torch.no_grad():query_embeddings = model(**query_tokens)[0][:, 0]document_embeddings = model(**document_tokens)[0][:, 0]# normalize embeddingsquery_embeddings = torch.nn.functional.normalize(query_embeddings, p=2, dim=1)document_embeddings = torch.nn.functional.normalize(document_embeddings, p=2, dim=1)scores = torch.mm(query_embeddings, document_embeddings.transpose(0, 1))for query, query_scores in zip(queries, scores):doc_score_pairs = list(zip(documents, query_scores))doc_score_pairs = sorted(doc_score_pairs, key=lambda x: x[1], reverse=True)
README.md+3-3