RTX 3050 - Order Now
Home / Blog / AI Hosting & Infrastructure / Splitting Embedding and LLM Across Two GPUs
AI Hosting & Infrastructure

Splitting Embedding and LLM Across Two GPUs

In a RAG stack the embedder and the LLM compete for VRAM and compute. Putting them on different cards solves several problems at once.

A typical RAG deployment on dedicated GPU hosting runs an embedding model for retrieval, a reranker for filtering, and an LLM for generation. Putting all three on one GPU is common and usually wrong. Splitting the embedder (and reranker) onto a separate card from the LLM is one of the highest-impact architecture moves you can make.

Topics

Why Colocation Hurts

Three problems arise when embedder and LLM share a card:

  • VRAM contention. LLM KV cache fills dynamically; embedder weights are fixed. Spikes in LLM concurrency can push the embedder out.
  • Scheduler contention. vLLM and a separate embedding server compete for CUDA kernels on the same device.
  • Failure coupling. If the LLM serving process crashes, the embedder is affected.

The Split

Card 0: LLM serving (vLLM on a 7-70B model). Card 1: embedder and reranker. Two HTTP endpoints. The application orchestrates the pipeline. Each card is independent and isolated.

Right-Sizing

The LLM needs the big card. The embedder card can be small – a 4060 Ti 16GB happily hosts BGE-M3 (2 GB), a cross-encoder reranker (1-2 GB), and a BM25-to-embedding re-rank with room for batching. Pairing a 5090 for the LLM with a 4060 Ti for embedding covers almost any RAG stack.

RoleSuggested CardCapacity
LLM (13B class)RTX 5080 or 309016-24 GB
LLM (70B class)RTX 5090 or 6000 Pro32-96 GB
Embedder + rerankerRTX 4060 Ti 16GBPlenty of room
Embedder onlyRTX 4060 8GBTight but works

Right Card for Each Role

Mixed GPU chassis on UK dedicated hosting with one tuned per-workload configuration.

Browse GPU Servers

Configuration

The embedder runs via Text Embeddings Inference (TEI) or a simple FastAPI wrapper around sentence-transformers. Bind it to GPU 1 with CUDA_VISIBLE_DEVICES=1. vLLM on GPU 0 via CUDA_VISIBLE_DEVICES=0. Your application layer calls one endpoint then the other.

Latency implication: the embedder typically adds 20-50 ms to a request. Not a problem unless your total budget is under 200 ms. The reduced contention usually saves more latency than the network hop costs.

See heterogeneous multi-GPU workload split and BGE-M3 self-hosted for specifics.

Need a Dedicated GPU Server?

Deploy from RTX 3050 to RTX 5090. Full root access, NVMe storage, 1Gbps — UK datacenter.

Browse GPU Servers

gigagpu

We benchmark, deploy, and optimise GPU infrastructure for AI workloads. All data in our guides comes from real-world testing on our UK-based dedicated GPU servers.

Ready to deploy your AI workload?

Dedicated GPU servers from our UK datacenter. NVMe storage, 1Gbps networking, full root access.

Browse GPU Servers Contact Sales

Have a question? Need help?