Skip to content

Add GPU graph building for bbq_hnsw - #163642

Merged
elasticsearchmachine merged 16 commits into
elastic:mainfrom
mayya-sharipova:gpu-bbq
Oct 30, 2026
Merged

elasticsearchmachine merged 16 commits into
elastic:mainfrom
mayya-sharipova:gpu-bbq

Conversation

@mayya-sharipova

@mayya-sharipova mayya-sharipova commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Addresses #161567 (Stage 1):

Builds the HNSW graph for bbq_hnsw fields on GPU:

  • vectors are binary quantized on CPU

  • CAGRA graph is built on GPU from the raw float32 vectors (both on flush and merge)

  • on-disk format is identical to ES93HnswBinaryQuantizedVectorsFormat

  • Cost: the GPU receives and holds 32-bit floats instead of 1-bit codes, which is about 32× more dat

  • Stage 2 of the issue: cuVS BbqQuantizer / CagraIndex.Builder#withBbqDataset (Add support for BBQ compressed datasets in NN-Descent and CAGRA NVIDIA/cuvs#2654) would let the GPU work on the bit codes directly and remove this limitation.

Build the HNSW graph for bbq_hnsw fields on GPU, while keeping the
on-disk format identical to ES93HnswBinaryQuantizedVectorsFormat.
The new ES97GpuHnswBBQVectorsFormat reuses the ES93 format name, so
segments written on GPU nodes are read and merged by the CPU format
on nodes without a GPU.

1-bit codes with per-vector corrections can't be used as a CAGRA
dataset, so the graph is built from the raw float32 vectors, both
on flush and on merge (from the merged raw vector slice).

