GPU-accelerated HNSW indexing in Qdrant

Qdrant can offload HNSW index builds to NVIDIA or AMD GPUs. This page covers when that pays off, the driver and image requirements, the gpu settings and the 16 GB per iteration limit that shapes segment sizing.

On this page

When GPU-accelerated HNSW indexing in Qdrant is worth planning

GPU-accelerated HNSW indexing in Qdrant speeds up building the HNSW index on NVIDIA or AMD GPUs, and it matters most to teams with large collections whose index builds are slow or hold up ingestion. It shortens the time spent constructing the index. It does not change how queries are served, so a team whose main problem is search latency under load should look at other settings first. The supported paths, including the GPU Docker images, driver and ROCm requirements, and the gpu configuration keys, are defined in the Qdrant documentation on running with GPU, and that page is the reference to check against before any design work starts.

The open-source Qdrant engine is licensed under Apache-2.0 and is free to self-host, so it is the baseline in every case. Indexing on a CPU works without any extra hardware. A GPU is a separate decision with its own costs: the accelerator and host hardware, driver and ROCm version management, container image choice, and the operational work of keeping that stack patched and supported alongside Qdrant upgrades. Those costs are one-time for hardware and recurring for operations, and they should be weighed against how often you rebuild indexes. A collection that is loaded once and rarely changed gains little. A pipeline that rebuilds or re-indexes large collections regularly gains more.

Before committing, confirm three things: that your largest segments stay within the documented per-iteration limit of 16 GB of vector data per GPU, which the Qdrant GPU documentation sets, that your target GPU and driver combination is one the documentation supports, and how much index build time you actually save in a test run on your own vectors. Segment sizing and the batch-level design choices that control how much data each segment holds are covered in the sections that follow, so plan those together with the GPU decision rather than after it.

Which GPU path fits your hardware and operations model

This table compares the NVIDIA and AMD GPU paths, CPU indexing and multi-GPU hosts for Qdrant index builds. Read each row against your accelerator inventory, driver support model and upload schedule. The main takeaway is that the 16 GB per indexing iteration limit applies to each GPU, so segment sizing matters on every accelerated path.

PathWhat to set or confirmOperational trade-off
NVIDIA GPUUse the NVIDIA GPU image variant and set the gpu options in the config. Check the required driver and container runtime versions in the Running with GPU docs.Driver and container runtime updates must be tested against the Qdrant image you run. Schedule them with upgrades.
AMD GPU (ROCm)Use the AMD image variant and confirm the ROCm version and supported cards in the docs. Check host kernel support before purchase.Fewer teams have ROCm operations experience. Plan extra validation time and confirm vendor support for your exact hardware.
CPU indexing (no GPU)No GPU image or gpu settings. Confirm index build duration against your bulk upload window.No accelerator hardware or driver lifecycle to run. Large initial loads take longer, so plan them with the bulk upload process.
Multi-GPU hostCheck in the docs whether one host can use several devices and how they are assigned to indexing work.Host capacity grows with cards, but the 16 GB per GPU per iteration limit still applies. Test device assignment before production.
Segment vector sizeKeep vectors per segment at or below 16 GB for each GPU indexing iteration. Set segment sizing before loading data.Oversized segments are not recommended, so resizing later may mean reloading collections. Plan segment settings in the design phase.

Setting up GPU indexing step by step

