Training & Inference

Private RAG Infrastructure: GPU Sizing for Embedding, Inference and Data Placement

Pricing a private RAG infrastructure deployment as one GPU count hides what each part of the stack needs. A RAG stack runs three workloads that scale on different inputs: embedding on document volume, inference on query volume, and the vector index on embedding count (chunks) and embedding dimension. Size them separately and you get the five numbers in the checklist at the end.

Private RAG Infrastructure: Sizing Embedding, Inference and Data Placement

We size private RAG infrastructure as three separate workloads, because each one grows with a different input.

Embedding grows with document volume, inference with query volume, and the vector database with its count of stored embeddings. Sizing each one on its own gives the five numbers in the checklist at the end.

TL;DR: Size first whichever workload carries most of your load: embedding and storage for a large document set with few queries, inference for heavy concurrent traffic. Published throughput figures depend on hardware and model, so benchmark your own before you turn load into a device count.

Why Private RAG Sizing Splits Into Three Decisions

Ingest, the step that loads and indexes documents, uses compute before the first user query. EyeLevel calls ingest the hardest part of on-prem RAG: one 200-page PDF can generate thousands of calls to layout parsers, OCR engines, embedding models and language models.

A big document load delays answers when ingest shares hardware with the large language model (LLM) answering users. Each part also needs different hardware:

ComponentWhat drives its sizeHardware it needs
Vector databaseNumber of stored embeddings, their dimension and precisionNVMe capacity and RAM
EmbeddingDocuments per day and chunks per documentGPU, or CPU at low volume
InferencePeak concurrent queries and response-time targetGPU with high memory bandwidth
OrchestrationQuery volume and pipeline stagesCPU

Take 10 million indexed documents and 50 queries a day: embedding and storage carry the load, and the LLM needs a small share of the hardware. Flip it to 100,000 documents under heavy concurrent traffic, and the LLM servers take most of the budget.

Step 1: Size Embedding Model Throughput to Document Volume

Embedding runs as a batch job over chunks, the short passages cut from each document. Its size comes from the number of chunks, the rate your hardware sustains and the time you can allow for the first load.

ServerMania lists 50 to 100 embeddings per second on CPU and 500 to 800 per second on an NVIDIA T4. It doesn't name the embedding model or batch size behind those figures, so swap in your own model's rate.

Work out the device count in five steps:

  1. Count chunks: multiply documents by chunks per document.
  2. Add re-embedding: multiply by the number of times you expect to re-embed the corpus in the first year.
  3. Convert to work: divide the chunk count by the per-device rate to get device-seconds.
  4. Fit the window: divide device-seconds by your load window in seconds to get the number of devices.
  5. Add headroom: round up the device count and add one spare.

OCR and layout parsing for scanned or complex PDFs add their own load on top of embedding. EyeLevel runs OCR on CPUs and table and layout models on accelerators, each as its own service.

Switching embedding model means re-embedding the corpus, because vectors from two different models can't be compared in one index. Budget for that second pass from the start, so a model upgrade doesn't arrive as an unplanned cost.

Write down two figures from this step: the sustained embedding rate in embeddings per second, and the device count for that rate.

Step 2: Size Inference Concurrency to Your Query Volume

Start LLM sizing from peak queries per second and your response-time target. A rule like "one card per N users" gives the wrong count under continuous batching.

With continuous batching, the server processes requests token by token and hands each freed slot to the next waiting request.

Baseten lists vLLM and TGI as servers that offer continuous batching, and TensorRT-LLM gets the same effect through what it calls in-flight batching. Your serving stack's batching sets each device's query capacity.

Bigger batches raise throughput with shrinking returns, because memory bandwidth limits how fast a model generates each token. Memory bandwidth utilization (MBU) is the share of a device's peak memory bandwidth in use during generation.

Databricks measured about 60% MBU on two H100-80GB cards at batch size 1 and saw it drop at larger batch sizes. Treat that 2023 result as a reason to test where extra concurrency stops paying off on your own hardware.

The sources here don't publish tokens per second for a named model at production batch size. Benchmark your own model before turning queries per second into a device count.

Agentic RAG, where an AI agent calls tools across several turns, adds a variable outside these steps. Each turn's tool-call context grows the KV cache, the memory a model holds for earlier turns.

Step 2 leaves you with three figures: peak queries per second, tokens per second per device from your benchmark, and the resulting device count.