Also export the es93 codec package unqualified (qualified exports
don't work for library modules) and add m(), efConstruction() and
onDiskRescore() accessors to BBQHnswIndexOptions.

KnnIndexTester now accepts quantize_bits=1 for gpu_hnsw, using
ES97GpuHnswBBQVectorsFormat.

Relates elastic#161567
@mayya-sharipova mayya-sharipova added >enhancement :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch test-gpu Run tests using a GPU v9.7.0 labels Oct 27, 2026
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Hi @mayya-sharipova, I've created a changelog YAML for you.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

@github-actions

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@github-actions

Copy link
Copy Markdown
Contributor

ℹ️ Important: Docs version tagging

👋 Thanks for updating the docs! Elastic docs cover multiple versions and deployment types on the same page. applies_to tags help readers understand which information applies to them.

⚠️ Don't remove or replace information that applies to an older version.

Need help with applies_to?

The automated docs review also checks for tagging issues on your PR, where enabled.

@mayya-sharipova

Copy link
Copy Markdown
Contributor Author

Benchmarks: GPU graph building for float32 vs int8 vs bbq

Ran with KnnIndexTester (./gradlew :qa:vector:checkVec), all indices built with index_type: gpu_hnsw.

GPU: NVIDIA GeForce RTX 4060, 8 GB memory

Settings: m=16, ef_construction=200, 8 indexing threads, force-merged (1 segment); search on CPU with k=10, num_candidates=1000, 1 search thread, 1000 queries.

  • float32: ES92GpuHnswVectorsFormat
  • int8: ES92GpuHnswSQVectorsFormat (7 bits)
  • bbq: ES97GpuHnswBBQVectorsFormat (this PR), without rescoring and with 3x oversampling + rescoring on raw float32 vectors (same index for both)

quora-E5-small: 522,931 docs, 384 dims, dot_product

Config Index time (ms) Force merge (ms) Recall@10 Latency (ms) QPS Visited
float32 8,074 7,447 1.00 1.56 643 6,106
int8 9,195 8,057 0.93 1.03 975 6,136
bbq 10,952 9,356 0.79 1.14 876 6,373
bbq + rescore 3x 10,952 9,356 0.98 0.97 1,035 6,403

gist-1M: 1,000,000 docs, 960 dims, euclidean

Config Index time (ms) Force merge (ms) Recall@10 Latency (ms) QPS Visited
float32 37,985 23,543 0.93 2.60 385 8,123
int8 21,573 24,250 0.90 1.65 605 8,166
bbq 22,269 29,830 0.31 1.43 701 8,409
bbq + rescore 3x 22,269 29,830 0.50 1.45 689 8,439

wiki-cohere: 934,024 docs, 768 dims, cosine

Config Index time (ms) Force merge (ms) Recall@10 Latency (ms) QPS Visited
float32 14,950 17,256 0.99 2.24 446 7,558
int8 17,861 18,246 0.77 1.15 873 7,405
bbq 19,045 20,888 0.78 1.10 912 7,784
bbq + rescore 3x 19,045 20,888 0.97 1.11 899 7,814

hotpotqa-arctic: 5,233,329 docs, 768 dims, dot_product

Config Index time (ms) Force merge (ms) Recall@10 Latency (ms) QPS Visited
float32 183,571 261,241 0.84 2.89 346 7,711
int8 135,833 108,883 0.71 1.82 549 7,456
bbq 173,117 311,116 0.46 1.83 547 8,405
bbq + rescore 3x 173,117 311,116 0.64 1.90 527 8,435

Observations

  • GPU-built bbq indices search 1.5-2x faster than float32, visiting about the same number of nodes.
  • With 3x rescoring, bbq gets close to float32 recall on quora (0.98) and wiki-cohere (0.97).
  • Recall on gist-1M and hotpotqa stays low even with 3x rescoring; higher oversampling may help.
  • Each config was run once, so small timing differences are within noise.

@mayya-sharipova

mayya-sharipova commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Benchmarks: dbpedia-openai (3072 dims)

Same setup as above: No force merge for this dataset: at 3072 dims, large merges (~390K+ vectors) fail on this 8 GB GPU with cuvsCagraBuild ... limiting_resource_adaptor: Exceeded memory limit (failed to allocate 768 MiB), even with the IVF_PQ build algorithm

dbpedia-openai: 999,000 docs, 3072 dims, cosine

Config Index time (ms) Segments Index size Recall@10 Latency (ms) QPS Visited
float32 45,486 18 12.31 GB 0.99 30.88 32 25,102
int8 60,776 14 15.39 GB 0.98 6.66 150 20,579
bbq 59,694 18 12.71 GB 0.86 6.07 165 25,230
bbq + rescore 3x 59,694 18 12.71 GB 0.98 6.58 152 25,260

Observations

  • bbq + rescore 3x matches int8 recall (0.98) at similar QPS, with ~2.7 GB less disk and a much smaller in-memory footprint for the quantized vectors.
  • All indices keep the raw float32 vectors (12.28 GB); bbq adds only ~0.43 GB on top, int8 adds ~3.1 GB.
  • float32 search is ~5x slower than the quantized formats at 3072 dims.

@mayya-sharipova

Copy link
Copy Markdown
Contributor Author

Benchmarks: bbq GPU-built vs CPU-built indices

Same setup as above: KnnIndexTester, GPU: NVIDIA GeForce RTX 4060, 8 GB memory.

  • GPU build: index_type: gpu_hnsw, ES97GpuHnswBBQVectorsFormat (this PR)
  • CPU build: index_type: hnsw, ES93HnswBinaryQuantizedVectorsFormat

Both write the same on-disk format. All runs: bbq (1 bit), m=16, ef_construction=200, 8 indexing threads; search on CPU with k=10, num_candidates=1000, 1 search thread, 1000 queries; without rescoring and with 3x oversampling + rescoring. dbpedia was run without force merge (see the previous comment).

Build time

Build time = index time + force merge time.

Dataset GPU build (s) CPU build (s) Speedup
quora-E5-small 18.1 174.1 9.6x
gist-1M 50.2 425.7 8.5x
wiki-cohere 37.1 334.0 9.0x
hotpotqa-arctic 547.0 2,148.8 3.9x
dbpedia-openai (no force merge) 48.6 762.1 15.7x

quora-E5-small: 522,931 docs, 384 dims, dot_product

Build Index time (ms) Force merge (ms) Segments Recall@10 Latency (ms) QPS Visited
GPU bbq 9,152 8,955 1 0.79 1.06 942 6,406
GPU bbq + rescore 3x 9,152 8,955 1 0.98 1.17 856 6,436
CPU bbq 75,881 98,266 1 0.79 1.29 777 10,812
CPU bbq + rescore 3x 75,881 98,266 1 0.97 1.31 763 10,842

gist-1M: 1,000,000 docs, 960 dims, euclidean

Build Index time (ms) Force merge (ms) Segments Recall@10 Latency (ms) QPS Visited
GPU bbq 21,463 28,705 1 0.30 1.60 625 8,389
GPU bbq + rescore 3x 21,463 28,705 1 0.49 1.62 618 8,419
CPU bbq 206,276 219,397 1 0.30 1.59 628 12,091
CPU bbq + rescore 3x 206,276 219,397 1 0.49 1.61 623 12,121

wiki-cohere: 934,024 docs, 768 dims, cosine

Build Index time (ms) Force merge (ms) Segments Recall@10 Latency (ms) QPS Visited
GPU bbq 16,455 20,617 1 0.78 1.08 929 7,790
GPU bbq + rescore 3x 16,455 20,617 1 0.97 1.21 829 7,820
CPU bbq 180,209 153,783 1 0.78 1.44 694 12,867
CPU bbq + rescore 3x 180,209 153,783 1 0.96 1.44 694 12,897

hotpotqa-arctic: 5,233,329 docs, 768 dims, dot_product

Build Index time (ms) Force merge (ms) Segments Recall@10 Latency (ms) QPS Visited
GPU bbq 171,204 375,773 1 0.46 1.76 569 8,249
GPU bbq + rescore 3x 171,204 375,773 1 0.65 1.78 562 8,279
CPU bbq 1,036,724 1,112,045 1 0.39 1.89 528 10,686
CPU bbq + rescore 3x 1,036,724 1,112,045 1 0.54 1.90 527 10,716

dbpedia-openai: 999,000 docs, 3072 dims, cosine (no force merge)

Build Index time (ms) Segments Recall@10 Latency (ms) QPS Visited
GPU bbq 48,584 18 0.87 5.98 167 25,205
GPU bbq + rescore 3x 48,584 18 0.99 6.00 167 25,235
CPU bbq 762,124 20 0.87 8.40 119 51,656
CPU bbq + rescore 3x 762,124 20 1.00 8.50 118 51,686

Observations

  • GPU build is ~9x faster on the 0.5-1M doc datasets and 3.9x faster on hotpotqa (5.2M docs). On dbpedia, part of the gap comes from a background GPU merge failing (GPU memory), leaving the GPU index with fewer merges done.
  • Recall of GPU-built graphs matches CPU-built graphs on quora, gist, wiki-cohere and dbpedia, and is higher on hotpotqa (0.46 vs 0.39 without rescoring, 0.65 vs 0.54 with).
  • GPU-built graphs visit 25-50% fewer nodes for the same num_candidates, so QPS is the same or higher.
  • Each config was run once, so small timing differences are within noise.

Mark GPU bbq_hnsw support as GA in 9.7 in the node settings docs,
simplify the raw float comments in the GPU writer, and remove
redundant comments from the es93 module export and the GPU tests.
@mayya-sharipova
mayya-sharipova marked this pull request as ready for review October 28, 2026 20:34
@mayya-sharipova
mayya-sharipova requested a review from a team as a code owner October 28, 2026 20:34
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

* `false` - GPU will not be used for vector indexing.

GPU indexing is supported for `hnsw` and `int8_hnsw` index types with `float` element type only.
GPU indexing is supported for `hnsw`, `int8_hnsw` and {applies_to}`stack: ga 9.7` `bbq_hnsw` index types with `float` element type only.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this whole section sit under 9.3 preview? (from above - {applies_to} stack: preview 9.3 )

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ChrisHegarty should we remove preview from 9.3? and just say ?

stack: 9.3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is it still in preview? if it moved to ga we should have the preview and ga info in the same segment. if it was ga in 9.3 it can be updated to ga 9.3

stack: preview 9.3, ga 9.4

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@shainaraskas Thanks, it should be GA in 9.4, fixed in 58f53b2

@ChrisHegarty

Copy link
Copy Markdown
Contributor

This is great @mayya-sharipova. I left a few questions/comments.

Question on merge failures (since I don't remember): the dbpedia 3072-dim benchmark shows merges failing with limiting_resource_adaptor: Exceeded memory limit. mergeOneField wraps that in an IOException and has no CPU fallback, unlike flush, which uses tryAcquire. What happens to the shard when that merge fails in a real node? Does it fail the engine or just skip the merge?

mayya-sharipova and others added 2 commits October 29, 2026 11:27
…ings.md

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
mayya-sharipova and others added 6 commits October 29, 2026 12:53
With on_disk_merge, the bbq flat format wrote the merged raw vectors
with direct I/O. The GPU writer reads them straight back (mmapped) to
build the graph, so that read was cold and refilled the page cache.

Decline direct I/O merge writes for GPU bbq_hnsw, as plain HNSW does,
while keeping direct I/O for searches (on_disk_rescore) and for merge
reads of the source segments.

Add a DirectIOCapableFlatVectorsFormatTests case for the buffered bbq
flat format, and explain in the GPU writer why the merge still takes
the mmap fast path with the on_disk options.
Pass on_disk_rescore and on_disk_merge to the GPU bbq_hnsw format,
which was always built with both disabled, so checkVec can exercise
direct I/O on search and merge for gpu_hnsw with 1 bit quantization.
@mayya-sharipova

mayya-sharipova commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Benchmarks: GPU bbq with the CPU graph threshold for tiny segments

Re-ran the GPU builds from the previous comment after 3dce311, which makes ES97GpuHnswBBQVectorsFormat skip the graph for small segments using the same threshold as the CPU format (BBQ_HNSW_GRAPH_THRESHOLD = 300, the default since flat_index_threshold is not set).

Same setup: KnnIndexTester, NVIDIA GeForce RTX 4060 (8 GB), index_type: gpu_hnsw, bbq (1 bit), m=16, ef_construction=200, 8 indexing threads. dbpedia was run without force merge.

  • Before: GPU run from the previous comment (graph built for every segment of 2+ vectors)
  • After: this run (no graph for segments below the CPU threshold)

Build time

Build time = index time + force merge time.

Dataset Before (s) After (s) Change
quora-E5-small 18.1 16.3 -10%
gist-1M 50.2 54.3 +8%
wiki-cohere 37.1 39.1 +5%
hotpotqa-arctic 547.0 475.6 -13%
dbpedia-openai (no force merge) 48.6 45.5 -6%

Index and force merge time

Dataset Index time before (ms) Index time after (ms) Force merge before (ms) Force merge after (ms)
quora-E5-small 9,152 8,099 8,955 8,224
gist-1M 21,463 25,051 28,705 29,222
wiki-cohere 16,455 18,408 20,617 20,661
hotpotqa-arctic 171,204 187,945 375,773 287,636
dbpedia-openai 48,584 45,512 – –

Observations

  • Build time moves by 5-13% in both directions across datasets. The threshold only applies to flushed and intermediate merged segments, and each config was run once, so most of this is likely noise. The largest improvement is hotpotqa force merge (376 s → 288 s).
  • dbpedia: as in the previous run, a background GPU merge failed with a GPU out-of-memory error (cuvsCagraBuild ... RMM failure: Exceeded memory limit (failed to allocate 768 MiB)), leaving 20 segments (18 before).

@mayya-sharipova

mayya-sharipova commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

@ChrisHegarty Thanks for the review. Great feedback. I've tried to address it.

Question on merge failures (since I don't remember): the dbpedia 3072-dim benchmark shows merges failing with limiting_resource_adaptor: Exceeded memory limit. mergeOneField wraps that in an IOException and has no CPU fallback, unlike flush, which uses tryAcquire. What happens to the shard when that merge fails in a real node? Does it fail the engine or just skip the merge?

It fails the engine, not just the merge: the IOException from mergeOneField reaches ThreadPoolMergeScheduler.doMerge, which calls handleMergeException, and InternalEngine.mergeException then calls failEngine("merge failed", ...).

I reproduced this with KnnIndexTester on dbpedia-openai (999,000 docs, 3072 dims, GPU bbq, m=16, ef_construction=200, 8 indexing threads; NVIDIA GeForce RTX 4060, 8 GB). The run was configured to force merge to 2 segments, but it failed even before reaching the force merge: a regular background merge during indexing failed on the GPU with a CUDA out-of-memory error (failed to allocate 4894654464 bytes in cuvsCagraBuild), after which Lucene closed the IndexWriter, so indexing then failed with AlreadyClosedException: flush control is closed. KnnIndexTester uses a plain Lucene IndexWriter, so the log only shows the merge failing and the writer closing; the engine failure in a real node follows from the code path above (ThreadPoolMergeScheduler → InternalEngine#mergeException → failEngine), it isn't exercised by this run.

Note that this time the OOM came from CUDA itself, not from our limiting_resource_adaptor (as in the earlier run), so the memory check in acquire passed, but the device didn't have the memory CAGRA needed.

Log output and stack trace
2026-10-29T20:26:03.176771287Z main INFO Initializing GPU support with CuVS provider com.nvidia.cuvs.internal.GPUInfoProviderImpl
2026-10-29T20:26:05.114343092Z main INFO Found compatible GPU [NVIDIA GeForce RTX 4060 Laptop GPU] (id: [0])
2026-10-29T20:26:05.123027098Z main INFO vec_caps=1
2026-10-29T20:26:05.137696216Z main INFO Using native vector library; to disable start with -Dorg.elasticsearch.nativeaccess.enableVectorLibrary=false
2026-10-29T20:26:05.138592825Z main INFO Java vector incubator API enabled; uses preferredBitSize=256
2026-10-29T20:26:05.142585337Z main INFO Using format ES93HnswBinaryQuantizedVectorsFormat (via org.elasticsearch.gpu.codec.ES97GpuHnswBBQVectorsFormat)
2026-10-29T20:26:05.164841265Z main INFO path=/home/mayya/Elastic/benchmarks/datasets/dbpedia-openai-1M-3072-angular/dbpedia-openai-1M-3072-angular.fvec, docsPathSizeInBytes=12279708000, numDocs=999000, dim=3072, vectorEncoding=FLOAT32, byteSize=4
Exception in thread "Lucene Merge Thread #0" org.apache.lucene.index.MergePolicy$MergeException: java.io.IOException: Failed to merge GPU index: 
	at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:770)
	at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:762)
Caused by: java.io.IOException: Failed to merge GPU index: 
	at org.elasticsearch.gpu.codec.ES92GpuHnswVectorsWriter.lambda$mergeOneField$0(ES92GpuHnswVectorsWriter.java:653)
	at org.apache.lucene.codecs.KnnVectorsWriter.merge(KnnVectorsWriter.java:146)
	at org.apache.lucene.index.SegmentMerger.mergeVectorValues(SegmentMerger.java:273)
	at org.apache.lucene.index.SegmentMerger.mergeWithLogging(SegmentMerger.java:316)
	at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:160)
	at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5400)
	at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4859)
	at org.apache.lucene.index.IndexWriter$IndexWriterMergeSource.merge(IndexWriter.java:6684)
	at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:668)
	at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:735)
