Activity v1
Inference Batching and Queueing Simulator
Model deterministic arrival rate batch size service time cache pressure throughput utilization and tail-latency trade-offs.
Inference Batching and Queueing Simulator: Baseline
Explore the core controls with stable inputs and visible assumptions.
Assumptions
The simulation is deterministic and intentionally simplifies provider and hardware behavior.
Failure injection
Stable baseline with no injected production fault.
GPU VRAM & KV-Cache Memory Budget Estimator
Simulate model weights, KV-cache growth, PagedAttention block allocation, and GPU OOM thresholds.
The required VRAM (87.72 GB) exceeds the target cluster capacity (80 GB) by Math.abs(-7.72) GB. Apply INT8/FP4 quantization, reduce batch size, or upgrade GPU cluster topology.
Multi-Head Latent Attention (MLA) reduces KV cache memory footprint by up to 93% by compressing Key-Value matrices into a single low-rank latent vector prior to attention matrix multiplication.
Expected outcomes
- Relate utilization and queueing to tail latency
- Balance batch efficiency against waiting time
Apply this lab in an architecture
FS-101Model Serving and Inference
Understand inference engines memory scheduling batching routing scaling distributed execution lifecycle controls observability and economics.
Get the weekly systems teardown
One technical note per week covering inference bottlenecks, retrieval harnesses, and commit-pinned teardowns.