Useful numbers. The 40 to 45 second wait on a 720-token prompt makes prompt processing look like the real bottleneck, so it may be worth testing a stable system prefix. Ollama and llama.cpp can reuse the KV cache for an identical prefix between requests, which should shrink repeated long system prompts a lot as long as the model stays loaded and the prefix is byte-identical. I'm also curious whether the dedicated versus shared gap is the same for prompt processing, which is compute-bound, as for generation, which is mostly memory-bandwidth-bound. Reporting those two timings separately per server might make the plan choice clearer.
Good points, thanks. Both timings are in the results per server, and the gap is not the same. On 4 cores, dedicated was about 2.1 to 2.3x faster at generation but only about 1.2 to 1.3x faster at prompt processing (llama3.2:3b 34 vs 41 tokens/s, llama3.1:8b 13 vs 17). Going from 2 to 4 shared vCPUs roughly doubled prompt processing, so for reading input the core count mattered more than dedicated vs shared.
On caching: the bench gives every run a unique prefix on purpose, so these are cold numbers. With a byte-identical system prompt and the model kept loaded (OLLAMA_KEEP_ALIVE), only the new part of the prompt gets processed, which is the easiest win for a chat bot on CPU. A warm-prefix run is a good addition for the next round.
Thanks, that split is useful: prompt processing scaling with core count more than dedicated vs shared fits it being compute-bound. For the warm-prefix round, reporting time-to-first-token separately from tokens/s, with and without a cache hit, would show the benefit most clearly, and so would varying the prefix length.
AI Developer
Useful numbers. The 40 to 45 second wait on a 720-token prompt makes prompt processing look like the real bottleneck, so it may be worth testing a stable system prefix. Ollama and llama.cpp can reuse the KV cache for an identical prefix between requests, which should shrink repeated long system prompts a lot as long as the model stays loaded and the prefix is byte-identical. I'm also curious whether the dedicated versus shared gap is the same for prompt processing, which is compute-bound, as for generation, which is mostly memory-bandwidth-bound. Reporting those two timings separately per server might make the plan choice clearer.