Caused by: java.io.IOException: Failed to write GPU index: 
	at org.elasticsearch.gpu.codec.ES92GpuHnswVectorsWriter.generateGpuGraphAndWriteMeta(ES92GpuHnswVectorsWriter.java:332)
	at org.elasticsearch.gpu.codec.ES92GpuHnswVectorsWriter.mergeFloatVectorField(ES92GpuHnswVectorsWriter.java:763)
	at org.elasticsearch.gpu.codec.ES92GpuHnswVectorsWriter.lambda$mergeOneField$0(ES92GpuHnswVectorsWriter.java:638)
	... 9 more
Caused by: java.lang.RuntimeException: cuvsCagraBuild returned 0[std::bad_alloc: out_of_memory: CUDA error (failed to allocate 4894654464 bytes) at: /tmp/conda-bld-output/bld/rattler-build_libcuvs-headers/<conda-placeholder>/include/rmm/mr/cuda_memory_resource.hpp:51: cudaErrorMemoryAllocation out of memory]
	at com.nvidia.cuvs.internal.common.Util.checkCuVSError(Util.java:87)
	at com.nvidia.cuvs.internal.CagraIndexImpl.build(CagraIndexImpl.java:181)
	at com.nvidia.cuvs.internal.CagraIndexImpl.<init>(CagraIndexImpl.java:68)
	at com.nvidia.cuvs.internal.CagraIndexImpl$Builder.build(CagraIndexImpl.java:787)
	at com.nvidia.cuvs.internal.CagraIndexImpl$Builder.build(CagraIndexImpl.java:731)
	at org.elasticsearch.gpu.codec.ES92GpuHnswVectorsWriter.buildGPUIndex(ES92GpuHnswVectorsWriter.java:390)
	at org.elasticsearch.gpu.codec.ES92GpuHnswVectorsWriter.generateGpuGraphAndWriteMeta(ES92GpuHnswVectorsWriter.java:299)
	... 11 more
