Introduction
This guide provides step-by-step instructions for installing and setting up Ollama on Linux and Windows systems using WSL (Windows Subsystem for Linux). Follow the instructions carefully to ensure a smooth installation process.
1. Download Ollama
Visit ollama.com to download the necessary files.
This guide is for Linux and Windows users.
-
For Linux Users:
Download the Linux version and skip to Step 2.
-
For Windows Users:
Use WSL to utilize the Linux version.
1a. Windows WSL Installation
Open CMD or Terminal and type:
1b. After Installation and Setup
Type:
1c. Best Practice: System Update
Type:
2. Install Ollama
Open Terminal, paste, and run the following command:
2a. Verify Installation
Open your browser and go to:
localhost:11434If you see the "Ollama is running" message, you are successfully running LLAMA!
3. Access AI Libraries
Visit huggingface.co
or
Visit ollama.com/library
4. Get Llama 3 (by Meta)
Type one of the following commands:
or
5. WebUI - Docker
5a. Docker Installation
Type the following commands:
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
5b. Add Docker Repository to Apt Sources
Type the following command:
5c. Full Docker Installation
Type:
6. Host Docker Container for WebUI
Type the following command to run the Docker container:
6a. Verify Docker Container
Type:
7. Access WebUI
Open your browser and go to:
localhost:8080
or
127.0.0.1:8080
8. Create SuperAdmin User
Your first user is your SuperAdmin user. Remember these credentials.
Click on "Sign Up" and complete the registration.
9. Add More AI Models to WebUI
Type:
10. Fine-Tune Your AI
- Click on Workspace.
- Click on "Create a model".
- Name your model.
- Set a model tag name.
- Add a description of what your model does.
- In Model Params, set your AI's boundaries.