-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (20 loc) · 930 Bytes
/
Dockerfile
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
FROM nvidia/cuda:12.2.2-base-ubuntu22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y \
git libsndfile1-dev tesseract-ocr espeak-ng python3 python3-pip ffmpeg daemontools
RUN python3 -m pip install --no-cache-dir --upgrade pip
# PyTorch
RUN python3 -m pip install --no-cache-dir --upgrade torch torchvision torchaudio
# Huggingface
RUN python3 -m pip install --no-cache-dir --upgrade transformers accelerate datasets sentencepiece
# LLM
RUN python3 -m pip install --no-cache-dir --upgrade openai langchain llama-index html2text
# Determined AI
RUN python3 -m pip install --no-cache-dir --upgrade determined tensorboard
# FastChat
RUN python3 -m pip install --no-cache-dir --upgrade fschat[model_worker]
# Streamlit
RUN python3 -m pip install --no-cache-dir --upgrade streamlit
COPY ./patch/inference.py /usr/local/lib/python3.10/dist-packages/fastchat/serve/inference.py
WORKDIR /app