-
Notifications
You must be signed in to change notification settings - Fork 748
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
Add binary embedding quantization support to FeatureExtraction pipeline #691
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much!
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits
Great job! Thanks for the PR! 🔥 |
This PR addressed the below issue, using the examples from @xenova.
Closes [feat] Add binary & scalar embedding quantization support to Transformers.js #681
Let me know if you'd like any changes to this, perhaps we can make another options object in javascript like a QuantizationOptions so it's obvious which parameters are grouped together logically
I also added a texts === undefined check since I ran into an issue earlier where I was accidentally not passing in any texts and was met with an unfriendly error.
For some reason though I don't get the same similarity numbers as Xenova did on his example but the numbers are at least similar
It may also be beneficial to bring in https://github.com/ashvardanian/SimSIMD for this but haven't ran any benchmarks within browser context yet