Sphere
Log in Join
☆ 5

text-generation-webui vs llama.cpp server speed gap

on the same 3090 and same GGUF (qwen2.5-14b q5_K_M) text-gen-webui with llama.cpp backend gives me ~28 tok/s but llama.cpp server binary gives ~41 tok/s. why the gap? both show 43 gpu layers offloaded. is the webui doing something extra per token?

⚑ Report

4 replies

☆ 0
S soggy ·2026-10-25#1

webui has more overhead in the python layer and it's often running an older llama.cpp binding. check the llama.cpp version inside text-gen-webui vs your standalone binary. also streaming through the webui adds a hop.

⚑ Report
☆ 0
Y yaml91 ·2026-10-25#2

standalone is b4610, webui shows llama-cpp-python 0.2.79 from march. that's probably it. can i upgrade the binding in the webui without breaking everything?

⚑ Report
☆ 0
P plastic ·2026-11-01#3

yes but it's fiddly, pip install --upgrade --force-reinstall llama-cpp-python==0.3.1 then restart. sometimes the webui loader expects old API. easier to just use the standalone server for inference and keep webui only for the UI you need.

⚑ Report
☆ 0
R regex ·2026-11-07#4

upgraded the binding to 0.3.1, got ~37 tok/s in webui, almost standalone. the rest is streaming overhead i guess. not worth chasing the last 4 tok/s, i use the standalone for anything latency sensitive.

⚑ Report
Log in to reply.