Installing Ollama and Downloading a Local Model
Ollama is a lightweight application that makes it easy to run and manage large language models (LLMs) locally on your computer without needing cloud infrastructure. It provides a simple interface to download, start, and interact with models.
This guide will walk you through installing Ollama and running a local model.
1. Install Ollama
Install the software directly from Ollama's official website.
2. Verify Installation
After installation, confirm that Ollama is installed by running:
ollama --versionYou should see the installed version number.
3. Verify Ollama Service
Verify that Ollama is running as a background service by visiting http://localhost:11434 in a browser. You should see the message:
Ollama is running4. Download and Run a Model
Ollama makes it simple to pull and run models. For example, to download and run Llama 3.2:
ollama run llama3.2The first time you run this command, Ollama will:
- Download the
llama3.2model. - Start an interactive session where you can chat with the model.
5. Managing Models
List installed models:
bashollama listPull a specific model (without running it):
bashollama pull gemma3Run a specific model:
bashollama run gemma3Remove a model:
bashollama rm gemma3
6. Stopping Ollama
To stop the Ollama service:
pkill ollamaAlternatively, you can quit the program by clicking the Ollama icon in your system menu (menu bar on macOS or system tray on Windows/Linux) and selecting Quit.