Qwen/Qwen3-30B-A3B-Thinking-2507
Thinking-only Qwen3 MoE model (30.5B total / 3.3B active) with a 262K context, with an AMD PTPC FP8 variant for Instinct GPUs
vllm serve Qwen/Qwen3-30B-A3B-Thinking-2507 \ --tensor-parallel-size 1 \ --enable-auto-tool-choice \ --tool-call-parser hermes \ --reasoning-parser qwen3
The interactive builder loads with JavaScript. Append .md to this page's URL, query string included, for any configuration's command as Markdown — e.g. /Qwen/Qwen3-30B-A3B-Thinking-2507.md.
Overview
Qwen3-30B-A3B-Thinking-2507
is the July 2025 thinking-only update of Qwen3-30B-A3B: a mixture-of-experts model
with 30.5B total and 3.3B active parameters (128 experts, 8 active), 48 layers and
a native 262,144-token context. Unlike the hybrid
Qwen3-30B-A3B, it always thinks: the
chat template opens the <think> block, so the output contains only the closing
</think>. The Qwen3 reasoning parser handles this and returns the trace in
message.reasoning.
AMD PTPC FP8 (MI300X / MI325X / MI350X / MI355X)
The PTPC FP8 (AMD) variant serves amd/Qwen3-30B-A3B-Thinking-2507-PTPC-FP8, an AMD Quark checkpoint with per-channel FP8 weights and dynamic per-token FP8 activations. It runs on one GPU:
- The weights are 31.2 GB. With an FP8 KV cache a token takes 48 KiB (48 layers x 4 KV heads x 128 x K and V), so a full 262,144-token sequence needs 12 GiB. After the weights and warmup, one MI300X leaves at least 130 GiB of KV cache, about 2.9M tokens.
--attention-backend ROCM_AITER_FAselects the AITER flash-attention backend, andVLLM_ROCM_SHUFFLE_KV_CACHE_LAYOUT=1stores the KV cache in the layout AITER's assembly paged-attention decode kernel reads.--kv-cache-dtype fp8stores the KV cache in FP8. The checkpoint has no KV scales, so the scales default to 1.0.--block-size 16is required with the shuffle layout: the default of 64 fails at startup, and AITER has no FP8 decode kernel for 32-token blocks.
The first AITER launch may take several minutes while ROCm kernels are compiled and cached.
Client Usage
The model card recommends temperature 0.6, top-p 0.95 and top-k 20, and an output budget of 32,768 tokens for most tasks (81,920 for competition math and code).
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="unused")
response = client.chat.completions.create(
model="Qwen/Qwen3-30B-A3B-Thinking-2507",
messages=[{"role": "user", "content": "How many primes are there below 100?"}],
temperature=0.6,
top_p=0.95,
max_tokens=32768,
extra_body={"top_k": 20},
)
print(response.choices[0].message.reasoning)
print(response.choices[0].message.content)
Use the served model id (for example amd/Qwen3-30B-A3B-Thinking-2507-PTPC-FP8)
as model when serving a variant.