Spaces:
Build error
Build error
Commit ·
884001b
1
Parent(s): 20ef64d
Final Deployment Fix: Metadata & Docker Speedup
Browse files- Dockerfile +3 -2
- requirements.txt +0 -1
Dockerfile
CHANGED
|
@@ -27,9 +27,10 @@ RUN mkdir -p /app/models && chmod 777 /app/models
|
|
| 27 |
COPY requirements.txt .
|
| 28 |
|
| 29 |
# Install dependencies
|
| 30 |
-
#
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 32 |
-
pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 33 |
|
| 34 |
# Copy the rest of the application
|
| 35 |
COPY . .
|
|
|
|
| 27 |
COPY requirements.txt .
|
| 28 |
|
| 29 |
# Install dependencies
|
| 30 |
+
# We use a PRE-BUILT wheel for llama-cpp-python to avoid compiling from source (Saves ~10 minutes)
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 32 |
+
pip install --no-cache-dir -r requirements.txt && \
|
| 33 |
+
pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 34 |
|
| 35 |
# Copy the rest of the application
|
| 36 |
COPY . .
|
requirements.txt
CHANGED
|
@@ -5,5 +5,4 @@ cython
|
|
| 5 |
|
| 6 |
numpy
|
| 7 |
setuptools
|
| 8 |
-
llama-cpp-python
|
| 9 |
huggingface-hub
|
|
|
|
| 5 |
|
| 6 |
numpy
|
| 7 |
setuptools
|
|
|
|
| 8 |
huggingface-hub
|