How to install open-webui for llama model on Fedora?
31/12/2024
@ Saigon
LLM
This guide is about installing open-webui on fedora.
1. Update python
& pip
2. Install open-webui guide
- Create directory
/opt/open-webui
- change ownership to your user, do not run with root due to security issue.
- Setup virtual environment (
venv
) & installopen-webui
(do not run as root)
3. Start open-webui server (do not run as root)
- Server should be available on http://127.0.0.1:8080
- All data (sqlite, uploads, cache, db) can be found at
/opt/open-webui/open-webui-env/lib/python3.12/site-packages/open_webui/data
4. Install Ollama
software guide
5. Using ollama
to pull/download model
6. Running with systemd service /etc/systemd/system/open-webui.service
Enable and start open-webui
service
References
- Github Open-WebUI, https://github.com/open-webui/open-webui
- Ollama, https://ollama.com/
- How to enable a virtualenv in a systemd service unit?, https://stackoverflow.com/questions/37211115/how-to-enable-a-virtualenv-in-a-systemd-service-unit