Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 9f5de3b

Browse files
authored
Merge pull request #58 from mindvalley/chore/disable-pre-download-models
Disable pre-downloading models
2 parents d30294b + c6df1cc commit 9f5de3b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

backend/Dockerfile.model_server

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ RUN apt-get remove -y --allow-remove-essential perl-base && \
2424
# Download tokenizers, distilbert for the Danswer model
2525
# Download model weights
2626
# Run Nomic to pull in the custom architecture and have it cached locally
27-
RUN python -c "from transformers import AutoTokenizer; \
28-
AutoTokenizer.from_pretrained('mixedbread-ai/mxbai-rerank-xsmall-v1'); \
29-
from huggingface_hub import snapshot_download; \
30-
snapshot_download(repo_id='danswer/hybrid-intent-token-classifier', revision='v1.0.3'); \
31-
snapshot_download('mixedbread-ai/mxbai-rerank-xsmall-v1');"
27+
# RUN python -c "from transformers import AutoTokenizer; \
28+
# AutoTokenizer.from_pretrained('mixedbread-ai/mxbai-rerank-xsmall-v1'); \
29+
# from huggingface_hub import snapshot_download; \
30+
# snapshot_download(repo_id='danswer/hybrid-intent-token-classifier', revision='v1.0.3'); \
31+
# snapshot_download('mixedbread-ai/mxbai-rerank-xsmall-v1');"
3232

3333
# In case the user has volumes mounted to /root/.cache/huggingface that they've downloaded while
3434
# running Danswer, don't overwrite it with the built in cache folder
35-
RUN mv /root/.cache/huggingface /root/.cache/temp_huggingface
35+
# RUN mv /root/.cache/huggingface /root/.cache/temp_huggingface
3636

3737
WORKDIR /app
3838

0 commit comments

Comments
 (0)