-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Disallow dot_product and max_inner_product for int8_hnsw GPU type #136881
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
Merged
elasticsearchmachine
merged 19 commits into
elastic:main
from
mayya-sharipova:gpu-avoid-dot-product-int8
Oct 22, 2025
Merged
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e6438d7
Disallow dot_product and max_inner_product for int8_hnsw GPU type
mayya-sharipova 79d8e02
Update docs/changelog/136881.yaml
mayya-sharipova 95882d0
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 34ad4cf
Fix errors
mayya-sharipova ef30f28
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 60e1dc9
Substitute dot_product with cosine for int8
mayya-sharipova 3cb0849
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 0a3a354
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 02b9a7b
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 3af91ae
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 0fac65c
Update x-pack/plugin/gpu/src/main/java/org/elasticsearch/xpack/gpu/co…
mayya-sharipova fe79abd
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 33909ff
Add assertion
mayya-sharipova 6f43a34
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 5150339
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 774bf13
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 7bb554b
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova bbc8465
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova 345af15
Merge branch 'main' into gpu-avoid-dot-product-int8
mayya-sharipova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 136881 | ||
| summary: Disallow `dot_product` and `max_inner_product` for int8_hnsw GPU type | ||
| area: Search | ||
| type: bug | ||
| issues: [] |
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
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
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
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
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
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
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
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.
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.
I think this should just silently change to
cosinewhen using the GPU integration to build the index, then usingDOT_PRODUCTon search would work just fine.this way we only disallow max-inner-product.
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.
Good suggestion, I will follow up on this.
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.
Addressed in 60e1dc9