Instructions to use hdrrayan/multilingual-e5-small-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use hdrrayan/multilingual-e5-small-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf hdrrayan/multilingual-e5-small-gguf:F16 # Run inference directly in the terminal: llama cli -hf hdrrayan/multilingual-e5-small-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hdrrayan/multilingual-e5-small-gguf:F16 # Run inference directly in the terminal: llama cli -hf hdrrayan/multilingual-e5-small-gguf:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf hdrrayan/multilingual-e5-small-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf hdrrayan/multilingual-e5-small-gguf:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf hdrrayan/multilingual-e5-small-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf hdrrayan/multilingual-e5-small-gguf:F16
Use Docker
docker model run hf.co/hdrrayan/multilingual-e5-small-gguf:F16
- LM Studio
- Jan
- Ollama
How to use hdrrayan/multilingual-e5-small-gguf with Ollama:
ollama run hf.co/hdrrayan/multilingual-e5-small-gguf:F16
- Unsloth Desktop
- Docker Model Runner
How to use hdrrayan/multilingual-e5-small-gguf with Docker Model Runner:
docker model run hf.co/hdrrayan/multilingual-e5-small-gguf:F16
- Lemonade
How to use hdrrayan/multilingual-e5-small-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hdrrayan/multilingual-e5-small-gguf:F16
Run and chat with the model
lemonade run user.multilingual-e5-small-gguf-F16
List all available models
lemonade list
- Atomic Chat
multilingual-e5-small โ GGUF (F16)
A GGUF (F16) conversion of intfloat/multilingual-e5-small,
for serving embeddings with llama.cpp / llama-server --embeddings.
- Dimensions: 384
- Pooling: mean (required)
- Normalization: L2 (use cosine similarity)
- Context length: 512 tokens
- Architecture: XLM-RoBERTa (BERT-family encoder)
- License: MIT (inherited from the base model)
Prefixes are mandatory
multilingual-e5-small was trained with asymmetric prefixes. You must prepend:
query:to search queriespassage:to documents being indexed
Retrieval quality collapses without them.
Usage with llama-server
llama-server -m multilingual-e5-small-f16.gguf --embeddings --pooling mean -c 512
Then POST to the OpenAI-compatible endpoint:
curl http://127.0.0.1:8080/v1/embeddings \
-H "Content-Type: application/json" \
-d '{"model": "multilingual-e5-small-f16.gguf", "input": ["query: what is retrieval augmented generation"]}'
Fidelity
F16 embeddings track the reference sentence-transformers output closely
(cosine similarity min 0.9976, mean 0.9992 across a 20-sentence multilingual
sample spanning English, French and Chinese); the small residual is dominated
by SentencePiece tokenization differences, and top-1 ranking is preserved.
Conversion
Converted from the original safetensors weights with convert_hf_to_gguf.py
from llama.cpp.
- Downloads last month
- -
16-bit
Model tree for hdrrayan/multilingual-e5-small-gguf
Base model
intfloat/multilingual-e5-small