Add v4 sweep results and post-mortem analysis showing:
- direct-to-D path: 54.3% (1P7D) / 58.0% (2P6D) of requests now use
KVC cleanly. P50=0.5s and TTFT P50=0.043s; this path beats baseline
8DP across the board (P50 -24%, TTFT P50 -54%, TTFT P90 -79%).
- Overall vs baseline (errors+truncated excluded):
v4 2P6D P50=0.85s vs baseline 0.66s (28% slower).
Reason is not errors -- 35% of requests still hit
fallback-large-append-session-cap, where capacity-based
cap = usable_tokens / target_tokens evaluates to 1-2 (not 16)
for large agentic inputs.
- 9-10% errors on KVC variants are mooncake TCP transfer timeouts,
not SGLang logic bugs. Prefill log shows
"Failed to send kv chunk ... 32s timeout ... session not alive".
Errors concentrate in turn>=31 (large inputs) after run >44.8%.
Track:
- docs/KVC_DEBUG_JOURNEY_V1_TO_V4.md: append v4 results table,
per-mode breakdown, and error root cause.
- scripts/analysis/{analyze_v3,analyze_v4,analyze_errors,compare_no_error}.py
- outputs/qwen3-30b-tp1-v{3,4}*/exp*_summary.json (force-added,
small JSON; metrics.jsonl excluded due to size).
- outputs/qwen3-30b-tp1-v{3,4}*/sweep_results.txt
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
85 lines
2.2 KiB
JSON
85 lines
2.2 KiB
JSON
{
|
|
"actual_output_tokens_stats": {
|
|
"count": 4440.0,
|
|
"mean": 225.87972972972972,
|
|
"p50": 86.0,
|
|
"p90": 576.0,
|
|
"p99": 1347.0
|
|
},
|
|
"cache_hit_request_count": 4201,
|
|
"cached_tokens_stats": {
|
|
"count": 4449.0,
|
|
"mean": 24345.55787817487,
|
|
"p50": 21504.0,
|
|
"p90": 48792.0,
|
|
"p99": 69120.0
|
|
},
|
|
"decode_request_priorities": {},
|
|
"error_count": 9,
|
|
"execution_modes": {
|
|
"kvcache-centric": 9,
|
|
"kvcache-direct-to-d-session": 1358,
|
|
"pd-router-d-session-reseed": 12,
|
|
"pd-router-fallback-d-backpressure": 2,
|
|
"pd-router-fallback-large-append-seed-filter-early-turn": 52,
|
|
"pd-router-fallback-large-append-session-cap": 2902,
|
|
"pd-router-fallback-session-cap": 25,
|
|
"pd-router-large-append-reseed": 34,
|
|
"pd-router-large-append-reseed-after-eviction": 4,
|
|
"pd-router-turn1-d-backpressure": 1,
|
|
"pd-router-turn1-seed": 30,
|
|
"pd-router-turn1-session-cap": 20
|
|
},
|
|
"latency_stats_s": {
|
|
"count": 4440.0,
|
|
"mean": 3.582334662846558,
|
|
"p50": 1.517257746309042,
|
|
"p90": 9.225348330102861,
|
|
"p99": 18.70269925892353
|
|
},
|
|
"mechanisms": {
|
|
"kvcache-centric": 4449
|
|
},
|
|
"per_decode_load": {
|
|
"decode-0": 710,
|
|
"decode-1": 630,
|
|
"decode-2": 763,
|
|
"decode-3": 737,
|
|
"decode-4": 879,
|
|
"decode-5": 730
|
|
},
|
|
"per_prefill_load": {
|
|
"prefill-0": 2225,
|
|
"prefill-1": 2224
|
|
},
|
|
"prefill_request_priorities": {
|
|
"-100": 80,
|
|
"100": 3002
|
|
},
|
|
"re_prefill_count": 0,
|
|
"request_count": 4449,
|
|
"reuse_expected_count": 4397,
|
|
"reuse_observed_count": 4397,
|
|
"router_url": "http://127.0.0.1:8000",
|
|
"session_reset_count": 0,
|
|
"session_reused_count": 1358,
|
|
"total_actual_kv_transfer_blocks": 78979,
|
|
"total_cached_tokens": 108313387,
|
|
"total_kv_transfer_blocks": 105235,
|
|
"tpot_stats_s": {
|
|
"count": 4440.0,
|
|
"mean": 0.005882534704321737,
|
|
"p50": 0.005807478777200416,
|
|
"p90": 0.00712956755887717,
|
|
"p99": 0.008372141476720572
|
|
},
|
|
"trace_path": "outputs/qwen3-30b-tp1-v3-kvaware/kvcache-centric-kv-aware-worker-admission-20260428T104343Z/sampled-trace.jsonl",
|
|
"truncated_request_count": 42,
|
|
"ttft_stats_s": {
|
|
"count": 4440.0,
|
|
"mean": 2.2045287611873334,
|
|
"p50": 0.32809355948120356,
|
|
"p90": 6.947275545448065,
|
|
"p99": 16.705802395939827
|
|
}
|
|
} |