Skip to content

Commit 241f355

Browse files
authored
[ML] Removed Experimental Tag from Compute Properties (Azure#29372)
* Revert "[ML] Removed Experimental Tags from OS Image Metadata (Azure#29158)" This reverts commit b393611. * Removed experimental tags from idle_time_before_shutdown * Removed experimental tags from custom applications * Removed experimental tag from setup scripts * Updated changelog * Removed extra condition from custom apps * Revert "Removed extra condition from custom apps" This reverts commit f9a6cada6c4e0d4737dff10f6583d76d9aca3c03. * Revert "Revert "[ML] Removed Experimental Tags from OS Image Metadata (Azure#29158)" (Azure#29400)" This reverts commit 90062d8. * Updated changelog
1 parent f6a57c1 commit 241f355

File tree

7 files changed

+12
-23
lines changed

7 files changed

+12
-23
lines changed

sdk/ml/azure-ai-ml/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Features Added
66
- Added experimental scatter gather node to DSL package. This node has a unique mldesigner dependency.
77
- Added support to make JobService and ServiceInstance objects serializable when printed
8+
- Removed Experimental Tag from Idle Shutdown, Custom Applications, Setup Scripts, and Image Metadata on Compute Instances.
89

910
### Bugs Fixed
1011

sdk/ml/azure-ai-ml/azure/ai/ml/_schema/compute/compute_instance.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ class ComputeInstanceSchema(ComputeSchema):
6363
services = fields.List(fields.Dict(keys=fields.Str(), values=fields.Str()), dump_only=True)
6464
schedules = NestedField(ComputeSchedulesSchema)
6565
identity = ExperimentalField(NestedField(IdentitySchema))
66-
idle_time_before_shutdown = ExperimentalField(fields.Str())
67-
idle_time_before_shutdown_minutes = ExperimentalField(fields.Int())
68-
custom_applications = ExperimentalField(fields.List(NestedField(CustomApplicationsSchema)))
69-
setup_scripts = ExperimentalField(NestedField(SetupScriptsSchema))
70-
os_image_metadata = ExperimentalField(NestedField(OsImageMetadataSchema, dump_only=True))
66+
idle_time_before_shutdown = fields.Str()
67+
idle_time_before_shutdown_minutes = fields.Int()
68+
custom_applications = fields.List(NestedField(CustomApplicationsSchema))
69+
setup_scripts = NestedField(SetupScriptsSchema)
70+
os_image_metadata = NestedField(OsImageMetadataSchema, dump_only=True)
7171
enable_node_public_ip = fields.Bool(
7272
metadata={"description": "Enable or disable node public IP address provisioning."}
7373
)

sdk/ml/azure-ai-ml/azure/ai/ml/_schema/compute/custom_applications.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from marshmallow import fields
77
from marshmallow.decorators import post_load
88

9-
from azure.ai.ml._schema.core.fields import NestedField, StringTransformedEnum, ExperimentalField
9+
from azure.ai.ml._schema.core.fields import NestedField, StringTransformedEnum
1010
from azure.ai.ml._schema.core.schema_meta import PatchedSchemaMeta
1111
from azure.ai.ml.constants._compute import CustomApplicationDefaults
1212

@@ -46,10 +46,10 @@ def make(self, data, **kwargs):
4646
class CustomApplicationsSchema(metaclass=PatchedSchemaMeta):
4747
name = fields.Str(required=True)
4848
type = StringTransformedEnum(allowed_values=[CustomApplicationDefaults.DOCKER])
49-
image = ExperimentalField(NestedField(ImageSettingsSchema))
50-
endpoints = ExperimentalField(fields.List(NestedField(EndpointsSettingsSchema)))
49+
image = NestedField(ImageSettingsSchema)
50+
endpoints = fields.List(NestedField(EndpointsSettingsSchema))
5151
environment_variables = fields.Dict()
52-
bind_mounts = ExperimentalField(fields.List(NestedField(VolumeSettingsSchema)))
52+
bind_mounts = fields.List(NestedField(VolumeSettingsSchema))
5353

5454
@post_load
5555
def make(self, data, **kwargs):

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_compute/_custom_applications.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222
DUPLICATE_APPLICATION_ERROR,
2323
INVALID_VALUE_ERROR,
2424
)
25-
from azure.ai.ml._utils._experimental import experimental
2625

2726

28-
@experimental
2927
class ImageSettings:
3028
"""Specifies an image configuration for a Custom Application.
3129
@@ -44,7 +42,6 @@ def _from_rest_object(cls, obj: RestImage) -> "ImageSettings":
4442
return ImageSettings(reference=obj.reference)
4543

4644

47-
@experimental
4845
class EndpointsSettings:
4946
"""Specifies an endpoint configuration for a Custom Application.
5047
@@ -91,7 +88,6 @@ def _validate_endpoint_settings(cls, target: int, published: int):
9188
)
9289

