Soumik Bose commited on
Commit
f727fe2
·
1 Parent(s): f2f61e3
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. requirements.txt +2 -4
Dockerfile CHANGED
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
13
  curl \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # Create non-root user (required for HF Spaces)
17
  RUN useradd -m -u 1000 user
18
  RUN mkdir -p /app/cache /app/models && chown -R user:user /app
19
 
 
13
  curl \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # Create non-root user
17
  RUN useradd -m -u 1000 user
18
  RUN mkdir -p /app/cache /app/models && chown -R user:user /app
19
 
requirements.txt CHANGED
@@ -1,8 +1,6 @@
1
- --prefer-binary
2
- --only-binary llama-cpp-python
3
- --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
4
 
5
- llama-cpp-python>=0.2.90
6
  fastapi>=0.115.0
7
  uvicorn>=0.30.0
8
  pydantic>=2.8.0
 
1
+ # Use pre-built glibc wheel instead of musl wheel
2
+ llama-cpp-python @ https://github.com/John6666cat/llama-cpp-python/releases/download/v0.3.16/llama_cpp_python-0.3.16-cp310-cp310-linux_x86_64.whl
 
3
 
 
4
  fastapi>=0.115.0
5
  uvicorn>=0.30.0
6
  pydantic>=2.8.0