-
Notifications
You must be signed in to change notification settings - Fork 841
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (37 loc) · 1.05 KB
/
Copy pathDockerfile
File metadata and controls
42 lines (37 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#---
# name: genai-bench
# group: sglang
# config: config.py
# depends: [cuda, cmake, pytorch, torchvision, torchaudio, torchao, triton, xformers, flashinfer, xgrammar]
# buildkit_device: nvidia.com/gpu=all
# requires: '>=36'
# test: test.py
# notes: https://github.com/sgl-project/genai-bench
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ARG GENAI_BENCH_VERSION \
GENAI_BENCH_BRANCH \
IS_SBSA \
TORCH_CUDA_ARCH_LIST \
FORCE_BUILD=off \
TMP=/tmp/genai-bench
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
libnuma-dev \
libsndfile1 \
libsndfile1-dev \
libprotobuf-dev \
libsm6 \
libxext6 \
libgl1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY build.sh install.sh $TMP/
RUN $TMP/install.sh || $TMP/build.sh || touch $TMP/.build.failed
# this retains the stage above for debugging on build failure
RUN if [ -f $TMP/.build.failed ]; then \
echo "GENAI BENCH ${GENAI_BENCH_VERSION} build failed!"; \
exit 1; \
fi
RUN /tmp/transformers/install.sh