Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nvonpentz committed Nov 5, 2024
1 parent 0231886 commit 29cd2d2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Use vLLM's vllm-openai server image as the base
FROM vllm/vllm-openai:latest

# Set working directory
WORKDIR /workspace

# Install necessary build dependencies for sentencepiece
RUN apt-get update && apt-get install -y \
pkg-config \
cmake \
build-essential

# Copy functionary code and requirements into workspace
COPY . .

# Install additional Python dependencies
RUN --mount=type=cache,target=/root/.cache/pip \
python3 -m pip install -r requirements.txt

# Override the VLLM entrypoint with the functionary server
ENTRYPOINT ["python3", "server_vllm.py", "--model", "meetkai/functionary-small-v3.2", "--host", "0.0.0.0", "--max-model-len", "8192"]

0 comments on commit 29cd2d2

Please sign in to comment.