This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
forked from onyx-dot-app/onyx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from mindvalley/chore/model-server-gpu-support
GPU Support for Model Server build
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ on: | |
push: | ||
tags: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
env: | ||
GarProjectID: mv-auxiliary | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="[email protected]" | ||
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 | |
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}" | ||
|
||
|
@@ -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 | ||
|