This sequence takes a GPU host from hardware inventory to a verified Qdrant node that builds HNSW indexes on the GPU. Each step closes with a check, so a failed check stops the work before any production collection is loaded.

  1. Confirm the host GPU vendor and model

    The platform or infrastructure lead records the GPU vendor (NVIDIA or AMD), the exact model, the number of cards per host, and the memory on each card for every node that will run indexing. Confirm that the card and the operating system are on the vendor's supported list and on the list of GPUs covered in the Qdrant GPU documentation for the release you plan to run. The step is done when an inventory sheet lists every GPU host with its model, card memory and driver owner, and those memory figures are ready for the segment plan in the fifth step.

  2. Install the matching driver or ROCm stack

    The infrastructure team installs the vendor driver for NVIDIA cards or the ROCm stack for AMD cards, using the version pairing that the Qdrant documentation and the vendor's compatibility matrix list for the image you chose. Record the driver version and the container runtime configuration in change control, because a host kernel update can break the driver. Confirm the install by running nvidia-smi (NVIDIA) or rocm-smi (AMD) on each host. The step is done when the query lists every card with its memory and driver version, and those versions match the change record on every GPU node.

  3. Pull the GPU-enabled Qdrant image

    The platform engineer pulls the vendor-specific GPU-enabled Qdrant image tag and pins it to the same release you will run in production. Mirror the image into your internal registry if the nodes sit in a restricted or air-gapped network. The image must match your GPU vendor, so an NVIDIA build will not use AMD cards. The step is done when the image sits in your registry with its digest recorded, and a test container starts on a GPU host and writes a startup log without a driver error.

  4. Set the GPU configuration keys

    The platform engineer sets the GPU configuration keys for each node in the Qdrant configuration file or environment variables, using the exact key names in the Running with GPU docs. Enable GPU indexing only on nodes with a supported card, and choose the device index for each process when a host has several cards. Keep the settings in version control alongside the Compose file or Helm values so every change is reviewed. The step is done when the node's startup log reports GPU indexing enabled with the device it found, and the config diff shows only the intended keys changed.

  5. Size segments below the 16 GB ceiling

    Each GPU handles up to 16 GB of vector data per Qdrant indexing iteration, and segments whose vectors exceed 16 GB are not recommended. Calculate the vector bytes for the largest expected segment from vector count, dimensions and datatype, then choose the segment size and shard count so each segment stays under the ceiling with room to spare. Confirm in the Running with GPU docs what else counts toward the limit before you finalize the plan. The step is done when a written segment plan shows the largest expected segment for each planned collection below 16 GB.

  6. Verify GPU visibility inside the container

    Start the Qdrant container with GPU access passed through using the flag your container runtime documents, then run the vendor query tool inside the container. The output should list the same cards and memory shown on the host. Check the Qdrant startup log for the GPU device entry. If a card is missing, the usual causes are a runtime setup that does not expose the device or a driver version mismatch, so recheck the second and third steps before you change Qdrant settings. The step is done when the container shows every intended card and the log names the device Qdrant will use.

  7. Index a test collection on the GPU

    Create a test collection with a vector count, dimension and datatype that match a production segment, then load it and wait for indexing to finish. Confirm in the logs and monitoring that the indexing work used the GPU device. Index the same collection on CPU as a baseline and compare build times. Run a set of known queries and check that the results match what you expect. The step is done when the test collection reports completed indexing, GPU use appears in the logs for each indexing iteration, and the results sign-off is recorded. Load production data only after this sign-off.

Segment sizing that keeps each indexing iteration under 16 GB

The 16 GB limit applies to vector data each GPU handles per indexing iteration, so segment size is the lever that keeps builds inside it. The cards below cover the decisions that set segment size, from how many vectors you store to how you grow the collection over time.

Set a segment size target

Decide the largest segment you will allow before you size anything else. Because each GPU handles up to 16 GB of vector data per indexing iteration, segments whose vectors exceed that size are not recommended for GPU indexing. Work backward from that ceiling, leaving headroom for growth and for the vectors added between optimizer runs. Confirm the target with a test build on your own hardware before you commit to it.

Running with GPU docs

Measure your own vector volume

The 16 GB figure counts vector data, not the whole collection footprint, so payloads and HNSW graph structures do not count toward it. Multiply your vector count by the dimension count and the bytes per dimension for your datatype, then compare the result per segment. Do this measurement yourself with your real embedding model and data, because a sizing estimate from a different dataset can be far off.

Choose datatype and quantization

Vector datatype and quantization change the volume each segment holds. A lower precision datatype or a quantized representation lets more vectors fit under the same per-iteration limit, but it changes recall, so you must re-check search quality after the change. Keep full-precision originals where your recall target requires them, and confirm with Qdrant's quantization documentation which representation is indexed on the GPU path for your version.

Align shard count with node count

Qdrant distributed deployments split a collection into shards across nodes. The distributed deployment docs recommend a shard count that is a multiple of the node count, so shards spread evenly and each node receives a similar share of indexing work. Choose the shard count once you know the node count and expected vector volume, because changing it later requires a planned migration of the collection.

Distributed deployment docs

Plan collection growth

Segment size is a moving target because the collection keeps growing. Estimate the vector count at 12 and 24 months, then decide whether to add shards, add nodes or split data into new collections before segments approach the limit. Plan the capacity change as a scheduled step with a rollback path rather than an emergency fix during an indexing run.

