Skip to content

Commit f6840d1

Browse files
committed
code formatting
1 parent 6815adb commit f6840d1

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/sagemaker/remote_function/job.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,12 @@ def _get_job_name(job_settings, func):
10011001

10021002

10031003
def _prepare_and_upload_runtime_scripts(
1004-
spark_config: SparkConfig, s3_base_uri: str, s3_kms_key: str, sagemaker_session: Session, use_torchrun: bool = False, nproc_per_node: int = 1
1004+
spark_config: SparkConfig,
1005+
s3_base_uri: str,
1006+
s3_kms_key: str,
1007+
sagemaker_session: Session,
1008+
use_torchrun: bool = False,
1009+
nproc_per_node: int = 1,
10051010
):
10061011
"""Copy runtime scripts to a folder and upload to S3.
10071012

tests/integ/sagemaker/remote_function/test_decorator.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,15 +819,21 @@ def test_decorator_auto_capture(sagemaker_session, auto_capture_test_container):
819819
)
820820
subprocess.check_output(shlex.split(cmd), stderr=subprocess.STDOUT).decode("utf-8")
821821

822-
def test_decorator_torchrun(sagemaker_session, dummy_container_without_error, gpu_instance_type, use_torchrun=True, nproc_per_node=2):
822+
def test_decorator_torchrun(
823+
sagemaker_session,
824+
dummy_container_without_error,
825+
gpu_instance_type,
826+
use_torchrun=True,
827+
nproc_per_node=2,
828+
):
823829
@remote(
824830
role=ROLE,
825831
image_uri=dummy_container_without_error,
826832
instance_type=gpu_instance_type,
827833
sagemaker_session=sagemaker_session,
828834
keep_alive_period_in_seconds=60,
829835
use_torchrun=use_torchrun,
830-
nproc_per_node=nproc_per_node
836+
nproc_per_node=nproc_per_node,
831837
)
832838
def divide(x, y):
833839
return x / y

0 commit comments

Comments
 (0)