Change AKS cluster to CPU and remove region (#889)
This commit is contained in:
Родитель
6808b7156b
Коммит
8358801353
|
@ -544,17 +544,15 @@
|
|||
"from azureml.exceptions import ComputeTargetException\n",
|
||||
"\n",
|
||||
"# Choose a name for your cluster\n",
|
||||
"aks_name = \"cluster-aks-gpu\"\n",
|
||||
"aks_name = \"cluster-aks-cpu\"\n",
|
||||
"# Check to see if the cluster already exists\n",
|
||||
"try:\n",
|
||||
" aks_target = ComputeTarget(workspace=ws, name=aks_name)\n",
|
||||
" print(\"Found existing compute target\")\n",
|
||||
"except ComputeTargetException:\n",
|
||||
" print(\"Creating a new compute target...\")\n",
|
||||
" # Provision AKS cluster with GPU machine\n",
|
||||
" prov_config = AksCompute.provisioning_configuration(\n",
|
||||
" vm_size=\"STANDARD_NC6\", location=\"eastus2\"\n",
|
||||
" )\n",
|
||||
" # Provision AKS cluster with a CPU machine\n",
|
||||
" prov_config = AksCompute.provisioning_configuration(vm_size=\"STANDARD_D3_V2\")\n",
|
||||
" # Create the cluster\n",
|
||||
" aks_target = ComputeTarget.create(\n",
|
||||
" workspace=ws, name=aks_name, provisioning_configuration=prov_config\n",
|
||||
|
|
|
@ -539,17 +539,15 @@
|
|||
"from azureml.exceptions import ComputeTargetException\n",
|
||||
"\n",
|
||||
"# Choose a name for your cluster\n",
|
||||
"aks_name = \"cluster-aks-gpu\"\n",
|
||||
"aks_name = \"cluster-aks-cpu\"\n",
|
||||
"# Check to see if the cluster already exists\n",
|
||||
"try:\n",
|
||||
" aks_target = ComputeTarget(workspace=ws, name=aks_name)\n",
|
||||
" print(\"Found existing compute target\")\n",
|
||||
"except ComputeTargetException:\n",
|
||||
" print(\"Creating a new compute target...\")\n",
|
||||
" # Provision AKS cluster with GPU machine\n",
|
||||
" prov_config = AksCompute.provisioning_configuration(\n",
|
||||
" vm_size=\"STANDARD_NC6\", location=\"eastus2\"\n",
|
||||
" )\n",
|
||||
" # Provision AKS cluster with a CPU machine\n",
|
||||
" prov_config = AksCompute.provisioning_configuration(vm_size=\"STANDARD_D3_V2\")\n",
|
||||
" # Create the cluster\n",
|
||||
" aks_target = ComputeTarget.create(\n",
|
||||
" workspace=ws, name=aks_name, provisioning_configuration=prov_config\n",
|
||||
|
|
|
@ -523,17 +523,15 @@
|
|||
"from azureml.exceptions import ComputeTargetException\n",
|
||||
"\n",
|
||||
"# Choose a name for your cluster\n",
|
||||
"aks_name = \"cluster-aks-gpu\"\n",
|
||||
"aks_name = \"cluster-aks-cpu\"\n",
|
||||
"# Check to see if the cluster already exists\n",
|
||||
"try:\n",
|
||||
" aks_target = ComputeTarget(workspace=ws, name=aks_name)\n",
|
||||
" print(\"Found existing compute target\")\n",
|
||||
"except ComputeTargetException:\n",
|
||||
" print(\"Creating a new compute target...\")\n",
|
||||
" # Provision AKS cluster with GPU machine\n",
|
||||
" prov_config = AksCompute.provisioning_configuration(\n",
|
||||
" vm_size=\"STANDARD_NC6\", location=\"eastus2\"\n",
|
||||
" )\n",
|
||||
" # Provision AKS cluster with a CPU machine\n",
|
||||
" prov_config = AksCompute.provisioning_configuration(vm_size=\"STANDARD_D3_V2\")\n",
|
||||
" # Create the cluster\n",
|
||||
" aks_target = ComputeTarget.create(\n",
|
||||
" workspace=ws, name=aks_name, provisioning_configuration=prov_config\n",
|
||||
|
|
|
@ -607,17 +607,15 @@
|
|||
"from azureml.exceptions import ComputeTargetException\n",
|
||||
"\n",
|
||||
"# Choose a name for your cluster\n",
|
||||
"aks_name = \"cluster-aks-gpu\"\n",
|
||||
"aks_name = \"cluster-aks-cpu\"\n",
|
||||
"# Check to see if the cluster already exists\n",
|
||||
"try:\n",
|
||||
" aks_target = ComputeTarget(workspace=ws, name=aks_name)\n",
|
||||
" print(\"Found existing compute target\")\n",
|
||||
"except ComputeTargetException:\n",
|
||||
" print(\"Creating a new compute target...\")\n",
|
||||
" # Provision AKS cluster with GPU machine\n",
|
||||
" prov_config = AksCompute.provisioning_configuration(\n",
|
||||
" vm_size=\"STANDARD_NC6\", location=\"eastus2\"\n",
|
||||
" )\n",
|
||||
" # Provision AKS cluster with a CPU machine\n",
|
||||
" prov_config = AksCompute.provisioning_configuration(vm_size=\"STANDARD_D3_V2\")\n",
|
||||
" # Create the cluster\n",
|
||||
" aks_target = ComputeTarget.create(\n",
|
||||
" workspace=ws, name=aks_name, provisioning_configuration=prov_config\n",
|
||||
|
|
Загрузка…
Ссылка в новой задаче