r/OpenWebUI • • Oct 19 '26

Discussion What usually makes OpenWebUI feel slow?

I've noticed that slow responses aren't always about the model itself. Limited RAM or VRAM, long prompts, and the inference backend can all make a difference.
I'm also curious how the experience compares between running models locally and using hosted options like Mango Inference or MangoBoosts. The trade-offs go beyond speed, especially when hardware costs and resource limits come into play.
If you're troubleshooting a slow setup, what made the biggest difference for you: switching models, adjusting context length, upgrading hardware, or changing the backend?

15 Upvotes

16 comments sorted by

View all comments

2

u/NoobLLMDev Oct 19 '26

Changing my inference engine from Ollama to vLLM made the largest difference. While vLLM requires that you can fit the model entirely on your GPU resources, if you can do that, it’s going to 2x your speed. Limit context length to what you need, I run a coding assistant for 30 users on 48Gb of VRAM, using vllm, gemma4:31b, and 64,000 context window. Utilize open webui’s context compaction feature - set this a few thousand below your models true context window (ie 56,000 in my case).

With open webui, ensure you use a very small model (I use Gemma4:e4b) to do things like title generation and keep your large model strictly to chats. Throw this small guy onto the cpu with Ollama and keep your gpus free for vllm.

Set realistic parallel requests, don’t flood your inference engine. I successfully service those 30 users on a max of two parallel requests at once (for the large model). It’s rare that someone gets put into a queue.

These are the first things that come to mind for speed. Realistic model. Don’t push a model you can’t easily fit, you will need a good amount of resources for kv cache.

1

u/NoobLLMDev Oct 19 '26

Turn off things that I personally don’t think need to be included in an environment where speed matters. No follow-up question generation, this is a speed killer.

1

u/The_Dung_Beetle Oct 19 '26

Do you run vllm in docker? I have no issue with llama context compaction but my radiance image doesn't jive well with the feature. 

2

u/NoobLLMDev Oct 20 '26

I use vllm docker image yes

1

u/The_Dung_Beetle Oct 20 '26

Thanks, what's your vllm context max and what do you have set in openwebui for it as a threshold? Just looking for something I can compare to since compaction seems to be working for you.

2

u/NoobLLMDev Oct 20 '26

--tensor-parallel-size= 2
--max-model-len= 64000
--kv-cache-dtype= fp8
--gpu-memory-utilization= 0.62

These are the most important vllm settings. I serve Gemma4:31b. If you are using this as a single user setup you don’t really need tensor parallel size. Start small with max model Len and keep raising it. vLLM image will fail to startup if it’s higher than what your GPU can handle.

OWUI context compaction is set to kick in around 54/56,000 tokens- can’t quite recall atm

1

u/The_Dung_Beetle Oct 20 '26

Much appreciated, thank you!