Tiers 1–5 sized compute. GPUs starve without disks and pipes. Storage & bandwidth planning covers checkpoints, datasets, Hugging Face hub pulls, object-store egress, NVMe vs HDD, and why a Tier 5 node with slow NFS trains like a Tier 2 hobby box. Volume 06 checkpoint lectures and Volume 12 long-context serving both assume tokens and weights can move faster than the step time.
The next (capstone) lecture pins OS/CUDA/drivers. Together they finish Vol. 18’s hardware playbook before Vol. 19 Accuracy asks whether any of this was worth it.
Learning Objectives
By the end of this lesson, students should be able to:
- Estimate disk for weights, tokenizer artifacts, datasets, logs, and N checkpoint revisions.
- Plan per-tier storage: Tier 1 (almost none) through Tier 5 (parallel FS + object store).
- Separate disk throughput (NVMe) from network bandwidth (WAN egress, IB, Ethernet).
- Avoid dataloader and checkpoint IO as hidden step-time killers.
- Account for cloud egress + Hub rate limits in TCO next to GPU rent.
- Write a simple capacity spreadsheet the ops team can actually use.
Storage planning sizes persistent bytes: model repos, sharded datasets, experiment checkpoints, indexes (RAG), and logs. Bandwidth planning sizes bytes/second: NVMe read for dataloaders, PCIe for CPU↔GPU copies, LAN/IB for multi-node, and WAN for Hub/S3/API. A GPU with empty PCIe lanes or a 100 MB/s NFS checkpoint path is not a Tier 5 machine—it is a very expensive wait state. Quantized weights (Module 18.3) shrink disk as well as VRAM; they do not shrink raw datasets.
What Eats Disk (order-of-magnitude)
| Artifact | Rough size | Who cares |
|---|---|---|
| 7B FP16 / INT4 weights | ~14 GB / ~4 GB | Tiers 2–3 local cache |
| 70B FP16 / INT4 | ~140 GB / ~40 GB | Tier 4–5; multi-revision ×N |
| HF hub snapshot (full repo) | Weights + tokenizer + extra shards | Everyone who “just clone” |
| SFT dataset (JSONL text) | 1–100+ GB raw; more tokenized | Tier 4 dataloaders want local NVMe |
| Pretrain tokens (web scale) | TBs–PBs | Tier 5 parallel FS / object store |
| Adam checkpoint (full FT) | ~2–4× weight size | Do not keep 50 full FT ckpts on one SSD |
| LoRA adapter only | 10–500 MB | Keep many; cheap |
| RAG index + embeddings | Docs × dim × 4 bytes (+ overhead) | Often larger than the LLM on Tier 1–2 |
Per-Tier Playbook
Tiers 1–2
- T1: almost no model disk; log + cache only
- T2: 1 TB NVMe covers Q4 7Bs + a small corpus
- Watch Hub re-downloads on flaky Wi-Fi
- API egress = token/audio/image bytes, not IB
Tiers 3–4
- 2–8 TB NVMe: 13B/70B shards + ckpts + ds
- Keep LoRAs; prune full FT ckpts
- Dataloader: local SSD, not spinning HDD
- 64–256 GB host RAM for page cache helps
Tier 5
- Node-local NVMe scratch + shared FS
- Object store (S3/GCS/MinIO) for durable ckpts
- IB for grads; still need fat storage net
- Checkpoint every N min without stalling GPUs
A Tiny Capacity Spreadsheet in Code
Plan revisions explicitly. “We have 2 TB” dies when someone saves 20 full 70B Adam dumps.
IO That Looks Like a Model Bug
Do this
- NVMe for active ds + scratch ckpts
- Object store for durable history
- Save LoRA deltas, not 20 full bases
- Prefetch dataloaders; pin memory
- Colocate Hub cache with the GPU region
Stop doing this
- Training off a USB HDD or home NAS at 40 MB/s
- Re-downloading 70B every job
- Checkpointing full Adam every step
- Ignoring cloud egress until the bill
- Putting RAG indexes on the same tiny OS disk
Related Lectures
| Lecture | Why it sits beside storage |
|---|---|
| Vol. 06 Checkpoints | What you are persisting |
| 18.3 Quantization | INT4 shrinks weight disk too |
| Vol. 12 LoRA | Tiny artifacts vs full FT dumps |
| Tier 5 | IB ≠ storage network automatically |
| 18.2 Docker | Layer cache vs model cache |
| OS, CUDA & Drivers | Next: the other silent outage class |
“VRAM size is the only capacity number.” Datasets and checkpoints are often 10–100× VRAM. Second: “InfiniBand solves checkpoint speed.” IB moves grads; dumps still need a storage fabric or local NVMe. Third: “Tier 1 has zero bandwidth concerns.” API image/video payloads and Hub downloads still hit WAN and laptop disks.
Knowledge Check
- Short Answer: Name three artifact classes you must size besides GPU VRAM. Answer: Weights/repos, datasets, checkpoints (also RAG indexes, logs).
- True/False: A 70B FP16 checkpoint is roughly the same size as a LoRA adapter. Answer: False—~140 GB vs tens–hundreds of MB.
- Multiple Choice: Active SFT dataloader disk: (a) USB HDD, (b) local NVMe, (c) optical disc. Answer: (b).
- Short Answer: Why do 20 full Adam 70B dumps blow a 2 TB SSD? Answer: Each dump is multiple× weight size; 20 revisions are many TB.
- True/False: InfiniBand automatically makes NFS checkpoint writes fast. Answer: False—storage path is separate unless designed that way.
- Multiple Choice: Tier 1 storage footprint: (a) PB parallel FS required, (b) tiny—app + logs + optional cache, (c) 8×H100 scratch only. Answer: (b).
- Short Answer: How does quantization help storage as well as VRAM? Answer: Fewer bytes/param on disk for weight shards (INT4 vs FP16).
- True/False: Cloud egress and Hub pull time belong in TCO next to GPU hours. Answer: True.
- Multiple Choice: Best durable home for many full ckpts: (a) the OS disk, (b) object store + lifecycle rules, (c) RAM disk only. Answer: (b).
- Short Answer: What Vol. 18 lecture comes next as the compatibility capstone? Answer: OS, CUDA & Driver Compatibility.
Key Takeaways
- Plan weights × revisions, datasets, LoRAs vs full FT, and RAG indexes—not just VRAM.
- NVMe for hot IO; object store for history; IB is not a substitute for disks.
- Per-tier: T1 almost none → T5 parallel FS + scratch.
- WAN egress and Hub cache are part of hardware TCO.
- Continue with OS, CUDA & Driver Compatibility.
Lab: Run the capacity snippet for a fictional lab (two 13B FP16, one 70B INT4, 15 LoRAs, 400 GB dataset, 8 full FT ckpts). Students pick disk SKUs per tier and estimate Hub pull time at 200 Mbps.
Discussion: Checkpoint every step vs every epoch vs every 30 minutes—how does that interact with GPU utilization and disaster recovery?
Recap: Storage and bandwidth are first-class hardware. Continue with OS, CUDA & Driver Compatibility.