Exception in thread "main" java.util.concurrent.ExecutionException: org.apache.lucene.store.AlreadyClosedException: flush control is closed
	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:124)
	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:193)
	at org.elasticsearch.test.knn.KnnIndexer.createIndex(KnnIndexer.java:190)
	at org.elasticsearch.test.knn.KnnIndexTester.runTestConfiguration(KnnIndexTester.java:637)
	at org.elasticsearch.test.knn.KnnIndexTester.main(KnnIndexTester.java:551)
Caused by: org.apache.lucene.store.AlreadyClosedException: flush control is closed
	at org.apache.lucene.index.DocumentsWriterFlushControl.obtainAndLock(DocumentsWriterFlushControl.java:552)
	at org.apache.lucene.index.DocumentsWriter.updateDocuments(DocumentsWriter.java:416)
	at org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1640)
	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1925)
	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1500)
	at org.elasticsearch.test.knn.KnnIndexer$IndexerThread.run(KnnIndexer.java:500)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)

I've created a item to address this before as a part of releasing bbq_hnsw.

@ldematte ldematte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It turned out to be more work than I thought, but I can see it's mostly wiring. I like the improvements to the existing codecs too!
LGTM

@mayya-sharipova mayya-sharipova added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) and removed auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Oct 30, 2026
@mayya-sharipova

