forked from ScandEval/ScandEval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.cuda
26 lines (22 loc) · 1006 Bytes
/
Dockerfile.cuda
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
FROM nvidia/cuda:12.2.0-base-ubuntu22.04
# Install dependencies
RUN apt-get -y update && \
apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc python3.11 python3-pip python3-dev git-all && \
python3 -m pip install --upgrade pip wheel && \
python3 -m pip install scandeval[all] && \
python3 -m pip install --upgrade outlines && \
FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE python3 -m pip install flash-attn --no-build-isolation
# Move the existing evaluation results into the container, to avoid re-running the
# evaluation
WORKDIR /project
COPY scandeval_benchmark_results* /project
# Set the environment variable with the evaluation arguments. These can be overridden
# when running the container
ENV args=""
# Run the script
CMD if [ -z "$args" ]; then \
echo "No arguments provided. Please run the container as, e.g., \"docker run --gpus 1 -e args='-m <model-id>' <image>\""; \
else \
scandeval $args; \
fi