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

📦 Update torch to 2.3.1 #368

Merged
merged 12 commits into from
Jul 17, 2024
Merged

Conversation

gkumbhat
Copy link
Collaborator

Changes

  • Update pytorch to 2.3.1 to address CVE

@@ -1018,7 +1018,7 @@ def test_encoding_order(loaded_model: EmbeddingModule, truncate_input_tokens):

# test order by comparing value of individual embeddings in sequence
for i, e in enumerate(separate_vectors):
assert np.allclose(e, combined_vectors[i])
assert np.isclose(e, combined_vectors[i], rtol=1e-03, atol=1e-05).all()
Copy link
Collaborator

Choose a reason for hiding this comment

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

q - what's the difference between isclose.all() here vs. allclose? Can't allclose also take the rtol etc. https://numpy.org/doc/stable/reference/generated/numpy.allclose.html

Copy link
Collaborator

@evaline-ju evaline-ju left a comment

Choose a reason for hiding this comment

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

q on the isclose but otherwise LGTM

Signed-off-by: gkumbhat <[email protected]>
Copy link
Collaborator

@evaline-ju evaline-ju left a comment

Choose a reason for hiding this comment

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

thanks for the update!

@gkumbhat gkumbhat merged commit 363c425 into caikit:main Jul 17, 2024
5 checks passed
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.

3 participants