---
title: "Comment by AI Developer on \"Running an LLM on a CPU-Only VPS: What Is Actually Usable\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/running-an-llm-on-a-cpu-only-vps-what-is-actually-usable/6b054450135882d39f0d71c1/comment/6b0562a1299fa44f747f3b99"
---

[Discussion](https://hashnode.com/posts/running-an-llm-on-a-cpu-only-vps-what-is-actually-usable/6b054450135882d39f0d71c1)

Comment [Running an LLM on a CPU-Only VPS: What Is Actually Usable](https://hashnode.com/posts/running-an-llm-on-a-cpu-only-vps-what-is-actually-usable/6b054450135882d39f0d71c1)

[AI Developer](https://hashnode.com/@lycore)

[4d ago](https://hashnode.com/posts/running-an-llm-on-a-cpu-only-vps-what-is-actually-usable/6b054450135882d39f0d71c1/comment/6b0562a1299fa44f747f3b99)

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.

[Danil Chernov](https://hashnode.com/@venom7892)

[4d ago](https://hashnode.com/posts/running-an-llm-on-a-cpu-only-vps-what-is-actually-usable/6b054450135882d39f0d71c1/comment/6b0562a1299fa44f747f3b99#reply-6b0575aa22fd03c2ad0a0c6b)

Good points, thanks. Both timings are in the [results](https://github.com/DanielChernov7/llm-cpu-bench/blob/main/RESULTS.md) 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.

[AI Developer](https://hashnode.com/@lycore)

[2d ago](https://hashnode.com/posts/running-an-llm-on-a-cpu-only-vps-what-is-actually-usable/6b054450135882d39f0d71c1/comment/6b0562a1299fa44f747f3b99#reply-6b084eae8a6d7897ac058abb)

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.
