/ Модель

Характеристики

Контекст
262 144 токена
Лицензия
Своя лицензия
Архитектура
qwen4_exp · dense
Базовая модель
Qwen3.8-Flash-Next
Библиотека
vllm
Опубликована
8 сен 2026

Qwen3.8-Flash-Next-W4A16-Merlin

Изображение и текст → текст15 профессий

halt95/Qwen3.8-Flash-Next-W4A16-Merlin — это квантованный вариант Qwen3.8-Flash-Next, подготовленный halt95 на основе компонентов Qwen, Intel и RadixArk.

1 114скачиваний за 30 дней23лайкавеса обновлены21 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель предназначена для генерации текста и инференса в vLLM, включая сценарии с длинным контекстом, параллельными сессиями, включённым режимом рассуждений, vision-вводом и speculative decoding с MTP-драфтером.

Модель использует смесь экспертов с 512 маршрутизируемыми экспертами на слой и 512 экспертами MTP draft-head. Основные эксперты представлены в INT4 с групповой схемой g128, отдельные проекции Gated DeltaNet — в INT8, а часть компонентов, включая 12 attention-слоёв, vision tower, эмбеддинги и lm_head, сохранена в BF16. Таблица n-gram (PLE) на 51 млрд параметров хранится в FP8 и выгружается в память CPU. При обслуживании применяется FP8 E4M3 KV-cache; заявлена поддержка контекста до 262 144 токенов и пула KV-cache размером 806 792 токена. README не указывает поддерживаемые языки и точное общее число параметров.

Сильными сторонами являются работа с очень длинным контекстом, поддержка vision, MTP speculative decoding, структурированного вывода при конкуренции запросов и возможность запуска на четырёх потребительских RTX 3090 с архитектурой Ampere без NVLink. Ограничения связаны с узкой аппаратной и программной конфигурацией: для sm_86 требуется патченный vLLM с поддержкой FP8 KV-cache и специального доступа к большой n-gram-таблице, а стандартный vLLM не подходит. Качество INT4-квантования для отдельных компонентов и влияние дополнительной квантизации attention в README не оценивались.

Распространение осуществляется по лицензии qwen-community-1.0; в метаданных также указана общая лицензия other. Для запуска может потребоваться companion-репозиторий halt95/qwen38-flash-next-3090s с закреплёнными скриптами сборки и модифицированным движком.

Для каких профессий подходит15

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

The checkpoint · Speed · Quality · What it fits on · Use it · The base model · Bench card · 3.0.2.2 bench card

Qwen3.8-Flash-Next-W4A16-Merlin

A 4-bit build of Qwen3.8-Flash-Next, Qwen's 125B mixture-of-experts model (6B active per token, with vision), made to run at its full 262,144-token context on four 24 GB GPUs. It is 115 GiB instead of the original 335 GiB: the routed experts are INT4, the 51B-parameter n-gram table is FP8, and attention and the vision tower stay in BF16. It is served by the Merlin engine, a vLLM 0.33.0 fork tuned for Ampere and Ada that keeps the n-gram table in host RAM and the whole KV cache in VRAM. Measured on RTX 3090s; the engine also ships profiles for other Ampere and Ada cards, from RTX 4090s and 48 GB workstation cards to A100s and CMP 170HX (see What it fits on).

numbers: Merlin 3.0.2.1 figures, carried forward to Merlin 3.0.2.2 after a spot check on 3.0.2.2 (2026-11-21: 4K decode and 100K prefill inside their ±3 % run-to-run bands, the same KV pool); Merlin 3.0.2.1 (vLLM 0.33.0) on 4× RTX 3090 w/o NVLINK @ 220W, P2P on, with the gpu-unlock host upgrade, 2026-11-12 bench card (4 × 24 GB rows re-measured on the published wheel, 2026-11-11). KV pool: FP8, all in VRAM; three 262K sessions held at once (3.0.0 run, 2026-10-20). Agents: eight 16K conversations, then eight simultaneous 512-token follow-ups, thinking on (effort medium). Decode: one stream, thinking on (effort medium, the server default), exactly 261,888 prompt tokens + 128 out, median of 3 sends, each a different text (191.4–200.3 tok/s; with speculative decoding the rate varies with the text). Prefill: one cold 101,845-token prompt. Each figure is also in a table below.

Discord

The checkpoint

