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.
| Tier | Typical stack | GPU memory to plan for | Candidate GPUs |
|---|---|---|---|
| Embedding and reranking only | 0.6B to 8B embedder plus reranker | 4 to 24 GB | T4, L4, A10, RTX 4090 |
| Small self-hosted RAG | 8B generator plus small embedder | 24 to 48 GB | RTX 4090, RTX 5090, L40S |
| Mid-size RAG | 30B-class generator or long contexts | 48 to 80 GB | L40S, A100 80GB, H100 |
| Large RAG | 70B-class generator | About 140 GB in BF16, about 70 GB in FP8 | 2x 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.
| GPU | Memory | Bandwidth | Relevant features | Best for |
|---|---|---|---|---|
| T4 | 16 GB GDDR6 | 320+ GB/s | 70 W, INT8 | Small embedders and rerankers |
| L4 | 24 GB | 300 GB/s | 72 W, FP8 | Embedding and reranking services |
| A10 | 24 GB GDDR6 | 600 GB/s | 150 W | Embedder plus small generator |
| RTX 4090 | 24 GB GDDR6X | 1,008 GB/s | Consumer card | 8B generator for internal tools |
| L40S | 48 GB GDDR6 ECC | 864 GB/s | FP8, no NVLink | 8B to 30B generator with long prompts |
| A100 80GB | 80 GB HBM2e | 2,039 GB/s | MIG up to 7, NVLink | Mid-size generator, shared embedder |
| H100 SXM | 80 GB HBM3 | 3.35 TB/s | FP8, MIG up to 7, NVLink | 70B in FP8, high-concurrency serving |
| H200 | 141 GB HBM3e | 4.8 TB/s | FP8, NVLink | 70B 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.
| Embedder | Parameters | BF16 weights (approx.) | Vector size | Fits on |
|---|---|---|---|---|
| Qwen3-Embedding-0.6B | 0.6B | 1.2 GB | 1,024 | T4 or L4 with room for a reranker |
| BGE-M3 | Not stated on card | Small | 1,024 | T4 or L4 |
| Qwen3-Embedding-4B | 4B | 8 GB | 2,560 | L4, A10 |
| Qwen3-Embedding-8B | 8B | 16 GB | 4,096 | L4 or A10 with tight headroom, L40S |
References: Qwen3-Embedding-8B model card · BAAI bge-m3 model card · Hugging Face Text Embeddings Inference

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.
| Component | Assumed GPU-hour price | Assumed queries per second | Cost per 1,000 queries |
|---|---|---|---|
| Embedder and reranker on one 24 GB card | $0.60 | 40 | About $0.004 |
| 8B generator on one 48 GB card | $1.00 | 4 | About $0.069 |
| 70B generator on two 80 GB GPUs | $5.00 (2 x $2.50) | 3 | About $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.
| If | Then |
|---|---|
| You only need embeddings or reranking | L4 or T4; scale out with more cards |
| Generator is 8B or smaller | One 24 to 48 GB card hosts the whole stack |
| Prompts carry many long chunks | Move up a memory tier for KV cache before adding GPUs |
| Generator is 70B-class | H200, two H100s, or FP8 on one H100 |
| Nightly re-index of a large corpus | Separate 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
| GPU | Memory | Data center | Value |
|---|---|---|---|
| RTX 4090 | 24 GB | $0.46 | $0.40 |
| L40S | 48 GB | $1.26 | $0.54 |
| A100 | 80 GB | $1.56 | $0.98 |
| H100 | 80 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
- Qwen3-Embedding-8B model card
- BAAI bge-m3 model card
- 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
- Hugging Face Text Embeddings Inference
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.
Need this GPU? Rent it from NeuraMesh: choose a GPU and plan, get a confirmed quotation, and pay only when you approve. See pricing.


