Skip to content

Commit 9c8fc36

Browse files
committed
chore: avoid exceeding resource limits for training timeout
1 parent 64ca588 commit 9c8fc36

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/integ/sagemaker/jumpstart/estimator/test_jumpstart_estimator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def test_jumpstart_estimator(setup):
4040
role=get_sm_session().get_caller_identity_arn(),
4141
sagemaker_session=get_sm_session(),
4242
tags=[{"Key": JUMPSTART_TAG, "Value": os.environ[ENV_VAR_JUMPSTART_SDK_TEST_SUITE_ID]}],
43+
max_run=259200, # avoid exceeding resource limits
4344
)
4445

4546
estimator.fit(

tests/integ/sagemaker/jumpstart/script_mode_class/test_transfer_learning.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def test_jumpstart_transfer_learning_estimator_class(setup):
9898
instance_type=training_instance_type,
9999
)
100100

101+
# Avoid exceeding resource limits
102+
if "max_run" in estimator_kwargs:
103+
del estimator_kwargs["max_run"]
104+
101105
estimator = Estimator(
102106
image_uri=image_uri,
103107
source_dir=script_uri,

0 commit comments

Comments
 (0)