STORAGE_MOUNT_0_PATH, STORAGE_MOUNT_1_PATH, etc. as environment variables. Your training script reads from these paths, with no cloud-specific SDKs or storage code needed.
Mount Configuration
Each entry instorage_mounts maps a cloud URI to a container path:
source_uri:
URI Formats
On Azure ML,
source_uri can be an azureml:// datastore URI, a wasbs:// or abfss:// URI, or an https:// URI on *.blob.core.windows.net or *.dfs.core.windows.net. Train skips mounts with any other URI and submits the job without them. Datastores are configured in your Azure ML workspace.Train rejects a job with
403 if its storage_mounts reference storage your account isn’t allowed to use. By default, jobs can use only your deployment’s Train storage:- AWS and GCP: the Train data, checkpoints, output, and staging buckets
- Azure: the
traindata,traincheckpoints, andtrainoutputdatastores, which point to thedata,checkpoints, andoutputcontainers of the training storage account
Accessing Mounts in Your Container
STORAGE_MOUNT_* variables; read inputs from /opt/ml/input/data/ instead.
Read vs. Write
Setread_only based on intent. Use true for input data and pretrained weights; false for outputs, checkpoints, and logs. Marking input mounts read-only prevents accidental writes and may improve performance on some backends.
SageMaker: Input Data Config
SageMaker also supportsinput_data_config for S3 input channels. Channels are downloaded to the instance before training starts, which can be faster for large datasets with random access patterns:
/opt/ml/input/data/train/. This coexists with storage_mounts.
Next Steps
- Getting Started: Full job submission examples per backend
- Custom Images: Build and push training containers