File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
sdk/ml/azure-ai-ml/azure/ai/ml Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,5 @@ class EndpointDeploymentLogContainerType(object):
23
23
INFERENCE_SERVER_REST = "InferenceServer"
24
24
INFERENCE_SERVER = "inference-server"
25
25
STORAGE_INITIALIZER = "storage-initializer"
26
+
27
+ SmallSKUs = ["standard_ds1_v2" , "standard_ds2_v2" ]
Original file line number Diff line number Diff line change 27
27
from azure .ai .ml ._utils ._endpoint_utils import upload_dependencies , validate_scoring_script
28
28
from azure .ai .ml ._utils ._logger_utils import OpsLogger
29
29
from azure .ai .ml .constants ._common import ARM_ID_PREFIX , AzureMLResourceType , LROConfigurations
30
- from azure .ai .ml .constants ._deployment import EndpointDeploymentLogContainerType
30
+ from azure .ai .ml .constants ._deployment import EndpointDeploymentLogContainerType , SmallSKUs
31
31
from azure .ai .ml .entities import OnlineDeployment
32
32
from azure .ai .ml .exceptions import (
33
33
ErrorCategory ,
@@ -126,6 +126,13 @@ def begin_create_or_update(
126
126
deployment = deployment ,
127
127
local_endpoint_mode = self ._get_local_endpoint_mode (vscode_debug ),
128
128
)
129
+ if (deployment and deployment .instance_type and deployment .instance_type .lower () in SmallSKUs ):
130
+ module_logger .warning (
131
+ "Instance type %s may be too small for compute resources. " # pylint: disable=line-too-long
132
+ "Minimum recommended compute SKU is Standard_DS3_v2 for general purpose endpoints. Learn more about SKUs here: " # pylint: disable=line-too-long
133
+ "https://learn.microsoft.com/en-us/azure/machine-learning/referencemanaged-online-endpoints-vm-sku-list" ,
134
+ deployment .instance_type # pylint: disable=line-too-long
135
+ )
129
136
if (
130
137
not skip_script_validation
131
138
and deployment
You can’t perform that action at this time.
0 commit comments