Instructions to use TheStageAI/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 TheStageAI/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 TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheStageAI/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 TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf TheStageAI/Qwen3.5-4B-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 TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TheStageAI/Qwen3.5-4B-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 TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use TheStageAI/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 "TheStageAI/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": "TheStageAI/Qwen3.5-4B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M
- Ollama
How to use TheStageAI/Qwen3.5-4B-GGUF with Ollama:
ollama run hf.co/TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M
- Unsloth Studio
How to use TheStageAI/Qwen3.5-4B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TheStageAI/Qwen3.5-4B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TheStageAI/Qwen3.5-4B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TheStageAI/Qwen3.5-4B-GGUF to start chatting
- Pi
How to use TheStageAI/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 TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use TheStageAI/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 TheStageAI/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:8080/v1 \ --custom-model-id "TheStageAI/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"
- Docker Model Runner
How to use TheStageAI/Qwen3.5-4B-GGUF with Docker Model Runner:
docker model run hf.co/TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M
- Lemonade
How to use TheStageAI/Qwen3.5-4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TheStageAI/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 TheStageAI/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 TheStageAI/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:8080/v1 hermes config set model.default TheStageAI/Qwen3.5-4B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
File size: 6,552 Bytes
db5910b 415f3c8 db5910b 415f3c8 db5910b 415f3c8 db5910b 415f3c8 db5910b 415f3c8 db5910b 415f3c8 db5910b 08205f4 db5910b 415f3c8 db5910b 415f3c8 08205f4 415f3c8 db5910b 08205f4 db5910b 415f3c8 db5910b 415f3c8 db5910b 08205f4 db5910b 08205f4 db5910b 415f3c8 08205f4 db5910b 415f3c8 db5910b 415f3c8 db5910b 415f3c8 db5910b 415f3c8 08205f4 415f3c8 08205f4 415f3c8 08205f4 415f3c8 08205f4 415f3c8 db5910b 08205f4 db5910b 415f3c8 db5910b 415f3c8 db5910b 415f3c8 db5910b 415f3c8 db5910b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | ---
license: apache-2.0
base_model:
- Qwen/Qwen3.5-4B
base_model_relation: quantized
library_name: llama.cpp
pipeline_tag: text-generation
thumbnail: https://huggingface.co/TheStageAI/Qwen3.5-4B-GGUF/resolve/main/assets/thestage-edge-models-header.png
tags:
- gguf
- llama.cpp
- quantized
- mixed-precision
- local-inference
- qwen3.5
---
<p align="center">
<img src="./assets/thestage-edge-models-header.png" width="100%" alt="TheStageAI Edge Models — the right model at every memory budget">
</p>
<h1 align="center">Qwen3.5 4B — TheStageAI GGUF</h1>
<p align="center">
Four GGUF checkpoints for local inference with llama.cpp, from 1.52 GB to 4.49 GB.
<br>
<strong>Start with M — 2.39 GB and 98% of the BF16 instruction-strict IFEval score in our evaluation.</strong>
</p>
<p align="center">
<a href="https://github.com/TheStageAI/edge-lm"><img src="./assets/cta-edge-lm.svg" height="42" alt="Explore edge-lm on GitHub"></a>
<a href="https://docs.thestage.ai/"><img src="./assets/cta-docs.svg" height="42" alt="Read TheStageAI documentation"></a>
<a href="https://app.thestage.ai/"><img src="./assets/cta-platform.svg" height="42" alt="Open TheStageAI Platform"></a>
</p>
**Qwen 3.5 family:** [0.8B](https://huggingface.co/TheStageAI/Qwen3.5-0.8B-GGUF) · [2B](https://huggingface.co/TheStageAI/Qwen3.5-2B-GGUF) · **[4B](https://huggingface.co/TheStageAI/Qwen3.5-4B-GGUF)** · [9B](https://huggingface.co/TheStageAI/Qwen3.5-9B-GGUF)
## Start here
| Tier | Size | Use | Download |
| --- | ---: | --- | --- |
| XS | 1.52 GB | Smallest | [GGUF](./Qwen3.5-4B-XS-TS-Q3_K_S.gguf) |
| S | 1.90 GB | Adaptive compact | [GGUF](./Qwen3.5-4B-S-TS-Q4_K_S.gguf) |
| **M** | **2.39 GB** | **Recommended · Fixed Q4 reference** | [GGUF](./Qwen3.5-4B-M-TS-Q4_K_M.gguf) |
| L | 4.49 GB | Q8 fidelity reference | [GGUF](./Qwen3.5-4B-L-TS-Q8_0.gguf) |
Sizes use decimal MB/GB. Exact byte counts are recorded in [`release-manifest.json`](./release-manifest.json).
## Run with llama.cpp
This command selects the recommended **M** checkpoint by exact filename:
```bash
llama-cli \
--hf-repo TheStageAI/Qwen3.5-4B-GGUF \
--hf-file Qwen3.5-4B-M-TS-Q4_K_M.gguf
```
## Quality
| Variant | IFEval prompt / instruction strict (%) | MMLU-Pro (%) |
| --- | ---: | ---: |
| BF16 reference | 82.44 / 87.53 | 79.55 |
| XS | 70.43 / 78.30 | — |
| S | 77.82 / 83.93 | 74.39 |
| **M** | 80.22 / 86.09 | 78.86 |
| L | 81.70 / 87.05 | 79.59 |
Only complete 12,032-question MMLU-Pro runs are reported. `—` means that no complete release score is available; partial-subject results are not promoted to headline metrics.
The benchmarks intentionally exercise different modes: IFEval measures non-thinking instruction and format adherence, while MMLU-Pro includes long sampled reasoning.
> **Reasoning:** use S, M, or L for long-form reasoning. XS prioritizes minimum size; run Qwen XS with `--reasoning off`.
<details>
<summary><b>Evaluation protocol and XS reasoning note</b></summary>
- **IFEval:** 541 prompts, native chat template, `enable_thinking=false`, temperature 0.
- **MMLU-Pro:** 12,032 questions, native chat template, `enable_thinking=true`, temperature 1, top-p 0.95, 32,768-token output limit.
- The headline BF16-retention percentage uses instruction-strict IFEval and is capped at 100%; the uncapped raw scores are shown in the table.
XS prioritizes minimum footprint and ordinary chat or instruction following. For long-form reasoning, start with S, M, or L. Run Qwen XS with `--reasoning off`. In our long-thinking evaluation, XS generated substantially longer trajectories and reached the 32,768-token output limit more often than S. The XS MMLU-Pro cell is consequently marked `—`.
</details>
## How these checkpoints were built
This release starts from [`Qwen/Qwen3.5-4B`](https://huggingface.co/Qwen/Qwen3.5-4B) at revision [`851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a`](https://huggingface.co/Qwen/Qwen3.5-4B/tree/851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a).
- **XS and S** use model-specific mixed-precision schedules selected for explicit size targets.
- **M** keeps fixed Q4_K precision across quantized decoder tensors.
- **L** keeps fixed Q8_0 precision as the high-fidelity reference.
All four checkpoints receive scale tuning without changing their stored quantized codes or tensor layout. The recommended tier is selected independently for each base model from end-to-end evaluation.
<details>
<summary><b>File types, Hub selectors, and effective BPW</b></summary>
| Variant | Hub selector | GGUF file type | Whole-file BPW |
| --- | --- | --- | ---: |
| XS | `Q3_K_S` | `MOSTLY_Q2_K` | 2.889 |
| S | `Q4_K_S` | `MOSTLY_Q2_K` | 3.622 |
| M | `Q4_K_M` | `MOSTLY_Q4_K_M` | 4.538 |
| L | `Q8_0` | `MOSTLY_Q8_0` | 8.533 |
XS and S are TheStageAI mixed-precision schedules. Their public Q-type suffixes provide approximate Hub size classes for discoverability; they do not describe every tensor in the payload. M and L use fixed Q4_K and Q8_0 assignments for quantized decoder tensors.
The exact tensor-type inventory and SHA-256 digest for every file are recorded in [`release-manifest.json`](./release-manifest.json). File size does not include KV cache or runtime buffers, which grow with context length. GGUF runtimes treat multimodal projectors as separate artifacts; this release contains the language-model files listed above.
</details>
## TheStageAI edge stack
These checkpoints provide a portable llama.cpp deployment path. For native compressed models on Apple Silicon, explore [edge-lm](https://github.com/TheStageAI/edge-lm). For custom compression, compilation, and deployment workflows, use the [TheStageAI Platform](https://app.thestage.ai/) and [documentation](https://docs.thestage.ai/).
Optimizing for a specific device, latency target, or memory budget? [Talk to the TheStageAI team →](https://app.thestage.ai/contact)
## Reproducibility
The exact base revision, byte sizes, GGUF file types, whole-file BPW, tensor inventories, SHA-256 digests, held-out KL values, and evaluation IDs are recorded in [`release-manifest.json`](./release-manifest.json). Use its SHA-256 digests to verify downloaded files. Export and load gates used [llama.cpp revision `bec4772f6a2527d371557b5d2032641e5ff7619c`](https://github.com/ggml-org/llama.cpp/commit/bec4772f6a2527d371557b5d2032641e5ff7619c).
## License
The model weights are released under the upstream model's **apache-2.0** license. llama.cpp and any surrounding runtime code retain their own licenses.
|