We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bead494 commit 0386583Copy full SHA for 0386583
src/sagemaker/modules/train/model_trainer.py
@@ -835,8 +835,10 @@ def _prepare_train_script(
835
)
836
execute_driver = EXECUTE_BASIC_SCRIPT_DRIVER
837
else:
838
+ # This should never be reached, as the source_code should have been validated.
839
raise ValueError(
- f"Invalid configuration, please provide a valid SourceCode: {source_code}"
840
+ f"Unsupported SourceCode or DistributedConfig: {source_code}, {distributed}."
841
+ + f"Please provide a valid configuration with atleast one of 'command' or entry_script'."
842
843
844
train_script = TRAIN_SCRIPT_TEMPLATE.format(
0 commit comments