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

fix: Add 15 min timeout for downloading cached HF models #3179

Merged
merged 1 commit into from
Sep 7, 2022
Merged

fix: Add 15 min timeout for downloading cached HF models #3179

merged 1 commit into from
Sep 7, 2022

Conversation

vblagoje
Copy link
Member

@vblagoje vblagoje commented Sep 7, 2022

Related Issues

Proposed Changes:

There is an ongoing effort to stabilize CI model HF caching. We added SEGMENT_DOWNLOAD_TIMEOUT_MIN env variable and set it to 15 min. If there are download failures, we will get an exception/timeout rather than wait an hour for the task to timeout. There is an ongoing effort to fix this issue on the GitHub side, and we expect a more permanent fix sometime in September. For more details, see actions/cache#810

How did you test it?

No tests have been added.

Notes for the reviewer

See the relevant and referenced issues

@vblagoje vblagoje requested a review from a team as a code owner September 7, 2022 08:25
@vblagoje vblagoje requested review from masci, sjrl, a team and bogdankostic and removed request for a team September 7, 2022 08:25
@sjrl
Copy link
Contributor

sjrl commented Sep 7, 2022

Looks good @vblagoje! My only question would be to ask if we know that when caching works properly if 15 min is typically enough time to download all of the models? It would suck to timeout just because we are downloading a lot of data from HF.

@vblagoje
Copy link
Member Author

vblagoje commented Sep 7, 2022

Looks good @vblagoje! My only question would be to ask if we know that when caching works properly if 15 min is typically enough time to download all of the models? It would suck to timeout just because we are downloading a lot of data from HF.

Yeah, it's more than enough @sjrl. Usually takes a minute or two. I am being really generous here.

Copy link
Contributor

@sjrl sjrl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vblagoje vblagoje merged commit 20880c9 into deepset-ai:main Sep 7, 2022
@vblagoje vblagoje deleted the fix_cache branch October 24, 2022 08:21
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

Successfully merging this pull request may close these issues.

Investigate failures on the HF models caching job
2 participants