Skip to content

Introduce fp16 simd operators#436

Merged
LHT129 merged 1 commit into
antgroup:mainfrom
LHT129:fp16
Feb 28, 2025
Merged

Introduce fp16 simd operators#436
LHT129 merged 1 commit into
antgroup:mainfrom
LHT129:fp16

Conversation

@LHT129

@LHT129 LHT129 commented Feb 24, 2025

Copy link
Copy Markdown
Collaborator

issue: #437

@LHT129 LHT129 added kind/feature Brand-new functionality or capabilities 引入全新的功能、新特性或新能力 version/0.14 1. Add IVF 2. Add Sparse 3. Async IO 1. 新增 IVF 2. 增加 Sparse 3. 异步 IO labels Feb 24, 2025
@LHT129
LHT129 requested a review from inabao February 24, 2025 08:58
@LHT129 LHT129 self-assigned this Feb 24, 2025
@mergify mergify Bot added the module/simd label Feb 24, 2025
@codecov

codecov Bot commented Feb 24, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 98.94737% with 1 line in your changes missing coverage. Please review.

@@            Coverage Diff             @@
##             main     #436      +/-   ##
==========================================
+ Coverage   92.07%   92.09%   +0.02%     
==========================================
  Files         164      164              
  Lines       10204    10299      +95     
==========================================
+ Hits         9395     9485      +90     
- Misses        809      814       +5     
Flag Coverage Δ
cpp 92.09% <98.94%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
common 93.94% <ø> (ø)
datacell 92.77% <ø> (-0.48%) ⬇️
index 91.67% <ø> (+0.10%) ⬆️
simd 87.95% <98.94%> (+0.88%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77714f3...0a4e33f. Read the comment docs.

@LHT129
LHT129 marked this pull request as ready for review February 24, 2025 12:11
@LHT129 LHT129 changed the title [WIP] Introduce fp16 simd operators Introduce fp16 simd operators Feb 24, 2025
@LHT129
LHT129 requested a review from wxyucs February 25, 2025 03:12

@inabao inabao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LHT129
LHT129 force-pushed the fp16 branch 3 times, most recently from fe8d57b to 493cdf5 Compare February 27, 2025 06:19
}

TEST_CASE("Encode & Decode FP16", "[ut][simd]") {
auto vec_fp32 = fixtures::generate_vectors(10, 100);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use more test cases, since fixtures::generate_vectors only generate small range or float

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not a good idea to touch the limit of the fp16, because we will never guarantee the precise of the special number

Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
@LHT129
LHT129 merged commit 297856b into antgroup:main Feb 28, 2025
@LHT129
LHT129 deleted the fp16 branch February 28, 2025 02:39
jiacai2050 pushed a commit to jiacai2050/vsag that referenced this pull request Mar 6, 2025
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
LHT129 added a commit to LHT129/vsag that referenced this pull request Apr 16, 2026
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
LHT129 added a commit that referenced this pull request May 11, 2026
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
Sia-Sheerland pushed a commit to Sia-Sheerland/vsag that referenced this pull request Jun 26, 2026
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
Signed-off-by: Sia Sheerland <x1075956441x@163.com>

Signed-off-by: Sia Sheerland <x1075956441x@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Brand-new functionality or capabilities 引入全新的功能、新特性或新能力 module/simd size/XL version/0.14 1. Add IVF 2. Add Sparse 3. Async IO 1. 新增 IVF 2. 增加 Sparse 3. 异步 IO

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants