[2.10] Support BF16 and FP16 - [MOD-6765, MOD-6776]#4674
Merged
Conversation
* adding support for the bf16 type in the API * support JSON casting to BF16 * improved casting * add support for fp16 * update VecSim tag (supports fp16 and bf16) * remove temporary definitions * added tests * minor fix * review fixes (tests) * more data types in multithread * fix another test * remove NaN/Inf support * replace bfloat16 module with tensorflow * limit urllib3 version * remove cpu only tensorflow * set jsons from numpy array * fix build for arm ubuntu * attempt * attempt * test * attempt * attempt * another attempt * implement bfloat16 myself * revert installation scripts * simplify create_np_array_typed * extend comment
meiravgri
approved these changes
May 26, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.10 #4674 +/- ##
==========================================
+ Coverage 86.14% 86.16% +0.01%
==========================================
Files 190 190
Lines 34490 34531 +41
==========================================
+ Hits 29713 29753 +40
- Misses 4777 4778 +1 ☔ View full report in Codecov by Sentry. |
ashvardanian
added a commit
to ashvardanian/RetriEval
that referenced
this pull request
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #4584 to
2.10.adding support for the bf16 type in the API
support JSON casting to BF16
improved casting
add support for fp16
update VecSim tag (supports fp16 and bf16)
remove temporary definitions
added tests
minor fix
review fixes (tests)
more data types in multithread
fix another test
remove NaN/Inf support
replace bfloat16 module with tensorflow
limit urllib3 version
remove cpu only tensorflow
set jsons from numpy array
fix build for arm ubuntu
attempt
attempt
test
attempt
attempt
another attempt
implement bfloat16 myself
revert installation scripts
simplify create_np_array_typed
extend comment