Ollama Thread Tuning on CPU: Measuring Where More Threads Stop Helping Token Generation (2026)
You follow the usual advice: the local model server is using all your cores, so you pin the thread count to the number of cores and expect token generation to speed up. On a 2-vCPU box the opposite happens. The same 66-token prompt that produced 55 tokens in about 4.5 seconds with one thread took 109 seconds with four, and two later requests at that setting, bounded at 90 seconds in the second window, never returned at all. Both completed requests returned HTTP 200 with an ordinary response body; nothing in them announced that the setting was wrong. ...