unclemusclez commited on
Commit
aad72b3
·
verified ·
1 Parent(s): 183ccc4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -30,11 +30,11 @@ RUN apt-get update && \
30
  # ffmpeg
31
  # software-properties-common
32
 
33
- # RUN add-apt-repository ppa:longsleep/golang-backports && \
34
- # apt-get update && \
35
- # apt-get upgrade -y && \
36
- # apt-get install -y --no-install-recommends ca-certificates \
37
- # golang-go
38
  RUN curl -L https://ollama.com/download/ollama-linux-amd64 -o /usr/bin/ollama
39
  RUN chmod +x /usr/bin/ollama
40
 
@@ -71,11 +71,12 @@ RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0
71
  # go build . --verbose \
72
  # go install . --verbose
73
 
74
- RUN git clone https://github.com/ggerganov/llama.cpp
75
 
76
  WORKDIR ${APPDIR}/llama.cpp
 
77
  RUN python -m pip install -r requirements.txt
78
- RUN LLAMA_CUDA=0 make -j llama-quantize --verbose
79
 
80
  # ENV PYTHONPATH=${APPDIR}/.venv/bin \
81
  ENV PYTHONUNBUFFERED=1 \
 
30
  # ffmpeg
31
  # software-properties-common
32
 
33
+ # RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
34
+ # RUN dpkg -i cuda-keyring_1.1-1_all.deb
35
+ # RUN apt-get update
36
+ # RUN apt-get -y install cuda-toolkit-12-4
37
+
38
  RUN curl -L https://ollama.com/download/ollama-linux-amd64 -o /usr/bin/ollama
39
  RUN chmod +x /usr/bin/ollama
40
 
 
71
  # go build . --verbose \
72
  # go install . --verbose
73
 
74
+ RUN git clone https://github.com/ggerganov/llama.cpp; exit 0
75
 
76
  WORKDIR ${APPDIR}/llama.cpp
77
+ RUN git pull
78
  RUN python -m pip install -r requirements.txt
79
+ RUN GGML_CUDA=1 make -j llama-quantize --verbose
80
 
81
  # ENV PYTHONPATH=${APPDIR}/.venv/bin \
82
  ENV PYTHONUNBUFFERED=1 \