Skip to content

Commit 37223ec

Browse files
committed
fix: linting to break up long lines
1 parent 0b2a16c commit 37223ec

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/sagemaker/huggingface/estimator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ def __init__(
160160
161161
.. note::
162162
163-
When you use this PyTorch XLA option for distributed training strategy, you must add the
164-
``compiler_config`` parameter and activate SageMaker Training Compiler.
163+
When you use this PyTorch XLA option for distributed training strategy,
164+
you must add the ``compiler_config`` parameter and activate SageMaker
165+
Training Compiler.
165166
compiler_config (:class:`~sagemaker.huggingface.TrainingCompilerConfig`):
166167
Configures SageMaker Training Compiler to accelerate training.
167168

src/sagemaker/training_compiler/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ def validate(
143143
for i in cls.SUPPORTED_INSTANCE_CLASS_PREFIXES
144144
]
145145
):
146-
error_helper_string = "Unsupported Instance class {}. SageMaker Training Compiler only supports {}"
146+
error_helper_string = (
147+
"Unsupported Instance class {}."
148+
"SageMaker Training Compiler only supports {}"
149+
)
147150
error_helper_string = error_helper_string.format(
148151
requested_instance_class, cls.SUPPORTED_INSTANCE_CLASS_PREFIXES
149152
)

0 commit comments

Comments
 (0)