llama.cpp
aadb3300 - llama : reuse backend scheduler when sched_params are compatible

Commit
22 days ago
llama : reuse backend scheduler when sched_params are compatible Wrap the scheduler creation parameters (max_nodes, parallel, op_offload) in a llama_context::sched_params helper. When a new reserve requests a worst-case graph that fits within the current scheduler (max_nodes <= the one used at its creation) and the scheduling behavior is unchanged, skip the scheduler reset. This avoids deallocating and reallocating the scheduler buffers - and the reserved compute buffers - on reserve requests triggered by toggles such as setting/unsetting LoRA adapters, backend samplers and the embeddings flag. Assisted-by: dsh:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GGUF (MacBook, M5 Max, 128GB)
Author
Committer
Parents
Loading