ML Model and Foundation Model (FM) Development

An engineer has a PyTorch training script and local helper modules that use only libraries already included in a supported SageMaker AI PyTorch container. How should the engineer run them with the least container maintenance?

Show the answer

Correct answerA. Set entry_point to the script and source_dir to its code directory in a PyTorch estimator.

AWhy this is right: The PyTorch estimator packages the entry-point script and supporting source directory for execution in its framework container.

BWhy not this: A custom image can work, but maintaining it is unnecessary when the supported framework container meets the requirements.

CWhy not this: A training data channel supplies input data; it does not replace the script-mode entry-point configuration.

DWhy not this: Hyperparameters pass configuration values to the script; they do not package helper module files.

Script mode uses entry_point for the training script and source_dir to package supporting code with it in a managed framework container. A custom image can run the code but adds unnecessary container maintenance when the supported image already has the dependencies.