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

Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
gkumbhat and others added 8 commits July 15, 2024 15:43
…h lib update

Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Signed-off-by: Flavia Beo <flavia.beo@ibm.com>
Changes result vector comparison to approximately.
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
Signed-off-by: Flavia Beo <flavia.beo@ibm.com>
@gkumbhat gkumbhat force-pushed the update_torch_2_3_1 branch from 0bec177 to 18e2fd8 Compare July 17, 2024 21:01
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
@gkumbhat gkumbhat force-pushed the update_torch_2_3_1 branch from 18e2fd8 to f4883e3 Compare July 17, 2024 21:07
@@ -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 <kumbhat.gaurav@gmail.com>
@gkumbhat gkumbhat force-pushed the update_torch_2_3_1 branch from 7dfe5bc to 9e3dda6 Compare July 17, 2024 21:58
Signed-off-by: gkumbhat <kumbhat.gaurav@gmail.com>
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