Files
llama.cpp/src
LumpiastyandClaude Opus 5.5 bbc64ca1c5 ggml-backend: copy the host weights of the next split while the current split computes (expert lookahead)
With experts in host memory every host-weight MUL_MAT_ID starts its own
split, and with one GPU the sched synchronizes before every expert copy,
so upload and compute strictly alternate. A split whose inputs are all
host weights, on the backend of the previous split, now gets its copies
allocated before the previous split (so they share no memory with it)
and issued right after the previous split is submitted. The copies wait
on a backend event recorded before the previous split, i.e. for the
splits whose memory they may reuse. On Vulkan with the transfer queue the
upload then runs on the SDMA queue while the compute queue works.

Knob: GGML_SCHED_EXPERT_LOOKAHEAD=0 restores upstream behaviour. Off
with the MoE cache (the copy callback writes the cache banks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PZz44SLQvTXMyWGio6t9DZ
2026-11-23 16:20:14 +01:00
..
2026-11-12 20:59:09 +02:00
2026-11-12 20:59:09 +02:00