Skip to content

Commit 1346e87

Browse files
author
Satish Pasumarthi
committed
fix: provide option to use native process launcher
1 parent ab14621 commit 1346e87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sagemaker_pytorch_container/training.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ def train(training_environment):
8181
runner_type = runner.PyTorchXLARunnerType
8282
logger.info('Invoking PT-XLA Runner')
8383
logger.info('Invoking user training script.')
84+
85+
# get capture_error from framework parameters
86+
capture_error = True
87+
if training_environment.additional_framework_parameters.get("sagemaker_toolkit_native_launcher_enabled"):
88+
capture_error = False
89+
logger.info(f'capture_error is {capture_error}. Default is True')
90+
8491
try:
8592
entry_point.run(uri=training_environment.module_dir,
8693
user_entry_point=training_environment.user_entry_point,

0 commit comments

Comments
 (0)