ComponentFormat
Routed experts (512 per layer)INT4 g128, from Intel's AutoRound release
MTP draft-head expertsINT4 g128, packed in place
Gated DeltaNet QKV/Z and output projectionsINT8 per channel
N-gram (PLE) embedding table, 51B parametersFP8, kept in host RAM at serve time (RadixArk)
Attention, norms, embeddings, lm_head, shared expert, routers, QSA indexer, gated-residual weights, DeltaNet a/b and conv, MTP non-expert layers, vision towerBF16, unchanged
KV cacheFP8 E4M3 with calibrated static scales (qsa_kv_scales_262k.json)

Files in this repository

FilesWhat they holdSize
model-000NN-of-00017.safetensors (15)Routed experts, DeltaNet projections, attention, norms, embeddings, shared expert, vision tower66.2 GiB
model-plefp8-0000N.safetensors (10)The n-gram embedding table, FP8; loaded into host RAM at serve time47.7 GiB
mtp-routed-experts-int4.safetensorsMTP draft-head experts, INT41.2 GiB
model_extra_tensors.safetensorsFurther tensors listed in the index0.2 GiB
qsa_kv_scales_262k.jsonCalibrated static scales for the FP8 KV cache1.4 KiB
model.safetensors.index.jsonWhich file holds each tensor24.3 MiB
chat_template.jinjaQwen'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 it8.7 KiB
config.json, quantization_config.json, tokenizer, processor configsModel, quantisation, tokenizer and processor settings12.3 MiB
LICENSEQwen Community License 1.03.1 KiB

115.3 GiB in total. There are no shards 00002 and 00016: model.safetensors.index.json maps no tensor to them, so nothing is missing.

Speed

PromptDecode, one streamTime to first token
4K174 tok/s0.67 s
32K (3.0.1 run)172 tok/s4.59 s
131K188 tok/s18.6 s
262K192 tok/s38.3 s

4× RTX 3090, thinking on at reasoning effort medium (the server default). The needle-prompt ladder (4,046 / 32,566 / 130,386 prompt tokens, every send a cold prefill) and the exact 261,888-token prompt (send 1 cold; sends 2 and 3 reuse the prefix before the needle). Decode: ≤ 256 tokens out (128 at 262K), median of 3. Time to first token: the median of 3 cold sends below 262K, the cold send 1 at 262K. The 262K figure is the median of three 128-token sends, each a different text (191.4–200.3 tok/s): with speculative decoding the rate varies with the text sent. The 32K row was not re-run for 3.0.2, 3.0.2.1 or 3.0.2.2. Every figure in this section is Merlin 3.0.2.1's, carried forward to 3.0.2.2 after a spot check (4K thinking-on decode 171.6 against 174.0 tok/s and 100K prefill 6,999 against 7,036 tok/s, both inside the ±3 % run-to-run band; KV pool 924,993 tokens and needle panel 6/6, as on 3.0.2.1). The 262K needle was found in 3 of 3 thinking-off sends (3.0.0 run).

Cold prefill, one sendPrefillTime to first token
10,157 tokens6,666 tok/s1.52 s
101,845 tokens7,036 tok/s14.5 s
261,888 tokens6,839 tok/s38.3 s

One cold request per prompt, 8 tokens out at 10K and 100K. The 261,888-token row is the cold first send of the exact-262K run with thinking on, the same send as the 262K row above. The 101,845-token figure is the hero's prefill number.

Agents at onceTotal tok/s
2 (3.0.0 run)222
4 (3.0.0 run)378
8, thinking off641
8, thinking on (effort medium)640

N 16K conversations, then N simultaneous 512-token follow-ups, total tok/s while all N decode; thinking off unless stated. With thinking on a 512-token follow-up may end inside the reasoning and reasoning tokens count, so that total measures decoded tokens, not finished answers. Overlap windows: 4.55 and 5.22 s for the 3.0.0 rows, 6.09 s for thinking off (previous build; its run on the published wheel ended early and was not used) and 5.83 s for thinking on (3.0.2.1): a few seconds each, so read these rows loosely. The thinking-on row moves by several percent between identical runs: six repeated runs on the published wheel gave 661–697 tok/s (mean 680).

