Instructions to use Weidows/WeMM-Embedding-2B-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 Weidows/WeMM-Embedding-2B-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 Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
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 Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
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 Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Weidows/WeMM-Embedding-2B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Weidows/WeMM-Embedding-2B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Weidows/WeMM-Embedding-2B-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
- Ollama
How to use Weidows/WeMM-Embedding-2B-GGUF with Ollama:
ollama run hf.co/Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Weidows/WeMM-Embedding-2B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Weidows/WeMM-Embedding-2B-GGUF with Docker Model Runner:
docker model run hf.co/Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
- Lemonade
How to use Weidows/WeMM-Embedding-2B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.WeMM-Embedding-2B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Weidows/WeMM-Embedding-2B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Weidows/WeMM-Embedding-2B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Weidows/WeMM-Embedding-2B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
WeMM-Embedding-2B — Quantization Quality (STS-B)
Evaluation set: STS-B test (1,379 sentence pairs, human similarity 0-5). Baseline: BF16 GGUF run in llama.cpp (same engine as all quants), so the measured difference reflects quantization error only.
| Model | Bits/Weight | Size (MB) | STS-B Spearman ρ | Δρ vs BF16 | Emb Cosine vs BF16 | Pair Cosine Pearson vs BF16 |
|---|---|---|---|---|---|---|
| BF16 | 16.00 | 4790.8 | 0.8360 | — | — | — |
| Q8_0 | 8.00 | 2551.3 | 0.8357 | +0.03% | 0.9997 | 1.0000 |
| Q6_K | 5.80 | 1972.8 | 0.8358 | +0.03% | 0.9987 | 0.9999 |
| Q5_K_M | 5.17 | 1760.0 | 0.8361 | -0.01% | 0.9956 | 0.9995 |
| Q4_K_M | 4.85 | 1559.8 | 0.8310 | +0.60% | 0.9854 | 0.9984 |
| IQ4_XS | 4.33 | 1471.4 | 0.8360 | +0.00% | 0.9855 | 0.9985 |
| IQ3_M | 3.76 | 1277.3 | 0.8286 | +0.89% | 0.9263 | 0.9895 |
Metrics
- STS-B Spearman ρ: rank correlation between model cosine similarities and human similarity scores. Higher is better.
- Δρ vs BF16: relative drop of ρ against the BF16 baseline. Negative means the quant scored slightly above baseline (within noise).
- Emb Cosine vs BF16: mean cosine similarity between each sentence's embedding and its BF16 counterpart (space fidelity). 1.0 = identical.
- Pair Cosine Pearson vs BF16: Pearson correlation of per-pair cosine similarities vs BF16 (ranking fidelity). 1.0 = identical ordering.
Conclusion
- Q8_0, Q6_K, Q5_K_M and IQ4_XS show negligible quality loss (|Δρ| < 0.05%, Emb Cosine > 0.985) and are safe drop-in replacements.
- Q4_K_M (4.85 bpw) shows a small but visible drop (Δρ ≈ +0.60%, Emb Cosine 0.985) — notably worse than the equally-sized IQ4_XS, so prefer IQ4_XS or Q5_K_M over Q4_K_M when size is comparable.
- IQ3_M (3.76 bpw) is the only variant with a clearly measurable drop (Δρ ≈ +0.89%, Emb Cosine 0.93); use only when storage is critical.
Usage (llama.cpp GGUF)
All files here are GGUF and run with llama.cpp. Replace the model file with the quant you downloaded. Use -ngl 999 to offload layers to GPU (omit or -ngl 0 for CPU-only).
Text embedding — command line
llama-embedding \
-m WeMM-Embedding-2B-Q5_K_M.gguf \
-p "Represent the meaning of this sentence." \
--pooling last
Text embedding — HTTP server
llama-server \
-m WeMM-Embedding-2B-Q5_K_M.gguf \
--embedding \
-ngl 999 --host 0.0.0.0 --port 8080
Then request embeddings via the OpenAI-compatible endpoint:
curl http://localhost:8080/v1/embeddings \
-H "Content-Type: application/json" \
-d '{"input": "Represent the meaning of this sentence.", "model": "WeMM-Embedding-2B-Q5_K_M"}'
Multimodal (image / video) — HTTP server
The visual projector (mmproj-WeMM-Embedding-2B-BF16.gguf) is required for image and video inputs:
llama-server \
-m WeMM-Embedding-2B-Q5_K_M.gguf \
--mmproj mmproj-WeMM-Embedding-2B-BF16.gguf \
--embedding \
-ngl 999 --host 0.0.0.0 --port 8080
Send image/video inside the chat content the same way as the base model (interleave image/video before text).
Notes
- Output is a 2048-dim L2-normalized vector; matryoshka truncation (e.g.
--embd-normalize+ slicing) follows the base model'smatryoshka_dimensions[64, 128, 256, 512, 1024, 2048]. - Q8_0 / Q4_K_M / BF16 are mirrored from
DreamBlooms/WeMM-Embedding-2B-GGUF; Q6_K / Q5_K_M / IQ4_XS / IQ3_M were produced for this repo withllama-quantizefrom the same BF16 master.
- Downloads last month
- -
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit