Skip to content

Commit 9cfc643

Browse files
author
Jonathan Makunga
committed
Notebook testing
1 parent 7c7dce9 commit 9cfc643

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sagemaker/serve/builder/tei_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ def _tei_model_builder_deploy_wrapper(self, *args, **kwargs) -> Type[PredictorBa
180180
if "endpoint_logging" not in kwargs:
181181
kwargs["endpoint_logging"] = True
182182

183-
if not self.nb_instance_type and "instance_type" not in kwargs:
183+
if self.nb_instance_type and "instance_type" not in kwargs:
184+
kwargs.update({"instance_type": self.nb_instance_type})
185+
elif not self.nb_instance_type and "instance_type" not in kwargs:
184186
raise ValueError(
185187
"Instance type must be provided when deploying " "to SageMaker Endpoint mode."
186188
)

0 commit comments

Comments
 (0)