Koboldcpp does support multiple GPUs but primarily uses pipeline parallelism rather than tensor parallelism. Based on the search results, here's what we know about koboldcpp's GPU parallelization capabilities:
Koboldcpp allows for multi-GPU setups with two main splitting strategies:
-
Pipeline Parallelism: This is the primary method koboldcpp uses for distributing work across multiple GPUs. According to the GitHub issue discussion, koboldcpp sets the number of copies to 2 by default when using parallel mode, but this was later updated to default to 4 copies (similar to llama.cpp)[1].
-
Row and Layer Split Options: The koboldcpp wiki mentions that for multi-GPU setups, users can control how tensors are divided between GPUs:
- "This only affects multi-GPU setups, and controls how the tensors are divided between your GPUs. The best way to gauge performance is to try both, but generally layer split should be best overall, while row split can help some older cards."[3]
However, true tensor parallelism (as defined in distributed deep learning) isn't explicitly mentioned as a feature. Tensor parallelism typically involves splitting individual weights across devices, with specific communication patterns to ensure correct computation, as described in the AWS documentation and other resources[5][7][8][10].
Users have reported mixed experiences with multi-GPU setups in koboldcpp:
- Some observed that when using multiple GPUs, performance was best with two GPUs rather than more[1]
- Others reported GGUF files running slowly when using multiple GPUs compared to single GPU setups[2]
- One user noted: "I think GGUF don't like multiple GPUs"[2]
The koboldcpp documentation recommends determining "the optimal layer fit through trial and error for best results" as the automatic guessing of how many layers to offload "doesn't work accurately for multi-gpu setups"[3].
In summary, while koboldcpp supports multi-GPU configurations with options for how to split tensors between GPUs, it doesn't specifically implement or advertise tensor parallelism as a named feature in the way frameworks like PyTorch or specialized inference engines do.