Skip to content

Commit dcce6f2

Browse files
authored
Merge pull request Azure#360 from Azure/paledger/update-readme
Update readme/cluster location from PM's instructions
2 parents 56b0664 + 5328186 commit dcce6f2

File tree

4 files changed

+31
-12
lines changed

4 files changed

+31
-12
lines changed

how-to-use-azureml/deployment/accelerated-models/README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,21 @@ To learn more about the azureml-accel-model classes, see the section [Model Clas
1313

1414
### Step 1: Create an Azure ML workspace
1515
Follow [these instructions](https://docs.microsoft.com/en-us/azure/machine-learning/service/quickstart-create-workspace-with-python) to install the Azure ML SDK on your local machine, create an Azure ML workspace, and set up your notebook environment, which is required for the next step.
16-
17-
### Step 2: Install the Azure ML Accelerated Models SDK
16+
17+
### Step 2: Check your FPGA quota
18+
Use the Azure CLI to check whether you have quota.
19+
20+
```shell
21+
az vm list-usage --location "eastus" -o table
22+
```
23+
24+
The other locations are ``southeastasia``, ``westeurope``, and ``westus2``.
25+
26+
Under the "Name" column, look for "Standard PBS Family vCPUs" and ensure you have at least 6 vCPUs under "CurrentValue."
27+
28+
If you do not have quota, then submit a request form [here](https://aka.ms/accelerateAI).
29+
30+
### Step 3: Install the Azure ML Accelerated Models SDK
1831
Once you have set up your environment, install the Azure ML Accel Models SDK. This package requires tensorflow >= 1.6,<2.0 to be installed.
1932

2033
If you already have tensorflow >= 1.6,<2.0 installed in your development environment, you can install the SDK package using:
@@ -35,7 +48,7 @@ If your machine supports GPU (for example, on an [Azure DSVM](https://docs.micro
3548
pip install azureml-accel-models[gpu]
3649
```
3750

38-
### Step 3: Follow our notebooks
51+
### Step 4: Follow our notebooks
3952

4053
The notebooks in this repo walk through the following scenarios:
4154
* [Quickstart](accelerated-models-quickstart.ipynb), deploy and inference a ResNet50 model trained on ImageNet

how-to-use-azureml/deployment/accelerated-models/accelerated-models-object-detection.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,12 @@
273273
"from azureml.core.compute import AksCompute, ComputeTarget\n",
274274
"\n",
275275
"# Uses the specific FPGA enabled VM (sku: Standard_PB6s)\n",
276-
"# Authentication is enabled by default, but for testing we specify False\n",
276+
"# Standard_PB6s are available in: eastus, westus2, westeurope, southeastasia\n",
277277
"prov_config = AksCompute.provisioning_configuration(vm_size = \"Standard_PB6s\",\n",
278-
" agent_count = 1)\n",
278+
" agent_count = 1, \n",
279+
" location = \"eastus\")\n",
279280
"\n",
280-
"aks_name = 'my-aks-pb6-ssd-vgg'\n",
281+
"aks_name = 'aks-pb6-obj'\n",
281282
"# Create the cluster\n",
282283
"aks_target = ComputeTarget.create(workspace = ws, \n",
283284
" name = aks_name, \n",
@@ -318,6 +319,7 @@
318319
"from azureml.core.webservice import Webservice, AksWebservice\n",
319320
"\n",
320321
"# Set the web service configuration (for creating a test service, we don't want autoscale enabled)\n",
322+
"# Authentication is enabled by default, but for testing we specify False\n",
321323
"aks_config = AksWebservice.deploy_configuration(autoscale_enabled=False,\n",
322324
" num_replicas=1,\n",
323325
" auth_enabled = False)\n",

how-to-use-azureml/deployment/accelerated-models/accelerated-models-quickstart.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,10 @@
341341
"from azureml.core.compute import AksCompute, ComputeTarget\n",
342342
"\n",
343343
"# Uses the specific FPGA enabled VM (sku: Standard_PB6s)\n",
344-
"# Authentication is enabled by default, but for testing we specify False\n",
344+
"# Standard_PB6s are available in: eastus, westus2, westeurope, southeastasia\n",
345345
"prov_config = AksCompute.provisioning_configuration(vm_size = \"Standard_PB6s\",\n",
346-
" agent_count = 1)\n",
346+
" agent_count = 1, \n",
347+
" location = \"eastus\")\n",
347348
"\n",
348349
"aks_name = 'my-aks-pb6'\n",
349350
"# Create the cluster\n",
@@ -386,6 +387,7 @@
386387
"from azureml.core.webservice import Webservice, AksWebservice\n",
387388
"\n",
388389
"#Set the web service configuration (for creating a test service, we don't want autoscale enabled)\n",
390+
"# Authentication is enabled by default, but for testing we specify False\n",
389391
"aks_config = AksWebservice.deploy_configuration(autoscale_enabled=False,\n",
390392
" num_replicas=1,\n",
391393
" auth_enabled = False)\n",

how-to-use-azureml/deployment/accelerated-models/accelerated-models-training.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
" * [Transfer Learning](#transfer-learning)\n",
4848
" * [Transfer Learning with Custom Weights](#custom-weights)\n",
4949
"* [Create Image](#create-image)\n",
50-
"* [Deploy Model](#deploy-model)\n",
50+
"* [Deploy Image](#deploy-image)\n",
5151
"* [Test the service](#test-service)\n",
5252
"* [Clean-up](#cleanup)\n",
5353
"* [Appendix](#appendix)"
@@ -630,11 +630,12 @@
630630
"from azureml.core.compute import AksCompute, ComputeTarget\n",
631631
"\n",
632632
"# Uses the specific FPGA enabled VM (sku: Standard_PB6s)\n",
633-
"# Authentication is enabled by default, but for testing we specify False\n",
633+
"# Standard_PB6s are available in: eastus, westus2, westeurope, southeastasia\n",
634634
"prov_config = AksCompute.provisioning_configuration(vm_size = \"Standard_PB6s\",\n",
635-
" agent_count = 1)\n",
635+
" agent_count = 1,\n",
636+
" location = \"eastus\")\n",
636637
"\n",
637-
"aks_name = 'my-aks-pb6-training'\n",
638+
"aks_name = 'aks-pb6-tl'\n",
638639
"# Create the cluster\n",
639640
"aks_target = ComputeTarget.create(workspace = ws, \n",
640641
" name = aks_name, \n",
@@ -675,6 +676,7 @@
675676
"from azureml.core.webservice import Webservice, AksWebservice\n",
676677
"\n",
677678
"# Set the web service configuration (for creating a test service, we don't want autoscale enabled)\n",
679+
"# Authentication is enabled by default, but for testing we specify False\n",
678680
"aks_config = AksWebservice.deploy_configuration(autoscale_enabled=False,\n",
679681
" num_replicas=1,\n",
680682
" auth_enabled = False)\n",

0 commit comments

Comments
 (0)