Choosing a GPU

Best GPU for RAG: embedder, reranker, LLM

The best GPU for RAG is set by the generator, not the embedder. Embedding and reranker models of 0.6B to 8B parameters fit on a 24 GB L4, A10 or RTX 4090. An 8B generator fits the same tier or an L40S. A 70B generator needs about 140 GB in BF16, so plan for two H100s, one H200, or FP8 on an 80 GB card.

Documents flowing through three GPU blocks of different sizes toward a chat window
A RAG stack runs three models; the generator needs the largest GPU, the embedder and reranker the smallest. AI-generated illustration.

Short answer: the best GPU for RAG by tier

A retrieval augmented generation system runs up to three models: an embedding model that turns documents and queries into vectors, an optional reranker that rescores the top candidates, and a generator LLM that writes the answer from the retrieved text. Vector search itself often runs on CPU memory. Each model can sit on its own GPU or share one.

The generator is usually the largest model and holds the most memory, because retrieved chunks make every prompt long. Size the embedder and reranker after you have placed the generator.

Short answer: the best GPU for RAG by tier
TierTypical stackGPU memory to plan forCandidate GPUs
Embedding and reranking only0.6B to 8B embedder plus reranker4 to 24 GBT4, L4, A10, RTX 4090
Small self-hosted RAG8B generator plus small embedder24 to 48 GBRTX 4090, RTX 5090, L40S
Mid-size RAG30B-class generator or long contexts48 to 80 GBL40S, A100 80GB, H100
Large RAG70B-class generatorAbout 140 GB in BF16, about 70 GB in FP82x H100, 1x H200, or 1x H100 with FP8

References: Qwen3-Embedding-8B model card · BAAI bge-m3 model card

Candidate GPUs for a RAG stack

These specifications come from NVIDIA product pages. Memory bandwidth matters most for the generator, because each new token reads the model weights. Embedding and reranking are batch jobs over short inputs, so they run well on lower-bandwidth inference cards.

The T4 and L4 draw about 70 W and are the low-cost choice for embedding services. The A10 doubles the L4 bandwidth at 150 W. The L40S adds 48 GB for an 8B to 30B generator. The A100, H100 and H200 carry HBM and support MIG, which lets you split one GPU between a small embedder and other jobs.

Candidate GPUs for a RAG stack
GPUMemoryBandwidthRelevant featuresBest for
T416 GB GDDR6320+ GB/s70 W, INT8Small embedders and rerankers
L424 GB300 GB/s72 W, FP8Embedding and reranking services
A1024 GB GDDR6600 GB/s150 WEmbedder plus small generator
RTX 409024 GB GDDR6X1,008 GB/sConsumer card8B generator for internal tools
L40S48 GB GDDR6 ECC864 GB/sFP8, no NVLink8B to 30B generator with long prompts
A100 80GB80 GB HBM2e2,039 GB/sMIG up to 7, NVLinkMid-size generator, shared embedder
H100 SXM80 GB HBM33.35 TB/sFP8, MIG up to 7, NVLink70B in FP8, high-concurrency serving
H200141 GB HBM3e4.8 TB/sFP8, NVLink70B in BF16 on one GPU

References: NVIDIA T4 Tensor Core GPU · NVIDIA L4 Tensor Core GPU · NVIDIA A10 Tensor Core GPU · NVIDIA GeForce RTX 4090 specifications · NVIDIA L40S specifications · NVIDIA A100 specifications · NVIDIA H100 specifications · NVIDIA H200 specifications

Size the embedding model

Weights in BF16 take about 2 bytes per parameter. The Qwen3 Embedding series comes in 0.6B, 4B and 8B sizes with 32K sequence length and embedding dimensions of 1,024, 2,560 and 4,096, so the weights are about 1.2 GB, 8 GB and 16 GB. BGE-M3 handles inputs up to 8,192 tokens, outputs 1,024 dimensions, and supports dense, sparse and multi-vector retrieval in one model.

Embedding work comes in two shapes. Indexing a corpus is a one-time or nightly batch job, where throughput per dollar matters. Query embedding is a small, latency-sensitive request on every user question. Hugging Face Text Embeddings Inference serves both with token-based dynamic batching and has images for Turing, Ampere, Ada and Hopper GPUs, with Blackwell images marked experimental.

Also size the vectors, which usually live in CPU memory or a vector database. Ten million chunks at 1,024 dimensions in float32 take about 41 GB; at 4,096 dimensions they take about 164 GB. Models that support Matryoshka (MRL) embeddings, such as Qwen3 Embedding, can be truncated to fewer dimensions to cut that.

Size the embedding model
EmbedderParametersBF16 weights (approx.)Vector sizeFits on
Qwen3-Embedding-0.6B0.6B1.2 GB1,024T4 or L4 with room for a reranker
BGE-M3Not stated on cardSmall1,024T4 or L4
Qwen3-Embedding-4B4B8 GB2,560L4, A10
Qwen3-Embedding-8B8B16 GB4,096L4 or A10 with tight headroom, L40S

References: Qwen3-Embedding-8B model card · BAAI bge-m3 model card · Hugging Face Text Embeddings Inference

Rows of small colored cubes stored on shelves next to a compact GPU card
Embedding weights are small, but the vectors they produce can need tens of gigabytes of host memory. AI-generated illustration.

Size the reranker

A reranker is a cross-encoder: it reads the query and each candidate passage together and outputs a relevance score. Its cost scales with candidates per query times passage length, so reranking the top 50 chunks costs roughly five times reranking the top 10.

