0d010f8e90 | ||
---|---|---|
.. | ||
04_DeployOnAKS.ipynb | ||
05_TestWebApp.ipynb | ||
06_SpeedTestWebApp.ipynb | ||
07_TearDown.ipynb | ||
README.md |
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 (x64) with GPU enabled.
- Anaconda Python
- Docker installed.
- Azure account.
The tutorial was developed on an Azure Ubuntu DSVM, which addresses the first three prerequisites.
Steps
Please follow these steps to set up your environment and run notebooks. They setup the notebooks to use Docker and Azure seamlessly.
-
Add your user to the docker group:
sudo usermod -aG docker $USER newgrp docker
To verify whether you have correct configuration, try executing
docker ps
command. You should not getpermission denied
errors. -
Navigate to the directory which is the framework you have chosen (e.g. Keras_Tensorflow).
-
Create the Python virtual environment using the environment.yml:
conda env create -f environment.yml
-
Activate the virtual environment:
source activate deployment_aml
-
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
-
Select correct kernel: set the kernel to be
Python [conda env: deployment_aml]
(orPython 3
if that option does not show). -
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.