From dbbc0d600eca32214b4556b4c638dcd3c88df188 Mon Sep 17 00:00:00 2001 From: benoit lange Date: Sat, 3 Oct 2026 20:54:02 +0200 Subject: [PATCH] Layer split comment: KV streaming and images do run across a split Reported on 2 x TITAN RTX (split 25, KV streaming, GPU image encoder, parking, --batch 4 --batch-groups 2). --- src/program/generate.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/program/generate.cpp b/src/program/generate.cpp index 99e1e8a8..83d853e6 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -1365,9 +1365,10 @@ int main(int argc, char** argv) { o.prompt_cache == 0 ? "--prompt-cache 0" : "--conversation-cache-slots 0"); // parking with --layer-split saves every stage (SavedConversation::stage_images) // Layer split (multi-GPU): the later stages run layers [K_i, K_i+1) on their own GPUs (--split-device, default - // the next visible ones); "auto" places the K from each GPU's free VRAM once the weights are in (below). Across - // GPUs, not yet: KV streaming, images, control vectors, the helper caches (--expert-cache-remote), and lending - // cache slots to the prompt path (each stage's prompt path has its own buffers). + // the next visible ones); "auto" places the K from each GPU's free VRAM once the weights are in (below). KV + // streaming and images (the server's GPU encoder) run across a split, also with parking and --batch. Across + // GPUs, not yet: control vectors, the helper caches (--expert-cache-remote), and lending cache slots to the + // prompt path (each stage's prompt path has its own buffers). // --pcie-frac given: that one share is every stage's (the stages' own link probes are skipped), so a split over // a fast and a slow link cannot set the two apart from the command line (#485) const bool pcie_given = o.pcie_frac >= 0.0;