1. [Ollama](https://github.com/ollama/ollama) loads and serves a few models via API.
- Ollama itself doesn't have a UI. CLI and API only.
- The API can be accessed at [`https://api.ollama.jafner.net`](https://api.ollama.jafner.net).
- Ollama running as configured supports ROCm (GPU acceleration).
- Configured models are described [here](/ollama/modelfiles/), and
- Run Ollama with: `HSA_OVERRIDE_GFX_VERSION=11.0.0 OLLAMA_HOST=192.168.1.135:11434 OLLAMA_ORIGINS="app://obsidian.md*" OLLAMA_MAX_LOADED_MODELS=0 ollama serve`
2. [Open-webui](https://github.com/open-webui/open-webui) provides a pretty web interface for interacting with Ollama.
- The web UI can be accessed at [`https://ollama.jafner.net`](https://ollama.jafner.net).
- The web UI is protected by Traefik's `lan-only` rule, as well as its own authentication layer.
- Run open-webui with: `cd ~/Projects/LLMs/open-webui && docker compose up -d && docker compose logs -f`
- Then open [the page](https://ollama.jafner.net) and log in.
- Connect the frontend to the ollama instance by opening the settings (top-right), clicking "Connections", and setting "Ollama Base URL" to "https://api.ollama.jafner.net". Hit refresh and begin using.
3. [SillyTavern](https://github.com/SillyTavern/SillyTavern) provides a powerful interface for building and using characters.
- Run SillyTavern with: `cd ~/Projects/LLMs/SillyTavern && ./start.sh`
4. [Oobabooga](https://github.com/oobabooga/text-generation-webui) provides a more powerful web UI than open-webui, but it's less pretty.
- Run Oobabooga with: `cd ~/Projects/LLMs/text-generation-webui && ./start_linux.sh`
- Requires the following environment variables be set in `one_click.py` (right after import statements):
1. Navigate to the source directory with all models: `cd "~/Nextcloud/Large Language Models/GGUF/"`
2. Symlink each file into the docker project's models directory: `for model in ./*; do ln $(realpath $model) $(realpath ~/Git/docker-llm-amd/models/$model); done`
- Note that the symlinks must be hardlinks or they will not be passed properly into containers.
3. Launch ollama: `docker compose up -d ollama`
4. Create models defined by the modelfiles: `docker compose exec -dit ollama /modelfiles/.loadmodels.sh`