Welcome to Jetson Orin NX Developer Kit repository
当製品の日本語版マニュアル資料は、こちらからご取得ください。
02.Install large model dialogue platform
Open WebUI
Open WebUI1. Environmental requirements2. Docker construction2.1. Official installation of Docker2.2. Installing Docker with Alibaba Cloud2.3. Adding the access permissions3. Open WebUI installation4. Open WebUI running4.1. Administrator account4.2. Register and log in4.3. Using the interface5. Model dialogue5.1. Switching the model5.2. Demonstration: LLaVA6. Common problems6.1. Closing Open WebUI6.2. Common errorsUnable to start Open WebUIService connection timeout
Open WebUI is an open source project that aims to provide a simple and easy-to-use user interface (UI) for managing and monitoring open source software and services.
When using Open WebUI, there is a high probability that the dialogue will be unresponsive or timeout. You can try restarting Open WebUI or using the Ollama tool to run the model!
1. Environmental requirements
Installing Open WebUI on the host machine and with Conda: Node.js >= 20.10, Python = 3.11:
| Environment construction method | Difficulty (relatively) |
|---|---|
| Host | High |
| Conda | Medium |
| Docker | Low |
Note: Open WebUI is already set up on the factory system. If you need to build it yourself, you can refer to the steps of installing Open WebUI with Docker below.
2. Docker construction
2.1. Official installation of Docker
If Docker is not installed, you can use the script to install Docker in one click.
xxxxxxxxxxUsers in China may not be able to install Docker with the official method. We recommend installing Docker with Alibaba Cloud or directly using our mirror image.
Update the local package lists
xxxxxxxxxxsudo apt update
Upgrade the installed packages
xxxxxxxxxxsudo apt upgrade
Download and run the script
Download the get-docker.sh file and save it in the current directory.
xxxxxxxxxxsudo apt install curl
xxxxxxxxxxcurl -fsSL https://get.docker.com -o get-docker.sh
Run the get-docker.sh script file with sudo privileges.
xxxxxxxxxxsudo sh get-docker.sh
2.2. Installing Docker with Alibaba Cloud
If you cannot install it yourself, please use the mirror image we provide.
Update the local package lists
xxxxxxxxxxsudo apt update
Install the required software
xxxxxxxxxxsudo apt install apt-transport-https ca-certificates curl gnupg2 lsb-release software-properties-common
Add the GPG key of the software source
xxxxxxxxxxcurl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Add the Alibaba Cloud mirror software source
xxxxxxxxxxecho "deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu bionic stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Install Docker
xxxxxxxxxxsudo apt updatesudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin
2.3. Adding the access permissions
Add the access permission of the current system user to the Docker daemon: you can use the Docker commands without the sudo command
xxxxxxxxxxsudo usermod -aG docker $USERnewgrp docker
3. Open WebUI installation
For systems with Docker installed, you can directly enter the following command in the terminal: the image is the result of the pull
xxxxxxxxxxdocker pull ghcr.io/open-webui/open-webui:main

4. Open WebUI running
The factory setting is to start automatically when the machine boots, so you can access it directly with the browser. If you deploy it inside your own system, enter the following command in the terminal to start the specified Docker:
xxxxxxxxxxdocker run --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main

After a successful startup, access it in the browser with the following URL:
xxxxxxxxxxhttp://localhost:8080/
The same LAN can access it with the mainboard IP:8080:
xxxxxxxxxxAssuming the mainboard IP: 192.168.2.105, we can access it through 192.168.2.105:8080
4.1. Administrator account
You need to register an account yourself when you use it for the first time. This account is the administrator account, and the information can be filled in as required!
xxxxxxxxxxSince all the contents of our mirror image have been set up and tested, users can directly log in with our registered account:Username: yahboomEmail: yahboom@163.comPassword: yahboom
4.2. Register and log in



4.3. Using the interface

5. Model dialogue
Using Open WebUI for the dialogue will be slower than running the model directly with the Ollama tool, and it may even cause a service connection timeout failure. This is related to the memory of the Jetson mainboard and cannot be avoided!
xxxxxxxxxxUsers who have ideas can switch to another Linux environment to build the Ollama tool and the Open WebUI tool for the dialogue
5.1. Switching the model
Click Select a model to select the specified model for the dialogue.
xxxxxxxxxxThe model pulled with ollama will be automatically added to the Open WebUI model options. Refresh the web page and the new model will appear!

5.2. Demonstration: LLaVA
The demonstrated LLaVA case requires 8G or even more than 8G to run. Users can use other cases to test the Open WebUI dialogue function!
xxxxxxxxxxWhat's in this image?

6. Common problems
6.1. Closing Open WebUI
Close the automatically started Open WebUI.
View the running Docker
xxxxxxxxxxdocker ps
Stop the running Docker
xxxxxxxxxxdocker stop [CONTAINER ID] # Example docker stop 5f42ee9cf784
View the stopped container
xxxxxxxxxxdocker ps -a
Clean up the stopped container
xxxxxxxxxxdocker rm [CONTAINER ID] # Example docker rm 5f42ee9cf784
Clean up all the stopped containers:
xxxxxxxxxxdocker container prune
6.2. Common errors
Unable to start Open WebUI
docker: Error response from daemon: Conflict. The container name "/open-webui" is already in use by container "cfc05c84f8e38b290337e7178c76fd1c49076f94b11ed3d49d9448be72b7f20f". You have to remove (or rename) that container to be able to reuse that name.
Solution: close Open WebUI once and restart it!
Service connection timeout
Open WebUI: Server Connection Error
Close Open WebUI once and restart it, then ask the question again or run the model with the Ollama tool to ask questions!