aiqknow commited on
Commit
ff1b35a
·
verified ·
1 Parent(s): bbd6b6a

Upload 4 files

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -1
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -13,7 +13,10 @@ RUN apt-get update && apt-get install -y \
13
  # Copy the requirements file into the container
14
  COPY requirements.txt .
15
 
16
- # Install dependencies
 
 
 
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  # Copy the rest of the application code
 
13
  # Copy the requirements file into the container
14
  COPY requirements.txt .
15
 
16
+ # Install llama-cpp-python using pre-built wheels to save time
17
+ RUN pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
18
+
19
+ # Install other dependencies
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
  # Copy the rest of the application code
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  fastapi
2
  uvicorn
3
- llama-cpp-python
4
  huggingface-hub
5
  pydantic
 
1
  fastapi
2
  uvicorn
 
3
  huggingface-hub
4
  pydantic