Skip to content

Commit 87950cb

Browse files
committed
fix(pipelines): drop torch from Dockerfile.pipeline, not needed anymore
1 parent 8723690 commit 87950cb

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
FROM python:3.11-slim
22

3-
# Install python packages without caching to keep image size small
3+
# Install python packages without caching to keep image size small.
4+
# Embeddings are generated by the in-cluster TEI service now (see utils.py),
5+
# so no ML model needs to be loaded or baked into this image anymore.
46
RUN pip install --no-cache-dir \
57
kfp>=2.0.0 \
68
pymilvus>=2.4.0 \
7-
sentence-transformers \
89
langchain-text-splitters \
910
beautifulsoup4 \
1011
requests
11-
12-
# Pre-download the sentence-transformers model so it's baked into the image.
13-
# This prevents downloading it on every pipeline run, saving time, ephemeral storage,
14-
# and avoiding HuggingFace Hub rate limits.
15-
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('sentence-transformers/all-mpnet-base-v2')"
16-
17-
# Set huggingface cache location explicitly
18-
ENV HF_HOME=/root/.cache/huggingface

0 commit comments

Comments
 (0)