Skip to content

Commit

Permalink
Merge pull request #70 from mindvalley/chore/model-server-gpu-support
Browse files Browse the repository at this point in the history
GPU Support for Model Server build
  • Loading branch information
onimsha authored Oct 31, 2024
2 parents 71465d1 + ef82fac commit 9837bc7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
tags:
- "*"
pull_request:
branches:
- "main"

env:
GarProjectID: mv-auxiliary
Expand Down
14 changes: 11 additions & 3 deletions backend/Dockerfile.model_server
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.7-slim-bookworm
FROM nvidia/cuda:12.6.2-base-ubuntu22.04

LABEL com.danswer.maintainer="founders@danswer.ai"
LABEL com.danswer.description="This image is for the Danswer model server which runs all of the \
Expand All @@ -11,6 +11,15 @@ ARG DANSWER_VERSION=0.3-dev
ENV DANSWER_VERSION=${DANSWER_VERSION} \
DANSWER_RUNNING_IN_DOCKER="true"

ENV DEBIAN_FRONTEND=noninteractive

ENV TZ=Etc/UTC

RUN apt-get update && apt install software-properties-common -y

RUN add-apt-repository ppa:deadsnakes/ppa -y

RUN apt-get update && apt-get install -y curl gpg python3.11 python3-pip

RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}"

Expand All @@ -20,8 +29,7 @@ RUN pip install --no-cache-dir --upgrade \
--timeout 30 \
-r /tmp/requirements.txt

RUN apt-get remove -y --allow-remove-essential perl-base && \
apt-get autoremove -y
RUN apt-get autoremove -y

# Pre-downloading models for setups with limited egress
# Download tokenizers, distilbert for the Danswer model
Expand Down

0 comments on commit 9837bc7

Please sign in to comment.