An ML engineer trains a PyTorch model on 3 TB of TFRecord shards stored under one Amazon S3 prefix. Each SageMaker AI training job uses the default input mode and spends about 40 minutes copying data before the first epoch begins. The training script opens the shards through ordinary file paths and must not be changed. Which solution will remove the start-up delay with the LEAST operational overhead?
Choose one.
SageMaker AI training input modes: File (copy first), FastFile (stream with file semantics) and Pipe (stream through FIFO pipes).
File mode, the default, copies the whole dataset to the instance's storage before the script runs, which is where the 40 minutes go. Two options remove that copy without touching the script: FastFile mode and an FSx for Lustre channel. FastFile is only a channel setting on the existing S3 prefix; it keeps POSIX file access and streams objects as the script reads them. FSx for Lustre works too, but it is a new file system plus VPC networking to set up and operate, so it loses on operational overhead. Pipe mode would need the script rewritten to read named pipes, and a bigger volume keeps the copy.
- Identify the cause: File mode downloads the full dataset before training starts.
- Rule out Pipe mode (script must change) and a bigger volume (the copy stays).
- Compare the two that work: FastFile is a channel setting; FSx for Lustre is new infrastructure.
- Choose FastFile mode on the same S3 prefix as the least overhead.
Exam tip: Slow start in File mode with a file-based script: FastFile is the lowest-effort fix; FSx for Lustre also works but is more to run.
Collecting and Storing Data for ML and AI on AWS (MLA-C02) — the lesson that teaches this.