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

Embeddings: IPEX optimize requires model.eval() called first. #318

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

markstur
Copy link
Contributor

@markstur markstur commented Feb 7, 2024

Add an earlier model.eval() since embeddings models are always used for inference.

Fixes #317

Signed-off-by: markstur <mark.sturdevant@ibm.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.

LGTM

@evaline-ju evaline-ju merged commit b738a99 into caikit:main Feb 7, 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.

Embedding with IPEX optimize fails because the model is not in eval mode yet
2 participants