Local Multimodal Model Deployment: Install, Start, and Maintain Ollama and Open WebUI

    This guide explains how to run a local vision-language model with Ollama and Open WebUI. It covers hardware expectations, Python and virtual-environment setup, installation and upgrades, pulling a vision model, starting the web UI on localhost, and keeping the service bound to the local machine.

    1. Define the Goal: What a Local Vision Model Can Do

    A multimodal model can handle text and images in the same framework. With image understanding, it can answer questions about screenshots, recognize interface elements, interpret charts, and analyze document layouts. For developers, image content that previously had to be described by hand can be parsed by the model, reducing information lost in handoff.

    Before you start, check your hardware. In practice, a quantized vision model around 7B usually needs more than 8 GB of available memory; 16 GB is more comfortable. If memory is tight, the system swaps part of the model to disk and responses become noticeably slower.

    This deployment has two parts. Ollama downloads and runs the model and exposes a local API. Open WebUI provides a web interface for uploading images and reading answers. Both can run on macOS, Linux, and Windows.

    2. Prepare the Environment and Check Versions

    Check Python first. The Open WebUI documentation recommends Python 3.11.

    1. python3 --version

    Create a dedicated virtual environment for Open WebUI so its dependencies do not conflict with other projects.

    1. python3.11 -m venv ~/venvs/webui
    2. source ~/venvs/webui/bin/activate

    On Windows, use PowerShell or Command Prompt:

    1. py -3.11 -m venv %USERPROFILE%\venvs\webui
    2. %USERPROFILE%\venvs\webui\Scripts\activate.bat

    Then install Ollama. On macOS, Homebrew works:

    1. brew install ollama

    On Linux, download the install script, read it, and then run it. That is safer than piping a remote script straight into the shell.

    1. curl -fsSL https://ollama.com/install.sh -o install-ollama.sh
    2. less install-ollama.sh
    3. sh install-ollama.sh

    On Windows, download the installer from ollama.com. After installation, confirm the version:

    1. ollama --version

    Ollama is installed at the system level, so every user and project can call it. Open WebUI stays inside the virtual environment, so upgrades affect only that environment.

    3. Install and Upgrade

    Before upgrading, record the current version and dependency list so you can roll back if something breaks.

    1. source ~/venvs/webui/bin/activate
    2. pip show open-webui
    3. pip freeze > ~/venvs/webui-before-upgrade.txt

    pip index versions lists available versions. It requires pip 21.2 or newer.

    1. pip index versions open-webui

    Install or upgrade to the latest stable release:

    1. pip install --upgrade open-webui

    By default, pip ignores pre-releases such as alpha, beta, and rc. Add --pre only when you explicitly want to try one. Pre-releases belong in a test environment, not in day-to-day work.

    How you upgrade Ollama depends on how you installed it. Homebrew users run brew upgrade ollama. Linux users rerun the install script. Windows users rerun the installer. Then check the version:

    1. ollama --version

    If Open WebUI misbehaves after an upgrade, reinstall the version you recorded:

    1. pip install open-webui==the-older-version-you-recorded

    4. Start Ollama and Pull a Vision Model

    The macOS desktop app and the Windows installer usually start the Ollama service in the background. If it is not running, start it manually:

    1. ollama serve

    The service listens on 127.0.0.1:11434 by default and accepts connections only from the local machine. If the port is already in use, the service is already running. Confirm it with:

    1. curl http://127.0.0.1:11434/api/tags

    The command returns a JSON model list. Even an empty list means the service is healthy, as long as it returns a response.

    Pull a vision model. llava is a commonly used vision model in the Ollama library, with 7B parameters.

    1. ollama pull llava
    2. ollama list

    To use a different vision model, look up a build in the Ollama library that accepts image input, then pull it the same way.

    5. Start Open WebUI

    Run the following inside the virtual environment. --host 127.0.0.1 allows access only from the local machine.

    1. source ~/venvs/webui/bin/activate
    2. export OLLAMA_BASE_URL="http://127.0.0.1:11434"
    3. open-webui serve --host 127.0.0.1 --port 8080

    The first start initializes data and can take a while. After the service reports that it is up, open http://127.0.0.1:8080 in a browser. On the first visit, create an administrator account.

    If port 8080 is already taken, choose another port:

    1. open-webui serve --host 127.0.0.1 --port 8081

    Check which process is listening:

    1. # macOS and Linux
    2. lsof -iTCP:8080 -sTCP:LISTEN
    3. # Windows
    4. netstat -ano | findstr :8080

    Do not casually change --host to 0.0.0.0. That exposes the service to other machines on the same local network.