-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fp32 to fp16/bf16 vector conversion for RESTful API
Make the Milvus server support the conversion from fp32 to fp16/bf16, so as to facilitate the client users who have difficulties in handling fp16/bf16 conversions. 1. The influenced RESTful API are as follows: - Handler. insert - HandlerV1. insert/upsert - HandlerV2. insert/upsert/search We do not modify search API in Handler/HandlerV1 because they do not support fp16/bf16 vectors. 2. Add micro-benchmarks for various vector serialization methods. 3. Module github.com/milvus-io/milvus/pkg. Add `Float32ArrayToBFloat16Bytes()`, `Float32ArrayToFloat16Bytes()` and `Float32ArrayToBytes()`. These method will be used in GoSDK in the future. issue: #37448 Signed-off-by: Yinzuo Jiang <[email protected]> Signed-off-by: Yinzuo Jiang <[email protected]>
- Loading branch information
1 parent
19572f5
commit b6ae5e9
Showing
16 changed files
with
1,389 additions
and
293 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.