How to use from the
Use from the
sentence-transformers library
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("cnmoro/snowflake-arctic-embed-m-v2.0-cpu", trust_remote_code=True)

sentences = [
    "The weather is lovely today.",
    "It's so sunny outside!",
    "He drove to the stadium."
]
embeddings = model.encode(sentences)

similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]

A modified version of Snowflake/snowflake-arctic-embed-m-v2.0, without xformers, so it works on CPU.

from sentence_transformers import SentenceTransformer
import torch

device = torch.device("cpu")
model = SentenceTransformer("cnmoro/snowflake-arctic-embed-m-v2.0-cpu", device=device, trust_remote_code=True)
Downloads last month
122
Safetensors
Model size
0.3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for cnmoro/snowflake-arctic-embed-m-v2.0-cpu

Quantizations
1 model

Spaces using cnmoro/snowflake-arctic-embed-m-v2.0-cpu 3

Collection including cnmoro/snowflake-arctic-embed-m-v2.0-cpu

Evaluation results