The checkpoint
Table with columns: Component, Format| Component | Format |
|---|
Gated attention (16 layers), Gated DeltaNet in_proj_qkv / in_proj_z / out_proj (48 layers) and feed-forward (all 64) | AWQ INT4, asymmetric, group 128 (philbert's checkpoint) |
lm_head | INT4 GPTQ, asymmetric, group 128 |
| MTP draft head (projections, attention, feed-forward) | INT4, asymmetric, group 128, GPTQ-calibrated on drafter inputs |
Gated DeltaNet in_proj_a / in_proj_b, conv and norms; vision tower; embeddings; norms | BF16, unchanged |
| KV cache | FP8 E4M3 with per-layer static scales for the 16 attention layers and the MTP layer (kv_scales.safetensors) |
Files in this repository
Table with columns: Files, What they hold, Size| Files | What they hold | Size |
|---|
model.safetensors | The language model, vision tower and embeddings | 15.7 GiB |
model-mtp.safetensors | The MTP draft head, INT4 | 210 MiB |
kv_scales.safetensors | Calibrated static scales for the FP8 KV cache | 3.5 KiB |
model.safetensors.index.json | Which file holds each tensor | 206 KiB |
chat_template.jinja | Qwen's own chat template, unchanged (byte-identical to the upstream file). Merlin serves Froggeric's fixed Qwen3.8 template (v22.5) by default; see Use it | 8.7 KiB |
config.json, generation_config.json | Model, quantisation and sampling settings | 21.4 KiB |
tokenizer.json, tokenizer_config.json, processor configs | tokenizer.json byte for byte from Qwen3.8-27B; tokenizer_config.json re-serialised by transformers; image / video processor settings | 12.2 MiB |
About 16 GiB in all (the 11 files of the engine's models/qwen38-27b/checkpoint.sha256). Also in the repository: LICENSE (Apache-2.0) and NOTICE.
Speed
Table with columns: Prompt, Decode, 1× 3090, Decode, 2× 3090, Decode, 4× 3090| Prompt | Decode, 1× 3090 | Decode, 2× 3090 | Decode, 4× 3090 |
|---|
| 4K | 131 tok/s | 248 tok/s | 315 tok/s |
| 32K | 124 tok/s | 199 tok/s (3.0.1 run) | 259 tok/s (3.0.1 run) |
| 131K | 102 tok/s | 197 tok/s | 296 tok/s |
| 262K | 75 tok/s | 160 tok/s | 267 tok/s |
One stream, thinking on (effort medium), ≤ 256 tokens out (128 at 262K), median of 3; 4,046 / 32,566 / 130,386 / 261,888 prompt tokens. The 32K row on two and four cards was not re-run for 3.0.2, 3.0.2.1 or 3.0.2.2. Thinking off at 262K: 55 / 105 / 190 tok/s on one / two / four cards. At exactly 262K each of the three sends is a different text, and with speculative decoding the rate varies with the text: the four-card sends with thinking on ran 266.7–277.6 tok/s, the two-card ones 153.1–165.9 and the one-card ones 74.4–77.7. Bold: measured on Merlin 3.0.2.2 (2026-11-21); the other cells are Merlin 3.0.2.1 figures (or older runs, as marked), carried forward after a spot check on 3.0.2.2.
Table with columns: Prompt, Time to first token, 1× 3090, 2× 3090, 4× 3090| Prompt | Time to first token, 1× 3090 | 2× 3090 | 4× 3090 |
|---|
| 4K | 3.27 s | 1.71 s | 1.06 s |
| 32K | 28.6 s | 15.0 s (3.0.1 run) | 8.86 s (3.0.1 run) |
| 131K | 159.7 s | 84.3 s | 46.2 s |
| 262K | 446.2 s | 234.4 s | 123.6 s |
Time to first token (TTFT): the median of 3 cold sends below 262K (the thinking-on ladder cells) and the cold send 1 at 262K. The 32K row on two and four cards was not re-run for 3.0.2, 3.0.2.1 or 3.0.2.2. Prefill speed at 10K, 100K and 262K is in the next table.
Table with columns: Cold prefill, one send, 1× 3090, 2× 3090, 4× 3090| Cold prefill, one send | 1× 3090 | 2× 3090 | 4× 3090 |
|---|
| 10,157 tokens | 1,234 tok/s · 8.23 s | 2,345 tok/s · 4.33 s | 3,903 tok/s · 2.60 s |
| 101,845 tokens | 891 tok/s · 114.3 s | 1,687 tok/s · 60.4 s | 3,023 tok/s · 33.7 s |
| 261,888 tokens | 587 tok/s · 446.2 s | 1,117 tok/s · 234.4 s | 2,118 tok/s · 123.6 s |
Prefill and time to first token, one cold request per prompt, 8 tokens out; the 261,888-token row is the exact-262K prompt's cold thinking-on send 1 (128 tokens out). Bold: measured on Merlin 3.0.2.2 (2026-11-21); the other cells are Merlin 3.0.2.1 figures (or older runs, as marked), carried forward after a spot check on 3.0.2.2.
Table with columns: Agents at once, 1× 3090, 2× 3090, 4× 3090| Agents at once | 1× 3090 | 2× 3090 | 4× 3090 |
|---|
| 2 (3.0.0 run) | 164 tok/s | 281 tok/s | 361 tok/s |
| 4 (3.0.0 run) | two at most | 373 tok/s | 549 tok/s |
| 8, thinking off | two at most | 677 tok/s | 857 tok/s |
| 8, thinking on (effort medium) | two at most | 740 tok/s | 1,012 tok/s |
N 16K conversations, then N simultaneous 512-token follow-ups, total tok/s while all N decode; thinking off unless stated. One card runs two sequences at most. The 8-agent rows are Merlin 3.0.2.2 on four cards (2026-11-21, bold) and Merlin 3.0.2.1 on two (thinking on 2026-11-10, thinking off 2026-11-11); with thinking on a 512-token follow-up may end inside the reasoning, and reasoning tokens count, so those totals measure decoded tokens, not finished answers. Overlap windows: thinking on 3.41 s on four cards and 3.73 s on two, thinking off 4.36 s on four and 5.55 s on two; under 5 s is short, so read those totals loosely. The 2- and 4-agent rows are 3.0.0 runs (one and two cards: a pre-release engine build, 2026-10-17; four cards: the release wheel, 2026-10-20), windows 2.6 to 5.7 s.
Table with columns: Sessions held at once, Needles found, Re-sent from cache, lowest| Sessions held at once | Needles found | Re-sent from cache, lowest |
|---|
| 1 × 262K or 2 × 131K (one card) | 1 / 1 · 2 / 2 | 99.99 % · 99.98 % |
| 3 × 262K or 6 × 131K (two cards) | 3 / 3 · 6 / 6 | 99.99 % · 99.98 % |
| 7 × 262K or 14 × 131K (four cards) | 7 / 7 · 14 / 14 | 99.99 % · 99.98 % |
N needle prompts (thinking off, greedy) sent at once, then re-sent one by one: every re-send served from the prefix cache means the pool held all N. 0 preemptions. 3.0.0 run, 2026-10-20; the KV pools are unchanged in 3.0.1, 3.0.2, 3.0.2.1 and 3.0.2.2.
Table with columns: Measure, 3.0.2.1, 3.0.2.2, Change| Measure | 3.0.2.1 | 3.0.2.2 | Change |
|---|
| Decode, 4K prompt | 262.0 | 315.5 | +20 % |
| Decode, 131K prompt | 258.0 | 296.3 | +15 % |
| Decode, 262K prompt | 232.7 | 267.2 | +15 % |
| Decode, 4K, thinking off | 184.5 | 219.2 | +19 % |
| Decode, 131K, thinking off | 169.8 | 193.7 | +14 % |
| Decode, 262K, thinking off | 163.3 | 189.8 | +16 % |
| Cold prefill, 10,157 tokens | 3,901 | 3,903 | 0 % |
| Cold prefill, 101,845 tokens | 3,017 | 3,023 | 0 % |
| Cold prefill, 261,888 tokens | 2,115 | 2,118 | 0 % |
| 8 agents, thinking on (effort medium) | 970 | 1,012 | +4 % |
| 8 agents, thinking off | 857 | 857 | 0 % |
tok/s, four cards; the change column is the bench card's. Decode is one stream with thinking on at effort medium unless stated, prefill one cold send. The gain is the time per decode step: Merlin 3.0.2.2 turns on four decode settings on four RTX 3090s with P2P (VLLM_DRAFT_BOUNDED_PLAN, VLLM_GDN_DECODE_FASTPATH, VLLM_GDN_SHARED_ALIGN_INDEX, VLLM_TARGET_SEQ_LENS_ASYNC, as on two cards), and the median event interval is 12.82 ms against 15.39 ms at 4K thinking on and 15.14 against 17.48 ms at 131K, with the tokens per event level (4.00 against 4.00 at 4K). The 262K rows are the median of three 128-token sends, each a different text; over 6 sends at exact 262K: thinking on 275.4 tok/s (266.7–299.7; 3.0.2.1: 238.1, 230.7–252.6), thinking off 181.1 tok/s (173.0–205.7; 3.0.2.1: 164.6, 163.0–171.5). The 3.0.2.1 8-agent figures are from that release's previous build; every 8-agent total is one run, and both 3.0.2.2 windows are under 5 s (3.41 and 4.36 s), so read those totals loosely. One and two cards keep their 3.0.2.1 figures (spot check on 3.0.2.2: two cards: 4K thinking-on decode 248.7 against 248.4 tok/s and 100K prefill 1,670 against 1,687 tok/s; one card: 130.6 against 130.7 tok/s and 893 against 891 tok/s; each inside its ±3 % run-to-run band, with the same KV pools and the needle panel 6/6). The 3.0.2.1 card has the full 3.0.2.1 tables.
Table with columns: Measure, 1× 3090, 2× 3090| Measure | 1× 3090 | 2× 3090 |
|---|
| Decode, 4K prompt | 131 → 131 (0 %) | 211 → 248 (+18 %) |
| Decode, 131K prompt | 100 → 102 (+2 %) | 184 → 197 (+7 %) |
| Decode, 262K prompt | 77 → 75 (−2 %) | 146 → 160 (+10 %) |
| Decode, 262K, thinking off | 54 → 55 (+1 %) | 107 → 105 (−2 %) |
| Cold prefill, 10,157 tokens | 1,219 → 1,234 (+1 %) | 2,331 → 2,345 (+1 %) |
| Cold prefill, 101,845 tokens | 884 → 891 (+1 %) | 1,677 → 1,687 (+1 %) |
| Cold prefill, 261,888 tokens | 586 → 587 (0 %) | 1,112 → 1,117 (0 %) |
| 8 agents, thinking on (effort medium) | n/a | 682 → 740 (+9 %) |
| 8 agents, thinking off | n/a | 615 (3.0.1 run) → 677 (+10 %) |
3.0.2 → 3.0.2.1 (change, as on the bench card), tok/s; decode is one stream with thinking on at effort medium unless stated, prefill is one cold send; both releases on the same host with the optional GPU-unlock host upgrade. The 262K decode rows are the median of three 128-token sends, each a different text; with speculative decoding the tokens produced per step depend on the text, so a difference there is not a speed change: the time per decode step is within 1 % of 3.0.2 on two cards (29.36 against 29.44 ms). The two-card 4K and 131K rows gain from the six launcher defaults Merlin 3.0.2.1 sets on two RTX 3090s with P2P on (one-stream decode +16.0 %, pooled, against a 7.2 % run-to-run band, outputs identical). Every 8-agent total is one run; the 3.0.2 thinking-off figures are the 3.0.1 run the 3.0.2 card carried over. The 3.0.2 card has the full 3.0.2 tables.
- Host: 4× RTX 3090 (24 GB, sm_86) at 220 W, PCIe Gen4 with P2P, no NVLink, driver 610.43.02; the 3.0.1, 3.0.2, 3.0.2.1 and 3.0.2.2 runs also with the optional Zagitta's gpu-unlock host upgrade.
- Engine: four cards (bold): Merlin 3.0.2.2 on vLLM 0.33.0, on an install of the release's engine code, served by
merlin serve with the shipped defaults (TP4, 27b-tp4-3090, with the four P2P decode settings 3.0.2.2 turns on); runs of 2026-11-21 (UTC). One and two cards: Merlin 3.0.2.1 figures, carried forward after a spot check on 3.0.2.2 (two cards: 4K thinking-on decode 248.7 against 248.4 tok/s and 100K prefill 1,670 against 1,687 tok/s; one card: 130.6 against 130.7 tok/s and 893 against 891 tok/s; each inside its ±3 % run-to-run band, with the same KV pools and the needle panel 6/6); those rows ran on the previous build of the 3.0.2.1 wheel (built on 2026-11-10, before the prefill runs change, which is off on this model; the published wheel differs from it in three engine files), served by merlin serve with the shipped defaults, on separate fresh boots per layout: one card TP1, two cards TP2 on GPUs 0 and 2 with P2P on and the six two-card launcher defaults of 3.0.2.1; runs of 2026-11-10 and 2026-11-11 (UTC). On 2026-11-11 the same prompt at temperature 0, one session, gave the same 256 token ids on the published wheel as on the previous build.
- Layout: MTP K=4, FP8 KV, RecoverSSM on every layout, host-resident token embeddings, thinking effort
medium (the server default).
- Decode: T=0, a needle prompt at depth, every send a cold prefill. At exactly 262K the three sends share one cache salt and each uses a different prompt text (send 1 cold; in this run send 2 was served cold too); 3 sends per cell, median. tok/s = tokens after the first streamed event / time from first to last event.
- Streams are client-timed. Full tables, thinking-off rows and ITL: the 3.0.2.2 bench card (four cards) and the 3.0.2.1 bench card.
Quality
This checkpoint, measured on the Merlin engine:
Table with columns: Check, Result, Setting| Check | Result | Setting |
|---|
| GSM8K-200 | 194 / 194 / 195 of 200 on 1 / 2 / 4 cards | 5-shot, thinking off; the 512-token limit cut 5 / 4 / 4 answers |
| GSM8K-200, thinking on | 198 / 200 on four cards | 5-shot, effort medium, none cut at the 8,192-token cap |
| Needles at 131K | 5 / 5 on each layout | single-occurrence needles, an image in the prompt, thinking off, greedy, cold cache |
| Needles at 262K | 12 / 12 on each layout | as above |
| Needle at exactly 261,888 tokens | 3 / 3 on each layout | thinking off |
| Image, 4096 × 2048 (8,388,608 px) | 1 / 1 · 2 / 2 at once · 1 / 1 with four in one prompt, on 2 and 4 cards (3.0.0 run, 2026-10-20) | thinking off; names both colours of a two-colour image (with four, of the last one) |
GSM8K-200: the four-card thinking-off score is Merlin 3.0.2.2, 2026-11-21 (195 / 200, as on 3.0.2.1); the one- and two-card scores and thinking on are Merlin 3.0.2.1, 2026-11-11; the 3.0.1 card's 200 problems and scorer, temperature 0; thinking on runs on the four-card boot only. The needle and image rows are 3.0.0 runs, not re-run since (images: 3.0.0 run, 2026-10-20). Images: the Merlin 3.0.0 release wheel, 2026-10-20. One and two cards' 131K / 262K needle panel: a pre-release engine build, 2026-10-17; the exact-261,888-token needle on every layout: the release wheel, 2026-10-20. These are checks of this checkpoint, not a matched BF16 comparison: no BF16 run of the same checks was made. The FP8 KV scales were calibrated on traffic that included the first 50 GSM8K test questions (activation maxima only); the lm_head and MTP head were GPTQ-calibrated on public benchmark prompts (ARC, MMLU-Pro, GPQA, GSM8K train split, HumanEval), synthetic tasks and a small hand-written set. No calibration data is distributed.
The base model, as reported by Qwen for the BF16 weights:
Table with columns: Area, Benchmark, Qwen3.8-27B (BF16)| Area | Benchmark | Qwen3.8-27B (BF16) |
|---|
| Coding | Terminal Bench 2.1 (Terminus) | 73.0 |
| Coding | SWE-bench Pro | 61.7 |
| Coding | LiveCodeBench v6 | 90.3 |
| Agents | CoWorkBench | 70.7 |
| Reasoning and instructions | GPQA Diamond | 89.2 |
| Reasoning and instructions | HLE | 30.8 |
| Reasoning and instructions | IFBench | 79.5 |
| Vision | OSWorld-Verified | 84.3 |
| Vision | AndroidWorld | 81.9 |
| Vision | RealWorldQA | 85.9 |
A selection from the upstream card, which has the full tables and comparisons with other models. These were not re-run on this 4-bit build.
What it fits on
Table with columns: Measured on, Context per request, KV pool, Held at once, Images| Measured on | Context per request | KV pool | Held at once | Images |
|---|
| 1× RTX 3090, 24 GB (🟢 Tested) | 262,144 tokens | 271,506 tokens | 1 × 262K or 2 × 131K | 1 per prompt, 4 MP |
| 2× RTX 3090, 24 GB (🟢 Tested) | 262,144 tokens | 826,689 tokens | 3 × 262K or 6 × 131K | 8 MP |
| 4× RTX 3090, 24 GB (🟢 Tested) | 262,144 tokens | 2,012,105 tokens | 7 × 262K or 14 × 131K | 8 MP |
Measured on the reference host: the KV pools as in the 2026-11-12 bench card (unchanged from 3.0.1 and 3.0.2, and on 3.0.2.2); the sessions held at once (3.0.0 run, 2026-10-20) and the image answers (3.0.0 run, 2026-10-20) as below. KV cache FP8, the pool all in VRAM. Two and four cards need GPU peer-to-peer on RTX 3090s for these rows (hosts without it: the no-P2P profiles below). A 4096 × 2048 image (8,388,608 px) left at least 886 MiB free on two cards and 862 MiB on four (3.0.0 run). Merlin 3.0.2.1 adds CUDA graphs for wider decode steps (sizes 80 and 120 on four cards, 80 on two); with them the memory floor during the 8 MP rows was 796 MiB on every card of four and 764 MiB on two, counted as total minus used. One card takes one 4 MP image per prompt: with the single-card memory settings, one and two requests at once and after a 262K needle left at least 558 MiB free (2026-10-21). The original one-card run failed at 8 MP; with those settings 8 MP still stays below the 524 MiB headroom floor (478 MiB on the reference host).
Other GPUs. The engine also ships profiles for these; the Status column says how far each has been run:
Table with columns: GPUs, Arch, Profile, Context fit, Status| GPUs | Arch | Profile | Context fit | Status |
|---|
| 2 / 4× RTX 3090 without P2P | Ampere, sm_86 | 27b-tp2-3090-nop2p, 27b-tp4-3090-nop2p | ~3 / ~7 × 262K (the 3090 pins) | ⚫ Untested |
| 1 / 2 / 4× RTX 3090 Ti, RTX A5000 (24 GB) | Ampere, sm_86 | 27b-tp1-3090, -tp2-3090, -tp4-3090 | ~1 / ~3 / ~7 × 262K (as the 3090) | ⚫ Untested |
| 2 / 4× 20 GB: RTX 3080 20GB, RTX A4500, RTX 4000 Ada | Ampere, sm_86 / Ada, sm_89 | 27b-tp2-sm86-20g, 27b-tp4-sm86-20g, -sm89-20g | ~2 / ~5 × 262K (estimated; new in Merlin 3.0.2.1) | ⚫ Untested |
| 1 / 2 / 4× RTX 4090 (24 GB) | Ada, sm_89 | 27b-tp1-sm89-24g, -tp2-, -tp4- | ~1 / ~3 / 7 × 262K (four cards: 7 × 262K held on a rented host with Qwen3.8-27B; one card: the full run ran out of memory at chunk 1024; at the shipped chunk 512 only the 131K and 262K needles have run) | 🟡 Testing on 2×, 4×; ⚫ otherwise |
| 1 / 2 / 4× 32 / 48 GB Ada: RTX 4080 Super (modified), RTX 4090 48 GB (modified), RTX 6000 Ada, L40S | Ada, sm_89 | 27b-tpN-sm89-32g, -sm89-48g | ~1 / ~3 / ~7 × 262K (the 24 GB pins) | ⚫ Untested |
| 1 / 2 / 4× 48 GB: RTX A6000, A40 | Ampere, sm_86 | 27b-tpN-sm86-48g | ~3 / ~8 / ~18 × 262K | ⚫ Untested |
| 1 / 2 / 4× A30 (24 GB) | Ampere, sm_80 | 27b-tpN-sm80-24g | ~1 / ~3 / ~7 × 262K | ⚫ Untested |
| 1 / 2 / 4× CMP 170HX 32 GB | Ampere, sm_80 | 27b-tpN-sm80-32g | ~1 / ~4 / ~11 × 262K | ⚫ Untested |
| 1 / 2 / 4× A100 40 GB | Ampere, sm_80 | 27b-tpN-sm80-40g | ~2 / ~6 / ~14 × 262K | ⚫ Untested |
| 1 / 2 / 4× CMP 170HX 64 GB | Ampere, sm_80 | 27b-tpN-sm80-64g | ~5 / ~11 / ~25 × 262K (needles exact on a rented host) | 🟡 Testing |
| 1 / 2 / 4× A100 80 GB | Ampere, sm_80 | 27b-tpN-sm80-80g | ~7 / ~15 / ~32 × 262K | ⚫ Untested |
merlin serve and ./setup.sh pick the profile from the GPUs they find; without P2P the default is the largest layout, and merlin serve prints the --tp 1 --instances N command, which gives more total throughput for many users. A ~ is the engine's estimate, not a measurement. Every profile uses an FP8 KV cache, on sm_80 cards too (FP8 KV ran on the 4× CMP 170HX 64 GB rental on one, two and four cards, needles exact, GSM8K-50 48/50). 🟢 measured by us · ⚫ a profile ships, not yet qualified by us (expected to work; a rented-host run is noted in the row where one was made). Every profile: the engine's hardware matrix. 🟡 Testing: full-model runs passed on cloud-hosted cards; not yet qualified against the reference host.
Table with columns: Need, Details| Need | Details |
|---|
| Host RAM | About 2.4 GiB pinned for the host-resident token embeddings (1.18 GiB per card on two cards, 0.59 on four), on top of normal use; one card also keeps the vision-tower weights in host RAM (about 1 GiB) |
| KV RAM cache (optional) | Off by default. --kv-ram-cache SIZE pins SIZE of host RAM on top of the RAM above, at least 9 GiB on one card, 10 on two and 12 on four; see Use it |
| Disk | About 16 GiB for the checkpoint, plus the engine environment and caches |
| Engine host | Linux x86-64 (glibc 2.38 or newer), NVIDIA driver R580 or later (CUDA 13), Python 3.13, GCC/G++ 13 or newer, /dev/shm of at least 1 GB; GPUs headless with no other CUDA process. merlin doctor checks the host. |
Use it
git clone https://github.com/halt95/merlin-engine.git && cd merlin-engine./setup.sh --model 27b
One command does the rest: after a small uv and Python bootstrap it checks the GPUs, driver, RAM and disk, shows the engine, package and checkpoint downloads with their sizes before fetching them, installs the prebuilt engine, downloads and verifies this checkpoint, and starts an OpenAI-compatible server on 127.0.0.1:8100. Enter takes the recommended answer at each question; --yes takes them all, --dry-run shows the plan. Run ./setup.sh again to start the server, and git pull && ./setup.sh to update the engine without downloading the model again. Requests use the model name qwen38-27b; the setup asks how many cards to use and recommends the largest tested layout (on a multi-card host without P2P it recommends --tp 1 --instances N).
[!IMPORTANT]
This checkpoint needs the Merlin engine; stock vLLM was not tested with it.
git clone --branch merlin-v3.0.2.2 --depth 1 https://github.com/halt95/merlin-engine.git && cd merlin-enginecurl -LO https://github.com/halt95/merlin-engine/releases/download/merlin-v3.0.2.2/vllm-0.33.0+merlin3.0.2.2.c56eeed392-cp313-cp313-linux_x86_64.whlMERLIN_WHEEL="$PWD/vllm-0.33.0+merlin3.0.2.2.c56eeed392-cp313-cp313-linux_x86_64.whl" bash release/install-env.sh ./venv venv/bin/hf download halt95/Qwen3.8-27B-W4A16-Merlin --revision 7a0af39f63dd4fb0733c23d3ec126762074a503f \ --local-dir ~/models/27b(cd ~/models/27b && sha256sum -c "$OLDPWD/models/qwen38-27b/checkpoint.sha256")venv/bin/python merlin_cli.py serve ~/models/27b
MERLIN_WHEEL installs the prebuilt engine (sm_80, sm_86, sm_89; Merlin 3.0.2.2 on vLLM 0.33.0; this checkout refuses the 3.0.2.1 wheel, and the dependency lock is unchanged), checked against release/merlin-wheel.sha256; without it the installer compiles the engine instead, about 1.5 hours on 8 cores. merlin serve recognises the checkpoint, picks the largest tested layout for the GPUs it finds (or, with none, the largest untested one that fits, labelled as such) and serves on 127.0.0.1:8100. --tp 1|2|4 picks a layout. Add --dry-run to print the resolved command without starting anything. The first start compiles kernels; the server is ready when merlin: Ready: ... prints.
Recommended settings (Qwen's, for Qwen3.8-27B):
Table with columns: Mode, temperature, top_p, top_k, presence_penalty| Mode | temperature | top_p | top_k | presence_penalty |
|---|
| Thinking (default) | 1.0 | 0.95 | 20 | 0.0 |
| Non-thinking | 0.7 | 0.80 | 20 | 1.5 |
Qwen's recommendation for this model, with min_p=0.0 and repetition_penalty=1.0 in both modes. A presence_penalty between 0 and 2 reduces endless repetition; higher values can mix languages.
- Turn thinking off for a request with
"chat_template_kwargs": {"enable_thinking": false}. With thinking on, a short max_tokens can end inside the reasoning with empty content.
- Reasoning effort: Merlin serves
medium by default; pick another per request with "chat_template_kwargs": {"reasoning_effort": "low"} (low / medium / xhigh).
- KV RAM cache (experimental, off by default):
--kv-ram-cache SIZE on merlin serve or ./setup.sh keeps the prefix KV that the GPU evicts in pinned host RAM and restores it, with the same output, instead of recomputing it. It adds no context or sessions; SIZE comes on top of the host RAM above (at least 9g on one card, 10g on two, 12g on four). On four cards --swarm raises the session cap from 24 to 32 and sets a 48g cache. Under heavy concurrent prefill a session may recompute instead of restoring (output identical). Since Merlin 3.0.2.1 a full cache no longer slows decode (the write-back planner keeps its eviction list from step to step), and a returning conversation's restore keeps the GPU blocks it needs.
- New in Merlin 3.0.2.2. On four RTX 3090s with P2P, four decode settings are on by default, as on two cards (
VLLM_DRAFT_BOUNDED_PLAN, VLLM_GDN_DECODE_FASTPATH, VLLM_GDN_SHARED_ALIGN_INDEX, VLLM_TARGET_SEQ_LENS_ASYNC; your own value of each is kept): one-stream decode +20 % at 4K and +15 % at 131K and 262K with thinking on, temperature-0 output identical on 28 of 28 prompts, the same KV pool and image floor. The Qwen3 parser no longer stops answering when an output ends on a held tool-call opener with tools offered.
- New in Merlin 3.0.2.1. On two RTX 3090s with P2P on, six launcher defaults raise one-stream decode by 16.0 % (pooled, against a 7.2 % run-to-run band) with identical output on all 28 identity checks;
P2P=off and the other rows are unchanged. Four cards capture CUDA graphs for decode sizes 80 and 120 (16 and 24 streams decode at 1,218.3 and 1,332.6 tok/s), two cards for size 80. On the Qwen3 parser a tool call quoted in a fenced code block or in closed reasoning, or a call to a tool the request did not offer, is returned as text (MERLIN_QWEN3_LITERAL_SPANS=0 restores 3.0.2; since Merlin 3.0.2.2 a call opens only at the start of a line, so one quoted in inline code is text too).
--spec dflash2 is the Flash-Next family's drafter option; it is refused on this checkpoint, which runs its own MTP head.
- Chat template: Merlin serves Froggeric's fixed Qwen3.8 template (v22.5) by default, not the file in this repository. It accepts system messages after the first turn, so coding agents' per-turn notes stay in place and the prefix cache keeps hitting.
CHAT_TEMPLATE=<path> serves another template; CHAT_TEMPLATE= (empty) serves this repository's own.
- With Qwen's own template (
CHAT_TEMPLATE=), earlier turns' reasoning is kept by default and "chat_template_kwargs": {"preserve_thinking": false} keeps only the latest.
- Images: up to 64 per prompt at 8 MP each on two or four cards; one card takes one image per prompt at 4 MP. The cap is a served default: a client that raises it per request goes past the measured headroom. 8 MP image answers: 3.0.0 run, 2026-10-20; on Merlin 3.0.2.1 the memory floor during the 8 MP rows was 796 MiB per card on four cards and 764 MiB on two.
- Tool calls use the standard
tools field, parsed with the Qwen3 coder tool parser.
- To reach it from other machines, answer
network at setup's Access question (it generates an API key), or start merlin serve with HOST=0.0.0.0 and VLLM_API_KEY set; put a TLS reverse proxy in front before opening it beyond your own network.
The base model
Qwen3.8-27B is Qwen's dense model on the Qwen3.5 architecture, with vision. The architecture, in short:
- Hybrid attention. Three Gated DeltaNet (linear-attention) layers for every gated-attention layer: 48 and 16 of the 64 layers.
- Dense. All 27B parameters work on every token; no experts.
- Multi-token prediction. One MTP layer, trained over several steps; Merlin uses it for speculative decoding (4 draft tokens).
- Thinking by default, with a non-thinking mode per request and
reasoning_effort levels; Qwen's template keeps earlier turns' reasoning by default (preserved thinking).
Table with columns: Property, Qwen3.8-27B| Property | Qwen3.8-27B |
|---|
| Type | Causal language model with a vision encoder (images and video) |
| Parameters | 27B |
| Layers | 64: 16 × (3 × Gated DeltaNet → FFN, then 1 × gated attention → FFN) |
| Attention | 24 query / 4 KV heads, head dim 256 · Gated DeltaNet: 48 V / 16 QK heads, head dim 128 |
| Feed-forward | Width 17,408 |
| Context | 262,144 tokens native (Qwen: extensible to 1M; this build serves 262,144) |
Architecture as reported by Qwen on the upstream card.
Other builds
Table with columns: Checkpoint, Base, GPUs, Decode at 262K| Checkpoint | Base | GPUs | Decode at 262K |
|---|
| Qwen3.8-27B (this card) | Qwen3.8-27B, dense | 1×, 2× or 4× 3090 | 75 / 160 / 267 tok/s |
| Flash-Next | Qwen3.8-Flash-Next, 125B MoE | 4× 3090 | 192 tok/s |
| Swift1.5 | Flash-Next fine-tune | 4× 3090 | 182 tok/s |
| Swift1.5-Huihui | Swift1.5, abliterated | 4× 3090 | 203 tok/s |
| ThinkingCap | Qwen3.8-27B fine-tune | 2× or 4× 3090 | 163 / 274 tok/s |
| Nemotron 3.5 Super VL | Nemotron 3.5 Super VL, 120B-A12B MoE | 4× 3090 | 101 tok/s |
| Ornith 1.5 | Qwen3.5-122B-A10B fine-tune (ornith-ai), 122B MoE | 4× 3090 | 106 tok/s |
One stream, thinking on, 261,888 prompt tokens + 128 out, median of 3 sends, each a different text (with speculative decoding the rate varies with the text; the bench cards give the range). Qwen3.8-27B and ThinkingCap on four cards and Ornith 1.5: Merlin 3.0.2.2, 2026-11-21 bench cards; the other figures: Merlin 3.0.2.1, 2026-11-12 bench cards (runs of 2026-11-10 to 2026-11-12), carried forward to 3.0.2.2 after a spot check; ThinkingCap's two-card figure is the median of 12 sends. Effort as each bench card ran it: medium on every Qwen3.8 checkpoint (Flash-Next, Swift1.5, Swift1.5-Huihui, ThinkingCap and Qwen3.8-27B), the server default. Nemotron and Ornith 1.5 ran at full thinking: neither template reads reasoning_effort.
Good to know
- Every figure we measured for this checkpoint comes from 4× RTX 3090 at 220 W, PCIe Gen4 with P2P, used as one, two or four cards, except the rental rows under Other GPUs; the 3.0.1, 3.0.2, 3.0.2.1 and 3.0.2.2 figures were also measured with the optional GPU-unlock host upgrade, the 3.0.0 ones were not; the Other builds table names each build's card count.
- The same engine profiles serve ThinkingCap, BottleCap AI's fine-tune of this model, which reasons in fewer tokens (under a different licence).
- Coming from the
qwen38-27b-3090s engine (v1.x)? It is replaced by the Merlin engine; this checkpoint's files are unchanged.
Changes
Table with columns: Date, Change to this repository| Date | Change to this repository |
|---|
| 2026-11-21 | Card updated for Merlin 3.0.2.2 (four-card speed figures, install lines; the one- and two-card figures are the 3.0.2.1 ones, carried forward after a spot check). The weights are unchanged. |
| 2026-11-12 | Card updated for Merlin 3.0.2.1 (speed figures, new defaults and install lines). The weights are unchanged. |
| 2026-11-05 | Card updated for Merlin 3.0.2 (speed figures and install tag). The weights, config and tokenizer are unchanged |
| 2026-11-02 | Card updated for Merlin 3.0.1 (speed figures, install tag, KV RAM cache note). The weights, config and tokenizer are unchanged |
| 2026-10-12 | tokenizer.json replaced with the upstream Qwen3.8-27B file: combining-mark scripts (Hindi, Thai, Arabic and others) now tokenize as upstream with transformers 5.18.0 or newer (which Merlin pins; 5.17.0 and earlier ignore this file); English, code and CJK are unchanged |
| 2026-09-27 | Weights published; unchanged since |
Other card-only edits are not listed. Engine releases and their speed changes: the engine's CHANGELOG.
Credits and licence
Qwen (model; Apache-2.0, see LICENSE), philbert (the AWQ INT4 body), froggeric (the fixed Qwen3.8 chat template the engine serves), the vLLM project, FlashInfer, compressed-tensors, aikitoria (peer-to-peer on consumer Ampere), Neiko2002, and CoolShades (the idle-power report behind the v2.5.2 engine fix). Upstream fixes are credited in the engine repository.