Separating GPU choice from data storage with SkyPilot and the Hub

A shared storage layer can make GPU placement more flexible—but performance still depends on how jobs read their data.

Source artwork for Run AI workloads on any cloud, store on Hugging Face: zero-egress storage with SkyPilot
Source artwork · Hugging Face / credited contributors ↗
THE SHORT VERSION

Choose compute and storage independently, then measure the complete data path before moving a large workload.

The development

Hugging Face and SkyPilot introduced an integration that lets jobs access Hub repositories and writable Hugging Face Buckets through an hf:// address. The announcement describes mounting or copying data into compute jobs while keeping the underlying storage separate from the selected cloud.

The distinction between repository inputs and bucket outputs is important. A training job can read a published model and dataset without modifying them, then write checkpoints to a different destination. That separates reproducible inputs from the changing artifacts produced by an experiment.

The source describes zero-egress reads from Hugging Face storage. That does not make the complete workload free: GPU time, storage capacity, destination-side networking and operational overhead still need their own accounting. Treat the integration as a way to remove one constraint, not every cost.

Start with the shape of the workload

Imagine a small team that trains in one environment during development and uses another when larger GPUs become available. Maintaining separate copies of every dataset creates a second deployment problem: the team must prove that each copy is identical. A shared, versioned input location makes that question easier to answer. It also makes the access pattern more important, because a remote read is still a network operation even when its transfer price is attractive.

An initial experiment should use a representative slice of the dataset rather than a tiny synthetic file. Record time to the first useful batch, sustained examples per second and GPU idle time. Run the same experiment again with a warm cache. The difference reveals whether an apparent training improvement actually came from data already sitting on the worker.

Mounting and copying solve different problems

A mounted dataset is useful when a job touches only a fraction of a large collection. Copying inputs before execution can be easier to reason about when an experiment repeatedly scans the same files or needs a predictable local layout. Neither choice wins universally. Many small random reads can behave very differently from sequential reads through large shards.

Keep the comparison fair by using the same input revision, batch size and preprocessing. If data loading becomes the bottleneck, changing the GPU will not necessarily improve useful throughput. A less expensive accelerator that stays busy may finish the work more economically than a larger one that repeatedly waits for storage.

Give outputs an explicit lifecycle

Checkpoints, logs and final release artifacts serve different purposes. Temporary checkpoints support recovery; a final model should be accompanied by the configuration and evaluation that explain what was trained. Plan retention around those differences. Otherwise a convenient writable destination can quietly become an unstructured archive of incomplete runs.

Use distinct output prefixes for distinct experiments, and verify a checkpoint can actually be restored before relying on it. Recording a path in a log is not the same as proving that all required files reached storage intact. A recovery drill is a useful part of the first integration, not just an emergency procedure.

Decide from measured portability

The practical test of portability is a second successful run in another environment with no changes to the model or data contract. Document the dependencies that did change, including filesystem support and credentials supplied through the environment. That record turns an attractive architecture diagram into an operational capability the team can repeat.

Source: Run AI workloads on any cloud, store on Hugging Face: zero-egress storage with SkyPilot · njha, michaelvll, hopechong, XciD, julien-c. How we write

← Back to all articles