Upload folder using huggingface_hub
Browse files- Dockerfile +1 -12
- requirements.txt +1 -0
Dockerfile
CHANGED
|
@@ -1,16 +1,5 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
# Install system dependencies required to build llama-cpp-python
|
| 4 |
-
RUN apt-get update && apt-get install -y \
|
| 5 |
-
build-essential \
|
| 6 |
-
gcc \
|
| 7 |
-
g++ \
|
| 8 |
-
cmake \
|
| 9 |
-
git \
|
| 10 |
-
python3-dev \
|
| 11 |
-
curl \
|
| 12 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
-
|
| 14 |
# Set up working directory
|
| 15 |
WORKDIR /code
|
| 16 |
|
|
@@ -19,7 +8,7 @@ RUN mkdir -p /cache && chmod 777 /cache
|
|
| 19 |
ENV HF_HOME=/cache
|
| 20 |
ENV XDG_CACHE_HOME=/cache
|
| 21 |
|
| 22 |
-
# Copy and install python requirements
|
| 23 |
COPY requirements.txt .
|
| 24 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 25 |
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
# Set up working directory
|
| 4 |
WORKDIR /code
|
| 5 |
|
|
|
|
| 8 |
ENV HF_HOME=/cache
|
| 9 |
ENV XDG_CACHE_HOME=/cache
|
| 10 |
|
| 11 |
+
# Copy and install python requirements (using precompiled CPU wheels)
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
fastapi>=0.100.0
|
| 2 |
uvicorn>=0.22.0
|
| 3 |
llama-cpp-python>=0.2.75
|
|
|
|
| 1 |
+
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 2 |
fastapi>=0.100.0
|
| 3 |
uvicorn>=0.22.0
|
| 4 |
llama-cpp-python>=0.2.75
|