about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/azure/ai/ml/constants/_compute.py
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/azure/ai/ml/constants/_compute.py
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are here HEAD master
Diffstat (limited to '.venv/lib/python3.12/site-packages/azure/ai/ml/constants/_compute.py')
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/constants/_compute.py137
1 files changed, 137 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/constants/_compute.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/constants/_compute.py
new file mode 100644
index 00000000..963e13dd
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/constants/_compute.py
@@ -0,0 +1,137 @@
+# ---------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# ---------------------------------------------------------
+
+
+class ComputeType:
+    """ComputeType is an enum-like class that defines the types of compute that can be used for training.
+
+    ComputeType can be used to specify the compute type for a compute target. It can also be used to
+    specify the compute type for a compute target that is being created.
+
+    Valid values are "managed", "amlcompute", "computeinstance", "virtualmachine", "kubernetes", "DataFactory"
+        , "synapsespark".
+    """
+
+    MANAGED = "managed"
+    """Managed compute is a compute resource that is managed by Azure Machine Learning."""
+    AMLCOMPUTE = "amlcompute"
+    """AmlCompute is a compute resource that is managed by Azure Machine Learning."""
+    COMPUTEINSTANCE = "computeinstance"
+    """Compute Instance is a compute resource that is managed by Azure Machine Learning."""
+    VIRTUALMACHINE = "virtualmachine"
+    """Virtual Machine is a compute resource that is managed by Azure Machine Learning."""
+    KUBERNETES = "kubernetes"
+    """Kubernetes is a compute resource that is managed by Azure Machine Learning."""
+    ADF = "DataFactory"
+    """Data Factory is a compute resource that is managed by Azure Machine Learning."""
+    SYNAPSESPARK = "synapsespark"
+    """Synapse Spark is a compute resource that is managed by Azure Machine Learning."""
+
+
+class ComputeTier:
+    """ComputeTier is an enum-like class that defines the tiers of compute that can be used for training.
+
+    ComputeTier can be used to specify the compute tier for a compute target. It can also be used to specify the compute
+    tier for a compute target that is being created. Valid values are "lowpriority", "dedicated".
+    """
+
+    LOWPRIORITY = "low_priority"
+    """LOWPRIORITY is a compute tier that is used for low priority compute targets."""
+    DEDICATED = "dedicated"
+    """DEDICATED is a compute tier that is used for dedicated compute targets."""
+
+
+class IdentityType:
+    """IdentityType is an enum-like class that defines the types of identity that can be used for compute.
+
+    IdentityType can be used to specify the identity type for a compute target. It can also be used to specify the
+    identity type for a compute target that is being created. Valid values are "system_assigned", "user_assigned",
+    "both".
+    """
+
+    SYSTEM_ASSIGNED = "system_assigned"
+    """SYSTEM_ASSIGNED is a compute identity type that is used for system assigned compute targets."""
+    USER_ASSIGNED = "user_assigned"
+    """USER_ASSIGNED is a compute identity type that is used for user assigned compute targets."""
+    BOTH = "system_assigned,user_assigned"
+    """BOTH is a compute identity type that is used for both system and user assigned compute targets."""
+
+
+class ComputeDefaults:
+    """Class defining Compute Defaults."""
+
+    VMSIZE = "STANDARD_DS3_V2"
+    """ComputeDefaults.VMSIZE: Indicates default VM size. (STANDARD_DS3_V2)
+    """
+    ADMIN_USER = "azureuser"
+    """ComputeDefaults.ADMIN_USER: Indicates default admin user. (azureuser)
+    """
+    MIN_NODES = 0
+    """ComputeDefaults.MIN_NODES: Indicates default minimum number of nodes. (0)
+    """
+    MAX_NODES = 4
+    """ComputeDefaults.MAX_NODES: Indicates default maximum number of nodes. (4)
+    """
+    IDLE_TIME = 1800
+    """ComputeDefaults.IDLE_TIME: Indicates default idle time. (1800)
+    """
+    PRIORITY = "Dedicated"
+    """ComputeDefaults.PRIORITY: Indicates default priority. (Dedicated)
+    """
+
+
+class CustomApplicationDefaults:
+    """Class defining Custom Application Defaults."""
+
+    TARGET_PORT = "target_port"
+    """CustomApplicationDefaults.TARGET_PORT: Indicates target port of the custom application on the Compute
+      Instance. (target_port)
+    """
+
+    PUBLISHED_PORT = "published_port"
+    """CustomApplicationDefaults.PUBLISHED_PORT: Indicates published port of the custom application on the Compute
+      Instance. (published_port)
+    """
+
+    PORT_MIN_VALUE = 1025
+    """CustomApplicationDefaults.PORT_MIN_VALUE: Indicates minimum port value of the custom application on the
+      Compute Instance. (1025)
+    """
+
+    PORT_MAX_VALUE = 65535
+    """CustomApplicationDefaults.PORT_MAX_VALUE: Indicates maximum port value of the custom application on the
+      Compute Instance. (65535)
+    """
+
+    DOCKER = "docker"
+    """CustomApplicationDefaults.DOCKER: Indicates type of a docker custom application on the Compute Instance. (docker)
+    """
+
+    ENDPOINT_NAME = "connect"
+    """CustomApplicationDefaults.ENDPOINT_NAME: Indicates endpoint name of the custom application on the Compute
+     Instance. (connect)
+    """
+
+
+class ComputeSizeTier:
+    """Class defining Compute size tiers."""
+
+    AML_COMPUTE_DEDICATED = "amlComputeDedicatedVMSize"
+    """ComputeSizeTier.AML_COMPUTE_DEDICATED: Indicates Compute Sizes should match Dedicated-tier Virtual Machines.
+    (amlComputeDedicatedVmSize)
+    """
+
+    AML_COMPUTE_LOWPRIORITY = "amlComputeLowPriorityVMSize"
+    """ComputeSizeTier.AML_COMPUTE_LOWPRIORITY: Indicates Compute Sizes should match Low Priority-tier Virtual
+     Machines. (amlcomputeLowPriorityVMSize)
+    """
+
+    COMPUTE_INSTANCE = "computeInstanceVMSize"
+    """ComputeSizeTier.COMPUTE_INSTANCE: Indicates Compute Sizes should match Compute Instance Virtual Machines.
+    (computeInstanceVMSize)
+    """
+
+
+DUPLICATE_APPLICATION_ERROR = "Value of {} must be unique across all custom applications."
+INVALID_VALUE_ERROR = "Value of {} must be between {} and {}."