perf(ds4): overlap q5 verification and stabilize 16K

Merged
DA
2mo ago
+2351-263

Summary

  • batch q=5 hyper-connection and drafter-feature work across verifier lanes
  • balance expert placement against the two-device critical path
  • use bounded heterogeneous-prefill scratch and stable long-context graph shapes
  • add overlap tracing and exact-context qualification controls

This PR is stacked on #569.

Validation

Configuration: R9700 target plus Strix Halo expert device, q=5, four routed experts, two warmups and three measured 128-token replies per context.

ContextClient decode median
2K75.818 tok/s
4K74.530 tok/s
8K69.898 tok/s
16K62.685 tok/s
2K after 16K76.703 tok/s

All 25 responses matched the expected deterministic hash. Peak target-GPU memory use was 31.089 GiB.

  • test_deepseek4_unit: passed
  • test_server_unit: 322 passed, 0 failed
  • shell and Python checks: passed
  • git diff --check: passed