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

Allow passing 'precision' when using 'encode_multi_process' to SentenceTransformer #2659

Conversation

ariel-talent-fabric
Copy link
Contributor

Overview

When using the current implementation of 'encode_multi_process' we are forced to use only the default precision, forcing us to leverage multi-process GPU capabilities.

Details

This PR should fix this and allow setting the precision with multi-process capabilities by supporting the precision property when calling the encode_multi_process function.

@tomaarsen
Copy link
Collaborator

Hello!

This looks solid, thanks for this! Could you please run make style or pre-commit run --all to solve the formatting issue?

  • Tom Aarsen

@ariel-talent-fabric
Copy link
Contributor Author

Done

@tomaarsen
Copy link
Collaborator

Excellent, thanks a bunch for this! I appreciate it.

  • Tom Aarsen

@tomaarsen tomaarsen merged commit 7848583 into UKPLab:master May 22, 2024
9 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.

None yet

2 participants