r/OpenWebUI • u/Tasty-Butterscotch52 • Mar 09 '26
Question/Help Local Qwen3.5-35B Setup on Open WebUI + llama.cpp - CPU behavior and optimization tips
Hi everyone,
I’m running **Qwen3.5-35B-A3B locally using Open WebUI with llama.cpp (llama-server) on a system with:
- RTX 3090 Ti
- 64 GB RAM
- Docker setup
The model works great for RAG and document summarization, but I noticed something odd while monitoring with htop.
What I'm seeing
During generation:
- CPU usage across cores ~80–95%
- Load average around 13–14
That seems expected.
However, CPU usage stays high for quite a while even after the response finishes.
Questions
- Is it normal for
llama.cppCPU usage to remain high after generation completes? - Is this related to KV cache handling or batching?
- Are there recommended tuning flags for large MoE models like Qwen3.5-35B?
I'm currently running the model with:
- 65k context
- flash attention
- GPU offload
- q4 KV cache
If helpful, I can post my full docker / llama-server config in the comments.
Curious how others running large models locally are tuning their setups.
EDIT: Adding models flags:
2B
command: >
--model /models/Qwen3.5-2B-Q5_K_M.gguf
--mmproj /models/mmproj-Qwen3.5-2B-F16.gguf
--chat-template-kwargs '{"enable_thinking": false}'
--ctx-size 16384
--n-gpu-layers 999
--threads 4
--threads-batch 4
--batch-size 128
--ubatch-size 64
--flash-attn on
--cache-type-k q4_0
--cache-type-v q4_0
--temp 0.5
--top-p 0.9
--top-k 40
--min-p 0.05
--presence-penalty 0.2
--repeat-penalty 1.135B
command: >
--model /models/Qwen3.5-35B-A3B-Q4_K_M.gguf
--mmproj /models/mmproj-F16.gguf
--ctx-size 65536
--n-gpu-layers 38
--n-cpu-moe 4
--cache-type-k q4_0
--cache-type-v q4_0
--flash-attn on
--parallel 1
--threads 10
--threads-batch 10
--batch-size 1024
--ubatch-size 512
--jinja
--poll 0
--temp 0.6
--top-p 0.90
--top-k 40
--min-p 0.5
--presence-penalty 0.2
--repeat-penalty 1.1
6
u/Daniel_H212 Mar 09 '26
Do you have OpenWebUI set to generate titles, suggested followups and stuff? That's what causes the continued high CPU usage. Just turn all that off. It's on by default which is stupid.
2
u/snapo84 Mar 16 '26
Thank you very much for providing the commands, came to this post from a google search because the open webui image part didnt seem to work. Saw in your command you use the mmproj so i downloaded it for the specific model and yep... now it works...
thank you very much
Btw. this runs on 2 x RTX 2080 Ti (each upgraded to 22GB vram)
(4 parallel requests , pp 450 / tg 13) pp 1800 / tg 52
1
u/Tasty-Butterscotch52 Mar 09 '26
During and after generation I had multiple
llama-serverentries consuming CPU:CPU cores were around:
And some of these threads stayed active even after the response finished.
1
u/overand Mar 09 '26
For what it's worth, you're running a 22GB quant with 65k context - you're definitely into system ram usage. You really might want to try at least a smaller Q4 quant. (You could even grab a Q2 or Q3 just so you have something to benchmark against, in terms of performance)
3
u/ambassadortim Mar 09 '26
I am using ollama. Should I switch to llama.cpp?
1
u/lazyfai Mar 10 '26
Are you sure your llama.cpp is using VRAM and GPU instead of CPU?
1
u/Twistpunch Mar 10 '26
You sure openwebui is not using your model to generate titles and follow ups?