Curriculum / Part 6 · Scale-out NAS and object storage
Lesson 29

Object for AI pipelines

Using object storage in AI pipelines: data lakes, dataset versions, streaming shards, and putting a fast tier in front.

⏱ 35 min5-question quizLab 6.3

The simple version

The town library's archive holds every book ever bought (object storage). The reading room holds the books people are using this week (the fast tier). You don't read in the archive, and you don't throw the archive away.

Object storage as the source of truth

Raw data, curated datasets, tokenized shards and model checkpoints accumulate fast. Object storage keeps them durable and cheap, with prefixes and versioning to organise them. A dataset "version" is usually an immutable prefix plus a manifest listing its shards, so a training run can always name exactly what it read.

Stream or stage?

Stream from objectStage to a fast tier
HowLoaders GET shards directly (WebDataset-style over HTTP)Copy shards to a parallel FS or local NVMe first
Wins whenOne pass, plenty of endpoint bandwidth per nodeMany epochs, many nodes, endpoint shared and busy
CostPer-request latency, shared endpoint bandwidthCopy time and fast-tier capacity
per-node share ≈ endpoint bandwidth ÷ busy nodes

A 40 GB/s endpoint shared by 6 busy nodes gives each ~6.7 GB/s. A job needing 10.7 GB/s per node can't keep up from object storage alone, however many loader workers it adds (Lab 6.3).

S3-compatible platforms

On-premises S3 comes from many products. Dell ObjectScale, for example, is Dell's S3-compatible object platform. Throughput per node, consistency guarantees and supported S3 features vary, so measure with warp or your loader before sizing.

Tools

aws s3 sync s3://bucket/prefix/ /lustre/…
Stage a dataset version into the fast tier.
aws s3 ls s3://bucket/prefix/
Inspect a dataset version's shards.
simtrain --data s3://… (simulator only)
Compare streaming from object vs a staged copy.

Quiz

Lab

Lab 6.3 · Training from cold object storage

A multimodal job reads its training shards straight from s3://datasets/laion-shards (4,000 shards, ~1 MiB per sample). The GPUs sit mostly idle. Raising the loader worker count helps a little, then stops helping. The dataset's source of truth must stay in S3.

Start lab 6.3 →

Try it now in the simulator (opens with the command ready; press Enter):

$ aws s3 ls s3://datasets/laion-shards/$ simtrain --data s3://datasets/laion-shards --workers 32