8c4ef33fa0 | ||
---|---|---|
.. | ||
00_AMLSetup.ipynb | ||
01_DevelopModel.ipynb | ||
02_DevelopModelDriver.ipynb | ||
03_BuildImage.ipynb | ||
04_DeployOnAKS.ipynb | ||
05_TestWebApp.ipynb | ||
06_SpeedTestWebApp.ipynb | ||
07_TearDown.ipynb | ||
README.md | ||
resnet152.py | ||
testing_utilities.py | ||
tutorial_env.yml |
README.md
Deploy Deep Learning CNN on Kubernetes Cluster with GPUs - Keras
To get started with the tutorial, please proceed with following steps in sequential order.
Prerequisites
- Linux(Ubuntu) with GPU enabled.
- Anaconda Python
- Docker installed.
- Azure account.
The tutorial was developed on an Azure Ubuntu DSVM, which addresses the first three prerequisites.
Setup
To set up your environment to run these notebooks, please follow these steps. They setup the notebooks to use Docker and Azure seamlessly.
-
Create a Linux DSVM (NC6 or above to use GPU).
-
Clone, fork, or download the zip file for this repository:
git clone https://github.com/Microsoft/AKSDeploymentTutorial_AML.git
-
Add your user to the docker group (after executing this command, exit and start a new bash shell):
sudo usermod -aG docker $USER
To verify whether you have correct configuration, try executing
docker ps
command. You should not getpermission denied
errors. -
Navigate to ./AKSDeploymentTutorial_AML/Keras_Tensorflow directory
-
Create the Python virtual environment using the tutorial_env.yml:
conda env create -f tutorial_env.yml
-
Activate the virtual environment:
source activate tutorial_env
-
Login to Azure:
az login
-
If you have more than one Azure subscription, select it:
az account set --subscription <Your Azure Subscription>
-
Start the Jupyter notebook server in the virtual environment:
jupyter notebook
Steps
After following the setup instructions above, run the Jupyter notebooks in order starting with the first notebook 00_AMLSetup.ipynb.
Cleaning up
To remove the conda environment created see here. The last Jupyter notebook also gives details on deleting Azure resources associated with this repository.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.