Sessions held at onceNeedles foundRe-sent from cache, lowest
3 × 262K3 / 399.95 %
6 × 131K6 / 699.91 %

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. Peak pool use 100 %, 0 preemptions. 3.0.0 run, 2026-10-20; the KV pool (924,993 tokens) is unchanged in 3.0.1, 3.0.2, 3.0.2.1 and 3.0.2.2.

Measure3.0.23.0.2.1Change
Decode, 4K prompt, thinking on172.4174.0+1 %
Decode, 131K prompt, thinking on188.7188.30 %
Decode, exactly 261,888 tokens, thinking on206.7191.8−7 %
Decode, 4K prompt, thinking off128.8127.5−1 %
Decode, 131K prompt, thinking off134.5132.9−1 %
Decode, exactly 261,888 tokens, thinking off152.9143.6−6 %
Prefill, 10K prompt6,5856,666+1 %
Prefill, 100K prompt6,9947,036+1 %
Prefill, 261,888-token prompt6,7826,839+1 %
8 agents, thinking on (effort medium)654640−2 %
8 agents, thinking off664 (3.0.1 run)641−3 %

tok/s; the change column is the bench card's. Both releases on the same host and settings (gpu-unlock on, thinking effort medium). The exact-262K rows are not a speed change: they are the median of three 128-token sends, each a different text, and with speculative decoding the tokens produced per step depend on the text (3.28 per step here, 3.56 on the 3.0.2 card). Each decode step is within 2 % of 3.0.2 (median event interval 18.30 ms against 18.04 ms with thinking on, 18.31 against 18.23 ms with it off); the 3.0.2.1 sends ran 191.4–200.3 tok/s with thinking on, and a repeat run on 3.0.2 measured 193 tok/s (sends 184–207). The 3.0.2 thinking-off 8-agent figure is the 3.0.1 run the 3.0.2 card carried over. The eight-agent rows are single runs and move by several percent between identical runs (661–697 tok/s over six repetitions), so their change is not a gain or a loss.

  • Host: 4× RTX 3090 (24 GB, sm_86) at 220 W, PCIe Gen4 with P2P, no NVLink, driver 610.43.02, with the Zagitta's gpu-unlock host upgrade on (as for the 3.0.1 and 3.0.2 runs; the 3.0.0 runs did not have it).
  • Engine: the figures are Merlin 3.0.2.1's, carried forward to Merlin 3.0.2.2 after a spot check on 2026-11-21 (4K thinking-on decode 171.6 against 174.0 tok/s and 100K prefill 6,999 against 7,036 tok/s, both inside the ±3 % run-to-run band; KV pool 924,993 tokens and needle panel 6/6, as on 3.0.2.1). Merlin 3.0.2.1 on vLLM 0.33.0: the 4 × 24 GB rows above were measured on the published wheel on 2026-11-11, except the thinking-off 8-agent row, which is from the previous build (built on 2026-11-10, before the prefill runs change; its run on the published wheel ended early); served by merlin serve with the shipped defaults, on separate fresh boots (UTC).
  • Layout: TP2 × PP2 + EP on four cards, MTP K=3, FP8 KV, BF16 draft lm_head, thinking effort medium, the server default.
  • Decode: T=0, a needle prompt at depth, every send a cold prefill, 3 sends per cell, median. 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 and send 3 reused 135,168 tokens). tok/s = tokens after the first streamed event / time from first to last event.
  • Streams are client-timed. Full tables, thinking-off rows, ITL and the quality panel: the bench card; the 20 GB rows, re-measured on 3.0.2.2: the 3.0.2.2 bench card.

Quality

This checkpoint, measured on the Merlin engine:

