Skip to content

Latest commit

 

History

History
52 lines (48 loc) · 1010 Bytes

setup_envs.md

File metadata and controls

52 lines (48 loc) · 1010 Bytes

Create containers

pytorch

docker run --init -it -d \
    --name yanbc-pytorch-21.07 \
    --gpus all \
    -v /data1/yanbc:/yanbc \
    --net host \
    --ipc host \
    nvcr.io/nvidia/pytorch:21.07-py3 \
    bash

triton server

docker run --init -it -d \
    --name yanbc-triton-server-21.07 \
    --gpus all \
    -v /data1/yanbc:/yanbc \
    --net host \
    --ipc host \
    nvcr.io/nvidia/tritonserver:21.07-py3 \
    bash

triton client

docker run --init -it -d \
    --name yanbc-triton-client-21.07 \
    --gpus all \
    -v /data1/yanbc:/yanbc \
    --net host \
    --ipc host \
    nvcr.io/nvidia/tritonserver:21.07-py3-sdk \
    bash
pip install --upgrade pip && \
pip install onnx-graphsurgeon && \
pip install onnxruntime && \
pip install pycuda

Run commands

triton server

export CUDA_VISIBLE_DEVICES=3
tritonserver --http-port 18000 \
             --grpc-port 18001 \
             --model-repository model-repository