DeepSeek-V4.1-Flash-Ternary

«- back to models
  • - for complex coding and research agents
  • - ~92% intelligence retained vs FP4
  • - 142 GB pack, 28% of 510 GB base
  • - ~12.1x speedup (11.8 → 143 tok/s @ c1)

Performance (Measured on 4× RTX 6000 Pro Max-Q)

Agentic coding throughput

Replay of 10 SWE-bench Pro / DeepSWE mini-swe-agent conversations × 6 turns each. Full chat history + tool observations fed back each turn; prefix cache on.

Concurrencyout tok/saccept lengthTTFT msITL ms
11943.784253.5
43094.084749.8

Cold prefill and long-context decode

Same stack with --disable-radix-cache and --flush-cache between lengths. sglang.benchmark.serving random, 8 prompts, concurrency 1.

promptdecode tok/sprefill tok/sTTFT mean / p50 / p90 / p99 (ms)ITL mean / p50 / p90 / p99 (ms)accept
102475~0.9k1080 / 1085 / 1982 / 28285.8 / 4.1 / 16.0 / 16.62.83
409699~6.5k629 / 600 / 984 / 10005.7 / 4.1 / 8.5 / 16.82.88
1638427~3.7k4376 / 2203 / 8701 / 203395.8 / 4.1 / 8.6 / 16.62.88
3276832~9.1k3617 / 3301 / 6158 / 70805.5 / 4.1 / 8.3 / 16.63.02

Decode slows as context grows; ITL stays flat.

Optimisation

  • - Hadamard-rotated ternary GPTQ expert overlay (group 128, 40 layers, w123 layout)
  • - Attention, router, shared experts, Engram, and DSpark draft stay in the base checkpoint
  • - DSpark speculative decoding (block size 5) from base draft MoE
  • - Goethe ternary_runtime kernels for ternary MoE decode (TP=EP=4)
  • - Full CUDA graphs on decode; unused experts fall back to FP4 from base