Skip to content

Commit e396360

Browse files
authored
Merge pull request #85974 from v-rihow/dsvm-deep-learning-ai-framework
edit pass: dsvm-deep-learning-ai-framework
2 parents 6ffb80a + 79dba8a commit e396360

File tree

2 files changed

+139
-143
lines changed

2 files changed

+139
-143
lines changed

articles/machine-learning/data-science-virtual-machine/dsvm-deep-learning-ai-frameworks.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ ms.topic: conceptual
1313
ms.date: 08/11/2019
1414
---
1515

16-
# Deep Learning and AI frameworks for Azure Data Science VM
17-
The [Data Science Virtual Machine](https://aka.ms/dsvm) (DSVM) supports a number of deep learning frameworks to help build Artificial Intelligence (AI) applications with predictive analytics and cognitive capabilities like image and language understanding.
16+
# Deep learning and AI frameworks for Azure Data Science VM
17+
The [Data Science Virtual Machine](https://aka.ms/dsvm) (DSVM) supports a number of deep-learning frameworks to help build artificial intelligence (AI) applications with predictive analytics and cognitive capabilities like image and language understanding.
1818

19-
Deep learning frameworks available on the DSVM include:
19+
Deep-learning frameworks available through DSVM include:
2020

2121
+ TensorFlow
2222
+ PyTorch
@@ -36,23 +36,23 @@ Deep learning frameworks available on the DSVM include:
3636
+ TensorRT
3737
+ Microsoft Cognitive Toolkit
3838

39-
|DL tools on DSVM|Windows|Linux|Usage Notes|
40-
|---------|:-------------------:|:------------------:|-----|
41-
|[TensorFlow](https://www.tensorflow.org/) | Yes (Windows 2016) | Yes |Installed in Python 3.5 on [Linux and Windows 2012](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and Python 3.6 on [Windows 2016](dsvm-languages.md#python-windows-server-2016-edition). Sample Jupyter notebooks are included on DSVM.<br/><br/>**To run it**:<br/>* Terminal: activate the correct environment, then run Python. <br/> * Jupyter: Connect to [Jupyter](provision-vm.md#tools) or [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), then open the TensorFlow directory for samples. |
42-
|[PyTorch](https://pytorch.org/)| No | Yes |Installed in [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition). Sample Jupyter notebooks are included, and samples are in /dsvm/samples/pytorch. <br/><br/>**To run it**<br/>* Terminal: activate the correct environment, then run Python.<br/>* [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux): Connect, then open the PyTorch directory for samples. |
43-
|[Keras](https://keras.io/)| Yes | Yes |API is installed in Python 3.5 on [Linux and Windows 2012](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and Python 3.6 on [Windows 2016](dsvm-languages.md#python-windows-server-2016-edition). [Samples](https://github.com/fchollet/keras/tree/master/examples)<br/><br/>**To run it**:<br/>* Terminal: activate the correct environment, then run Python. <br/> * Jupyter: Download the samples from the GitHub location, connect to [Jupyter](provision-vm.md#tools) or [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), then open the sample directory. |
44-
|[Caffe](https://github.com/caffe2/caffe2) | No |Yes (Ubuntu)|Caffe is installed in `/opt/caffe`. Samples are in `/opt/caffe/examples`. <br/><br/>**To run it**, use X2Go to log in to your VM, then start a new terminal and enter:<br/>`cd /opt/caffe/examples`<br/>`source activate root`<br/>`jupyter notebook`<br/><br/>A new browser window opens with sample notebooks. Binaries are installed in /opt/caffe/build/install/bin.<br/><br/>Installed version of Caffe requires Python 2.7 and won't work with Python 3.5 activated by default. To switch to Python 2.7, run `source activate root` to switch Anaconda environment.|
45-
|[Caffe2](https://github.com/caffe2/caffe2) | No |Yes (Ubuntu)|Caffe2 is installed in the [Python 2.7 (root) conda environment](dsvm-languages.md#python-linux-and-windows-server-2012-edition). The source is in `/opt/caffe2`.<br/>Sample notebooks are included in JupyterHub.<br/><br/>**To run it**:<br/>* At the terminal: activate the [root Python environment](dsvm-languages.md#python-linux-and-windows-server-2012-edition), start Python, and import caffe2. <br/> * In JupyterHub: [connect to JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), then navigate to the Caffe2 directory to find sample notebooks. Some notebooks require the Caffe2 root to be set in the Python code; enter /opt/caffe2. |
39+
|Deep-learning&nbsp;tools&nbsp;on&nbsp;DSVM|Windows|Linux|Usage&nbsp;notes|
40+
|---------|-------------------|------------------|-----|
41+
|[TensorFlow](https://www.tensorflow.org/) | Yes (Windows 2016) | Yes |Installed in Python 3.5 on [Linux and Windows 2012](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and Python 3.6 on [Windows 2016](dsvm-languages.md#python-windows-server-2016-edition). Sample Jupyter notebooks are included on DSVM.<br/><br/>**To run it**:<br/>* Terminal: Activate the correct environment, and then run Python. <br/> * Jupyter: Connect to [Jupyter](provision-vm.md) or [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), and then open the TensorFlow directory for samples. |
42+
|[PyTorch](https://pytorch.org/)| No | Yes |Installed in [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition). Sample Jupyter notebooks are included, and samples are in /dsvm/samples/pytorch. <br/><br/>**To run it**:<br/>* Terminal: Activate the correct environment, and then run Python.<br/>* [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux): Connect, and then open the PyTorch directory for samples. |
43+
|[Keras](https://keras.io/)| Yes | Yes |API is installed in Python 3.5 on [Linux and Windows 2012](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and in Python 3.6 on [Windows 2016](dsvm-languages.md#python-windows-server-2016-edition). [See samples](https://github.com/fchollet/keras/tree/master/examples).<br/><br/>**To run it**:<br/>* Terminal: Activate the correct environment, and then run Python. <br/> * Jupyter: Download the samples from the GitHub location, connect to [Jupyter](provision-vm.md) or [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), and then open the sample directory. |
44+
|[Caffe](https://github.com/caffe2/caffe2) | No |Yes (Ubuntu)|Caffe is installed in `/opt/caffe`. Samples are in `/opt/caffe/examples`. <br/><br/>**To run it**, use X2Go to sign in to your VM, and then start a new terminal and enter the following:<br/>`cd /opt/caffe/examples`<br/>`source activate root`<br/>`jupyter notebook`<br/><br/>A new browser window opens with sample notebooks. Binaries are installed in /opt/caffe/build/install/bin.<br/><br/>Installed version of Caffe requires Python 2.7 and won't work with Python 3.5, which is activated by default. To switch to Python 2.7, run `source activate root` to switch to Anaconda environment.|
45+
|[Caffe2](https://github.com/caffe2/caffe2) | No |Yes (Ubuntu)|Caffe2 is installed in the [Python 2.7 (root) conda environment](dsvm-languages.md#python-linux-and-windows-server-2012-edition). The source is in `/opt/caffe2`.<br/>Sample notebooks are included in JupyterHub.<br/><br/>**To run it**:<br/>* Terminal: Activate the [root Python environment](dsvm-languages.md#python-linux-and-windows-server-2012-edition), start Python, and import Caffe2. <br/> * JupyterHub: [Connect to JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), and then go to the Caffe2 directory to find sample notebooks. Some notebooks require the Caffe2 root to be set in the Python code; enter /opt/caffe2. |
4646
|[Torch](http://torch.ch/) | No |Yes (Ubuntu)|Torch is installed in `/dsvm/tools/torch`. PyTorch is installed in Python 2.7 (_root_), as well as Python 3.5 (_py35_) environment. Torch samples are in `/dsvm/samples/torch` and PyTorch samples are in `/dsvm/samples/pytorch`. |
47-
|[MXNet](https://mxnet.io/) | Yes (Windows 2016) | Yes|MXNet is installed in `C:\dsvm\tools\mxnet` on Windows and `/dsvm/tools/mxnet` on Linux. Python bindings are installed in Python 3.5 on [Linux and Windows 2012](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and Python 3.6 on [Windows 2016](dsvm-languages.md#python-windows-server-2016-edition). R bindings are also installed on Ubuntu.<br/><br/>Sample Jupyter notebooks are included. <br/><br/>**To run it**:<br/>* Terminal: Activate the correct environment, then run Python. <br/> * Jupyter: Connect to [Jupyter](provision-vm.md#tools) or [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), then open the mxnet directory for samples.|
48-
|[MXNet Model Server](https://github.com/awslabs/mxnet-model-server) | No | Yes |A server to create HTTP endpoints for MXNet and ONNX models. _mxnet-model-server_ is available on at the terminal. Samples on the [MXNet Model Server page](https://github.com/awslabs/mxnet-model-server).|
49-
|[Horovod](https://github.com/uber/horovod) | No | Yes (Ubuntu) |Distributed deep learning framework for TensorFlow. Horovod is installed in Python 3.5 on [Ubuntu](dsvm-languages.md#python-linux-and-windows-server-2012-edition). [See samples](https://github.com/uber/horovod/tree/master/examples)<br/><br/>**To run it**, activate the correct environment at the terminal, then run Python. |
50-
|[Theano](https://github.com/Theano/Theano) | No | Yes (Ubuntu) |Theano is installed in Python 2.7 (_root_), as well as Python 3.5 (_py35_) environment.<br/><br/>**To run it**: <br/>* Terminal: Activate the Python version you want (root or py35), run python, then import theano.<br/>* Jupyter: Select the Python 2.7 or 3.5 kernel, then import theano. <br/>To work around a recent MKL bug, you need to first set the MKL threading layer:<br/><br/>_export MKL_THREADING_LAYER=GNU_|
51-
|[Chainer](https://chainer.org/) |No | Yes |Chainer is installed in [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition). ChainerRL and ChainerCV are also installed. <br/><br/>Sample notebooks are included in JupyterHub.<br/><br/>**To run it**: <br/>* Terminal: Activate the [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition) environment, run _python_, then import chainer. <br/> * JupyterHub: [Connect to JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), then navigate to the Chainer directory to find sample notebooks.|
52-
|[NVidia Digits](https://github.com/NVIDIA/DIGITS) | No | Yes (Ubuntu) |Deep learning system from NVIDIA for rapidly training deep learning models. DIGITS is installed in `/dsvm/tools/DIGITS` and is available a service called _digits_. <br/><br/>**To run it**: <br/>Log in to the VM with X2Go. At a terminal, start the service ```sudo systemctl start digits```. <br/><br/>The service takes about one minute to start. Start a web browser and navigate to `http://localhost:5000`. Note that DIGITS does not provide a secure login and should not be exposed outside the VM.|
47+
|[MXNet](https://mxnet.io/) | Yes (Windows 2016) | Yes|MXNet is installed in `C:\dsvm\tools\mxnet` on Windows and `/dsvm/tools/mxnet` on Linux. Python bindings are installed in Python 3.5 on [Linux and Windows 2012](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and Python 3.6 on [Windows 2016](dsvm-languages.md#python-windows-server-2016-edition). R bindings are also installed on Ubuntu.<br/><br/>Sample Jupyter notebooks are included. <br/><br/>**To run it**:<br/>* Terminal: Activate the correct environment, and then run Python. <br/> * Jupyter: Connect to [Jupyter](provision-vm.md) or [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), and then open the mxnet directory for samples.|
48+
|[MXNet Model Server](https://github.com/awslabs/mxnet-model-server) | No | Yes |A server to create HTTP endpoints for MXNet and ONNX models. _Mxnet-model-server_ is available at the terminal. Samples on the [MXNet Model Server page](https://github.com/awslabs/mxnet-model-server).|
49+
|[Horovod](https://github.com/uber/horovod) | No | Yes (Ubuntu) |Distributed deep-learning framework for TensorFlow. Horovod is installed in Python 3.5 on [Ubuntu](dsvm-languages.md#python-linux-and-windows-server-2012-edition). [See samples](https://github.com/uber/horovod/tree/master/examples).<br/><br/>**To run it**, activate the correct environment at the terminal, and then run Python. |
50+
|[Theano](https://github.com/Theano/Theano) | No | Yes (Ubuntu) |Theano is installed in Python 2.7 (_root_), and in Python 3.5 (_py35_) environment.<br/><br/>**To run it**: <br/>* Terminal: Activate the Python version you want (root or py35), run Python, and then import Theano.<br/>* Jupyter: Select the Python 2.7 or 3.5 kernel, and then import Theano. <br/>To work around a recent math kernel library (MKL) bug, you need to first set the MKL threading layer as follows:<br/><br/>`export MKL_THREADING_LAYER=GNU`|
51+
|[Chainer](https://chainer.org/) |No | Yes |Chainer is installed in [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition). ChainerRL and ChainerCV are also installed. <br/><br/>Sample notebooks are included in JupyterHub.<br/><br/>**To run it**: <br/>* Terminal: Activate the [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition) environment, run _python_, and then import chainer. <br/> * JupyterHub: [Connect to JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), and then go to the Chainer directory to find sample notebooks.|
52+
|[NVidia Digits](https://github.com/NVIDIA/DIGITS) | No | Yes (Ubuntu) |Deep-learning system from NVIDIA for rapidly training deep-learning models. DIGITS is installed in `/dsvm/tools/DIGITS` and is available as a service named _digits_. <br/><br/>**To run it**: <br/>Sign in to the VM with X2Go. At a terminal, start the service by running ```sudo systemctl start digits```. <br/><br/>The service takes about one minute to start. Open a web browser and go to `http://localhost:5000`. Note that DIGITS does not provide a secure login and should not be exposed outside the VM.|
5353
|[CUDA, cuDNN, NVIDIA Driver](https://developer.nvidia.com/cuda-toolkit) |Yes | Yes | |
54-
|nvidia-smi|Yes | Yes |NVIDIA tool for querying GPU activity. _nvidia-smi_ is available on the system path. <br/><br/>Start a command prompt (on Windows) or a terminal (on Linux), then run _nvidia-smi_.|
55-
|[TensorFlow Serving](https://www.tensorflow.org/serving/) | No | Yes |A server to inference on a TensorFlow model. _tensorflow_model_server_ is available at the terminal. Samples are available [online](https://www.tensorflow.org/serving/).|
56-
|[TensorRT](https://developer.nvidia.com/tensorrt) | No | Yes (Ubuntu) |A deep learning inference server from NVIDIA. TensorRT is installed as an _apt_ package. Samples are available [online](https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html#samples).|
57-
|[Microsoft Cognitive Toolkit (CNTK)](https://docs.microsoft.com/cognitive-toolkit/)|Yes | Yes | Installed in Python 3.5 on [Linux and Windows 2012](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and Python 3.6 on [Windows 2016](dsvm-languages.md#python-windows-server-2016-edition). Sample Jupyter notebooks are included on DSVM. <br/><br/>**To run it**: <br/>Terminal: Activate the correct environment and run Python. <br/>Jupyter: Connect to [Jupyter](provision-vm.md#tools) or [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), then open the CNTK directory for samples. |
58-
|Deep Water|No | Yes (Ubuntu) |Deep learning framework for H2O, Deep Water is installed in [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and is also available in `/dsvm/tools/deep_water`. Sample notebooks are included in JupyterHub. Deep Water requires CUDA 8 with cuDNN 5.1. This is not in the library path by default, as other deep learning frameworks use CUDA 9 and cuDNN 7. To use CUDA 8 + cuDNN 5.1 for Deep Water:<br/><br/>```export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:${LD_LIBRARY_PATH}```<br/>```export CUDA_ROOT=/usr/local/cuda-8.0```<br/><br/>To use Deep Water:<br/>* Terminal: activate the [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition) environment, then run _python_. <br/>* JupyterHub: [connect to JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), then navigate to the deep_water directory to find sample notebooks.|
54+
|nvidia-smi|Yes | Yes |NVIDIA tool for querying GPU activity; _nvidia-smi_ is available on the system path. <br/><br/>Open a command prompt (on Windows) or a terminal (on Linux), and then run _nvidia-smi_.|
55+
|[TensorFlow Serving](https://www.tensorflow.org/serving/) | No | Yes |A server to inference on a TensorFlow model; tensorflow_model_server is available at the terminal. Samples are available [online](https://www.tensorflow.org/serving/).|
56+
|[TensorRT](https://developer.nvidia.com/tensorrt) | No | Yes (Ubuntu) |A deep-learning inference server from NVIDIA. TensorRT is installed as an _apt_ package. Samples are available [online](https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html#samples).|
57+
|[Microsoft Cognitive Toolkit (CNTK)](https://docs.microsoft.com/cognitive-toolkit/)|Yes | Yes | Installed in Python 3.5 on [Linux and Windows 2012](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and Python 3.6 on [Windows 2016](dsvm-languages.md#python-windows-server-2016-edition). Sample Jupyter notebooks are included on DSVM. <br/><br/>**To run it**: <br/>Terminal: Activate the correct environment and run Python. <br/>Jupyter: Connect to [Jupyter](provision-vm.md) or [JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), and then open the CNTK directory for samples. |
58+
|Deep Water|No | Yes (Ubuntu) |Deep-learning framework for H2O, Deep Water is installed in [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition) and is also available in `/dsvm/tools/deep_water`. Sample notebooks are included in JupyterHub. Deep Water requires CUDA 8 with cuDNN 5.1. By default, this is not in the library path, because other deep-learning frameworks use CUDA 9 and cuDNN 7. To use, install CUDA 8 + cuDNN 5.1 for Deep Water:<br/><br/>```export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:${LD_LIBRARY_PATH}```<br/>```export CUDA_ROOT=/usr/local/cuda-8.0```<br/><br/>To use Deep Water:<br/>* Terminal: Activate the [Python 3.5](dsvm-languages.md#python-linux-and-windows-server-2012-edition) environment, and then run _python_. <br/>* JupyterHub: [Connect to JupyterHub](dsvm-ubuntu-intro.md#how-to-access-the-data-science-virtual-machine-for-linux), and then go to the deep_water directory to find sample notebooks.|

0 commit comments

Comments
 (0)