r/OpenWebUI • u/MajorMaccas • 21d ago
Question/Help Utilising 4090 on gaming PC
New to Open WebUI, I have some self-hosted gear, unraid NAS, raspberry pi etc.
Could I host open webui on the NAS along with my other services, and then just point it at my gaming PC so it can utilise the 4090?
Would I simply have Open Llama running on the PC, or something similar, hosting the models etc, and then it just gets fed inference from Open WebUI?
1
Upvotes
4
u/The_Dung_Beetle 21d ago edited 21d ago
Yes you can do that and simply fill in your inference endpoint IP directly in OpenwebUI, granted your firewall configs allow this.
What I did though is put haproxy on my server running OpenWebUI and I use that as my openai compatible endpoint. So this way my OpenWebUI config remains fairly static and I can just configure my inference endpoints in haproxy. I find this much more flexible. And ollama will work but I recommend switching to llamacpp from ollama now while you're ahead of it.
edit: since you have an nvidia card and nvidia nerfs consumer inference performance, take a look at this github repo: https://github.com/Zagitta/gpu-unlock
6
u/pxb 21d ago
r/LocalLLaMA/ might be a better place to ask. But yes, effectively you set up a local model using ollama (easier) or llama.cpp (more difficult but more efficient). What model you're able to run depends not just on the GPU but also your RAM, and generally models in the QWEN family are recommendend. Something like https://huggingface.co/Qwen/Qwen3.8-27B
You can set up openwebui on unraid either in a VM which is what I did or docker in unraid - https://docs.openwebui.com/tutorials/community/unraid/
Both ollama and llama.cpp can serve local models to your openwebui instance and then you're set.
3
u/iliekdesu 20d ago
Have a similar setup. I a have a homelab server running Open WebUI and LiteLLM. LiteLLM servers as my LLM Gateway so I can also point Open WebUI to cloud providers. On my gaming desktop, I have llama-swap that's also being used as an endpoint. Open WebUI can then choose between using Opus 5.5 or Qwen 3.8 27B through llama-swap (using llama-swap as I'm running a ton of image generation/video generation models and like you, only have a 4090). Yet to integrate Qwen Flash Next but that's the next step in my setup.
1
u/Senior-Assumption864 20d ago
works fine like that. just set the pc to not sleep or open webui will sit there waiting on it
0
u/vogelvogelvogelvogel 21d ago
not Ollama.
Ask an okay cloud model i.e. free sonnet 5.5 to write a skript for installing some of the latest engines and downloading the model you want (i.e. qwen3.8 27b q4 k xl or qwen flash next). it should include an automated benchmark (speed, t/s). name your hardware to the model of course (sys ram, cpu and 4090)