TokenGrid is a stateful, token-aware capacity scheduler for managing LLM inference costs and resource utilization. It operates in the admission path, bridging gateways and compute resources. Features include dynamic rate limiting based on multi-dimensional quotas (tokens per second, monthly token budgets, container memory), a fair-sharing engine that classifies workloads, enforces tenant quotas, and applies memory-based throttling. It also supports various service classes (dedicated, guaranteed, elastic, spot, and preemptible). This post details its application in multi-tenant inference environments, addressing issues of stranded GPU capacity, undifferentiated rate limiting, and production latency spikes during traffic bursts. It introduces debt-based fairness for temporarily throttled workloads and capacity expressed in inference-native units like token throughput, KV cache, and concurrency, running as a Kubernetes-native layer above vLLM or TensorRT-LLM.
All DataRobot trails