Qwen3.8-27B-Coder390 — EXL3 3.50 bpw, for 24 GB GPUs (vision + MTP, served with vLLM)
Install from this card, not from generic snippets. This is an EXL3 checkpoint: vLLM loads it only together with exllamav3 and the plugins in Requirements & install. Follow it and the Quick start; a plain
pip install vllm, Transformers or SGLang cannot load it.
An unofficial community EXL3 quantization of
nerkyor/Qwen3.8-27B-Coder390-EfficientThink-Opus5.5-GPT6Astra-Grok4.7-DSV4Pro-K3-SFT-RLOO-MTP-DFlash2
("Coder390"), a fine-tune of Qwen3.8-27B with vision and an MTP head. It was made with exllamav3:
3.50 bits per weight on the language model (3.517 achieved), a 6-bit lm_head, a 6-bit vision tower, a 4-bit MTP head and BF16 token embeddings.
It is served with vLLM (continuous batching) through our vllm-quantpack plugin, and runs a 167,936-token context with
vision and MTP speculative decoding on one 24 GB GPU, with a KL divergence of 0.013–0.020 against BF16. In our checks it is a strong agent: reasoning
47/48 with short reasoning, opencode agent tasks 27/30, vision 15/15.
License: Apache-2.0, inherited from the base model. This is not an official release of the base model's author or of Qwen.
Tested setup: NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB, power limit 300 W, 2,270 MHz clock cap) with the KV cache and the VRAM peak sized for a 24 GB GPU; vLLM 0.31.0 + exllamav3 1.5.1 + the OrcaSAQ2 plugin (commit
7ddffb12, with the patch inpatches/) + ourqwen38_exl3_visionplugin, the Quick start configuration (2026-10-25). Only this setup has been tested; the 24 GB figures were not measured on a physical 24 GB card.
Highlights (measured on 2026-10-25; details in Results):
- KLD against BF16 0.0198 on our sysadmin trace, 0.0128 on the opencode trace and 0.0157 on turboderp's public trace.
- 167,936 tokens with vision and MTP 3 on a 24 GB GPU (one full-context session; 8 sessions of 30k at once returned all needle facts); 371 MiB of VRAM really free at peak.
- Tool calls with the real opencode request 57/60 (and 30/30 in the battery); opencode agent tasks 27/30 (10 sysadmin tasks × 3 runs); vision 15/15.
- Reasoning 47/48 at
xhighwith 17,796 reasoning tokens in total (median 382), none cut. - Decode 130 / 225 / 461 / 571 tok/s with 1 / 2 / 4 / 8 requests with MTP 3 (acceptance length 3.01); needle 8/8 at 64k, 128k and 154k.
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 size | Context per session | Real concurrent full-context sessions | KV cache | Speculative decoding |
|---|---|---|---|---|
| 24 GB | 167,936 (vision on) | 1 (8 shorter sessions share the pool) | fp8, 6,795,904,942 B | MTP, 3 tokens |
| 16 GB | does not fit | — | — | — |
On 16 GB the weights (with vision and MTP) leave no memory for the KV cache: vLLM stops with "No available memory for the cache blocks".
Variants / revisions
| Revision | Language model (achieved) | lm_head |
Vision | MTP head | Embeddings | Size | KLD (sysadmin / opencode / public) |
|---|---|---|---|---|---|---|---|
main |
3.50 bpw (3.517) | 6 bits | 6 bits | 4 bits | BF16 | 15.0 GB (14.0 GiB) | 0.0198 / 0.0128 / 0.0157 |
Files and reproducibility
model-00001-of-00002.safetensors,model-00002-of-00002.safetensors,model.safetensors.index.json,config.json(quantization_config:exl3, 3.50 bits, head 6, vision 6, MTP 4),quantization_config.json(per-tensor storage),tokenizer.json,tokenizer_config.json,chat_template.jinja,preprocessor_config.json,video_preprocessor_config.json,generation_config.json(our recommended sampling, see Sampling and repetition loops).plugin/qwen38_exl3_vision/: our vLLM plugin (EXL3 vision tower: drops the separateattn.{q,k,v}_projtensors and pads input dimensions where needed).patches/orcasaq2-7ddffb12.diff: the changes our tested OrcaSAQ2 has on top of commit7ddffb12(prefix matching for multimodal checkpoints, release of the host-RAM copy of the checkpoint, an emptylm_headfor speculative drafts).setup.sh: the install below as one script.LICENSE(Apache-2.0),SHA256SUMS.- Not included: the BF16 original, its DFlash2 draft (not recommended here, see Known model behaviour), exllamav3, vLLM and OrcaSAQ2, our calibration and evaluation traces.
Results
Quantization quality
KL divergence and perplexity against the BF16 original with exllamav3's qbench (2026-10-25). Traces: our own Spanish sysadmin trace, a trace built from
real opencode sessions, and turboderp's public qbench_prompts_gen.json.
| Trace | KLD mean | KLD median | KLD p90 | PPL BF16 | PPL EXL3 3.50 |
|---|---|---|---|---|---|
| Our sysadmin trace | 0.0198 | 0.0044 | 0.0565 | 1.5752 | 1.6081 |
| opencode sessions | 0.0128 | 0.0045 | 0.0335 | 2.5679 | 2.5851 |
| turboderp's public trace | 0.0157 | 0.0008 | 0.0473 | 1.3417 | 1.3656 |
Capacity per GPU size
RTX PRO 6000 with the KV cache sized for 24 GB; the VRAM limit assumes the 460 MiB a real 24 GB GPU reserves for the driver. Vision on (1 image per request,
≤1 MP), MTP 3, KV fp8. "Real concurrent sessions" = sessions of 90 % of the context sent at once whose peak of vllm:num_requests_running equals the
number of sessions, with no preemption; "pool" is the GPU KV cache size vLLM reports at start-up.
| GPU size | --max-model-len |
--kv-cache-memory-bytes |
KV pool (tokens) | Real concurrent sessions | VRAM peak | Really free at peak |
|---|---|---|---|---|---|---|
| 24 GB | 167,936 | 6,795,904,942 | 169,335 | 1 | 23,745 MiB | 371 MiB |
Test battery
RTX PRO 6000 with the 24 GB configuration (Quick start, --max-num-seqs 4), 2026-10-25.
| Test | Result |
|---|---|
| Smoke (short answer; 4 long Spanish answers, 8,000-token limit) | OK; no CJK; long answers of 5,030 / 6,568 / 4,811 tokens and one that reached the limit |
| Speed (decode, 1 / 2 / 4 / 8 requests, MTP 3) | 137.1 / 236.1 / 487.1 / 494.2 tok/s (8 = 4 because of --max-num-seqs 4) |
| Tool calls, real opencode request | battery 30/30; replay 57/60 correct (58 valid; 3 cases × 20) |
Reasoning (48 problems, xhigh) |
47/48 correct, 17,796 reasoning tokens (median 382), none cut |
| Needle (8 facts) | 64k 8/8 · 128k 8/8 · 154k 8/8 |
| Concurrent sessions (8 × 30k) | 8 of 8 sessions returned all 8 facts; aggregate prefill 2,893 tok/s |
| Agent tasks (opencode, 10 sysadmin tasks × 3 runs) | 10/10 · 9/10 · 8/10 = 27/30 |
| Games | 43/48 points, 2 of 4 run |
Vision
Same GPU and configuration as the battery (1 image per request, ≤1 MP, temperature 0, reasoning off): 15/15.
| Case | Checks | Result |
|---|---|---|
Terminal screenshot (systemctl error) |
unit name, cause ("address already in use"), the command to find the process | 3/3 |
| Chart (read three plotted values) | three values | 3/3 |
| Dense text image (firewall rules) | port, network, action | 3/3 |
| Screenshot to action (free a port held by a process) | right PID, stops it properly, checks, restarts the service, does not touch the wrong PID, no pkill |
6/6 |
Not measured: several images in one request, video, photographs, and the tokens per image.
Speculative decoding
RTX PRO 6000 with the 24 GB configuration and --max-num-seqs 8.
| Variant | 1 / 2 / 4 / 8 requests (tok/s) | Acceptance length | Context |
|---|---|---|---|
| none | 68.0 / 112.0 / 193.9 / 389.6 | — | 167,936 |
| MTP, 3 tokens (Quick start) | 130.4 / 224.9 / 460.5 / 570.6 | 3.01 | 167,936 |
| DFlash2 draft, 7 tokens | 41.6 / 81.2 / 87.7 / 93.3 | 1.00 | 100,352 |
At temperature 0 the MTP output is not identical to the run without speculation: the three test answers diverge after 130 to 556 characters (verification runs several tokens per step, which changes the floating-point rounding). The battery above ran with MTP 3.
Sampling and repetition loops
RTX PRO 6000 with the 24 GB configuration, MTP 3, --max-num-seqs 8, 2026-10-25: 5 long Spanish sysadmin prompts × 6 runs per temperature, up to 16,000
tokens, top_p 0.95 and top_k 20; a loop = more than 30 % repeated word 8-grams; an empty answer = the reasoning used the whole budget.
| Temperature | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 |
|---|---|---|---|---|---|---|
| Loops / 30 | 11 | 8 | 9 | 8 | 4 | 7 |
| Answers that finished before 16,000 tokens / 30 | 20 | 20 | 23 | 22 | 26 | 18 |
| Empty answers / 30 | 9 | 10 | 7 | 8 | 4 | 11 |
| BF16 original, loops / 30 | 14 | 10 | 9 | 5 | 5 | 2 |
| BF16 original, finished / 30 | 16 | 17 | 17 | 20 | 22 | 25 |
| BF16 original, empty / 30 | 14 | 12 | 13 | 6 | 8 | 4 |
The BF16 rows are the same test on the original weights (RTX PRO 6000, no speculation, KV fp8, 8 sequences).
Use temperature 0.9 (fewest loops, most finished answers): it is this repo's default in generation_config.json, with top_p 0.95 and top_k 20.
Loops on these long open questions are frequent at every temperature; the short-answer and agent checks above did not show them.
Known model behaviour and discarded options
- Loops: model or quantization? The model. The BF16 original loops on the same long questions at every temperature (14 / 10 / 9 / 5 / 5 / 2 of 30 from 0.5 to 1.0, see Sampling and repetition loops). At the recommended 0.9 the EXL3 is on par (4 vs 5); at 1.0 it loops more (7 vs 2), which is why the default is 0.9 and not the model's own 1.0.
- Do not use temperature 0 (greedy decoding). With a long sysadmin question in Spanish (3,000 max tokens) both this EXL3 and the BF16 original
loop inside the reasoning at temperature 0 and never reach the answer (repeated word 8-grams: 0.80 EXL3, 0.69 BF16). It is the model, not the
quantization. Use the sampling in
generation_config.json(temperature 0.9, top-p 0.95, top-k 20); with it the same question does not loop. - Discarded: the DFlash2 draft shipped with the base model. With this EXL3 target its acceptance length is 1.00 (no draft token is accepted), it is slower than no speculation at every concurrency, and its own KV cache lowers the context to 100,352. MTP 3 is the recommended speculation.
- Discarded: KV
turboquant_k8v4(vLLM's 8-bit K / 4-bit V cache). On 24 GB it gives a 151,552-token context (one session) instead of 167,936 with fp8, because vLLM's estimate leaves 2,037 MiB unused at peak. - Discarded: 16 GB (no memory left for the KV cache, see Which one to use).
Requirements & install
Before you install (checked on a clean Ubuntu 24.04 host with an A40, 2026-10-28):
- An NVIDIA driver that supports CUDA 13.2 (tested with 595.84) and uv.
- The Python 3.12 headers and a C compiler.
uv venv --python 3.12uses the system Python 3.12 when there is one, and Triton compiles a small C helper every time vLLM starts; without the headers everyvllm 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 (without it, vLLM looks for
nvccat start and fails withCould not find nvcc and default cuda_home='/usr/local/cuda' doesn't exist). - Disk: about 20 GB for the venv, as much again for uv's cache (
uv cache cleanfrees it), plus the model.
EXL3 is not a native vLLM format. One plugin is loaded through vLLM's vllm.general_plugins entry point:
- vllm-quantpack (ours, on PyPI): EXL3 linear, embedding and MoE layers through exllamav3's kernels, plus the vision tower and the MTP head.
- exllamav3 1.5.1 (the serving runtime; the checkpoint was converted with 1.6.4) and Python 3.12 (the exllamav3 wheels are cp312).
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.5.1+cu132.torch2.13.0-cp312-cp312-linux_x86_64.whl
curl -L -o /tmp/$W "https://github.com/turboderp-org/exllamav3/releases/download/v1.5.1/${W/+/%2B}"
uv pip install --python venv/bin/python /tmp/$W vllm-quantpack
venv/bin/python -c "import torch; from exllamav3.ext import exllamav3_ext; print(torch.__version__, torch.cuda.get_device_name(0))"
Plugin (2026-10-28): vllm-quantpack (
pip install vllm-quantpack) replaces the OrcaSAQ2 +qwen38_exl3_visionplugins. The measurements in this card were made with the previous stack (OrcaSAQ2 + our plugins); this checkpoint was then served again with vllm-quantpack 0.1.0 following this card on a clean install (text, image and tool calls checked). The previous files stay inplugin/andpatches/for reference.
Quick start
24 GB GPU, vision + MTP 3, 167,936-token context, up to 4 concurrent sequences, 1 image per request (≤1 MP) — our validated configuration:
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True VLLM_USE_FLASHINFER_SAMPLER=0
vllm serve JRamirez-UAB/Qwen3.8-27B-Coder390-EXL3-3.50bpw-24GB \
--served-model-name coder390 \
--limit-mm-per-prompt '{"image":1,"video":0}' \
--mm-processor-kwargs '{"max_pixels":1003520}' \
--max-model-len 167936 \
--kv-cache-dtype fp8_e4m3 \
--kv-cache-memory-bytes 6795904942 \
--max-num-batched-tokens 1024 \
--max-num-seqs 4 \
--enable-prefix-caching \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}' \
--reasoning-parser qwen3 \
--enable-auto-tool-choice --tool-call-parser qwen3_coder
Using it with opencode (how we tested)
Tested with opencode 1.18.35. Tool calling was measured with the real opencode request (its long system prompt and 11 tools, captured and replayed against
vLLM) and with opencode run agent tasks; context, speed, memory and image tests were run directly against the vLLM API.
{
"$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": {
"coder390": {
"name": "Qwen3.8-27B-Coder390 EXL3 (local)",
"tool_call": true,
"temperature": true,
"attachment": true,
"modalities": { "input": ["text", "image"], "output": ["text"] },
"limit": { "context": 167936, "output": 16000 },
"variants": {
"none": { "chat_template_kwargs": { "enable_thinking": false } },
"low": { "chat_template_kwargs": { "reasoning_effort": "low" } },
"medium": { "chat_template_kwargs": { "reasoning_effort": "medium" } },
"xhigh": { "chat_template_kwargs": { "reasoning_effort": "xhigh" } }
}
}
}
}
},
"agent": {
"build": { "model": "local-vllm/coder390", "variant": "xhigh", "temperature": 0.9 },
"plan": { "model": "local-vllm/coder390", "variant": "xhigh", "temperature": 0.9 }
}
}
- Declare
"temperature": truein the model, otherwise opencode sends no temperature to a custom model. limit.context=--max-model-len. Withoutattachment/modalitiesopencode will not send images.
Important notes
- Memory. Size the KV cache with
--kv-cache-memory-bytes, never with--gpu-memory-utilization(the profiling of this hybrid GatedDeltaNet model under-estimates the activations). Read the real headroom withnvidia-smi --query-gpu=memory.used,memory.free --format=csv; a desktop session on the same GPU eats the 371 MiB margin. - Hugging Face page warnings: the "Model size" Hugging Face shows counts packed storage elements (EXL3 packs several weights into each
int16), not parameters. The Configuration Parsing Warning "quantization_config.bitsmust be an integer" is expected: for EXL3bitsis an average. VLLM_USE_FLASHINFER_SAMPLER=0is recommended by the OrcaSAQ2 plugin. Use--tool-call-parser qwen3_coderand--reasoning-parser qwen3;reasoning_effortacceptslow,mediumandxhigh.
Quantization recipe
| Step | What we did |
|---|---|
| Conversion | exllamav3 1.6.4 convert_model: 3.50 bpw (-b 3.5), lm_head 6 bits, vision 6 bits (-vb 6), MTP 4 bits (-mb 4), embeddings BF16, codebook mul1 |
| Calibration | exllamav3's built-in calibration set, 250 rows × 2,048 tokens |
| Bit allocation | uniform target rate (no SC per-tensor optimisation) |
| Hardware | one RTX PRO 6000; about 80 minutes |
Tokenizer, chat template and processor configs unchanged; generation_config.json changed to our recommended sampling (temperature 0.9, top_p 0.95, top_k 20).
Integrity and validation
Artifact integrity
- Every file is checked against our local copy with SHA-256 (
SHA256SUMS); the checkpoint was downloaded back from this repo and served with the Quick start.
Quantization
- Fidelity: KL divergence against BF16 with exllamav3's
qbenchon three traces (table above).
Chat template
- Unchanged from the base model (Qwen3.8 XML tool calls,
qwen3_coder).
Runtime
- Load, needle, vision, tool calls, agent tasks, concurrency, VRAM, speculative decoding and the loop test: see Results; engine errors during the runs: 0.
Scope: results apply to this revision, the stack above (vLLM 0.31.0 + exllamav3 1.5.1 + OrcaSAQ2 7ddffb12 with our patch + qwen38_exl3_vision), the
RTX PRO 6000 sized for 24 GB and the settings stated above; 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.
- Needs our
vllm-quantpackplugin; it will not load with stock vLLM, Transformers or SGLang. - The full 262,144-token context does not fit on 24 GB at this rate with vision and MTP.
- Repetition loops on long open answers at every temperature (see Sampling and repetition loops).
- Vision was validated with four synthetic images only; several images, video and photographs were not measured.
- The 24 GB figures were measured on a 96 GB GPU sized for 24 GB, not on a physical 24 GB card. All numbers come from one software stack.
Feedback welcome
I would be grateful for reports of installations of this checkpoint, both working and failed ones, especially on real 24 GB GPUs (RTX 3090 / 4090). Please open a discussion in the Community tab with your GPU, driver, vLLM / exllamav3 / plugin versions, the full command line and the result.
Credits & license
- Base model: nerkyor/Qwen3.8-27B-Coder390-EfficientThink-Opus5.5-GPT6Astra-Grok4.7-DSV4Pro-K3-SFT-RLOO-MTP-DFlash2 (Apache-2.0), a fine-tune of Qwen3.8-27B (Qwen team).
- exllamav3 and the EXL3 format by turboderp (MIT), including
qbenchand the public evaluation trace; EXL3 is based on QTIP (Tseng et al.). - vLLM integration: the OrcaSAQ2 plugin by Continuum AI Corp; vLLM.
- Our code:
plugin/qwen38_exl3_vision/,patches/,setup.sh(Apache-2.0).
Apache-2.0, same as the base model. This is a community quantization, not an official release. exllamav3, vLLM and OrcaSAQ2 are not redistributed here; install them from their repositories under their own licenses.