Step 3: Place the Vector Database on NVMe or Object Storage

Index placement starts from your latency budget, the longest a retrieval can take before users notice slower answers. RDP GPU Mart's storage planning guide puts a dense vector index over 10 million 768-dimension float32 embeddings at roughly 30GB, and a BM25 keyword layer roughly doubles the footprint.

At 10 million embeddings, capacity stays modest, so latency becomes the tighter limit.

Storage tierRandom-read latencyRole in a RAG stack
Local NVMeBaselineThe index that queries search
Object storageRoughly 10 to 100 times higher than NVMeSource documents, snapshots and backups

RDP's guide also expects production RAG retrieval to finish in under 10ms. At 10 to 100 times NVMe's random-read latency, object storage makes that target hard to hit without a cache.

Keep the searchable index on NVMe, and put source documents and snapshots on object storage. Your enterprise AI storage architecture sets cross-site availability, backups and data residency, the rules on which country holds the data.

Size the index from chunks, because each chunk produces one embedding. Index size grows roughly in line with embedding count and dimension, so 100 million 768-dimension embeddings come to about 300GB dense and about 600GB with the keyword layer.

Plan for the index outgrowing one NVMe device. At that point, splitting the index across servers (sharding), storing embeddings at lower precision (quantization) or moving to a larger storage tier changes the bill of materials.

Work out the NVMe requirement now, from the chunk count times your worst-case growth factor.

Finish with the index size in GB and its split between NVMe and object storage.

Reference Sizing Tiers for Private RAG

ServerMania publishes three illustrative tiers for private RAG deployments. Use them to sanity-check your own arithmetic, since your batch size and response-time target change the count.

TierDocumentsQueries per dayHardware in ServerMania's tier descriptions
SmallUp to 1MUp to 1,0001 CPU server and 1 RTX 4090 for the LLM
Medium1M to 10MAbout 1,000 to 10,0002 CPU servers, 1 NVIDIA L4 for embedding and 2 L4s for the LLM
LargeOver 10MAbout 10,000 to 100,0004 CPU servers, 2 L4s for embedding and 4 L4s for the LLM

Worked Example: Sizing a Medium-Scale Private RAG Deployment

Take a team with 5 million documents at about 20 chunks each, 5,000 queries a day, a 2-second response target and a one-day window for the first load. The inputs are illustrative.

  1. Embedding: 5,000,000 × 20 gives 100 million chunks. Assume one T4 embeds 600 chunks per second, inside ServerMania's range: the job then takes about 166,667 seconds, or 46 hours on one device. Two devices fit the one-day window, and a third adds headroom for a re-embed after a model change.
  2. Inference: assume a business-hours peak of 5 queries per second. The team's own benchmark shows one device holding that rate within the 2-second target under continuous batching.
  3. Placement: 100 million chunks make 100 million 768-dimension float32 embeddings, about 300GB dense or 600GB with the keyword layer. That fits on a 1TB NVMe drive with about 400GB spare, and the source PDFs go to object storage.

The bill of materials comes to 3 T4-class cards for embedding, 1 card for the LLM, 1TB of NVMe for the searchable index and object storage for the originals. This example doesn't size the CPU servers for orchestration and OCR.

A Private RAG Infrastructure Sizing Checklist

Write down these five numbers before you submit a purchase request:

  1. Sustained embedding rate: embeddings per second for the first load and steady state.
  2. Embedding device count: CPU or GPU, worked out in Step 1.
  3. Peak queries per second: measured at the business-hours peak.
  4. Inference GPU count: taken from your own model benchmark.
  5. Index size in GB: split between NVMe and object storage.

Our guide to troubleshooting inference throughput shows how to find the bottleneck when a live deployment falls short of these estimates.

Zettabyte's zDATA moves enterprise data between storage tiers, and zCLOUD rents H100 capacity by the hour or on a term. Hold either one, and other vendors' offers, to the same two checks: retrieval from the searchable index within your latency budget, and an LLM device count that matches your benchmark.

Private RAG Infrastructure FAQ

How many GPUs does private RAG infrastructure need?

The number comes from three separate sizings for embedding, inference and index placement, and your own model benchmark sets the inference count. ServerMania's tier descriptions run from one RTX 4090 at up to 1 million documents to six NVIDIA L4s at over 10 million.

Can embedding and inference share one GPU?

