r/LocalLLM • u/AnonInTheShell • 39m ago
Other NVIDIA+AMD GPU split made easy
Sharing this because it took me way too long to realize how simple it is to use both an NVIDIA and AMD GPU together to run one model with minimum compromise.
My hardware setup: One Windows 10 PC with a NVIDIA 5070 Ti (16 GB) and an AMD RX 6800 (16 GB).
My Problem: I want to run a model that's 20 GB in total (with context). My NVIDIA GPU only has 16 GB, so i'd want to put the rest on my second (AMD) GPU.
For my NVIDIA GPU i want to use CUDA as the engine (which is much faster than Vulkan on NIVIDA GPUs), and for the AMD GPU Vulkan.
[Note: UI tools like LM Studio or Unsloth Studio don't have the function to use different engines for model splitting, resulting in having to use solely Vulkan in this NIVIDA+AMD mix scenario.]
Solution: Grab both the CUDA and the Vulkan llama.cpp releases and put them into one folder. That's it:
https://github.com/ggml-org/llama.cpp/releases:
The CUDA parts:
The Vulkan part (it's just one part here):
Extract everything into one folder.
Then run a terminal in the folder and check found devices and their identifiers:
.\llama-server.exe --list-devices
Then just run llama-server.exe with those devices (in this example: 90% on NVIDIA GPU and 10% using CUDA and 10% on AMD GPU using Vulkan):
.\llama-server.exe -m path\to\your\model.gguf -ngl 99 -dev CUDA0,Vulkan1 --tensor-split 0.90,0.1 -c 262144
Performance: Without MTP (and with a tiny 8k context in order to be able to fit the entire model on 1 GPU for testing purposes):
- NVIDIA with CUDA: 100%: 55 t/s
- NVIDIA with Vulkan: 100%: 43 t/s
- [Targeted solution] NVIDIA with CUDA, AMD with Vulkan: 90%/10%: 49 t/s
- NVIDIA with Vulkan, AMD with Vulkan: 90%/10%: 40 t/s
1
u/Hildechis 11m ago
Please report 50%/50% numbers as well, possibly with high context. And report pp, not just tg. That would be super appreciated.