llama.cpp Dual-GPU 32B: Two Cards, One VRAM Pool
Ollama is the fastest way in; llama.cpp is the more controllable way. Once Ollama runs, the next step is using llama.cpp to pool two cards and run 32B: the model file, the context size, and how many layers go to the GPU are all yours to set.
Two cards pool their VRAM: an RTX 2060 12G + RTX 3080 combine into 22–24GB under llama.cpp, and a Q4 quant of Qwen3-32B is about 19GB — it just fits.
One command to run it
llama-server -m Qwen3-32B-Q4_K_M.gguf -c 8192 -ngl 99 --port 8080
-m is the model file (GGUF format, usually downloaded from Hugging Face); -c 8192 sets an 8K-token context; -ngl 99 offloads all layers to the GPUs; --port 8080 is the service port.
Once it is running, open http://your-server-ip:8080 in a browser to see the service; you can also call it through its API or connect a chat interface to it.
Checks before you run
- Both cards must be detected: nvidia-smi should show the 2060 and the 3080.
- Card not detected → enable Above 4G Decoding in the BIOS.
- Do not max out the context on the first try: a 32B model with 8K context uses about 23GB of VRAM, and 40K context needs about 31.6GB — once VRAM runs out it spills into system memory and speed falls off a cliff.
Expected speed
Dual-card Qwen3 32B should run at roughly 15–25 tokens/s (estimate — to be replaced with measurements from the first node). Once this works, the next step is extending the same setup to five-node RPC distributed inference (see this site's distributed post).
Estimates and how-to above; this site will verify each one with measurements. Data as of: 2026-11-24.

Comments
Post a Comment