Skip to content

Commit 122d293

Browse files
makungaj1Jonathan Makunga
authored andcommitted
fix: model builder race condition on sagemaker session (aws#4673)
Co-authored-by: Jonathan Makunga <[email protected]>
1 parent 74bc3e1 commit 122d293

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/sagemaker/serve/builder/model_builder.py

-2
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,6 @@ def build( # pylint: disable=R0911
726726
self.role_arn = role_arn
727727
self.sagemaker_session = sagemaker_session or Session()
728728

729-
self.sagemaker_session.settings._local_download_dir = self.model_path
730-
731729
# https://github.com/boto/botocore/blob/develop/botocore/useragent.py#L258
732730
# decorate to_string() due to
733731
# https://github.com/boto/botocore/blob/develop/botocore/client.py#L1014-L1015

0 commit comments

Comments
 (0)