Instructions to use Xylolabs/Qwen3.5-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 Xylolabs/Qwen3.5-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 Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Qwen3.5-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 Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Xylolabs/Qwen3.5-2B-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-2B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/Qwen3.5-2B-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-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": "Xylolabs/Qwen3.5-2B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M
- Ollama
How to use Xylolabs/Qwen3.5-2B-GGUF with Ollama:
ollama run hf.co/Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Xylolabs/Qwen3.5-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 Xylolabs/Qwen3.5-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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Xylolabs/Qwen3.5-2B-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M
- Lemonade
How to use Xylolabs/Qwen3.5-2B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.5-2B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Xylolabs/Qwen3.5-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 Xylolabs/Qwen3.5-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:9931/v1 hermes config set model.default Xylolabs/Qwen3.5-2B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/Qwen3.5-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 Xylolabs/Qwen3.5-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:9931/v1 \ --custom-model-id "Xylolabs/Qwen3.5-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"
Qwen3.5-2B GGUF
GGUF quants of Qwen/Qwen3.5-2B for llama.cpp on CUDA, Metal or CPU, without the vision tower and the MTP block.
Files
| File | Size |
|---|---|
Qwen3.5-2B-Q8_0.gguf |
2.01 GB |
Qwen3.5-2B-Q6_K.gguf |
1.57 GB |
Qwen3.5-2B-Q5_K_M.gguf |
1.45 GB |
Qwen3.5-2B-Q4_K_M.gguf |
1.29 GB |
Qwen3.5-2B-Q4_K_S.gguf |
1.22 GB |
Qwen3.5-2B-IQ4_XS.gguf |
1.17 GB |
Qwen3.5-2B-Q3_K_M.gguf |
1.12 GB |
Qwen3.5-2B-Q2_K.gguf |
1.00 GB |
How to run
Use llama.cpp caea914e9d05153aa32b96a846dca543e7cb16be or newer.
./build/bin/llama-server -m Qwen3.5-2B-Q4_K_M.gguf --jinja -ngl 99 -c 32768
Accuracy
KL and top-1 against BF16 on WikiText-2, chat and held-out text (40/20/20 chunks of 512).
| Quant | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 | 7-question answer check |
|---|---|---|---|---|---|---|---|---|
| BF16 | 3.78 GB | 5/7 | ||||||
| Unsloth UD-Q8_K_XL | 2.83 GB | 0.000624 | 98.29% | 0.000683 | 98.45% | 0.000703 | 98.25% | 5/7 |
| Unsloth Q8_0 | 2.01 GB | 0.000993 | 98.19% | 0.001158 | 97.69% | 0.001552 | 96.98% | 5/7 |
| Q8_0 | 2.01 GB | 0.000994 | 98.13% | 0.001150 | 98.10% | 0.001549 | 96.94% | 5/7 |
| Unsloth UD-Q6_K_XL | 1.86 GB | 0.001687 | 97.59% | 0.002058 | 97.55% | 0.002491 | 96.28% | 5/7 |
| Unsloth Q6_K | 1.57 GB | 0.003357 | 96.46% | 0.003713 | 96.69% | 0.004818 | 95.37% | 5/7 |
| Q6_K | 1.57 GB | 0.003009 | 96.81% | 0.003536 | 96.92% | 0.004490 | 95.61% | 5/7 |
| Unsloth UD-Q5_K_XL | 1.47 GB | 0.006865 | 95.40% | 0.007933 | 95.33% | 0.009408 | 93.69% | 5/7 |
| Q5_K_M | 1.45 GB | 0.006627 | 95.60% | 0.007707 | 95.22% | 0.008852 | 93.98% | 5/7 |
| Unsloth Q5_K_M | 1.44 GB | 0.007071 | 95.17% | 0.008377 | 95.16% | 0.010058 | 93.45% | 5/7 |
| Unsloth UD-Q4_K_XL | 1.34 GB | 0.015937 | 93.21% | 0.019416 | 93.02% | 0.021794 | 90.82% | 5/7 |
| Q4_K_M | 1.29 GB | 0.019793 | 92.65% | 0.025111 | 92.28% | 0.025923 | 90.37% | 5/7 |
| Unsloth Q4_K_M | 1.28 GB | 0.021505 | 92.49% | 0.026772 | 92.14% | 0.030468 | 89.35% | 5/7 |
| Q4_K_S | 1.22 GB | 0.024340 | 91.89% | 0.030151 | 91.00% | 0.032034 | 88.77% | 5/7 |
| Unsloth Q4_K_S | 1.22 GB | 0.025608 | 91.88% | 0.032718 | 90.75% | 0.038861 | 88.35% | 5/7 |
| Unsloth IQ4_XS | 1.17 GB | 0.032803 | 90.36% | 0.038893 | 89.88% | 0.048181 | 86.94% | 5/7 |
| IQ4_XS | 1.17 GB | 0.032163 | 90.54% | 0.039276 | 89.37% | 0.045511 | 86.86% | 5/7 |
| Unsloth UD-Q3_K_XL | 1.16 GB | 0.053395 | 88.58% | 0.068021 | 87.23% | 0.074806 | 83.84% | 5/7 |
| Q3_K_M | 1.12 GB | 0.073627 | 86.49% | 0.086635 | 85.88% | 0.096161 | 81.63% | 5/7 |
| Unsloth Q3_K_M | 1.11 GB | 0.077712 | 85.79% | 0.099994 | 84.65% | 0.122111 | 79.57% | 5/7 |
| Q2_K | 1.00 GB | 0.218839 | 77.65% | 0.302113 | 74.33% | 0.330154 | 67.29% | 6/7 |
| Unsloth UD-Q2_K_XL | 0.97 GB | 0.237274 | 76.33% | 0.325645 | 74.72% | 0.367697 | 66.90% | 4/7 |
License and notices
Apache License 2.0. See LICENSE and NOTICE.
Updates
- 2026-11-27: First release.
- Downloads last month
- 134
Hardware compatibility
Log In to add your hardware
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit