Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Build Sometimes Fails #53

Open
THOR300 opened this issue May 17, 2023 · 0 comments
Open

Docker Build Sometimes Fails #53

THOR300 opened this issue May 17, 2023 · 0 comments

Comments

@THOR300
Copy link
Contributor

THOR300 commented May 17, 2023

The following step sometimes fails meaning that one must re-trigger the build.

RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('sentence-transformers/msmarco-distilbert-dot-v5', cache_folder='/models')"

Error from local build, in github actions the error was a requests timeout error:

ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.

My understanding of this line is that the model is downloaded from source and cached in a models folder.

A solution could be building a base image with the model already downloaded and building the indexer on top of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant