Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 9837bc7

Browse files
authored
Merge pull request #70 from mindvalley/chore/model-server-gpu-support
GPU Support for Model Server build
2 parents 71465d1 + ef82fac commit 9837bc7

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/gar-build-push-model-server-container-on-tag.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
tags:
66
- "*"
7+
pull_request:
8+
branches:
9+
- "main"
710

811
env:
912
GarProjectID: mv-auxiliary

backend/Dockerfile.model_server

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11.7-slim-bookworm
1+
FROM nvidia/cuda:12.6.2-base-ubuntu22.04
22

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

14+
ENV DEBIAN_FRONTEND=noninteractive
15+
16+
ENV TZ=Etc/UTC
17+
18+
RUN apt-get update && apt install software-properties-common -y
19+
20+
RUN add-apt-repository ppa:deadsnakes/ppa -y
21+
22+
RUN apt-get update && apt-get install -y curl gpg python3.11 python3-pip
1423

1524
RUN echo "DANSWER_VERSION: ${DANSWER_VERSION}"
1625

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

23-
RUN apt-get remove -y --allow-remove-essential perl-base && \
24-
apt-get autoremove -y
32+
RUN apt-get autoremove -y
2533

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

0 commit comments

Comments
 (0)