gpu-capacity-architect
Architect-level GPU capacity planning — VRAM arithmetic for weights and KV cache, instance selection and cost per token, utilisation targets versus latency SLOs, multi-model sharing, queueing and admission, and the reservation strategy that keeps training and serving from fighting. Use when GPUs are the scarce resource.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- gpu-capacity-architect
- license
- MIT
- metadata
- { "crusor-path": "ai-ml-architect/serving-architect/gpu-capacity-architect", "crusor-domain": "ai-ml-architect", "crusor-origin": "original", "crusor-sources": "docs.vllm.ai/en/latest/performance; docs.nvidia.com/datacenter; cloud.google.com/compute/docs/gpus", "crusor-triggers": "gpu capacity, vram, gpu utilisation, kv cache, gpu cost, a100, h100, multi model serving, gpu queue, reserved capacity, gpu memory, out of memory on gpu", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level GPU capacity planning — VRAM arithmetic for weights and KV cache, instance selection and cost per token, utilisation targets versus latency SLOs, multi-model sharing, queueing and admission, and the reservation strategy that keeps training and serving from fighting. Use when GPUs are the scarce resource.
- compatibility
- Any GPU cloud; vLLM, Triton, KServe, Ray Serve
03 SKILL.md 正文
GPU Capacity Architect
GPU capacity is arithmetic plus scheduling. Most "we need more GPUs" requests are a batching or sizing problem.
When to use
- Sizing a serving fleet or a training budget.
- GPU utilisation claims without measurement.
- Sharing a GPU pool between training and serving teams.
When NOT to use
- API-only workloads — capacity is the provider's problem (
token-economics-architect). - CPU inference of small models (ONNX, quantised) may be cheaper.
Decision 1 — VRAM arithmetic
weights ≈ params × bytes_per_param (fp16 = 2 B, fp8 = 1 B, 4-bit ≈ 0.5 B)
kv cache ≈ 2 × layers × heads × head_dim × seq_len × batch × bytes
overhead ≈ 10–20% (activations, fragmentation)
- KV cache, not weights, limits concurrency: a 70B model at long context fits far fewer concurrent sequences than the weight size suggests.
- Long-context requests consume cache proportional to their length — one 100k-token request can starve the batch.
- Reserve headroom; 95% VRAM usage is a crash waiting for the next burst.
Decision 2 — Instance selection
| Constraint | Choice |
|---|---|
| latency-critical, small model | single high-clock GPU |
| throughput, large model | multi-GPU node with NVLink |
| cost-sensitive batch | spot/preemptible with checkpointing |
| bursty serving | smaller instances autoscaled |
| many small models | shared serving runtime with multiplexing |
- Compare on cost per 1M output tokens at your target latency, not on hourly price.
- Cross-node tensor parallelism has network cost; keep it intra-node where possible.
Decision 3 — Utilisation and latency
- Utilisation and latency trade off directly: higher batch = better throughput, worse TTFT.
- Set the SLO first (TTFT p95, tokens/s), then maximise batch within it.
- Target 60–80% sustained utilisation for serving; 100% means no headroom and queueing collapse under spikes.
- Autoscale on queue depth and TTFT, never on GPU utilisation (it is already high).
Decision 4 — Scheduling and sharing
- Separate pools (or time-sliced reservations) for training and serving; a training job that grabs the serving node is an incident.
- Queue long jobs with priorities; preempt training, never serving.
- Admission control: cap max sequence length and concurrent requests per tenant.
- Multi-model serving (MPS/MIG/multiplexing) for many small models; not for large latency-sensitive ones.
Decision 5 — Cost governance
- Reserved/committed capacity for the steady baseline; spot for training and batch.
- Track GPU-hours by team and project; idle GPUs are the largest single waste.
- Auto-shutdown non-production GPU instances; time-box notebooks.
- Review monthly: cost per token, utilisation, and rejected requests.
Failure modes at scale
- Fleet sized on weights only; OOM at concurrency, not at load.
- 100% GPU utilisation and a growing queue: no headroom, latency cliff.
- Training job scheduled on the serving node during peak.
- Spot instances for latency-critical serving; preemption is an outage.
- Idle dev GPUs costing more than production.
Verification receipts
- VRAM calculation for the deployed model and context length.
- Load test: TTFT and tokens/s versus concurrency, with the knee identified.
- Utilisation and queue-depth dashboards with autoscaling configured.
- Cost per 1M tokens per pool, with reserved vs on-demand comparison.
- Scheduling policy demonstrating training preemption without serving impact.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.