SuperSecureHuman commited on
Commit
cd57b1c
·
1 Parent(s): f1a572c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Ubuntu 22.04 as the base image
2
+ FROM ubuntu:22.04
3
+
4
+ # Install Python 3 and pip
5
+ RUN apt-get update && \
6
+ apt-get install -y python3 python3-pip && \
7
+ apt-get clean && \
8
+ rm -rf /var/lib/apt/lists/*
9
+
10
+ # Upgrade pip and install Python packages
11
+ RUN pip3 install --upgrade pip
12
+ RUN pip3 install torch torchvision torchaudio
13
+ RUN pip install fschat accelerate pandas numpy
14
+ RUN pip install xformers --no-deps
15
+ RUN pip3 install transformers vllm
16
+
17
+ # run this command - python -m vllm.entrypoints.openai.api_server --model mistralai/Mistral-7B-Instruct-v0.1
18
+ # to start the server
19
+
20
+ ENTRYPOINT [ "python", "-m", "vllm.entrypoints.openai.api_server", "--host", "0.0.0.0", "--port", "8080", "--model", "mistralai/Mistral-7B-Instruct-v0.1"]