Step 1: Download and Install Ollama
To run Llama 3.1 locally, we’ll first install Ollama. Follow these steps:
- Visit ollama.com and click the download button to get the Ollama installer.
- Once downloaded, run the installer and follow the on-screen instructions.
After installation, Ollama should start automatically. You can find its icon in the lower right corner of your screen. If it doesn’t start, go to the Start menu, search for “Ollama,” and launch it.
Step 2: Install and Run the Llama 3.1 Model
- Open Ollama and navigate to the “Models” section in the top right corner.
- Find and click on “Llama 3.1.”
- Click on the “Copy Link” button to copy the installation command.
- Open Terminal (not CMD) and paste the copied command:
ollama run llama 3.1
.
Step 3: Download and Install Docker
If you’re new to Docker, don’t worry—it’s easy to set up:
- Go to the Docker website and download the appropriate version for your operating system.
- Run the installer and follow the prompts. After installation, click “Close and Restart” to restart your computer.
Step 4: Install and Set Up OpenWebUI
To interact with Llama 3.1 like ChatGPT, you’ll need an interface. Here’s how to set it up:
- With Docker installed, open Terminal and run the following command:
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
- Wait for the download and setup to complete.
- Once done, open the Docker app on your computer. You’ll see “open-webui” running. Click on the link under “Ports” (3000:8080) to access the interface.
- Sign up for an account or log in if you already have one.
- After logging in, select “Llama3.1:latest” from the model selection dropdown. You can now start using Llama 3.1 just like ChatGPT!
Final Tips
- Keep Software Updated: Regularly check for updates to Ollama, Docker, and OpenWebUI to ensure optimal performance and security.
- Explore Features: Spend some time exploring the features of Llama 3.1 and OpenWebUI to make the most of this powerful tool.