Curriculum / Part 3 · How AI workloads use storage
Lesson 11

The AI data lifecycle

Follow data from ingest to archive and see why each stage wants a different kind of storage.

⏱ 30 min5-question quiz

The simple version

Think of a restaurant. Groceries arrive in bulk at the back door (ingest), get washed and chopped (prep), cooked fast during dinner rush (training), and leftovers go in the freezer (archive). Every so often the chef photographs the half-cooked dish in case the stove breaks (checkpoint). You wouldn't use the walk-in freezer as the chopping board.

Stages and their access patterns

StageWhat happensAccess patternTypical tier
IngestRaw data lands: crawls, images, logsLarge sequential writes, many sourcesObject storage
Prep / curationDecode, filter, dedupe, tokenize, shardMixed reads and writes, CPU-heavy, often many small filesParallel FS or NAS, plus object
TrainingGPUs read samples every stepRead-heavy; random across an epoch; must keep pace with GPUsParallel FS, local NVMe cache
CheckpointSave model and optimizer stateBursty large writes from every GPU at onceParallel FS (fast), then object (durable)
InferenceLoad weights, serve requestsLarge reads at startup; latency-sensitive cache trafficLocal NVMe, NAS, object
ArchiveKeep datasets and models for reuse or auditRare reads, cheap per TBObject, capacity disk, tape

Data moves between tiers

No single tier is best at everything, so data moves: object storage holds the source of truth, a parallel filesystem holds the hot working set for training, local NVMe caches what each node reads repeatedly, and checkpoints flow back to durable storage. Every move costs time and network bandwidth, which is why Lesson 30 treats data movement as a design cost.

Design question to ask early: which stage is the bottleneck for this workload? Vision training with millions of small images stresses metadata and read IOPS. LLM training reads relatively little data per step but writes huge checkpoints.

Who touches the data

Each stage often has different owners and tools (data engineering, ML engineers, platform teams). Storage problems often show up as someone else's symptom: "the GPUs are idle", "the job died at step 40,000", "the model takes ten minutes to load". The rest of Part 3 turns each of those symptoms into numbers.

Tools

aws s3 ls s3://bucket/prefix/
Inspect object storage (any S3-compatible endpoint with --endpoint-url).
lfs df -h
Capacity and balance of a Lustre filesystem.
df -h / df -i
Space and inodes on local and network mounts.

Quiz

Lab

Related lab

Lab 3.1 · Starved dataloader

A vision model trains from /lustre/datasets/imagenet-raw: 1.28 million JPEGs averaging 110 KiB. nvidia-smi shows the GPUs mostly idle. The same images also exist as 1,024 tar shards in /lustre/datasets/imagenet-shards.

Start lab 3.1 →

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

$ ls -lh /lustre/datasets$ aws s3 ls s3://datasets/raw/$ lfs df -h