ML Model and Foundation Model (FM) Development

Where should a SageMaker AI script-mode training script save model files so that SageMaker AI packages them as training output?

Show the answer

Correct answerA. The directory specified by SM_MODEL_DIR

AWhy this is right: SageMaker AI packages files saved in this directory as the model artifact.

BWhy not this: Files in the working directory are not automatically included in the model artifact.

CWhy not this: SM_CHANNEL_TRAIN identifies the location of data supplied through the train input channel.

DWhy not this: Temporary storage is not the designated location for automatically packaged model files.

SageMaker AI packages model files saved in SM_MODEL_DIR and uploads the resulting model artifact to Amazon S3. SM_CHANNEL_TRAIN identifies an input data channel, not the model output directory.