Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/functional_tests/shell_test_utils/_run_training.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,22 @@ DISTRIBUTED_ARGS=(
--redirects "3"
)

FT_LAUNCHER_ARGS=(
--max-restarts=3
)

# Start training
if [[ "$IS_NEMO_TEST" == "true" ]]; then
if [[ "$LAUNCHER" == "ft_launcher" ]]; then
ft_launcher ${DISTRIBUTED_ARGS[@]} \
ft_launcher ${DISTRIBUTED_ARGS[@]} ${FT_LAUNCHER_ARGS[@]} \
--no-python /opt/venv/bin/$TRAINING_SCRIPT_PATH "${PARAMS[@]}" && EXIT_CODE=0 || EXIT_CODE=$?
else
uv run --no-sync python -m torch.distributed.run ${DISTRIBUTED_ARGS[@]} \
--no-python /opt/venv/bin/$TRAINING_SCRIPT_PATH "${PARAMS[@]}" && EXIT_CODE=0 || EXIT_CODE=$?
fi
else
if [[ "$LAUNCHER" == "ft_launcher" ]]; then
ft_launcher ${DISTRIBUTED_ARGS[@]} \
ft_launcher ${DISTRIBUTED_ARGS[@]} ${FT_LAUNCHER_ARGS[@]} \
$TRAINING_SCRIPT_PATH "${PARAMS[@]}" && EXIT_CODE=0 || EXIT_CODE=$?
else
uv run --no-sync python -m torch.distributed.run ${DISTRIBUTED_ARGS[@]} \
Expand Down
Loading