therandomuser03 commited on
Commit
561a3db
·
1 Parent(s): 3191016

update backend dockerfile - HF

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -20,8 +20,11 @@ RUN pip install --no-cache-dir \
20
  torch --index-url https://download.pytorch.org/whl/cpu
21
 
22
  # 5. Install llama-cpp-python from pre-built CPU wheels (avoids 30+ min C++ compile)
23
- RUN pip install --no-cache-dir \
24
- llama-cpp-python \
 
 
 
25
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
26
 
27
  # 6. Install remaining Python dependencies
 
20
  torch --index-url https://download.pytorch.org/whl/cpu
21
 
22
  # 5. Install llama-cpp-python from pre-built CPU wheels (avoids 30+ min C++ compile)
23
+ # PINNED to 0.3.2 — the latest version with pre-built wheels on the abetlen index.
24
+ # Without the pin, pip resolves 0.3.16+ from PyPI which has NO pre-built wheel
25
+ # and falls back to compiling llama.cpp from source (times out on HF Spaces).
26
+ RUN pip install --no-cache-dir --prefer-binary \
27
+ llama-cpp-python==0.3.2 \
28
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
29
 
30
  # 6. Install remaining Python dependencies