File size: 850 Bytes
33b116b
 
 
 
 
 
 
 
 
bf49e12
 
 
6a2de19
6680c50
33b116b
 
 
6680c50
 
 
33b116b
 
 
 
 
 
bac1aa4
33b116b
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.9

WORKDIR /code

# RUN git clone --branch gradio --single-branch https://version.aalto.fi/gitlab/schulte1/llama-annotate.git

# WORKDIR /code/llama-annotate

RUN apt-get update
RUN apt-get install -y cmake ccache wget
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

RUN wget --no-verbose https://huggingface.co/TheBloke/Llama-2-7B-GGUF/resolve/main/llama-2-7b.Q2_K.gguf
RUN wget --no-verbose https://huggingface.co/TheBloke/Llama-2-7B-GGUF/resolve/main/llama-2-7b.Q4_K_M.gguf

COPY llama-annotate/ .

# RUN mkdir -p models
RUN mv *.gguf models

RUN cmake -S . -B build
RUN cmake --build build

# COPY ./requirements.txt /code/requirements.txt
# RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

RUN pip install --no-cache-dir gradio numpy

EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"

CMD ["python", "gui/gui.py"]