9390

94-
@experimental
9591
class VolumeSettings:
9692
"""Specifies the Bind Mount settings for a Custom Application.
9793
@@ -118,7 +114,6 @@ def _from_rest_object(cls, obj: RestVolumeDefinition) -> "VolumeSettings":
118114
return VolumeSettings(source=obj.source, target=obj.target)
119115

120116

121-
@experimental
122117
class CustomApplications:
123118
"""Specifies the custom service application configuration.
124119

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_compute/_image_metadata.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# ---------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# ---------------------------------------------------------
4-
from azure.ai.ml._utils._experimental import experimental
54

65

7-
@experimental
86
class ImageMetadata:
97
"""Metadata about the operating system image for this compute instance."""
108

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_compute/_setup_scripts.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
from azure.ai.ml._restclient.v2022_10_01_preview.models import ScriptReference as RestScriptReference
1010
from azure.ai.ml._restclient.v2022_10_01_preview.models import ScriptsToExecute as RestScriptsToExecute
1111
from azure.ai.ml._restclient.v2022_10_01_preview.models import SetupScripts as RestSetupScripts
12-
from azure.ai.ml._utils._experimental import experimental
1312
from azure.ai.ml.entities._mixins import RestTranslatableMixin
1413

1514

16-
@experimental
1715
class ScriptReference(RestTranslatableMixin):
1816
"""Script reference.
1917
@@ -54,7 +52,6 @@ def _from_rest_object(cls, obj: RestScriptReference) -> "ScriptReference":
5452
return script_reference
5553

5654

57-
@experimental
5855
class SetupScripts(RestTranslatableMixin):
5956
"""Customized setup scripts.
6057

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_compute/compute_instance.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
)
2323
from azure.ai.ml._schema._utils.utils import get_subnet_str
2424
from azure.ai.ml._schema.compute.compute_instance import ComputeInstanceSchema
25-
from azure.ai.ml._utils._experimental import experimental
2625
from azure.ai.ml.constants._common import BASE_PATH_CONTEXT_KEY, TYPE
2726
from azure.ai.ml.constants._compute import ComputeDefaults, ComputeType
2827
from azure.ai.ml.entities._compute.compute import Compute, NetworkSettings
@@ -143,9 +142,9 @@ class ComputeInstance(Compute):
143142
False - Indicates that the compute nodes will have a private endpoint and no public IPs.
144143
Default Value: True.
145144
:type enable_node_public_ip: Optional[bool], optional
146-
:param setup_scripts: Experimental. Details of customized scripts to execute for setting up the cluster.
145+
:param setup_scripts: Details of customized scripts to execute for setting up the cluster.
147146
:type setup_scripts: Optional[SetupScripts], optional
148-
:param custom_applications: Experimental. List of custom applications and their endpoints
147+
:param custom_applications: List of custom applications and their endpoints
149148
for the compute instance.
150149
:type custom_applications: Optional[List[CustomApplications]], optional
151150
"""
@@ -224,7 +223,6 @@ def state(self) -> str:
224223
"""
225224
return self._state
226225

227-
@experimental
228226
@property
229227
def os_image_metadata(self) -> ImageMetadata:
230228
"""Metadata about the operating system image for this compute instance.

0 commit comments

Comments
 (0)