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

Use cache for hf requests during CI #2379

Merged
merged 3 commits into from
Mar 31, 2022
Merged

Use cache for hf requests during CI #2379

merged 3 commits into from
Mar 31, 2022

Conversation

tstadel
Copy link
Member

@tstadel tstadel commented Mar 31, 2022

Fixes HTTP 405 during CI

Proposed changes:

  • use requests-cache for huggingface requests during CI

Status (please check what you already did):

  • First draft (up for discussions & feedback)
  • Final code

@tstadel tstadel requested a review from ZanSara March 31, 2022 09:01
Copy link
Contributor

@ZanSara ZanSara left a comment

Choose a reason for hiding this comment

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

LGTM! As soon as CI is green let's merge.

Comment on lines 509 to 510
assert np.allclose(original_emb, result_emb, rtol=0.2) # high tolerance necessary for Milvus 2
np.testing.assert_allclose(
original_emb, result_emb, rtol=0.2, atol=5e-07
) # high tolerance necessary for Milvus 2
Copy link
Contributor

Choose a reason for hiding this comment

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

This change comes from the other PR, is it? #2375

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, sorry for that! merging master into this branch should make it disappear.

@tstadel tstadel merged commit 3561037 into master Mar 31, 2022
@tstadel tstadel deleted the fix_hf_405_ci branch March 31, 2022 10:36
@tstadel tstadel added type:bug Something isn't working ignore-for-release-notes PRs with this flag won't be included in the release notes. labels Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release-notes PRs with this flag won't be included in the release notes. type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants