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"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -37,3 +37,52 @@ Evaluation set: STS-B test (1,379 sentence pairs, human similarity 0-5). Baselin
|
|
| 37 |
- 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.
|
| 38 |
- 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.
|
| 39 |
- 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
- 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.
|
| 38 |
- 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.
|
| 39 |
- 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.
|
| 40 |
+
|
| 41 |
+
## Usage (llama.cpp GGUF)
|
| 42 |
+
|
| 43 |
+
All files here are GGUF and run with [llama.cpp](https://github.com/ggml-org/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).
|
| 44 |
+
|
| 45 |
+
### Text embedding — command line
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
llama-embedding \
|
| 49 |
+
-m WeMM-Embedding-2B-Q5_K_M.gguf \
|
| 50 |
+
-p "Represent the meaning of this sentence." \
|
| 51 |
+
--pooling last
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
### Text embedding — HTTP server
|
| 55 |
+
|
| 56 |
+
```bash
|
| 57 |
+
llama-server \
|
| 58 |
+
-m WeMM-Embedding-2B-Q5_K_M.gguf \
|
| 59 |
+
--embedding \
|
| 60 |
+
-ngl 999 --host 0.0.0.0 --port 8080
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
Then request embeddings via the OpenAI-compatible endpoint:
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
curl http://localhost:8080/v1/embeddings \
|
| 67 |
+
-H "Content-Type: application/json" \
|
| 68 |
+
-d '{"input": "Represent the meaning of this sentence.", "model": "WeMM-Embedding-2B-Q5_K_M"}'
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
### Multimodal (image / video) — HTTP server
|
| 72 |
+
|
| 73 |
+
The visual projector (`mmproj-WeMM-Embedding-2B-BF16.gguf`) is required for image and video inputs:
|
| 74 |
+
|
| 75 |
+
```bash
|
| 76 |
+
llama-server \
|
| 77 |
+
-m WeMM-Embedding-2B-Q5_K_M.gguf \
|
| 78 |
+
--mmproj mmproj-WeMM-Embedding-2B-BF16.gguf \
|
| 79 |
+
--embedding \
|
| 80 |
+
-ngl 999 --host 0.0.0.0 --port 8080
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
Send image/video inside the chat content the same way as the base model (interleave `image`/`video` before `text`).
|
| 84 |
+
|
| 85 |
+
### Notes
|
| 86 |
+
|
| 87 |
+
- Output is a 2048-dim L2-normalized vector; matryoshka truncation (e.g. `--embd-normalize` + slicing) follows the base model's `matryoshka_dimensions` [64, 128, 256, 512, 1024, 2048].
|
| 88 |
+
- 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 with `llama-quantize` from the same BF16 master.
|