AnatoliiG commited on
Commit ·
90ce603
1
Parent(s): 3889d7c
docker
Browse files- Dockerfile +6 -3
- requirements.txt +0 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
FROM python:3.10-slim-bookworm
|
| 2 |
|
| 3 |
-
#
|
| 4 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 5 |
libgomp1 \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -15,9 +15,12 @@ WORKDIR /app
|
|
| 15 |
|
| 16 |
RUN pip install --no-cache-dir --upgrade pip
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
COPY --chown=user . .
|
| 23 |
|
|
|
|
| 1 |
FROM python:3.10-slim-bookworm
|
| 2 |
|
| 3 |
+
# Устанавливаем libgomp1 (необходим для работы многопоточности OpenMP в модели)
|
| 4 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 5 |
libgomp1 \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 15 |
|
| 16 |
RUN pip install --no-cache-dir --upgrade pip
|
| 17 |
|
| 18 |
+
# УСТАНОВКА СОВМЕСТИМОГО БИНАРНИКА С ПОДДЕРЖКОЙ OPENBLAS НАПРЯМУЮ С HF (установка за 3 секунды)
|
| 19 |
+
RUN pip install --no-cache-dir \
|
| 20 |
+
https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl
|
| 21 |
|
| 22 |
+
COPY --chown=user requirements.txt .
|
| 23 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
COPY --chown=user . .
|
| 26 |
|
requirements.txt
CHANGED
|
@@ -6,4 +6,3 @@ gradio>=5.9.0
|
|
| 6 |
python-multipart
|
| 7 |
psutil
|
| 8 |
pydantic-settings
|
| 9 |
-
llama-cpp-python>=0.3.1
|
|
|
|
| 6 |
python-multipart
|
| 7 |
psutil
|
| 8 |
pydantic-settings
|
|
|