Qwen3 Reranker models come in the same 0.6B, 4B and 8B sizes as the embedders, with 32K sequence length. Text Embeddings Inference exposes rerankers through a /rerank endpoint, so one small GPU can host both the query embedder and the reranker. Start with the smallest reranker and measure retrieval quality before moving up a size.

References: Qwen3-Embedding-8B model card · Hugging Face Text Embeddings Inference

Size the generator LLM

The generator needs memory for weights plus a KV cache that grows with context length and the number of concurrent requests. RAG prompts are long by design, because each one carries several retrieved chunks, so the KV cache and the prefill time grow faster than in plain chat. Work through the arithmetic in the LLM VRAM budget guide or the VRAM calculator.

Weights alone: an 8B model is about 16 GB in BF16 and a 70B model about 140 GB, or about 70 GB in FP8. That puts a 70B BF16 generator on an H200 with 141 GB only with a tight cache budget, or across two 80 GB GPUs with tensor parallelism. Quantization lowers the bar further, with the quality checks covered in LLM quantization for inference.

References: NVIDIA H100 specifications · NVIDIA H200 specifications

Cost per answered query: illustrative numbers

Price RAG per answered query. Queries per hour equals measured queries per second times 3,600; cost per 1,000 queries equals the hourly price divided by queries per hour, times 1,000. Add each GPU in the stack.

The rows below use assumed prices and assumed throughput, not benchmarks. They show the pattern: the embedder and reranker add a small share, and the generator sets most of the bill. If the generator GPU sits idle between bursts, your real cost per query rises, which GPU-hour cost explained covers.

Cost per answered query: illustrative numbers
ComponentAssumed GPU-hour priceAssumed queries per secondCost per 1,000 queries
Embedder and reranker on one 24 GB card$0.6040About $0.004
8B generator on one 48 GB card$1.004About $0.069
70B generator on two 80 GB GPUs$5.00 (2 x $2.50)3About $0.46

Decision rules for RAG hardware

Place the generator first, then fit the embedder and reranker around it. If the generator leaves 4 to 16 GB free, run the small models on the same GPU. If your corpus re-indexing competes with live queries, move embedding to its own small GPU so a batch job does not slow answers.

Decision rules for RAG hardware
IfThen
You only need embeddings or rerankingL4 or T4; scale out with more cards
Generator is 8B or smallerOne 24 to 48 GB card hosts the whole stack
Prompts carry many long chunksMove up a memory tier for KV cache before adding GPUs
Generator is 70B-classH200, two H100s, or FP8 on one H100
Nightly re-index of a large corpusSeparate batch GPU, sized for throughput per dollar

References: Hugging Face Text Embeddings Inference · Qwen3-Embedding-8B model card

What to test first

Build a test set of 100 to 200 real questions with known good passages. Measure retrieval recall at your chosen top-k, then measure end-to-end latency and answer quality. Try a smaller reranker and a shorter top-k before buying a bigger generator GPU; fewer, better chunks shrink every prompt.

Then load-test at your expected concurrency and record time to first token, queries per second and peak memory. The method in benchmark LLM inference applies to the generator unchanged.

References: Hugging Face Text Embeddings Inference

Checklist and next step

Choose the generator size and precision. Estimate weights plus KV cache at your prompt length. Pick an embedder and note its vector size. Start with the smallest reranker. Decide whether embedding shares the generator GPU. Test recall, latency and cost per 1,000 queries.

Then rent the GPUs that match. NeuraMesh rents cloud GPUs by the hour: choose a GPU, a plan, GPU count, hours and region on rent GPUs, and you receive a confirmed quotation, typically within one business day, with nothing charged until you approve. For a sizing second opinion, ask the compute advisor.

NeuraMesh prices for these GPUs

NeuraMesh prices per GPU-hour in USD, excluding taxes, as of 2026-11-27. Live prices are on the rental pages.
GPUMemoryData centerValue
RTX 409024 GB$0.46$0.40
L40S48 GB$1.26$0.54
A10080 GB$1.56$0.98
H10080 GB$2.88$2.00

Every order is confirmed in a quotation before you pay. See all GPU prices.

Questions readers ask

What is the best GPU for RAG on a small budget?

A single 24 GB card such as an L4, A10 or RTX 4090 can host a small embedder, a reranker and an 8B generator with modest context lengths. Measure peak memory at your real prompt length before you commit.

Do embedding models need a GPU?

Not always. Text Embeddings Inference ships CPU images, and small embedders run on CPU for low query volumes. A GPU pays off when you index large corpora or serve many queries per second.

How much VRAM does an embedding model need?

Roughly 2 bytes per parameter in BF16 plus working memory for batches. Qwen3-Embedding-0.6B is about 1.2 GB of weights, the 4B about 8 GB and the 8B about 16 GB.

Should the reranker run on the same GPU as the LLM?

It can if memory allows. A small reranker adds little memory, but it competes for compute during traffic spikes. Split them when reranking latency starts to delay time to first token.

Where are vectors stored in a RAG system?

Usually in CPU memory or a vector database, not on the GPU. Ten million 1,024-dimension float32 vectors take about 41 GB, so size host RAM or database storage for them.

Sources and editorial notes

Primary documentation reviewed November 24, 2026. Provider descriptions reflect published documentation. Recommendations are our analysis; worked figures are illustrative unless explicitly stated otherwise. No independent provider benchmark or uptime ranking is claimed.

Read the editorial policy.

Need this GPU? Rent it from NeuraMesh: choose a GPU and plan, get a confirmed quotation, and pay only when you approve. See pricing.