Superoptimized Qwen3.8-27B + DFlash2 on QuietBox 2 (2x p300c, 4 Blackhole chips)
Qwen/Qwen3.8-27B served with vLLM and DFlash2 speculative decoding on a
Tenstorrent QuietBox 2 (two p300c boards, 4 Blackhole chips, 1x4 mesh, FABRIC_1D), packaged as a self-contained v6
thin bundle (tt-model-manager) built from tenstorrent/qwen3.8-27b-qb2
with the DEFAULT superoptimization stack baked in.
The bundle is self-contained: tt-model pull installs the model code, plugin, and generic_op kernels into an
isolated venv on stock TTNN 0.81.1, and the target/drafter weights (Qwen/Qwen3.8-27B and
incoai/Qwen3.8-27B-DFlash2) download on first use.
Host requirements: SFPI 7.89.0 (build 1050), which TTNN 0.81.1 declares. install.sh checks it and stops
otherwise, because a different SFPI fails kernel builds. Tested with board firmware 19.15.0. install.sh uses
uv 0.12.11 and bootstraps that version inside the bundle when the host has another.
Install and serve
If SFPI 7.89.0 is installed at /opt/tenstorrent/sfpi:
tt-model pull moconnor/qwen3.8-27b-QB2
tt-model serve moconnor/qwen3.8-27b-QB2
If the host has another SFPI (for example 7.78.0 for older bundles), give this bundle its own copy instead.
tt-model pull deletes a bundle whose install fails, so download it directly, run install.sh once (it stops at the
SFPI check after building the venv), unpack SFPI 7.89.0 into the venv, and run install.sh again:
D=~/qwen3.8-27b-QB2
hf download moconnor/qwen3.8-27b-QB2 --local-dir "$D"
bash "$D/install.sh" || true
curl -L -o /tmp/sfpi_7.89.0.txz https://github.com/tenstorrent/sfpi/releases/download/7.89.0/sfpi_7.89.0_x86_64_debian.txz
echo "de16ebb14decfa4930a6f1b75c14655330cd62653bb38d90bd108163b610b954 /tmp/sfpi_7.89.0.txz" | sha256sum -c
mkdir -p "$D/venv/lib/python3.12/site-packages/ttnn/runtime"
tar -xJf /tmp/sfpi_7.89.0.txz -C "$D/venv/lib/python3.12/site-packages/ttnn/runtime"
bash "$D/install.sh"
bash "$D/run.sh" --port 20000
run.sh prefers the bundle's own SFPI copy. Bundles installed this way are served with run.sh, not
tt-model serve, which only serves bundles that tt-model pull installed.
The server is OpenAI-compatible (/v1/chat/completions, /v1/completions). The first boot on a fresh install converts
weights and compiles kernels into the bundle's cache (~10 minutes on two p300c boards after weights download). Warm
boots take ~2 minutes.
Performance (SPEED-Bench low_entropy, thinking mode)
Measured end-to-end through the OpenAI API on one QuietBox 2 ($9,999, 2x p300c) with frozen SPEED-Bench
low_entropy prompts, prefix caching disabled (cached_tokens == 0), and Qwen thinking sampling (temperature=1.0,
top_p=0.95, top_k=20, presence_penalty=0, reasoning_effort=medium, max_tokens=1024), compared against the
original QuietBox 2 baseline (mando2222/qwen3.8-27b-QB2):
8K Context Throughput & Interactivity (Batch 1β8)
| Batch | E2E tok/s/u (incl. TTFT) |
Decode-only tok/s/u |
TTFT p50 (s) | Aggregate tok/s |
vs Baseline | tok/s/$1K |
Board Power (W) |
|---|---|---|---|---|---|---|---|
| 1 | 156.2 | 185.5 | 0.95 | 153.6 | 2.01x | 15.36 | 866.2 |
| 2 | 126.4 | 150.7 | 1.02 | 226.3 | 2.05x | 22.63 | 879.3 |
| 4 | 98.9 | 116.5 | 1.04 | 359.2 | 1.85x | 35.92 | 956.4 |
| 8 | 64.4 | 78.7 | 1.19 | 476.2 | 1.67x | 47.63 | 997.8 |
Long-Context Batch-1 Interactivity (1Kβ128K*)
| Seq Len | E2E tok/s/u (incl. TTFT) |
Decode-only tok/s/u |
TTFT p50 (s) | vs Baseline |
|---|---|---|---|---|
| 1K | 208.5 | 220.5 | 0.27 | 1.91x |
| 2K | 188.2 | 202.3 | 0.31 | 2.18x |
| 8K | 148.0 | 172.3 | 0.96 | 1.89x |
| 16K | 146.0 | 199.9 | 1.89 | 1.95x |
| 32K | 111.8 | 190.8 | 3.77 | 1.78x |
| 64K* | 75.5 | 187.4 | 8.12 | 1.82x |
| 128K* | 41.9 | 175.6 | 18.86 | 1.83x |
64K* and 128K* are extended from SPEED-Bench throughput_32k_low_entropy using same-type non-overlapping middle
content (zero repetitive padding).
What is included
- Users and context: 8 concurrent users with up to 262,144-token context each (4,096-token KV blocks, ~2.1M total KV tokens).
- Superoptimized
DEFAULTstack on stock TTNN 0.81.1:- Lossless verify/drafter/prefill optimizations (
M6S: VProj streamed projections, fused decode boundaries, packed generic-op verify & prefill SDPA, fused GDN night kernelsnmx+UROWSlive-row SFPU across all 4 verify buckets1x8, 2x8, 4x8, 8x4, integer Glue A/B/C includingAR_GLUEB2andAR_VPROJ_LMHEAD=5). - Traced short-prompt & long-prompt-tail prefill (
QWEN36_SPEC_BUCKET_TRACE=1) + dead circular-ring drafter tap skipping on long prefills (QWEN36_SPEC_PREFILL_SKIP_DEAD_TAPS=1). - Dedicated
2x8verify bucket withP=4GDN value split (QWEN36_GDN_VSPLIT_MAX_B=2), idle-reset, and fast bucket downshifting. - Card-side
presence_penaltysupport in the DFlash lane (applied on-device rather than dropped). - Fix for nested
$ref/$defstool-call argument typing (vllm-project/vllm#46924).
- Lossless verify/drafter/prefill optimizations (
- Prefix caching: enabled by default (
--enable-prefix-caching), resuming from the last cached 4,096-token block. - Images: up to 64 images per request.
- Tool calling & reasoning:
qwen3_codertool parser andqwen3reasoning parser (reasoning_effort: mediumby default).
Default sampling
Requests that omit sampling parameters use temperature 0.6, top_k 20, top_p 0.95 (Qwen's recommended thinking
defaults). Any request can override temperature, top_k, top_p, presence_penalty, and seed.
Which requests use DFlash
Greedy (temperature=0) and sampled requests with top_k / top_p / seed / presence_penalty use DFlash. Sampled
requests with top_k between 1 and 32 run fully on the card (including presence penalty). Requests requiring n > 1,
frequency/repetition penalties, min_p, min_tokens, log-probs, structured output, logit_bias, or bad_words fall
back to the plain (non-speculative) decode lane.
Thinking budget for coding agents (opt-in)
At reasoning effort medium, the model can spend 15β30K tokens reasoning before answering or calling a tool. The
bundle ships an opt-in server-side cap (off by default):
TT_THINK_BUDGET=6144 tt-model serve moconnor/qwen3.8-27b-QB2
When a streamed chat turn's reasoning reaches that many tokens before any answer or tool call, the server closes the reasoning block and continues into the answer.
Known limits
- 262,144-token max context per request, 8 concurrent slots.
- Images: up to 64 per request (downscaled to ~1 megapixel / 4,095 patches of 16x16 px). Video is not supported. Image requests prefill one request at a time.
- A prefix-cache hit needs at least 4,096 shared tokens and resumes from the last 4,096-token block.
- Greedy output can differ slightly between a lone request and the same request beside other users due to order-of-summation effects across verify buckets; within a bucket it repeats deterministically.
- Plain-lane requests decode on the host loop and are slower than DFlash requests.
Credits
- Original tt-transformers baseline (mando2222/qwen3.8-27b-QB2): Eric Zietlow
- Superoptimization: Mark O'Connor, AdriΓ‘n Pascual Bernal, and the Tenstorrent Agentic Research team
- GDN kernel: Kosta Grujcic
- GPTQ-rounded BFP4 & fusing ideas: Joseph Wu
- Source repository: tenstorrent/qwen3.8-27b-qb2
Model tree for moconnor/qwen3.8-27b-QB2
Base model
Qwen/Qwen3.8-27B