Copy link
Copy Markdown
Contributor Author

GPu tests keep failing even after I tried multiple times with :

six checkPart1–6 / gpu-tests jobs were canceled after 5 failed attempts to get an agent: InsufficientInstanceCapacity ... g6.8xlarge ... (us-west-2c).

I have to remove test-gpu label.

@mayya-sharipova mayya-sharipova removed the test-gpu Run tests using a GPU label Oct 30, 2026
@mayya-sharipova mayya-sharipova added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Oct 30, 2026
@elasticsearchmachine
elasticsearchmachine merged commit a7b4fc1 into elastic:main Oct 30, 2026
39 checks passed
@mayya-sharipova
mayya-sharipova deleted the gpu-bbq branch October 30, 2026 17:39
mayya-sharipova added a commit that referenced this pull request Nov 9, 2026
Resolve conflicts between the direct I/O rework on lucene_snapshot
(#161210, #161495, #163409), which moved the direct I/O decision from
the vector formats into FsDirectoryFactory, and main's GPU bbq_hnsw
graph building (#163642) and confined temp-file arenas (#164482).

ES97GpuHnswBBQVectorsFormat drops its useDirectIO/onDiskMerge
arguments like the other formats and uses the plain
ES93BinaryQuantizedVectorsFormat. Main's withBufferedMergeWrites,
which kept GPU merge writes of the raw vectors in the page cache with
on_disk_merge, has no counterpart here yet; a TODO marks it to
revisit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >enhancement :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants