Skip to content

Commit 0dea502

Browse files
committed
pylint fix, newlines
1 parent 00eb637 commit 0dea502

File tree

1 file changed

+0
-4
lines changed
  • src/sagemaker/remote_function

1 file changed

+0
-4
lines changed

src/sagemaker/remote_function/job.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,10 @@
159159
160160
printf "INFO: Invoking remote function inside conda environment: $conda_env.\\n"
161161
printf "INFO: $conda_exe run -n $conda_env python -m sagemaker.remote_function.invoke_function \\n"
162-
163162
$conda_exe run -n $conda_env python -m sagemaker.remote_function.invoke_function "$@"
164163
else
165164
printf "INFO: No conda env provided. Invoking remote function\\n"
166165
printf "INFO: python -m sagemaker.remote_function.invoke_function \\n"
167-
168166
python -m sagemaker.remote_function.invoke_function "$@"
169167
fi
170168
"""
@@ -213,15 +211,13 @@
213211
printf "INFO: $conda_exe run -n $conda_env torchrun --nnodes $SM_HOST_COUNT --nproc_per_node $SM_NPROC_PER_NODE \
214212
--master_addr $SM_MASTER_ADDR --master_port $SM_MASTER_PORT --node_rank $SM_CURRENT_HOST_RANK \
215213
-m sagemaker.remote_function.invoke_function \\n"
216-
217214
$conda_exe run -n $conda_env torchrun --nnodes $SM_HOST_COUNT --nproc_per_node $SM_NPROC_PER_NODE \
218215
--master_addr $SM_MASTER_ADDR --master_port $SM_MASTER_PORT --node_rank $SM_CURRENT_HOST_RANK \
219216
-m sagemaker.remote_function.invoke_function "$@"
220217
else
221218
printf "INFO: No conda env provided. Invoking remote function with torchrun\\n"
222219
printf "INFO: torchrun --nnodes $SM_HOST_COUNT --nproc_per_node $SM_NPROC_PER_NODE --master_addr $SM_MASTER_ADDR \
223220
--master_port $SM_MASTER_PORT --node_rank $SM_CURRENT_HOST_RANK -m sagemaker.remote_function.invoke_function \\n"
224-
225221
torchrun --nnodes $SM_HOST_COUNT --nproc_per_node $SM_NPROC_PER_NODE --master_addr $SM_MASTER_ADDR \
226222
--master_port $SM_MASTER_PORT --node_rank $SM_CURRENT_HOST_RANK -m sagemaker.remote_function.invoke_function "$@"
227223
fi

0 commit comments

Comments
 (0)