concept

AI workloads and data locality

Training adjusts model parameters and can run for hours; inference serves predictions using an existing model. A small bookstore recommendation API might use CPU inference, while a large model may require accelerators. A distributed training run may require all cooperating workers to be schedulable together. Gang scheduling is a group-admission or placement capability that needs a compatible implementation, such as a supported Kubeflow Trainer integration; an ordinary Job with parallelism does not guarantee simultaneous placement. Checkpoint model state, optimizer state and data progress to durable approved storage; verify resume compatibility.

Formal Syntax & Structure

kubernetes syntaxkubernetes
Observed sustainable throughput: 20 requests/s per replica (invented)Target demand: 45 requests/sceil(45/20) = 3 replicas; verify tail latency and headroom

Working Example

Example Snippetkubernetes
3 replicas * 1 GPU * 3 hours * 2 USD/GPU-hour = 18 USDcompute budget 15 USD -> HOLD3 GPU capacity and budget 20 USD -> arithmetic gates pass only
Kubernetes Reference