Handle segments over the limit

A segment that already exceeds 16 GB of vector data needs a decision before you rely on GPU indexing for it. Options include reducing vector volume through quantization, rebalancing data across more shards, or re-ingesting into a collection configured with a smaller target. Test each option on a copy of the collection, measure the indexing result, and confirm the approach with Qdrant's documentation for your release before changing production data.

Choosing GPU or CPU indexing by workload

A one-time bulk load builds a large HNSW index once, then serves queries for a long time. Build time is the main cost here, so a GPU is most worth evaluating when the build window is tight and the vectors fit within the per-iteration limit. The GPU cost is paid once, so it matters less than the time saved on each build.

  • Build window: A GPU helps most when the load must finish before a cutover date and the CPU build would not.
  • Segment size: Confirm that each segment's vectors stay under the 16 GB per indexing iteration limit described in the Qdrant GPU documentation, or split the load into smaller segments.
  • Hardware on hand: An existing NVIDIA or AMD GPU in a host you already run lowers the cost of trying this path.
  • Failure risk: A failed build on a new driver stack costs a full retry, so run a trial load on a sample first.
  • Benchmark: Measure build time on a representative slice of your own vectors before choosing hardware, because gains depend on dimensions, count and parameters.

Before committing, check that the build node's driver and container setup matches the Qdrant GPU image requirements for your vendor.

Security and operations for GPU nodes running Qdrant

A GPU indexing node is still a Qdrant node, and Qdrant ships with no authentication and listens on every interface by default. The cards below cover the exposure, access controls, transport encryption, patching, audit logging and host sharing decisions that apply before a GPU build touches production data.

Exposure of the default instance

A self-deployed Qdrant instance listens on all network interfaces and has no authentication configured until you set it up. On a GPU node, this exposes both the vector data and the expensive compute to anyone who can reach the port. Confirm the bind address, restrict the ports to the indexing clients and the application network, and test from outside that network that the API refuses connections. Treat this as a first-day check, not a later hardening task.

Qdrant security docs

API keys and JWT access

Admin and read-only API keys protect the whole instance, while JWT-based access control adds per-collection read or write permissions. Give the indexing pipeline a write scope limited to the collections it builds, and keep admin keys out of build scripts and images. Store keys in your secrets manager and confirm that rotation can be done without rebuilding the GPU image.

JWT per-collection permissions
v1.9.0

TLS on REST and gRPC

Qdrant supports TLS for both REST and gRPC, so indexing traffic and search traffic can be encrypted between clients, the GPU node and any peers. Decide where certificates terminate and who renews them, and check that the GPU host's clients trust the internal certificate authority. Verify the configuration by connecting with a client that does not trust the certificate and confirming it fails.

TLS support added
v1.2.0

Driver and image patching

A GPU node carries three layers that need separate patch tracking: the NVIDIA or AMD driver, the CUDA or ROCm runtime that matches it, and the Qdrant GPU container image. Pin image tags to a tested release, record the driver version alongside each image, and schedule patch windows that retest index builds after any change. Confirm the driver and runtime pairing with the Qdrant GPU documentation before upgrading either one.

Running with GPU docs

Audit logging of API operations

Since v1.17.0, Qdrant writes JSON audit logs of authenticated API operations, which records who created, changed or deleted data during GPU builds. Route these logs to your central log store, keep them for the period your policy requires, and alert on unexpected collection deletions or key use outside the build window. Confirm with your compliance team which events they need before setting the retention period.

Node isolation on shared GPU hosts

When a GPU host also runs other workloads, such as model serving or batch jobs, a Qdrant process shares the device, memory and network with them. Decide whether the host is dedicated to Qdrant, and if not, isolate it with separate namespaces, device allocation limits and network policies. Ask the platform team to confirm that other tenants cannot read the Qdrant data directory or the GPU memory used during indexing.

Questions teams ask before adding GPUs to Qdrant

Is a GPU needed at all for Qdrant indexing?

Not always. A GPU speeds up building the HNSW index, which is the step that runs when vectors are indexed, but search itself runs on CPU and RAM. Before buying hardware, measure how long your current index builds take and how often you rebuild. If builds are rare, finishing during a normal change window may be enough. If you load large collections repeatedly, a GPU is worth testing. Keep in mind that each GPU handles up to 16 GB of vector data per indexing iteration, so segments whose vectors exceed 16 GB are not recommended. Plan segment sizes around that limit before you size the hardware.

