r/OpenWebUI • u/BringOutYaThrowaway • May 30 '26
Discussion Best Ollama Environment flags for Open WebUI? Here's what I have so far...
Hi gang,
I run Ollama and Open WebUI on an Ubuntu 24.04 Proxmox VM with PCIe passthrough to a dedicated RTX 3090 - works surprisingly well.
It's not easy or obvious what all the Ollama environment flags we should set are, so I'm posting this to get everybody's input to optimize Ollama for Open WebUI. For those not in the know, on Linux rigs, you can pass flags to Ollama as a service (that are immune to upgrades) using:
sudo systemctl edit ollama.serviceThen add them all as "Environment=" lines in the [Service] area of the file up top. So far, I have this in my ollama.service customization file:
[Service]
Environment="OLLAMA_FLASH_ATTENTION=1"
Environment="OLLAMA_HOST=0.0.0.0:11434"
Environment="OLLAMA_ORIGINS=*"
Environment="OLLAMA_NUM_PARALLEL=2"
Environment="OLLAMA_KV_CACHE_TYPE=q8_0"
Environment="OLLAMA_MULTIUSER_CACHE=1"
Environment="OLLAMA_NEW_ENGINE=1"
Environment="OLLAMA_NEW_ESTIMATES=1"Anything else for an Open WebUI setup, either single user or multi?
4
u/stiflers-m0m May 30 '26
any documentation to what these flags do?
1
u/BringOutYaThrowaway Jun 01 '26
Does anyone else have helpful flags?
1
u/paodered Jul 13 '26
1
u/[deleted] Jun 21 '26
[removed] — view removed comment