Skip to main content
AI on Kubernetes · GPU/NPULesson 9 of 20

From Training Job to Model

GPUs are shared by many teams. Instead of running training and evaluation Jobs right away, you put them in a queue and run them when the team’s GPU quota has room. Using Kueue as the example, follow a Job as it waits, runs, leaves artifacts, and becomes a version in a model registry.

Job status—
GPU quota—
Model version—
Team namespaceQueueing · schedulingModel registryDeveloperkubectlJob manifestqueue-name labelTraining JobGPU PodsCheckpointsPVC · object storeKueueadmissionClusterQueueGPU quotaSchedulerkube-schedulerModel versione.g. MLflowEval metricsrun historywrite manifest
RequestResponse / reportAppears in a later step

What you will learn

  • How Kueue holds a Job in a suspended state
  • Over-quota requests are not rejected; they wait forever
  • Preemption loses progress, so checkpoints matter
  • Registering artifacts as a model version with lineage

Run directly vs queue​

Run the Job directlyKueue queue
When GPUs run shortSome Pods start and hold GPUs while others stay PendingThe whole Job waits suspended
Fairness across teamsFirst come, first servedPer-team quota, borrowing, preemption
Finding the waiting reasonRead Pod events one by oneWorkload status message

Try it yourself​

kubectl get localqueues -n <namespace> # Team queue the Job names (step 1)
kubectl get job <name> -n <namespace> -o jsonpath='{.spec.suspend}' # true until Kueue admits it (step 2)
kubectl get workloads -n <namespace> # One Workload per Job, admitted or not
kubectl describe workload <name> -n <namespace> # Why it waits: quota, queue, preemption
kubectl describe clusterqueue <name> # Quota usage and borrowing (step 4)

Check yourself

  1. You submit a training Job to Kueue and see no Pods at all. What is happening?
  2. A Job asks for more GPUs than its ClusterQueue can provide even with borrowing. What happens?
  3. Your long training Job runs on quota borrowed from another queue in the cohort. Why do checkpoints matter here?

Further reading: Jobs · Kueue overview