Decide which model and which revision The ML engineer hands the workflow a model name, a revision, and a source: a Hugging Face repository or an S3 bucket.
The main branch on Hugging Face can change later. Pin the revision to a commit hash so the same model can be rebuilt.
Importing becomes a long-running Job Weights can be tens to hundreds of GB. The workflow creates a download Job through the API server and waits for it to finish.
Set a retry count (backoffLimit) and a time limit (activeDeadlineSeconds) on the Job so a broken network does not leave it hanging forever.
The download Job pulls the weights The download Job reads a Hugging Face token or S3 keys from a Secret as environment variables. Gated models cannot be downloaded without a token.
It downloads weight files such as safetensors, plus the config and tokenizer files.
Keep the files in in-house object storage The files are stored as-is in object storage close to the cluster, under a path that includes the model name and revision, together with checksums.
If the external source slows down or disappears, you can restart from this copy. It is still not in a shape a serving Pod can use directly.
Key idea Raw weights are "the files as downloaded"; a model artifact is "packaged for deployment". Keeping them separate lets you change the packaging without downloading again.
Package the weights as an OCI artifact The workflow then creates a build Job. It reads the weights from object storage and packages them in OCI format, the same format container images use.
Splitting large files across several layers, instead of one huge layer, lets nodes download them in parallel.
The artifact lives in a registry The build Job pushes the result to a registry. With a tag and a digest it is versioned like a container image and can be shipped identically to many nodes.
A serving Pod mounts it as a sidecar container or an image volume (stable since Kubernetes v1.36); KServe modelcars, for example, accept an oci:// storageUri. Another common option is unpacking the weights onto a PVC that many Pods read.
Pre-pull onto GPU nodes Downloading the artifact ahead of time to the local disk of the GPU nodes that will serve it is the node cache. It avoids pulling tens of GB every time a Pod starts.
A common approach is a pre-pull DaemonSet scoped by a GPU node label. Its Pods reference the model artifact, so the kubelet pulls it on each node, and the whole node pool gets the cache together.
Without a cache, Pods sit in ContainerCreating If a serving Pod lands on a node without the cache, the artifact is pulled on the spot. The Pod stays in ContainerCreating and the "Pulling image" event lingers.
When disk usage passes the high threshold, the kubelet deletes unused images, least recently used first (image garbage collection). Caching many large models can fill the disk and evict caches. Images used by running containers are kept.
Watch out With imagePullPolicy Always, the runtime asks the registry for the digest even when the image is cached; only missing layers are downloaded. Omitting the tag or using latest makes Always the default. Use fixed tags with IfNotPresent.
Import → package → cache Raw weights stay in object storage, the model artifact in the registry, and the cache on the GPU nodes’ local disks. All three stages are long-running work done by Jobs or a DaemonSet.
A failed stage can be rerun with the same revision. As long as the raw weights are kept, nothing has to be downloaded from outside again.
Summary Use kubectl get jobs for import and build progress, and the events in kubectl describe pod for image pull time. On the node, crictl images shows whether the cache is there.