For any environment, copy the compose.example.yaml file to compose.yaml and update container_name. Then run:
cd environment/<env_name>
docker compose up -dThen you can use VS Code to attach to the container, or just:
docker exec -it <container_name> bashTo stop the container and start it later:
docker stop <container_name>
docker start <container_name>To remove the container:
cd environment/<env_name>
docker compose downIt is recommended to mount a docker_root folder as the home directory so you don't need to install Rust in every container. To get the basic configuration like .bashrc, run:
cp -r /etc/skel/. /path/to/docker_root- Note that we need Rust nightly toolchain to build the project, which is not installed in the docker image.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly
. "$HOME/.cargo/env"- Version checklist
- Rust:
nightly - CMake: at least
3.22.1(required to run some of the tests) - Clang: at least
6.0.0-1ubuntu2
- Rust:
You need to install Clang manually:
apt update
apt install clang --no-install-recommendsYou probably also need to upgrade NCCL:
apt install libnccl2 libnccl-devThe vllm environment does not include cuDNN, so you need to install it manually:
apt install libcudnn9-dev-cuda-12If you need RDMA support:
apt install librdmacm-dev ibverbs-utils --no-install-recommendsPlease refer to the link, and use the Dockerfile in this directory.