ZwZ2-27B — EXL3 2.25 bpw for 16 GB GPUs, full 262k context (vision, int4 KV, served with vLLM)
Install from this card, not from generic snippets. This is an EXL3 checkpoint: vLLM loads it only together with exllamav3 and our
vllm-quantpackplugin. Follow Requirements & install and Quick start; a plainpip install vllm, Transformers or SGLang cannot load it.
An unofficial community EXL3 quantization of inclusionAI/ZwZ2-27B, the Qwen3.6-27B-based model of Zooming-without-Zooming-v2: a vision-language model trained (GRPO) to connect visual evidence across regions of a full image — comparison, aggregation, matching and multi-step reasoning — without zooming tools. Made with exllamav3 1.6.5: 2.25 bpw on the linear layers, a 6-bit lm_head, a 6-bit vision tower and INT8 token embeddings. The model has no MTP head.
It is the 16 GB build: with the int4 KV cache it serves the full 262,144-token context with vision within a 16 GB card's memory (KV pool 284,694 tokens). The price is fidelity: its KL divergence against BF16 is about ten times that of our 4.0 bpw build for 24 GB (0.079-0.088 against 0.006-0.009). Tool calls stay at 30/30 and images at 14/15; programming tasks drop to 9-10 out of 12.
⚠️ Serve it with
--default-chat-template-kwargs '{"enable_thinking": false}'(as in the Quick start). ZwZ2's chat template answers without reasoning by default, but vLLM'sqwen3reasoning parser assumes reasoning unless the request says otherwise: without that flag every answer arrives inreasoning_contentandcontentis empty. With the flag, answers come incontent, and a request that sends"chat_template_kwargs": {"enable_thinking": true}still gets its reasoning separated.
License: the weights repository of ZwZ2-27B does not declare a license; the project's code (GitHub) and the Qwen3.6-27B backbone are Apache-2.0, so this quantization is released as Apache-2.0. Check the authors' terms before any commercial use. This is not an official release of inclusionAI or Qwen.
Tested setup: a 16 GB card simulated on an RTX 3090 (24 GB, Ampere, power limit 350 W, no other use): the Quick start configuration below, with the memory peak kept at or under 15,630 MiB (16 GB minus the ~450 MiB the driver reserves and a 300 MiB margin). vLLM 0.31.0 + exllamav3 1.6.5 + vllm-quantpack 0.1.4, vision on,
--max-model-len 262144, int4 KV cache, 2026-11-04. Not run on a real 16 GB card. The tests read our local copy of these files (same bytes,SHA256SUMS).
Highlights (16 GB simulated, full 262,144 context, vision, int4 KV)
- Fits 16 GB: peak 15,566 MiB with
--kv-cache-memory-bytes 5220000000; KV pool 284,694 tokens = one full 262,144-token session (1.09× by vLLM's count). - KLD against BF16: 0.0785 on an opencode agent trace, 0.0878 on our sysadmin trace and 0.0884 on turboderp's public trace.
- Tool calls with the real opencode request: 30/30. Vision 14/15. Programming tasks 10/12 and 9/12 in two runs.
- Decode with short prompts: 49.7 / 71.5 / 127.4 / 129.4 tok/s with 1 / 2 / 4 / 8 requests (on the 3090; no speculative decoding: the model has no MTP head). 17.8 tok/s after a 258,000-token prompt.
Our focus. We quantize and evaluate models for one use case: a local Linux system-administration agent (opencode with tool calling) for a university IT department, used in Spanish. Our calibration traces include real sysadmin/agent conversations in Spanish, and our quality checks (tool calls with the real opencode request, agent tasks with real command execution, long-context retrieval, long answers in Spanish) reflect that use. KL divergence is also reported on turboderp's public trace, so it can be compared and reproduced. Numbers for other domains or languages may differ.
What is in this repository
Which one to use
| GPU | Build | Context per session | Real concurrent sessions of 262k | KV cache | KLD (opencode / sysadmin / public) | Pick it for |
|---|---|---|---|---|---|---|
| 16 GB | this repo (2.25 bpw) | 262,144 with vision | 1 (pool 284,694 tokens) | int4 | 0.0785 / 0.0878 / 0.0884 | ZwZ2 on a 16 GB card, full context |
| 24 GB (RTX 3090) | 4.0 bpw | 262,144 with vision | 1 (pool 462,275 tokens) | int4 | 0.0090 / 0.0061 / 0.0066 | much closer to BF16; use it if you have 24 GB |
| 12 GB | — | — | — | — | — | does not fit at 262,144: at 2.0 bpw the KV would hold about 95k tokens |
Files and reproducibility
| File | What it is |
|---|---|
model-00001-of-00002.safetensors, model-00002-of-00002.safetensors, model.safetensors.index.json |
EXL3 weights (9.70 GB) with INT8 token embeddings, and their index |
quantization_config.json |
exllamav3's per-tensor storage record (bits per tensor; calibration size only, no text) |
config.json, generation_config.json |
model config (quantization_config: exl3, 2.25 bits, head 6, vision 6); sampling defaults of the source model (temperature 1.0, top_p 0.95, top_k 20, enable_thinking: false) |
chat_template.jinja, tokenizer.json, tokenizer_config.json |
chat template and tokenizer of the source model, unchanged |
processor_config.json |
image/video processor of the source model, unchanged |
preprocessor_config.json, video_preprocessor_config.json |
derived from processor_config.json (exllamav3 needs them; image_processor_type: Qwen2VLImageProcessorFast) |
scripts/embed_int8.py |
re-encodes embed_tokens to INT8 per row (the step applied after the exllamav3 conversion) |
LICENSE |
Apache-2.0 |
SHA256SUMS |
SHA-256 of every file above |
Not included: the BF16 reference, the calibration data (internal), the plugin (install it from PyPI, see below), the source repository's images.
Results
All tables: a 16 GB card simulated on one RTX 3090 24 GB (power limit 350 W, no other use; peak kept at or under 15,630 MiB), vLLM 0.31.0 + exllamav3 1.6.5 + vllm-quantpack 0.1.4, the Quick start configuration (vision on, --max-model-len 262144, --kv-cache-dtype int4_per_token_head), measured on 2026-11-04. KL divergence: exllamav3's qbench on an RTX PRO 6000 Blackwell.
Quantization quality (exllamav3 qbench, against BF16)
| Trace | KLD mean | KLD median | KLD p90 | Perplexity (BF16) |
|---|---|---|---|---|
| opencode agent trace (ours) | 0.0785 | 0.0259 | 0.195 | 3.3091 (3.1931) |
| sysadmin trace (ours) | 0.0878 | 0.0297 | 0.233 | 2.8693 (2.7112) |
public (qbench_prompts_gen.json, turboderp) |
0.0884 | 0.0113 | 0.261 | 1.9337 (1.8450) |
The traces were written by other Qwen3.x models (same tokenizer) in thinking mode; ZwZ2 answers without reasoning by default, so these numbers measure how faithfully the quantized weights follow BF16 on that text, not ZwZ2's own style.
Capacity on a 16 GB card (simulated)
--kv-cache-memory-bytes |
KV pool reported by vLLM | Real concurrent sessions of 262,144 tokens | Peak used | Under the 15,630 MiB limit |
|---|---|---|---|---|
| 5220000000 (Quick start) | 284,694 tokens | 1 (1.09 by vLLM's count) | 15,566 MiB | yes, 64 MiB to spare |
| 5295120056 | 290,331 tokens | 1 (1.11) | 15,662 MiB | no, 32 MiB over (no out-of-memory, but under the 300 MiB margin) |
Memory used without the KV pool: 10,424 MiB (weights, vision tower, activations, CUDA graphs).
Test battery
| Test | Result |
|---|---|
| Smoke (CJK, loops, answers cut by the limit; three long Spanish answers) | OK: CJK 0, no loops, all three finished (1,721 / 1,363 / 1,435 tokens) |
| Tool calls with the real opencode request, battery | 30/30 valid and correct, 0 errors (both runs) |
| Vision (terminal screenshot, chart, dense text and other synthetic images) | 14/15 (both runs) |
| Programming tasks (12, two runs) | 10/12 (408 s), 9/12 (447 s) |
| Decode with 1 / 2 / 4 / 8 short requests | 49.7 / 71.5 / 127.4 / 129.4 tok/s |
| Prefill of a 258,000-token prompt / decode of 300 tokens after it (cached) | 440 s / 17.8 tok/s |
| Engine errors, out-of-memory in the vLLM log | 0, 0 |
The decode speeds are the 3090's; a 16 GB card with less memory bandwidth will be slower.
Known model behaviour and discarded options
- Reasoning off by default: see the warning at the top. With
enable_thinking: trueZwZ2 reasons in English before answering, and its answers are much longer. <answer>tags: when there is no system message, ZwZ2's template adds one that asks for the final answer inside<answer>...</answer>; the answers end with</answer>. A custom system message (opencode sends one) replaces that instruction.- Why 2.25 bpw: at 262,144 tokens with vision and the int4 KV cache, a 16 GB card leaves room for about 2.4 bpw on the linear layers with these head, vision and embedding settings; 2.25 keeps the 300 MiB margin.
Requirements & install (vLLM 0.31 + exllamav3 1.6.5 + vllm-quantpack 0.1.4)
Before you install (the same stack as our other cards, checked on a clean Ubuntu 24.04 host on 2026-10-28):
- An NVIDIA driver that supports CUDA 13.2 and uv.
- The Python 3.12 headers and a C compiler: Triton compiles a small C helper every time vLLM starts; without them every
vllm servestops withfatal error: Python.h: No such file or directory. On Debian/Ubuntu:sudo apt-get update && sudo apt-get install -y python3.12-dev build-essential. - No CUDA toolkit is needed: the FlashInfer line below installs prebuilt kernels.
- Disk: about 20 GB for the venv, as much again for uv's cache (
uv cache cleanfrees it), plus 10 GB for the model.
EXL3 is not a native vLLM format. vllm-quantpack (ours, on PyPI) loads it through vLLM's plugin entry point: EXL3 linear and embedding layers through exllamav3's kernels, the INT8 embeddings, the vision tower and a fixed, faster int4 KV cache.
uv venv --python 3.12 venv
uv pip install --python venv/bin/python vllm==0.31.0 --torch-backend=auto # torch 2.13.0
uv pip install --python venv/bin/python flashinfer-cubin==0.7.0.post1 flashinfer-jit-cache==0.7.0.post1+cu130 \
--extra-index-url https://flashinfer.ai/whl/ --extra-index-url https://flashinfer.ai/whl/cu130/ --index-strategy unsafe-best-match # FlashInfer kernels
W=exllamav3-1.6.5+cu132.torch2.13.0-cp312-cp312-linux_x86_64.whl
curl -L -o /tmp/$W "https://github.com/turboderp-org/exllamav3/releases/download/v1.6.5/${W/+/%2B}"
uv pip install --python venv/bin/python /tmp/$W "vllm-quantpack>=0.1.4"
venv/bin/python -c "import torch; from exllamav3.ext import exllamav3_ext; print(torch.__version__, torch.cuda.get_device_name(0))"
Quick start (16 GB GPU)
The configuration of every table above (vision on, full context):
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
vllm serve JRamirez-UAB/ZwZ2-27B-EXL3-2.25bpw-16GB \
--served-model-name zwz2 \
--max-model-len 262144 \
--kv-cache-dtype int4_per_token_head \
--kv-cache-memory-bytes 5220000000 \
--max-num-seqs 4 \
--max-num-batched-tokens 2048 \
--enable-prefix-caching \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--reasoning-parser qwen3 \
--enable-auto-tool-choice --tool-call-parser qwen3_coder
The card must have nothing else on it: on a card that also drives a display, lower --kv-cache-memory-bytes by what the desktop uses (and the context with it). If vLLM refuses to start because of --gpu-memory-utilization, add --gpu-memory-utilization 0.92: the KV size is fixed by --kv-cache-memory-bytes anyway.
Using it with opencode (how we tested)
limit.context must match --max-model-len (262144 above).
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"local-vllm": {
"npm": "@ai-sdk/openai-compatible",
"name": "local vLLM",
"options": { "baseURL": "http://127.0.0.1:8000/v1" },
"models": {
"zwz2": {
"name": "ZwZ2-27B EXL3 2.25 (local)",
"tool_call": true,
"temperature": true,
"attachment": true,
"modalities": { "input": ["text", "image"], "output": ["text"] },
"limit": { "context": 262144, "output": 32768 },
"variants": {
"none": { "chat_template_kwargs": { "enable_thinking": false } },
"think": { "chat_template_kwargs": { "enable_thinking": true } }
}
}
}
}
},
"agent": {
"build": { "model": "local-vllm/zwz2", "temperature": 1.0 },
"plan": { "model": "local-vllm/zwz2", "temperature": 1.0 }
}
}
- Declare
"temperature": truein the model, otherwise opencode sends no temperature to a custom model. - Without
attachment/modalitiesopencode will not send images. - With
output: 32768opencode compacts the history at aboutcontext − 32ktokens of input, before vLLM rejects the request.
Important notes
- Memory. The driver reserves part of the card that vLLM cannot use (about 453 MiB on a 24 GB 3090): read the real headroom with
nvidia-smi --query-gpu=memory.free. Size the KV cache with--kv-cache-memory-bytes, not--gpu-memory-utilization. - Prefix caching matters for agents: opencode sends the same tools and system prompt in every request, and each turn repeats the whole conversation.
- Tool calls work with the source model's own template and
--tool-call-parser qwen3_coder. - Hugging Face page warnings: the "Model size" shown by Hugging Face counts packed storage elements, not parameters; the Configuration Parsing Warning about
quantization_config.bitsnot being an integer may appear (EXL3bitsis an average).
Quantization recipe
| Step | Setting |
|---|---|
| Source | inclusionAI/ZwZ2-27B revision 6decedf05c, downloaded on 2026-11-03; chat template and tokenizer unchanged |
| Tool | exllamav3 1.6.5 convert.py, one RTX PRO 6000 Blackwell |
| Linear layers | 2.25 bpw average (-b 2.25; exllamav3 spreads the bits between tensors, e.g. 2.0-2.5) |
lm_head / vision tower |
6 / 6 bits (-hb 6 -vb 6); no MTP head in the source |
| Token embeddings | re-encoded to INT8 per row (absmax / 127, BF16 scales) with scripts/embed_int8.py |
| Calibration | 585 rows built from real opencode conversation prefixes of our sysadmin work plus agent steps written by Swift 1.5 (a Qwen3.8-27B fine-tune) in BF16 on our internal prompts; same tokenizer (the same calibration as the 4.0 build). Not published, and no text is stored in the weights |
Integrity and validation
Artifact integrity
SHA256SUMSlists every file; the verifier compares the repo with our local copy byte for byte before publication.- The safetensors files carry no
__metadata__;quantization_config.jsonholds only bit widths, tensor layout and the calibration size (rows and columns).
Quantization
- KL divergence against the BF16 model with exllamav3's
qbenchon three traces (Results).
Runtime
- Load, capacity at 262,144 with vision within the 16 GB limit, tool calls with the real opencode request, vision and programming tasks: see Results; engine errors during the runs: 0.
Scope: results apply to the stack (vLLM 0.31.0 + exllamav3 1.6.5 + vllm-quantpack 0.1.4) and the settings stated above, with a 16 GB card simulated on an RTX 3090; other setups are not tested.
Limitations
- Review the commands before they run. As an agent, the model proposes shell commands and opencode can execute them: give it a non-privileged account and a test machine where you can.
- Will not load with stock vLLM, Transformers or SGLang: it needs exllamav3 and vllm-quantpack.
- Lower fidelity than the 4.0 build: about ten times its KL divergence and fewer programming tasks solved. If you have 24 GB, use the 4.0 bpw build.
- Only one session of the full 262k context fits, with little room to spare: nothing else can use the card.
- Not run on a real 16 GB card: the limit was simulated on a 3090 by keeping the peak under 15,630 MiB.
- ZwZ2 is a visual-reasoning model; our tests are sysadmin and generic vision checks (synthetic images: terminal screenshot, chart, dense text), not the authors' 25 benchmarks. Their scores are for the BF16 model.
- Not measured for this build: needle retrieval, repetition loops across temperatures, the 3 × 20 tool replay, agent tasks with
opencode run, refusals. The calibration and our two traces are internal, so those KLD numbers cannot be reproduced outside; the public-trace KLD can.
Feedback welcome
Reports of installations, both working and failed ones, are very welcome in the Community tab, especially from real 16 GB cards: GPU(s), driver, vLLM version, the full command line and the result (speed, context, or the error).
Credits & license
- Base model: inclusionAI/ZwZ2-27B by inclusionAI (paper, project), built on Qwen/Qwen3.6-27B.
- exllamav3 by turboderp (quantization, kernels,
qbenchand the public trace); EXL3 is based on QTIP (Tseng et al.). - vLLM; vllm-quantpack (ours, Apache-2.0).
- This quantization is released under Apache-2.0 (see License above).