curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey |sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list \
&& sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
git clone --branch v0.2.0 https://github.com/ai-dynamo/dynamo.git
cd dynamo &&
docker compose -f deploy/docker-compose.yml up -d
./container/build.sh --framework vllm --build-arg VLLM_MAX_JOBS=number_cpu
with number_cpu is a number of cores which you want to allocate for process to build image faster
docker run --gpus all -it --rm --network host --shm-size=10G --ulimit memlock=-1 --ulimit stack=67108864 --ulimit nofile=65536:65536 -w /workspace --cap-add CAP_SYS_PTRACE --ipc host dynamo-vllm:0.2.0
Note: you can use my image is nguyenpnx/dynamo-vllm:0.2.0
cd $DYNAMO_HOME/examples/llm
dynamo serve graphs.agg:Frontend -f ./configs/agg.yaml
cd $DYNAMO_HOME/examples/llm
dynamo serve graphs.agg_router:Frontend -f ./configs/agg_router.yaml
cd $DYNAMO_HOME/examples/llm
dynamo serve graphs.disagg:Frontend -f ./configs/disagg.yaml
cd $DYNAMO_HOME/examples/llm
dynamo serve graphs.disagg_router:Frontend -f ./configs/disagg_router.yaml
cd demo &&
uv run predict.py
Out of GPU memoryModify 2 config in Dynamo container at:
block-size: 32 # in configs/agg.yamlengine_args.dtype = "float32" # in utils/vllm.pyRust
61.0%
Python
22.9%
Go
10.3%
Shell
2.3%
PowerShell
1.3%
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey |sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list \
&& sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
git clone --branch v0.2.0 https://github.com/ai-dynamo/dynamo.git
cd dynamo &&
docker compose -f deploy/docker-compose.yml up -d
./container/build.sh --framework vllm --build-arg VLLM_MAX_JOBS=number_cpu
with number_cpu is a number of cores which you want to allocate for process to build image faster
docker run --gpus all -it --rm --network host --shm-size=10G --ulimit memlock=-1 --ulimit stack=67108864 --ulimit nofile=65536:65536 -w /workspace --cap-add CAP_SYS_PTRACE --ipc host dynamo-vllm:0.2.0
Note: you can use my image is nguyenpnx/dynamo-vllm:0.2.0
cd $DYNAMO_HOME/examples/llm
dynamo serve graphs.agg:Frontend -f ./configs/agg.yaml
cd $DYNAMO_HOME/examples/llm
dynamo serve graphs.agg_router:Frontend -f ./configs/agg_router.yaml
cd $DYNAMO_HOME/examples/llm
dynamo serve graphs.disagg:Frontend -f ./configs/disagg.yaml
cd $DYNAMO_HOME/examples/llm
dynamo serve graphs.disagg_router:Frontend -f ./configs/disagg_router.yaml
cd demo &&
uv run predict.py
Out of GPU memoryModify 2 config in Dynamo container at:
block-size: 32 # in configs/agg.yamlengine_args.dtype = "float32" # in utils/vllm.pyRust
61.0%
Python
22.9%
Go
10.3%
Shell
2.3%
PowerShell
1.3%