Spaces:
Running
Running
Commit
·
611584f
1
Parent(s):
beed391
Corrected reference to sentence transformers dependency. Updated Dockerfile packages
Browse files- Dockerfile +4 -4
- requirements.txt +1 -1
- requirements_aws.txt +1 -1
- requirements_gpu.txt +1 -1
Dockerfile
CHANGED
|
@@ -15,11 +15,11 @@ WORKDIR /src
|
|
| 15 |
# Copy requirements file and install dependencies. Sentence transformers and Bertopic are installed without dependencies so that torch is not reinstalled.
|
| 16 |
COPY requirements_aws.txt .
|
| 17 |
|
| 18 |
-
RUN pip install torch
|
| 19 |
-
&& pip install --no-cache-dir --target=/install sentence-transformers
|
| 20 |
-
&& pip install --no-cache-dir --target=/install bertopic==0.
|
| 21 |
&& pip install --no-cache-dir --target=/install -r requirements_aws.txt \
|
| 22 |
-
&& pip install --no-cache-dir --target=/install gradio==5.
|
| 23 |
|
| 24 |
# Add /install to the PYTHONPATH
|
| 25 |
ENV PYTHONPATH="/install:${PYTHONPATH}"
|
|
|
|
| 15 |
# Copy requirements file and install dependencies. Sentence transformers and Bertopic are installed without dependencies so that torch is not reinstalled.
|
| 16 |
COPY requirements_aws.txt .
|
| 17 |
|
| 18 |
+
RUN pip install torch>=2.6.0+cpu --target=/install --index-url https://download.pytorch.org/whl/cpu \
|
| 19 |
+
&& pip install --no-cache-dir --target=/install sentence-transformers>=5.1.2 --no-deps \
|
| 20 |
+
&& pip install --no-cache-dir --target=/install bertopic==0.17.3 --no-deps \
|
| 21 |
&& pip install --no-cache-dir --target=/install -r requirements_aws.txt \
|
| 22 |
+
&& pip install --no-cache-dir --target=/install gradio==5.49.1
|
| 23 |
|
| 24 |
# Add /install to the PYTHONPATH
|
| 25 |
ENV PYTHONPATH="/install:${PYTHONPATH}"
|
requirements.txt
CHANGED
|
@@ -16,7 +16,7 @@ presidio_analyzer>=2.2.360
|
|
| 16 |
presidio_anonymizer>=2.2.360
|
| 17 |
scipy>=1.15.3
|
| 18 |
polars>=1.34.0
|
| 19 |
-
sentence-transformers==5.2
|
| 20 |
torch>=2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124
|
| 21 |
#https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp311-cp311-win_amd64.whl # Exact wheel specified for windows
|
| 22 |
#llama-cpp-python==0.3.2 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
|
|
|
| 16 |
presidio_anonymizer>=2.2.360
|
| 17 |
scipy>=1.15.3
|
| 18 |
polars>=1.34.0
|
| 19 |
+
sentence-transformers==5.1.2
|
| 20 |
torch>=2.6.0 --extra-index-url https://download.pytorch.org/whl/cu124
|
| 21 |
#https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp311-cp311-win_amd64.whl # Exact wheel specified for windows
|
| 22 |
#llama-cpp-python==0.3.2 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
requirements_aws.txt
CHANGED
|
@@ -16,6 +16,6 @@ polars>=1.34.0
|
|
| 16 |
transformers==4.57.1
|
| 17 |
accelerate==1.11.0
|
| 18 |
bertopic==0.17.3
|
| 19 |
-
sentence-transformers==5.2
|
| 20 |
spaces==0.42.1
|
| 21 |
numpy==2.2.6
|
|
|
|
| 16 |
transformers==4.57.1
|
| 17 |
accelerate==1.11.0
|
| 18 |
bertopic==0.17.3
|
| 19 |
+
sentence-transformers==5.1.2
|
| 20 |
spaces==0.42.1
|
| 21 |
numpy==2.2.6
|
requirements_gpu.txt
CHANGED
|
@@ -18,7 +18,7 @@ presidio_anonymizer>=2.2.360
|
|
| 18 |
scipy>=1.15.3
|
| 19 |
polars>=1.34.0
|
| 20 |
llama-cpp-python==0.3.4 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
|
| 21 |
-
sentence-transformers==5.2
|
| 22 |
spaces==0.42.1
|
| 23 |
numpy==2.2.6
|
| 24 |
|
|
|
|
| 18 |
scipy>=1.15.3
|
| 19 |
polars>=1.34.0
|
| 20 |
llama-cpp-python==0.3.4 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
|
| 21 |
+
sentence-transformers==5.1.2
|
| 22 |
spaces==0.42.1
|
| 23 |
numpy==2.2.6
|
| 24 |
|