Design document for a 70B chat service
CPU · your Macdesign480 minrequiredGoal · Write a complete design document with a capacity spreadsheet for serving a 70B-parameter chat model at 200 QPS peak with p99 TTFT under 800 ms and p99 ITL under 60 ms.
- 1Fix the workload: prompt length lognormal with median 1200 tokens and p99 6000, output median 300 tokens, 40 percent of prompts share a 900-token system prefix, peak 200 QPS, trough 30 QPS.
- 2Build a spreadsheet computing, for H100 80GB and A100 80GB at FP8 and FP16, weight bytes, KV bytes per token, free KV memory, max concurrent sequences and decode tokens per second per GPU from bandwidth; cite the Phase 3 and 4 measurements you scale from.
- 3Decide TP degree per replica and justify it with memory and latency arithmetic; compute replicas needed for peak QPS including 30 percent headroom and N plus 1 for failure.
- 4Evaluate a disaggregated prefill/decode layout against the monolithic one using the same spreadsheet; state which you pick and why.
- 5Design the gateway with prefix-aware routing, admission control and KV-utilization-based autoscaling; specify scale-up and scale-down signals and cooldowns.
- 6Specify the metrics, dashboards and alerts, and a load test plan that must pass before a rollout; include a canary strategy.
- 7Write the failure mode table (node loss, OOM from long prompts, hot replica, NCCL hang) with detection and mitigation for each.
- 8Compute cost per million tokens for each option and present the final recommendation with explicit assumptions.
- Deliverable
- design-doc-70b-chat.md plus capacity.csv or a spreadsheet with all formulas visible.
- Check
- Every number in the doc traces to a formula in the spreadsheet; the chosen design meets both SLOs on paper with headroom, and the cost section states dollars per million tokens for at least two hardware options.