Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 3.63 KB

File metadata and controls

74 lines (56 loc) · 3.63 KB

Vitis AI

Installing Docker

Please refer to official Docker Documentation

Disk Space

At least 100GB of disk space for the disk partition running Docker

Installing NVIDIA Docker Runtime

(Only applicable for model training or model quantization use cases)
If you are building the Vitis AI Docker Image with GPU acceleration You will need to install NVIDIA Container Runtime Please refer to the offical NVIDIA Documentation

Installing A Vitis AI Patch

Most Vitis AI components consist of Anaconda packages. These packages are distributed as tarballs, for example unilog-1.3.2-h7b12538_35.tar.bz2

You can install the patches by starting the Vitis AI Docker container, and installing the package to a specific conda environment. For example, patching the unilog package in the vitis-ai-caffe conda environment:

Vitis-AI /workspace > cd /tmp
Vitis-AI /tmp > wget https://www.xilinx.com/bin/public/openDownload?filename=unilog-1.3.2-h7b12538_35.tar.bz2 -O unilog-1.3.2-h7b12538_35.tar.bz2
Vitis-AI /tmp > sudo conda install -n vitis-ai-caffe ./unilog-1.3.2-h7b12538_35.tar.bz2

Slow Connection To Ubuntu Servers Outside China

Vitis AI Docker images is based on Ubuntu Bonic 18.04. The software packages sources /etc/apt/sources.list looks like this:

  deb http://us.archive.ubuntu.com/ubuntu/ bionic universe   

These hostname "archive.ubuntu.com" by default resolve to servers in the United States. Any customers building the Vitis AI GPU image https://github.com/Xilinx/Vitis-AI/blob/master/docker/DockerfileGPU will pull from these servers. Users accessing from China, might experience slow download speeds using these servers.

Workaround

Change the Ubuntu apt sources.list to use servers in China.

In Dockerfile, change the 1st instance of:

  RUN apt-get update -y && apt-get install -y --no-install-recommends \

To the line below, so that the Ubuntu sources will be replaced with China Ubuntu servers

  RUN sed --in-place --regexp-extended "s/(\/\/)(archive\.ubuntu)/\1cn.\2/" /etc/apt/sources.list && apt-get update && apt-get install -y --no-install-recommends \

The following Tsinghua University (Beijing) sources can also be used:

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

Other alternate sources:

https://momane.com/change-ubuntu-18-04-source-to-china-mirror