Yes, at small scale: ServerMania's Small tier lists one RTX 4090. A heavy document load slows answers on shared hardware, so its Medium tier gives embedding and the LLM their own L4s.

TL;DR: Size embedding, inference and index placement as three separate decisions. Start with whichever dominates your load: embedding and storage for large document sets with few queries, inference for heavy concurrent traffic. Published throughput figures vary by hardware and model, so benchmark your own before you convert load into a device count.

Why Private RAG Sizing Is Three Decisions

Ingest is where the compute goes first. EyeLevel, describing its own on-prem RAG builds, says ingest is often the most compute-intensive part of the deployment and that a single 200-page PDF can generate thousands of calls to OCR, layout-parsing and embedding models. That cost arrives when documents load, before any query runs. A single GPU pool puts it in competition with inference for the same hardware.

ComponentWhat drives its sizeHardware profile
Vector DBEmbedding count (chunks), dimension, precisionNVMe capacity, RAM
EmbeddingDocuments per day, chunk countGPU (or CPU at low volume)
InferencePeak concurrent queries, response-time targetGPU with high memory bandwidth
OrchestrationQuery volume, pipeline stagesCPU

Each row scales on a different input. Take 10 million indexed documents and 50 queries a day: the load sits on embedding and storage, and inference is a small part. Flip to 100,000 documents with heavy concurrent traffic and the split reverses. A single GPU pool cannot express either case.

Step 1: Size Embedding Throughput to Your Document Volume

Embedding throughput is a batch job: total chunks to embed, divided by the rate your hardware sustains, divided by the wall-clock time you can tolerate for initial ingest. ServerMania's benchmark measured roughly 50 to 100 embeddings per second on CPU only, against 500 to 800 per second on a T4-class GPU. Those figures come from its own deployment, so replace them with your own model's rate when you can.

Work the formula in five moves:

  1. Count documents and multiply by chunks per document.
  2. Multiply by any re-ingest passes you expect in the first year.
  3. Divide total chunks by your per-device rate. The result is device-seconds of work.
  4. Divide by your acceptable ingest window in seconds. The result is the number of devices.
  5. Round up to whole devices, adding one for headroom.

This counts embedding only. OCR and layout parsing for scanned or complex PDFs add CPU and GPU load of their own. EyeLevel reports that pipelines are commonly split into CPU-bound OCR and GPU-bound layout and embedding services.

Completion check: you can write down one number, embeddings per second of sustained ingest, and the device count that delivers it.

A plan sized on steady state alone misses the re-embedding cost. In our reading, any change of embedding model invalidates the whole index, because one index cannot mix embeddings from two models, so a switch re-triggers the full ingest. Size for the initial build plus steady state. Otherwise a model upgrade can force a second full ingest you never budgeted.

Step 2: Size Inference Concurrency to Your Query Volume

Inference sizing starts from peak concurrent queries per second and your response-time target. A fixed 'one GPU per N users' rule is a poor guide under continuous batching, where requests are processed token by token and a new request takes a GPU slot as soon as an older one finishes. Baseten describes this as the standard throughput technique in vLLM, TGI (dynamic batching) and TensorRT-LLM (in-flight batching). Concurrency per GPU therefore depends on how your serving stack batches.

Batching raises throughput, but do not assume it scales linearly, because decode is typically memory-bandwidth bound. A kog.ai benchmark relayed by Zettabyte measured roughly 60% memory bandwidth utilization (MBU) on a pair of H100-80GB GPUs at batch size 1, with MBU falling as batch size grows. That is one configuration, so read it as a reason to test where extra concurrency stops paying off on your hardware.

The sources we drew on supply no tokens-per-second figure for a named model at production batch size and response-time target, so benchmark your own model and batch size before converting queries per second into a GPU count. Agentic RAG that holds tool-call context across turns adds KV-cache growth as a further variable, which the steps here do not size.

Completion check: peak queries per second, tokens per second per GPU from your own benchmark, and the resulting inference GPU count.

Step 3: Decide Data Placement: NVMe vs Object Storage

Index placement starts with the latency budget. GPU Mart's storage planning figures put a dense vector index over 10 million 768-dimension float32 embeddings at roughly 30GB, with a BM25 sparse layer roughly doubling that footprint. At 10 million embeddings the capacity is modest, so latency is the tighter constraint.

