We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8e237 commit bb4e15bCopy full SHA for bb4e15b
src/sagemaker/serve/builder/model_builder.py
@@ -1234,6 +1234,11 @@ def _model_builder_optimize_wrapper(
1234
Returns:
1235
Model: A deployable ``Model`` object.
1236
"""
1237
+ if hasattr(self, "enable_network_isolation") and sharding_config:
1238
+ raise ValueError(
1239
+ "EnableNetworkIsolation cannot be set to True since SageMaker Fast Model "
1240
+ "Loading of model requires network access."
1241
+ )
1242
1243
# TODO: ideally these dictionaries need to be sagemaker_core shapes
1244
# TODO: for organization, abstract all validation behind this fn
0 commit comments