pvduy commited on
Commit
8c23b1a
1 Parent(s): 634c307

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -14
Dockerfile CHANGED
@@ -1,17 +1,15 @@
1
- FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
2
-
3
- ARG DEBIAN_FRONTEND=noninteractive
4
-
5
- ENV PYTHONUNBUFFERED=1
6
-
7
- RUN apt-get update && apt-get install --no-install-recommends -y \
8
- build-essential \
9
- python3.9 \
10
- python3-pip \
11
- libpython3.9-dev \
12
- git \
13
- ffmpeg \
14
- && apt-get clean && rm -rf /var/lib/apt/lists/* \
15
 
16
  WORKDIR /code
17
 
 
1
+ FROM nvidia/cuda:12.1.0-devel-ubuntu22.04 AS dev
2
+
3
+ RUN apt-get update -y \
4
+ && apt-get install -y python3-pip git
5
+
6
+ # Workaround for https://github.com/openai/triton/issues/2507 and
7
+ # https://github.com/pytorch/pytorch/issues/107960 -- hopefully
8
+ # this won't be needed for future versions of this docker image
9
+ # or future versions of triton.
10
+ RUN ldconfig /usr/local/cuda-12.1/compat/
11
+ RUN pip install cmake>=3.21 ninja psutil sentencepiece numpy requests py-cpuinfo transformers >= 4.39.1 fastapi uvicorn[standard] pydantic >= 2.0 prometheus_client >= 0.18.0 tiktoken == 0.6.0 outlines == 0.0.34
12
+ RUN ray >= 2.9 pynvml==11.5.0 vllm-nccl-cu12>=2.18,<2.19 torch==2.2.1 xformers == 0.0.25 triton>=2.1.0
 
 
13
 
14
  WORKDIR /code
15