Sentence Similarity
GGUF
How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="dranger003/SFR-Embedding-Mistral-GGUF",
	filename="",
)
output = llm(
	"Once upon a time,",
	max_tokens=512,
	echo=True
)
print(output)

GGUF quants for https://huggingface.co/Salesforce/SFR-Embedding-Mistral
NOTE: This is a text embedding model used for feature extraction.

As of Feb. 9, 2024 this model is no. 1 on the MTEB leaderboard.
https://huggingface.co/spaces/mteb/leaderboard

I have an example of how to use llama.cpp to generate embeddings for sentence similarity on my repo:
https://github.com/dranger003/llama.cpp-dotnet

Layers Context Template
32
32768
Instruct: {task_description}
Query: {query}
Downloads last month
65
GGUF
Model size
7B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support