fix: replace sentence-transformers with fastembed to eliminate torch/CUDA dependency
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Pre-download embedding model agar tidak diunduh ulang saat runtime
|
||||
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
|
||||
RUN python -c "from fastembed import TextEmbedding; TextEmbedding('sentence-transformers/all-MiniLM-L6-v2')"
|
||||
|
||||
COPY src/ ./src/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user