Skip to content

Qwen3.8-Flash-Next

POST /v1/chat/completions model: Qwen3.8-Flash-Next

The weights served here are Qwen3.8-Flash-Next-FP8 — the FP8-quantised build of Qwen3.8-Flash-Next, using fine-grained FP8 with block size 128. Qwen states its metrics are nearly identical to the unquantised original.

Qwen describes this release as an experimental preview of the architecture that will underpin Qwen4, and the first open-weight model built on it. Three things are new relative to the Qwen3 line, per the model card:

  • Hybrid attention with QSA — the Gated DeltaNet plus Gated Attention pairing is reworked into Gated DeltaNet plus Qwen Sparse Attention.
  • Gated Residual — normalised residual streams get an extra gate, aimed at keeping deep, wide models trainable.
  • N-gram Embedding — a parameter-scaling axis that costs less compute than MoE and is easier to offload.

Details are in Qwen’s blog post and technical report.

From the model card and the shipped config.json:

Parameters125B total, 6B activated, plus 51B n-gram embedding and 4B MTP
Layers48, laid out as 12 × (3 × Gated DeltaNet→MoE, then 1 × QSA→MoE)
Hidden dimension2,560
Gated DeltaNet48 V heads, 16 QK heads, head dim 128
Qwen Sparse Attention24 query heads, 2 KV heads, head dim 256, 64-dim RoPE
QSA indexerMQA with 4 query heads and 1 shared key head, head dim 128
QSA budget512 blocks / 2,048 tokens
Mixture of Experts512 experts, 10 routed + 1 shared activated, expert intermediate 640
N-gram embedding20,000,000 bigrams/trigrams, applied at layer 2
Gated Residual4 branches, bottleneck rank 320
Vocabulary248,320 (padded)
Native context262,144, extensible to 1,000,000
Multi-token prediction1 layer
QuantisationFP8, block [128, 128], dynamic activation scaling
LicenceQwen Community License 1.0

Attention over the KV cache is capped at 2,048 selected tokens regardless of conversation length, and 36 of the 48 layers are linear attention whose state does not grow with context.

Context length262,144 tokens
Input modalitiestext + images
Streaming✅
Tool calling✅
JSON output✅ json_object
Thinking✅ — on unless you turn it down
Stabilityexperimental

Omitting reasoning_effort does not disable thinking. A plain request already returns a populated reasoning and a non-zero reasoning_tokens. The model’s internal default is xhigh, its longest tier.

Accepted values:

TierNotes
omittedfalls through to the model’s own xhigh
none
low
medium
xhighthe longest tier

Where the output lands:

Thinking textchoices[0].message.reasoning
Token countusage.completion_tokens_details.reasoning_tokens
Top-level aliasusage.reasoning_tokens — this model does emit it (same as DeepSeek-V4-Flash)

This model accepts image_url content parts.

How to sendan {"type":"image_url","image_url":{"url":"data:image/png;base64,…"}} part in content
Meteringusage.prompt_tokens_details.image_tokens
Per-image ceilingthe weights ship vision_max_n_token = 384, so larger images still cap at 384
Context window262,144 tokens, counted as a total budget — prompt plus output, not an output-only allowance
JSON outputresponse_format: {"type": "json_object"}
Turning thinking onreasoning_effort (or the equivalent reasoning.effort)

max_tokens is capped against the total budget, prompt included — 262,144 covers input plus output, not output alone.

Terminal window
curl https://developer.amd.com.cn/radeon/api/v1/chat/completions \
-H "Authorization: Bearer $RADEON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Qwen3.8-Flash-Next",
"reasoning_effort": "low",
"messages": [
{ "role": "system", "content": "Answer in one sentence." },
{ "role": "user", "content": "Why is the sky blue?" }
]
}'

One system message, first in the array, and an explicit low — that request shape also works unchanged on DeepSeek-V4-Flash.