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

Mock register VECTOR_INT8 for all index types #1037

Merged

Conversation

cydrain
Copy link
Collaborator

@cydrain cydrain commented Jan 16, 2025

Issue: #977

@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cydrain

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

mergify bot commented Jan 16, 2025

@cydrain 🔍 Important: PR Classification Needed!

For efficient project management and a seamless review process, it's essential to classify your PR correctly. Here's how:

  1. If you're fixing a bug, label it as kind/bug.
  2. For small tweaks (less than 20 lines without altering any functionality), please use kind/improvement.
  3. Significant changes that don't modify existing functionalities should be tagged as kind/enhancement.
  4. Adjusting APIs or changing functionality? Go with kind/feature.

For any PR outside the kind/improvement category, ensure you link to the associated issue using the format: “issue: #”.

Thanks for your efforts and contribution to the community!.

@cydrain
Copy link
Collaborator Author

cydrain commented Jan 16, 2025

/kind improvement

@@ -134,12 +138,18 @@ class IndexFactory {
KNOWHERE_SIMPLE_REGISTER_GLOBAL(name, index_node, bf16, (features | knowhere::feature::BF16), ##__VA_ARGS__); \
KNOWHERE_SIMPLE_REGISTER_GLOBAL(name, index_node, fp16, (features | knowhere::feature::FP16), ##__VA_ARGS__); \
KNOWHERE_SIMPLE_REGISTER_GLOBAL(name, index_node, fp32, (features | knowhere::feature::FLOAT32), ##__VA_ARGS__);

// register vector index supporting ALL_DENSE_FLOAT_TYPE(float32, bf16, fp16) data types, but mocked bf16 and fp16
#define KNOWHERE_MOCK_REGISTER_DENSE_FLOAT_ALL_GLOBAL(name, index_node, features, ...) \
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is weird to put int8 register function into "KNOWHERE_MOCK_REGISTER_DENSE_FLOAT_ALL_GLOBAL", int8 not a float type.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.15%. Comparing base (3c46f4c) to head (2d59fc1).
Report is 295 commits behind head on main.

Current head 2d59fc1 differs from pull request most recent head d4c9f94

Please upload reports for the commit d4c9f94 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           main    #1037       +/-   ##
=========================================
+ Coverage      0   73.15%   +73.15%     
=========================================
  Files         0       82       +82     
  Lines         0     7479     +7479     
=========================================
+ Hits          0     5471     +5471     
- Misses        0     2008     +2008     

see 82 files with indirect coverage changes

@cydrain cydrain force-pushed the caiyd_977_all_index_support_mock_int8vec branch from 2d59fc1 to d4c9f94 Compare January 16, 2025 08:43
@cqy123456
Copy link
Collaborator

/lgtm

@mergify mergify bot added the ci-passed label Jan 16, 2025
@sre-ci-robot sre-ci-robot merged commit 86ca90f into zilliztech:main Jan 16, 2025
10 of 12 checks passed
@cydrain cydrain deleted the caiyd_977_all_index_support_mock_int8vec branch January 16, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants