MATLAB Deep Learning Container on Docker Hub - MATLAB & Simulink (original) (raw)

Speed up your deep learning applications by training neural networks in the MATLAB® Deep Learning Container available on Docker Hub, designed to take full advantage of high-performance NVIDIA® GPUs. The MATLAB Deep Learning Container provides a simple and flexible solution to use MATLAB for deep learning workflows in cloud environments such as AWS® or Microsoft® Azure®. For more information on containers, see What is a Container?.

Contents

The MATLAB Deep Learning Container includes:

You can import networks and network architectures into the container from TensorFlow™-Keras and Caffe, with or without layer weights. You can also convert trained networks to the Open Neural Network Exchange (ONNX) model format. For more information, seeImport and Export Neural Networks (Deep Learning Toolbox) and ONNX Converter.

Requirements

To use the MATLAB Deep Learning Container, you need:

Quick Start Guide for MATLAB Deep Learning Container

This section shows an example of how to run the MATLAB Deep Learning Container and launch an interactive MATLAB session in a web browser. For a complete list of commands to start the MATLAB Deep Learning Container, including how to interact with MATLAB through a VNC client and how to use MATLAB in batch mode, see MATLAB Deep Learning Container Image on Docker Hub.

Pull Container Image

To download the MATLAB Deep Learning Container image onto the host machine, run this command on the command line:

docker pull mathworks/matlab-deep-learning:r20XYz

You must replace the tag r20XYz with the specific MATLAB release name, for example, r2022a. Downloading and extracting the container image can take some time.

Run Container

Run the MATLAB Deep Learning Container using this command:

docker run -it --rm -p 8888:8888 --shm-size=512M mathworks/matlab-deep-learning:r20XYz -browser

Running the command above causes a URL to be printed to your terminal. To access MATLAB, enter the URL into a web browser. If prompted to do so, enter credentials for a MathWorks account associated with a MATLAB license.

Note

Additional Information

By default, a container does not have access to the hardware resources of the host system. To give the container access to the GPUs of the host system, use the--gpus flag of the docker run command. To give the container access to all of the GPUs of the host system, set this flag toall. For example, executing this command runs a MATLAB container with access to all of the GPUs of the host system:

docker run --gpus all -it --rm --shm-size=512M mathworks/matlab-deep-learning:r2022a

For more information, see Use GPUs in Containers.

For a full list of options and environment variables that you can use to start the container, run the container with the -help flag:

docker run -it --rm mathworks/matlab-deep-learning:r20XYz -help

For more information about configuring a MathWorks container using environment variables, see Configure Containers.

See Also

Topics

External Websites