How to use from
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 majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M: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 majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M: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 majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M:Q4_K_M
Use Docker
docker model run hf.co/majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M:Q4_K_M
Quick Links

Qwen3-Embedding-4B GGUF Q4_K_M

llama.cpp GGUF Q4_K_M quantization of Qwen/Qwen3-Embedding-4B.

  • Produced with: llama-quantize (upstream llama.cpp, April 2026 build)
  • BF16 source converted via convert_hf_to_gguf.py from the fresh llama.cpp tree
  • Quant type: Q4_K_M
  • File size: 2.3 GB

Quickstart

llama-embedding -m qwen3-emb-4b-Q4_K_M.gguf \
  -p "What is the capital of France?"

Or via llama-cpp-python:

from llama_cpp import Llama
llm = Llama(model_path="qwen3-emb-4b-Q4_K_M.gguf", embedding=True)
vec = llm.embed("What is the capital of France?")

License

Apache 2.0 โ€” inherited from the upstream base model.

See also

Downloads last month
29
GGUF
Model size
4B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for majentik/Qwen3-Embedding-4B-GGUF-Q4_K_M

Quantized
(37)
this model