Instructions to use Xylolabs/Qwen3.5-4B-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 Xylolabs/Qwen3.5-4B-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 Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Qwen3.5-4B-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 Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/Qwen3.5-4B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xylolabs/Qwen3.5-4B-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": "Xylolabs/Qwen3.5-4B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M
- Ollama
How to use Xylolabs/Qwen3.5-4B-GGUF with Ollama:
ollama run hf.co/Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Xylolabs/Qwen3.5-4B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Qwen3.5-4B-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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Xylolabs/Qwen3.5-4B-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M
- Lemonade
How to use Xylolabs/Qwen3.5-4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.5-4B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Xylolabs/Qwen3.5-4B-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 Xylolabs/Qwen3.5-4B-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:9931/v1 hermes config set model.default Xylolabs/Qwen3.5-4B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/Qwen3.5-4B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Qwen3.5-4B-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:9931/v1 \ --custom-model-id "Xylolabs/Qwen3.5-4B-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"
Text model: Qwen/Qwen3.5-4B; GGUF files for text-only generation with llama.cpp.
Files
| File | Size |
|---|---|
Qwen3.5-4B-Q4_K_M.gguf |
2.783 GB |
How to run
Use the llama.cpp build linked above or newer. The model file includes the multi-token prediction module.
llama-cli -m Qwen3.5-4B-Q4_K_M.gguf --jinja
Accuracy
The reference weights were BF16.
| Quant | Size | WikiText-2 KL | top-1 | Held-out KL | top-1 |
|---|---|---|---|---|---|
| Unsloth UD-Q8_K_XL | 5.952 GB | 0.001070 | 98.397% | 0.000594 | 98.627% |
| llama.cpp Q8_0 | 4.611 GB | 0.001852 | 98.363% | 0.000969 | 98.451% |
| Unsloth Q8_0 | 4.482 GB | 0.001852 | 98.363% | 0.000969 | 98.451% |
| Unsloth UD-Q6_K_XL | 4.146 GB | 0.002306 | 97.794% | 0.001629 | 97.853% |
| llama.cpp Q6_K | 3.563 GB | 0.005615 | 96.667% | 0.004003 | 96.618% |
| Unsloth Q6_K | 3.526 GB | 0.004178 | 97.078% | 0.002881 | 96.873% |
| Unsloth UD-Q5_K_XL | 3.251 GB | 0.006631 | 96.044% | 0.005812 | 96.127% |
| llama.cpp Q5_K_M | 3.161 GB | 0.014291 | 94.814% | 0.010270 | 95.157% |
| Unsloth Q5_K_M | 3.144 GB | 0.006630 | 95.966% | 0.006523 | 95.873% |
| Unsloth Q5_K_S | 3.025 GB | 0.008654 | 95.647% | 0.007874 | 95.382% |
| Unsloth UD-Q4_K_XL | 2.912 GB | 0.016176 | 93.505% | 0.015473 | 93.912% |
| Unsloth Q4_1 | 2.784 GB | 0.024810 | 92.304% | 0.025937 | 91.824% |
| Q4_K_M | 2.783 GB | 0.039883 | 91.338% | 0.038531 | 90.755% |
| Unsloth Q4_K_M | 2.741 GB | 0.020194 | 93.059% | 0.020741 | 93.382% |
| Unsloth Q4_K_S | 2.590 GB | 0.025047 | 92.221% | 0.026212 | 92.098% |
| Unsloth Q4_0 | 2.583 GB | 0.039434 | 90.917% | 0.040213 | 90.412% |
| Unsloth IQ4_NL | 2.580 GB | 0.030816 | 91.696% | 0.031869 | 91.127% |
| Unsloth IQ4_XS | 2.477 GB | 0.030611 | 91.819% | 0.032629 | 90.980% |
| Unsloth UD-Q3_K_XL | 2.436 GB | 0.053240 | 89.186% | 0.052628 | 89.490% |
| llama.cpp Q3_K_M | 2.319 GB | 0.117655 | 84.363% | 0.133137 | 83.255% |
| Unsloth Q3_K_M | 2.293 GB | 0.071434 | 87.005% | 0.073009 | 87.353% |
| Unsloth Q3_K_S | 2.106 GB | 0.110031 | 84.260% | 0.120359 | 83.529% |
| Unsloth UD-IQ3_XXS | 1.949 GB | 0.142344 | 82.392% | 0.157385 | 81.069% |
| Unsloth UD-Q2_K_XL | 1.941 GB | 0.208873 | 79.495% | 0.226803 | 78.088% |
| Unsloth UD-IQ2_M | 1.760 GB | 0.237313 | 78.039% | 0.266386 | 76.814% |
| Unsloth UD-IQ2_XXS | 1.520 GB | 0.525788 | 67.667% | 0.648190 | 64.176% |
Which file for your hardware
| Hardware | Memory | File | Context |
|---|---|---|---|
| RTX 4090 / RTX 3090 | 24 GB | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| RTX 5090 | 32 GB | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| RTX 6000 Ada, or 2 x 24 GB | 48 GB | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| One H100 | 80 GB | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| RTX PRO 6000 Blackwell (GDDR7) | 96 GB | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| DGX Spark | 128 GB unified | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| Mac Studio M5 Max | 128 GB unified | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| One H200 (HBM3e) | 141 GB | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| One B200 | 192 GB | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| Mac Studio M5 Ultra | 256 GB unified | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| Mac Studio M5 Ultra | 512 GB unified | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
| One B300 (HBM3e) | 288 GB | Qwen3.5-4B-Q4_K_M.gguf (2.8 GB) |
256K |
License and notices
Apache License 2.0, copied in LICENSE. We converted the weights to GGUF and quantized them.
Citation
See the original Qwen3.5-4B model card for family documentation and citation.
Updates
- 2026-11-29: Added files from AtomicChat, LocalScribe, Unsloth, bartowski, ggml-org and 3 more owners.
- 2026-11-29: Charts redrawn in the dark theme with fewer point labels.
- 2026-11-28: Added AtomicChat, SoAIHQ and lmstudio-community files to the charts and CSV, labeled by owner.
- Downloads last month
- 755
4-bit