Notes · Benchmarking & KV sizing

Qwen4-35B-A3B across vLLM, Splash, and seppia

Single-stream and serving measurements for Qwen4-35B-A3B on DGX Spark (vLLM and seppia), RTX PRO 6000 Blackwell (seppia), and M3 Max (Splash), with per-token KV cache sizing down to 1M context.

Short answer

In bare-metal C++20/CUDA (sfumato-ai/seppia 0b32b09 with DFlash2 and seal2 KV), Qwen4-35B-A3B-UD-IQ4_XS reaches 315.5 tok/s (up to 536.7 tok/s on math) on an RTX PRO 6000 Blackwell and 58.3 tok/s (up to 99.9 tok/s on math) on a DGX Spark. Both Blackwell GPUs required a one-line fix in device.cpp. Because seppia is single-stream beta software without a public license, production multi-tenant serving still relies on vLLM.

KV cache sizing per token

Qwen4-35B-A3B has 40 layers: 30 Gated DeltaNet (GDN) layers with a fixed ~63.6 MiB recurrent state, and 10 Query-Sparse Attention (QSA) layers (kv_heads = 2, head_dim = 256). In seppia, each QSA layer also keeps a 4:1 compressed indexer pool (head_dim = 128), adding 320 B/token across 10 layers.

KV format10 QSA layers + indexer128K context1M (1,048,576) context
BF16 / FP1620,800 B/tok2.48 GiB19.84 GiB
FP8 (fp8_e4m3)10,560 B/tok1.26 GiB10.07 GiB
seal4 (4-bit trellis)5,980 B/tok730 MiB5.70 GiB
seal3 (3-bit trellis)4,700 B/tok574 MiB4.48 GiB
seal2 (2-bit trellis)3,420 B/tok417 MiB3.26 GiB

For comparison, DeepSeek-V4.1-Flash reports 890 B/token for global history (111.25 MiB at 128K, ~890 MiB at 1M) via CED + CSA2 + FP4 KV.

Cross-engine measurements (4 December 2026)

All runs below were measured on the same day across four setups: DGX Spark (vLLM NVFP4 + MTP K3, engram disk_offload), M3 Max 64 GB (Splash 1.7.6 UD-Q4_K_M + DFlash2), DGX Spark (seppia UD-IQ4_XS + DFlash2 + seal2 + --embed-host), and RunPod RTX PRO 6000 Blackwell (seppia, same config).

Engine & hardwareSingle-stream decodeNotes
DGX Spark · vLLM (NVFP4 + MTP K3)43.4 tok/s (114.9 @ 4-way, 159.0 @ 8-way)30K TTFT 2.9 s; requires Engram disk_offload to avoid 20 GiB pinned-RAM OOM
M3 Max 64 GB · Splash 1.7.6 (UD-Q4_K_M + DFlash2)114.2 tok/s (187.4 @ 4-way)30K TTFT 18.9 s; passed cache_salt isolation smoke
DGX Spark · seppia (UD-IQ4_XS + DFlash2, seal2)58.3 tok/s avg (61.3 plain, 85.8 code, 99.9 math)Hugepage PLE (0 GiB VRAM), 132.4 ms median TTFT, 4.5 s warm boot; 1M smoke 84.1 tok/s
RTX PRO 6000 · seppia (UD-IQ4_XS + DFlash2, seal2)315.5 tok/s avg (252.0 plain, 371.4 code, 536.7 math)39.1 ms median TTFT, 4.7 s warm boot; 1M smoke 372.7 tok/s

The seppia numbers use llm-serving-bench v3.3 (short+code, 2 prompts per category, effort=low, 256 tokens). The vLLM and Splash rows use 512-token Chinese short prompts.

Blackwell findings

On DGX Spark (sm_121, CUDA 13.0), seppia compiled cleanly (317/317 targets, 30/30 CPU tests) but failed 3 of 15 L0 GPU tests with cudaErrorInvalidClusterSize because GB10 reports cudaDevAttrClusterLaunch != 0. Disabling has_clusters for cc == 121 in src/gpu/cuda/device.cpp brought L0 to 15/15 passing.

On RTX PRO 6000 Blackwell (sm_120, CUDA 12.8), seppia triggered cudaErrorIllegalAddress after ~64 tokens unless serialized with CUDA_LAUNCH_BLOCKING=1. Disabling Programmatic Dependent Launch (f.has_pdl = false in device.cpp) resolved the race while keeping CUDA Graphs enabled.

Production fit

seppia is single-stream, early-beta software with no public license yet, so we are not integrating it into tokenflow production nodes. Its engineering takeaways—specifically hugepage-backed 20.5B PLE streaming and seal2 trellis KV compression—are directly relevant to running hybrid GDN + QSA models on memory-constrained nodes.

Related notes

How much KV cache does a 128K agent session need? · Field notes and debugging log on zliu.org · Request access