Storage tierRandom-read latencyFit in a RAG stack
Local NVMeBaselineHot index and active shards
Object storageRoughly 10-100x higher for random readsCold originals, snapshots, backup

GPU Mart also notes that production RAG retrieval typically needs a sub-10ms response, which object storage rarely meets without a caching layer. The placement rule: hot index on NVMe, source documents and snapshots on object storage, with cross-site availability, backup and residency policy set at the level of your enterprise AI storage architecture.

The failure mode to plan for is the index outgrowing its NVMe budget. GPU Mart's figure counts embeddings, and each document produces one per chunk, so size the index from chunks. Index size scales roughly linearly with embedding count and dimension. Scaling the figure above, 100M embeddings at 768 dimensions come to about 300GB dense, and about 600GB if the sparse layer keeps the same doubling. Past whatever one device holds, sharding, quantization or a larger storage tier changes the bill of materials. Compute the NVMe requirement now, from your total chunk count times your worst-case growth factor.

Completion check: index size in GB, and the split between NVMe capacity and object storage capacity.

Reference Sizing Tiers for Private RAG

ServerMania publishes three illustrative tiers for private RAG deployments. Treat them as sanity checks on your own arithmetic. The right GPU count depends on your batch size and response-time target, which a table cannot know.

TierDocumentsQueries/dayHardware
SmallUp to 1M~1k1 CPU server + 1 mid-range GPU
Medium1-10M1k-10k2 CPU nodes + dedicated embed and inference GPUs
Large10M+10k-100k4 CPU nodes + multiple load-balanced GPUs

Worked Example: Sizing a Medium-Scale Private RAG Deployment

Assume a team with 5 million documents at about 20 chunks each, 5,000 queries a day, a 2-second response target and a one-day ingest window. The inputs are illustrative.

  1. Embedding. The method: documents times chunks per document, divided by the per-device embedding rate, divided by the ingest window. Total chunks: 5,000,000 x 20 = 100 million. Assume 600 embeddings per second on one T4-class GPU, inside ServerMania's 500 to 800 range. Ingest takes 100,000,000 ÷ 600 ≈ 166,667 seconds, about 46 hours on one GPU. Rounding up for a one-day window gives 2 GPUs, and one spare device for headroom makes 3. The extra device also shortens a re-embed after a model change.
  2. Inference. Assume a business-hours peak of 5 queries per second. The team benchmarks its own model and batch size, since no published figure substitutes for that. Assume the result is that one GPU sustains 5 queries per second within the 2-second target under continuous batching.
  3. Placement. The index holds one embedding per chunk, so 100 million embeddings at 768-dim float32. Scaling GPU Mart's 10M-embedding figure gives a dense index of around 300GB, or around 600GB with the BM25 layer if the doubling holds. That fits on a 1TB NVMe device with roughly 400GB spare. Source PDFs go to object storage.

The bill of materials: 3 embedding GPUs, 1 inference GPU, 1TB NVMe for the hot index, and object storage for originals. CPU nodes for orchestration and OCR are not sized here.

A Sizing Checklist Before You Procure

Write these five numbers down before submitting the request:

  1. Sustained ingest rate needed (embeddings per second).
  2. Embedding device count, CPU or GPU.
  3. Peak concurrent queries per second.
  4. Inference GPU count, from your own model benchmark.
  5. Index size in GB, split between NVMe and object storage.

If the deployment is already live and throughput misses these estimates, diagnosing the bottleneck is a separate job, covered in GPU inference throughput troubleshooting.

Disclosure: Zettabyte publishes this guide and also offers zDATA, for enterprise storage tiering, and zCLOUD, for renting inference GPUs rather than buying them. Judge any option, ours included, against the same checks: retrieval from the hot index within your latency budget (GPU Mart puts typical production RAG retrieval at sub-10ms), and an inference GPU count that matches your own benchmark. Neither product is benchmarked or sized here.

FAQ

How many GPUs does a private RAG deployment need?

No single number: embedding, inference and index placement are sized separately. ServerMania's tiers run from one mid-range GPU (up to 1M documents) to multiple load-balanced GPUs (10M+), but your own inference benchmark sets the count.

Can embedding and inference share one GPU?

Yes at small scale: ServerMania's Small tier lists one mid-range GPU. But ingest peaks at document load and inference at query peak, so a heavy ingest run can slow answers. Its Medium tier uses dedicated GPUs for each.