CheckResultSetting
GSM8K-200198 / 2005-shot, thinking off, 2 cut at the 512-token limit
GSM8K-200, thinking on197 / 200 on four cards5-shot, effort medium, none cut at the 8,192-token cap
GSM8K, full test set1,276 / 1,319 (96.7 %; an earlier 3.0.2.1 run on the previous build: 1,282, 97.2 %, a run-to-run difference); 3.0.2: 1,281 (97.1 %); 3.0.1: 1,276 and 1,275 (96.7 %)5-shot, thinking off, temperature 0, 512 tokens
Needles at 32K, follow-up question5 / 9; 3.0.2: 4 / 9; 3.0.1: 6 / 9 in both runsnine 32K prompts; every miss was a refusal (the needle is phrased as a secret passphrase) and every answer given was correct
Needles at 131K10 / 10single-occurrence needles, an image in the prompt, thinking off, greedy, cold cache
Needles at 262K23 / 23as above
Needle at exactly 261,888 tokens3 / 3thinking off
Image, 4096 × 2048 (8,388,608 px)1 / 1 · 2 / 2 at once · 1 / 1 with four in one prompt (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 (both rows), the full GSM8K test set and the 32K needles: Merlin 3.0.2.1 on vLLM 0.33.0, 2026-11-11, the same 200 problems and scorer as the 3.0.1 card, temperature 0; the 3.0.2 and 3.0.1 figures are from their own bench cards. The needle panel at 131K and 262K is a 3.0.0-era run on a pre-release engine build, 2026-10-17, not re-run since. Images: 3.0.0 run, 2026-10-20. These are checks of this checkpoint, not a matched BF16 comparison: no BF16 run of the same checks was made, so how much quality the 4-bit build keeps is not quantified here.

The base model, as reported by Qwen for the BF16 weights:

AreaBenchmarkQwen3.8-Flash-Next (BF16)
CodingSWE-bench Pro62.5
CodingDeepSWE 1.158.7
CodingLiveCodeBench v691.9
AgentsToolathlon Verified (Pass@1)73.5
AgentsCoWorkBench73.9
Reasoning and instructionsGPQA Diamond91.7
Reasoning and instructionsHLE35.9
Reasoning and instructionsIFBench81.3
VisionAndroidWorld84.5
VisionRealWorldQA88.5
VisionLVBench76.6

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

Measured onContext per requestKV poolHeld at onceImages
4× RTX 3090, 24 GB (🟢 Tested)262,144 tokens924,993 tokens, FP8, all in VRAM3 × 262K or 6 × 131K (3.0.0 run, 2026-10-20)8 MP

Measured on the reference host: three 262K and six 131K sessions held at once with every re-send served from cache (3.0.0 run, 2026-10-20); a 4096 × 2048 image (8,388,608 px) with at least 1,026 MiB free on every card (3.0.0 run, 2026-10-20).

Other GPUs. The engine also ships profiles for these; the Status column says how far each has been run:

GPUsArchProfileContext fitStatus
4× RTX 3090 Ti, RTX A5000, A10 (24 GB)Ampere, sm_86fn-quad-3090~3 × 262K (as the 3090)⚫ Untested
4× RTX 3090 without P2PAmpere, sm_86fn-quad-3090-nop2p~3 × 262K⚫ Untested
8× RTX 3090Ampere, sm_86fn-octo-3090-tp2pp4~17 × 262K⚫ Untested
4× RTX 3080 20GB, RTX A4500 (20 GB)Ampere, sm_86fn-quad-20g-sm86~1 × 262K⚫ Untested
4× RTX 4000 Ada (20 GB)Ada, sm_89fn-quad-20g-sm89~1 × 262K⚫ Untested
4× RTX 4090 (24 GB)Ada, sm_89fn-quad-24g-sm89~3 × 262K🟡 Testing
4× RTX 4080 Super 32 GB (modified)Ada, sm_89fn-quad-32g-sm89~10 × 262K⚫ Untested
2 / 4× 48 GB: RTX A6000, A40Ampere, sm_86fn-2x48g-pp2-sm86, fn-4x48g-tp2pp2-sm86~5 / ~25 × 262K⚫ Untested
2 / 4× 48 GB: RTX 6000 Ada, L40SAda, sm_89fn-2x48g-pp2-sm89, fn-4x48g-tp2pp2-sm89~5 / ~25 × 262K⚫ Untested
4× A10G, L4 (cloud, 22.5 GiB as reported)Ampere / Adafn-quad-3090-nop2p, fn-quad-24g-sm89~1 × 262K⚫ Untested
1 / 2 / 4× A100 80 GBAmpere, sm_80fn-sm80-80g-x1, -x2-tp2, -x4-tp2pp2~1 / ~11 / ~28 × 262K⚫ Untested
4× A100 40 GB, CMP 170HX 40 GBAmpere, sm_80fn-sm80-40g-x4-pp4~7 × 262K⚫ Untested
3 / 4× CMP 170HX 32 GBAmpere, sm_80fn-sm80-32g-x3-pp3, fn-sm80-32g-x4-pp4~1 / ~4 × 262K⚫ Untested
4× A30 (24 GB)Ampere, sm_80fn-quad-24g-sm80~1 × 262K⚫ Untested
2× CMP 170HX 64 GBAmpere, sm_80fn-sm80-64g-x2-pp2~6 × 262K🟡 Testing
4× CMP 170HX 64 GBAmpere, sm_80fn-sm80-64g-x4-pp417 × 262K (8 at once)🟡 Testing

merlin serve and ./setup.sh pick the profile from the GPUs they find. A ~ is the engine's estimate, not a measurement. "(8 at once)": the KV pool holds 17 full 262K conversations, and the server admits 8 requests at a time; the rest queue. On sm_80 cards (A100, A30, CMP 170HX) this checkpoint defaults to a BF16 KV cache, so fewer sessions fit; KV_DTYPE=fp8 opts into FP8 (untested ⚫). 🟢 measured by us · ⚫ a profile ships, not yet run by us (expected to work). Every profile: the engine's hardware matrix. 🟡 Testing: full-model runs passed on cloud-hosted cards; not yet qualified against the reference host. The 20 GB rows (new in Merlin 3.0.2.1) keep the most-used half of the experts of five MoE layers on the GPU and read the rest from pinned host RAM (about 8 GiB more host RAM; MERLIN_COLD_EXPERTS=0 turns it off); they were checked only by emulation on 24 GB cards (on Merlin 3.0.2.2, four RTX 3090s with 4 GiB held back per card: KV pool 265,888 tokens, one-stream decode 153 / 159 / 171 tok/s at 4K / 131K / 262K with thinking on, cold prefill 4,838 tok/s at 262K; 3.0.2.2 bench card), so real 20 GB cards are untested and cards with less memory bandwidth will decode slower; turn ECC off on the RTX A4500 and RTX 4000 Ada.

NeedDetails
Host RAM72 GiB tested minimum on four cards (startup is refused below about 69 GiB, plus the KV RAM cache size when it's on; with --ple int6 about 60 GiB (estimated, not boot-tested)). 96 GiB is the reference allocation; the FP8 n-gram table alone takes about 47.7 GiB, which --ple-store disk (experimental) reads from NVMe instead.
DiskAbout 115 GiB for the checkpoint, plus the engine environment and caches
Engine hostLinux 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 flash-next

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:8000; requests name the model flash-next-v2 (also flash-next). 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.

[!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-engine
curl -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.whl
MERLIN_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-Flash-Next-W4A16-Merlin --revision cec53e9f90e5995b81691604ec0b32191debf797 \
  --local-dir ~/models/flash-next
(cd ~/models/flash-next && sha256sum -c "$OLDPWD/models/flash-next/checkpoint.sha256")
venv/bin/merlin serve ~/models/flash-next

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:8000. 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 this model):

Modetemperaturetop_ptop_kpresence_penalty
Thinking (default)1.00.95200.0
Non-thinking0.70.80201.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).
  • 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 42 per request (the launcher's cap), 8 MP each; four 8 MP images in one prompt were checked on the Flash-Next checkpoint.
  • 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.

New in Merlin 3.0.2.2, on by default (changelog):

  • Tool calls open only at the start of a line, and the parser no longer hangs. On the Qwen3 parser a call quoted in inline code, a list, a blockquote or the middle of a sentence is returned as text, and the parser no longer stops answering when an output ends on a held tool-call opener with tools offered. MERLIN_QWEN3_LITERAL_SPANS=0 restores the 3.0.2.1 behaviour.

New in Merlin 3.0.2.1, on by default (changelog):

  • Shared-prefix checkpoints (FGPC). Sessions that open behind the same system prompt, covering at least one 4,096-token attention block, resume their first turn from a cached checkpoint instead of recomputing the prompt. With a ~9K shared prompt on Flash-Next's swarm launch, 43 of 87 and 41 of 85 first turns came from cache in two runs, against 0 of 82 with it off; speed, a long soak and output tokens stayed within their run-to-run bands. merlin serve <model> -- --no-enable-mamba-shared-prefix-checkpoint turns it off.
  • Long prompts hold running sessions back less (on by default). A long cold prompt takes turns with the running sessions instead of sharing every step with them. In four runs on 4 × RTX 3090 with three sessions decoding through a cold prefill, those sessions kept 31–38 % of their decode speed during a 64K–128K prefill (14–16 % with 512-token slices alone). The costs: the cold prompt's own first token came 17–19 % later at 64K, 12–14 % at 128K and 19–24 % at 262K; the p99 gap between streamed tokens was 0.40 s in three runs and 0.58 s in one (0.23–0.35 s without the runs); and with no session decoding, three cold 64K prompts sent together reached their first token (p95) in 34.5–34.7 s against 28.3–28.9 s. A new prompt still waits for a free session slot when all are in use (SEQS). PREFILL_RUNS=0 turns it off; LPT=<n> sets the 512-token slice used while no session decodes.
  • Quoted tool calls stay text. On the Qwen3 parser a tool call inside a fenced code block, a tool block quoted in closed reasoning, or a call to a tool the request did not offer is returned as text. MERLIN_QWEN3_LITERAL_SPANS=0 restores the 3.0.2 behaviour (the unoffered-name rule stays on).

Optional Merlin 3.0.2.2 features, all off by default (flags and limits):

  • KV RAM cache (experimental). --kv-ram-cache 24g keeps conversation prefixes the GPU evicts in host RAM and restores them instead of recomputing them, with exactly the same output as a GPU cache hit. On Flash-Next a 262K restore took 1.2–1.4 s instead of about 45 s to recompute (measured on Merlin 3.0.1). It works with the MTP drafter only (not with --spec dflash2) and adds no context or sessions. Since Merlin 3.0.2.1 it keeps its decode speed once full: 122.3 tok/s one stream on a full cache against 72.6 on 3.0.2, on the reporter's thinking-off 800-token stress probe, with identical output.
  • More sessions with --swarm (experimental). Raises the session cap on four RTX 3090s from 8 to 24, with a 48 GB KV RAM cache. Tested on this checkpoint with P2P; without P2P it uses the same cap untested (⚫, expected to work).
  • DFlash2 drafter. --spec dflash2 on four RTX 3090s with P2P decoded 5–18 % faster than the default MTP drafter across the Flash-Next family (measured on Merlin 3.0.1); the server then holds three 262K sessions instead of six 131K ones (KV pin 3,630,000,000 B, pool 815,203 tokens in 3.0.2.1 and 3.0.2.2, so three 262K sessions still fit with the prefill runs on). Since Merlin 3.0.2.2 DFlash2 takes its own prefill-runs tick costs: sessions keep decoding during a long ingest, and a cold prompt's first token comes about 18 to 19 % later. ./setup.sh --spec dflash2 downloads the 1.2 GB drafter.
  • INT6 n-gram table. --ple int6 loads a smaller INT6 copy of the n-gram table and saves about 9 GiB of host RAM per server, with quality checks passed on this checkpoint and on Swift1.5. It is one shared pack laid over the FP8 files you downloaded, which stay untouched; FP8 stays the default.
  • PLE table on NVMe (experimental). --ple-store disk reads the n-gram table from the checkpoint's files on local NVMe instead of holding it in host RAM, which frees about 47.7 GiB (38.7 GiB with --ple int6). Output matched ram token for token; decode is about 2 % slower once the table is cached and 9–11 % slower on text whose rows are not cached yet, and the first request after a cold start waits longer for its first token. ram stays the default; other disks are untested (⚫). Costs and limits.
  • Past 262K with YaRN. No profile turns YaRN on by default. --context SIZE (experimental; 512k = 524,288 tokens), or --max-model-len above 262,144, adds YaRN built from the checkpoint's config, and a size above the layout's KV pool is refused. The recipes were tested on the reference host at 393K and 524K (MTP and DFlash2) and 917K (MTP) on Merlin 3.0.1, not yet on 3.0.2, 3.0.2.1 or 3.0.2.2; 1M is untested. Details in How to serve.

The base model

Qwen3.8-Flash-Next is Qwen's preview of the architecture behind Qwen4. What changed, in short:

  • Hybrid attention. Three Gated DeltaNet (linear-attention) layers for every Qwen Sparse Attention layer. QSA attends over micro-blocks instead of single tokens, which keeps long-context latency down.
  • Sparse experts. 512 experts per layer with 10 routed and 1 shared active per token: 6B of the 125B parameters do the work for each token.
  • N-gram embedding. A 51B-parameter bigram/trigram table at layer 2 adds parameter capacity with less computation than adding experts would. Merlin keeps it in host RAM, so the VRAM goes to KV cache.
  • Gated residual. Widened residual streams with a data-dependent read gate and a per-branch write gate.
  • Multi-token prediction. One MTP layer, trained over several steps; Merlin uses it for speculative decoding.
  • Thinking by default, with a non-thinking mode per request; Qwen's template keeps earlier turns' reasoning by default (preserved thinking).
PropertyQwen3.8-Flash-Next
TypeCausal language model with a vision encoder (images and video)
Parameters125B total, 6B active, plus 51B n-gram embedding and 4B MTP
Layers48: 12 × (3 × Gated DeltaNet → MoE, then 1 × Qwen Sparse Attention → MoE)
Experts512 per layer; 10 routed + 1 shared active; expert width 640
AttentionQSA: 24 query / 2 KV heads, head dim 256, budget 512 blocks or 2,048 tokens · Gated DeltaNet: 48 V / 16 QK heads, head dim 128
Context262,144 tokens native (Qwen: extensible to 1M with YaRN). Merlin serves 262,144 by default and, with YaRN (--context), past that: tested at 393K, 524K and 917K on Merlin 3.0.1 (see Use it)

Architecture as reported by Qwen on the upstream card.

Other builds

CheckpointBaseGPUsDecode at 262K
Flash-Next (this card)Qwen3.8-Flash-Next, 125B MoE4× 3090192 tok/s
Swift1.5Flash-Next fine-tune4× 3090182 tok/s
Swift1.5-HuihuiSwift1.5, abliterated4× 3090203 tok/s
Qwen3.8-27BQwen3.8-27B, dense1×, 2× or 4× 309075 / 160 / 267 tok/s
ThinkingCapQwen3.8-27B fine-tune2× or 4× 3090163 / 274 tok/s
Nemotron 3.5 Super VLNemotron 3.5 Super VL, 120B-A12B MoE4× 3090101 tok/s
Ornith 1.5Qwen3.5-122B-A10B fine-tune (ornith-ai), 122B MoE4× 3090106 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. Thinking on at reasoning effort medium, the server default, wherever the checkpoint has effort levels; the Nemotron and Ornith 1.5 templates have none, so those two ran at full thinking.

Good to know

  • Every figure we measured for this checkpoint comes from one setup: 4× RTX 3090 at 220 W, PCIe Gen4 x16 with P2P (the 3.0.1, 3.0.2 and 3.0.2.1 figures also with the gpu-unlock host upgrade on), except the rented-host row under Other GPUs; upstream results and the Other builds rows use their stated setups. Hosts without P2P use the no-P2P profiles (see What it fits on).
  • Only if you shrink the KV pool yourself: keep it larger than --max-model-len plus a few blocks. With the shipped settings this cannot occur.
  • Coming from the qwen38-flash-next-3090s engine (v2.x or earlier)? It is replaced by the Merlin engine; this checkpoint's files are unchanged.

Changes

DateChange to this repository
2026-11-21Card updated for Merlin 3.0.2.2 (install lines; the speed figures are the 3.0.2.1 ones, carried forward after a spot check; the emulated 20 GB figures re-measured). The weights are unchanged.
2026-11-12Card updated for Merlin 3.0.2.1 (speed figures, new defaults and install lines). The weights are unchanged.
2026-11-05Card updated for Merlin 3.0.2 (speed figures, options and install lines). The weights are unchanged.
2026-11-02Card updated for Merlin 3.0.1 (speed figures and options). The weights are unchanged.
2026-10-06tokenizer.json replaced with the upstream file; re-fetch it if you downloaded earlier
2026-09-18config.json gains ple_embedding_dtype in text_config, which the engine needs since v2; re-fetch it if you downloaded earlier
2026-09-08Weights 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; Qwen Community License 1.0, see LICENSE), Intel (AutoRound experts), RadixArk (FP8 PLE table), DominikBucko (MTP packing recipe), froggeric (the fixed Qwen3.8 chat template the engine serves), the vLLM community PLE-offload work, aikitoria (peer-to-peer on consumer Ampere), Neiko2002, brandon-nuttall (YaRN past 262K report), R-omk (YaRN past 262K crash report and recipes), and a community idle-power report (behind the v2.5.2 engine fix). Upstream fixes are credited in the engine repository.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · vllm

Нельзя запустить

Готовая квантизация поддерживается только для текстовых LLM (vLLM).

Класс архитектуры
Qwen4ExpForConditionalGeneration
Ревизия весов
e0ecba1

0 моделей