What does GPU indexing cost, and what drives the cost?

The cost has four parts: the GPU hardware or cloud GPU hours, the host capacity around it, driver and container image maintenance, and engineering time for setup and testing. Hardware and cloud hours are the largest visible line items and depend on the GPU model and how many hours indexing runs each month. Maintenance recurs with every Qdrant and driver update. Ask for a quote that separates one-time setup from recurring operations, and state your build frequency and data volume so the scope reflects real usage. DeployOpen does not publish prices; a quote follows from the written scope.

How long does GPU setup usually take?

The duration depends mostly on your environment. The main variables are whether you already run GPU nodes, which vendor you use (NVIDIA or AMD), whether the drivers and container runtime are already in place, and how many collections need segment sizing and benchmarking. Teams with a working GPU platform usually need less time than teams building one. DeployOpen does not publish fixed durations. A written scope will state the timeline for your environment, and the first step is confirming your hardware, drivers and collection sizes.

Which driver and platform requirements must we check first?

Start by confirming the GPU vendor and the matching Qdrant GPU image, then the driver stack. NVIDIA and AMD follow different paths, and AMD uses ROCm, so check the version pairing against the Qdrant documentation for your release. Also confirm that the container runtime can expose the GPU to the Qdrant container and that the GPU configuration keys are set as documented. Review the Qdrant running with GPU docs for the exact requirements before you order hardware.

Can our team set up GPU indexing alone?

Yes, if your team already operates Kubernetes or Docker hosts with GPUs, has Qdrant running in production, and can test index builds against its own data. The harder parts are driver and image upgrades, segment sizing under the 16 GB per iteration limit, and verifying that search quality and latency stay the same after indexing on GPU. A partner is useful when those skills are missing or when you want the work documented for an audit. Decide which parts you keep in-house and which you outsource, and write that split into the scope.

What do we need to provide for the work?

Expect to provide hardware or cloud access with GPU instances in an environment you control, a copy of representative data or vector samples for benchmarking, a list of collections with vector counts, dimensions and rebuild frequency, and named contacts for infrastructure and change approval. You also need change windows for driver restarts and Qdrant upgrades. Qdrant needs block-level storage with a POSIX-compatible file system, so confirm that your storage meets this requirement before testing. Ask the provider to list these inputs in the written scope so dependencies are known before work starts.

How do we request a fixed-scope quote?

Send a short brief covering your Qdrant version, deployment path, GPU vendor and models, the largest collection size you expect to index, and how often you rebuild indexes. Include your target outcome, such as faster index builds during bulk loads, and any compliance or access constraints. DeployOpen works from a written scope with agreed deliverables and timelines, so the quote follows from that document. Ask for a breakdown of one-time work, recurring support and any retainer options before you approve the scope.

How DeployOpen works on this

DeployOpen plans and implements self-hosted Qdrant inside your own infrastructure, including GPU-accelerated HNSW indexing where your hardware and segment sizes justify it. The work starts with a written scope that states which GPUs, images and collections are covered, and ends with a runbook your team can operate.

How we scope

  • Inventory your GPU hardware, driver stack, container runtime and whether NVIDIA or AMD ROCm applies.
  • Measure vector volume per collection and check each segment against the 16 GB per indexing iteration limit.
  • Agree the written scope, deliverables and timeline before work starts, with no price list and a quote built from that scope.

How we build

  • Configure the GPU Docker image, driver or ROCm prerequisites and the gpu settings in your Qdrant deployment.
  • Tune segment sizing and indexing thresholds so GPU builds run within the per-iteration limit on your data.
  • Test index build times and search results against a CPU-built baseline on a copy of your data before cutover.

How we hand over

  • Document the image tags, driver versions, configuration keys and segment rules used in your environment.
  • Provide a runbook covering rebuilds, fallback to CPU indexing and what to check when a GPU build fails.
  • Walk your platform and infrastructure teams through operation so they can run and extend the setup without us.

How we support

  • Support ongoing Qdrant upgrades and driver changes through a retainer, scoped in writing.
  • Re-test index build behavior after collection growth, Qdrant upgrades or hardware changes.
  • Ask your team to confirm GPU vendor support status and Qdrant release compatibility with each change in your environment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.