Docker Images

We provide docker utility scripts to help developers to setup development environment. They are also helpful run through TVM demo and tutorials. We need docker and nvidia-docker if we want to use cuda.

Get a tvm source distribution or clone the github repo to get the auxiliary scripts

git clone --recursive tvm

We can then use the following command to launch a docker image.

/path/to/tvm/docker/ <image-name>

Here the image-name can be a local docker image name, e.g. tvm.ci_cpu after you have done the local build. Or a pre-built third party image (tvmai/demo-cpu or tvmai/ci-gpu).

This auxiliary script does the following things:

  • Mount current directory to /workspace

  • Switch user to be the same user that calls the (so you can read/write host system)

  • Use the host-side network on Linux. Use the bridge network and expose port 8888 on macOS, because host networking driver isn’t supported. (so you can use jupyter notebook)

Then you can start a jupyter notebook by typing

jupyter notebook

You might see an error OSError: [Errno 99] Cannot assign requested address when starting a jupyter notebook on macOS. You can change the binding IP address by

jupyter notebook --ip=

Note that on macOS, because we use bridge network, jupyter notebook will be reportedly running at an URL like http://{container_hostname}:8888/?token=.... You should replace the container_hostname with localhost when pasting it into browser.

You can find some un-official prebuilt images in Note that these are convenience images and are not part of the ASF release.

Docker Source

Check out The docker source if you are interested in building your own docker images.