A cinematic photorealistic 3D render of a glowing neural network sphere.

Ollama Setup: Run Local AI on Windows, Mac and Linux

Your hardware, your models, your rules - download a local model and take the conversation offline.

Your machine. Your bot.

Within nova, we make and use tools that return control to the user. Local AI is exactly that kind of tool.

Cloud AI runs on somebody else's hardware, under somebody else's service terms. A downloaded local model gives you another option: inference on the RAM and VRAM you paid for. You can use it offline once the model is on disk. Cloud models, web search and connected tools are separate choices, so check what you enable before sending anything private.

Ollama🔗 is the route I use here. It downloads, manages and serves models through a GUI, a CLI and a REST API at localhost:11434. Ollama also offers cloud features. This guide focuses on downloaded local models and disabling those cloud features. Installation, downloads and app updates use the network; a local conversation can run offline. Each model keeps its own license.

This unbound article covers installing Ollama on Windows, macOS or Linux, running your first local model, changing the model location and testing the API. Start with your OS below, then pull a small model. Same nova idea as always: make the tool useful without turning setup into another hobby.

Expand allCollapse all

Part One: What Ollama Actually Is

1) The runtime - what it does and why it exists

1.1) The problem it solves
Downloadable language models exist in abundance. Meta releases Llama. Google releases Gemma. Microsoft releases Phi. Their licenses and strengths differ, but getting one running should not require an evening of dependency arguments. Ollama handles model downloads and serving so you can get to the actual task.

Ollama packages model management and inference behind one set of commands. Its backends include llama.cpp🔗 for supported models, with GPU acceleration depending on your card, drivers and OS. You do not need Python for the CLI or desktop app. Install the right GPU driver, pull a model and run it. Python only enters the picture if you choose to write a Python integration.

1.2) How models actually fit in memory
Many Ollama models use GGUF format with quantization to reduce weight storage and memory requirements. A 7 billion parameter model at float16 is roughly 14 GB for the weights alone; quantized weights can be much smaller. The quality tradeoff depends on the model and task. Download size is not total runtime memory: context, cache, concurrency and other running software also need room.

Acceleration depends on the exact hardware and backend:
- NVIDIA GPU via CUDA on supported cards and drivers
- Apple silicon via Metal, using memory shared with macOS
- AMD GPU via supported ROCm or Vulkan configurations; check the current OS/card matrix
- CPU inference for supported models when GPU acceleration is unavailable. Start small and measure your actual workload.


Video thumbnail

Video: "Learn Ollama in 15 Minutes" - a good overview if you prefer watching before reading.

2) Hardware reality check

2.1) The honest numbers
Before pulling anything, check your free RAM, VRAM and disk space. The model file size is a starting point, not the full memory budget. Longer contexts and parallel requests can add substantial memory use. The groups below are rough starting points for small-context tests, not verified minimum requirements for every model:

8 GB VRAM - RTX 3070, RTX 4060, RX 7600 and equivalents
- llama3.2:3b - about 2 GB download for the checked tag - a small text-chat starting point
- gemma3:4b - about 3.4 GB download for the checked tag - test runtime allocation separately
- qwen2.5:7b - a 7B candidate; check the current tag size and runtime memory
- llama3.1:8b - an 8B candidate; compare actual allocation with the smaller models

12 GB VRAM - for example, an RTX 4070; check the exact card
Everything above, plus:
- gemma3:12b - a larger Gemma candidate; compare it with the 4B on your own tasks
- phi4:14b - about 9.1 GB download for the checked tag - one reasoning/code candidate
- qwen2.5:14b - a larger multilingual candidate; check the exact tag and context budget

Apple Silicon - M2, M3, M4 with unified memory
Apple silicon uses Metal and a unified memory pool shared by the GPU, macOS and your other apps. That is useful for local models, but the advertised memory is not all available to Ollama. Start with a smaller model, inspect its actual allocation and increase the workload gradually. My tests for this article were on Windows, so this is hardware guidance rather than a Mac benchmark.

CPU only
It works. With limited RAM, start with llama3.2:1b or llama3.2:3b and a modest context. Leave room for the OS. CPU speed varies too much with the processor, memory bandwidth and model to promise one token rate. If you are generating text you will read afterward and latency is not critical, that can still be perfectly acceptable.

2.2) A note on quantization tags
When you see model tags like :7b-q4_K_M, that is the quantization variant. A size tag such as :7b identifies a registry variant; its quantization depends on that tag's current definition. Check the model page or ollama show before comparing sizes or results. Record the model ID if you need to reproduce the same run later.

Part Two: Install Ollama

My test machine: Windows 11, Intel Core i7-12700K, RTX 5080 and 32 GB RAM. I tested most of this workflow there. The version screenshot shows Ollama 0.30.0. The macOS and Linux sections use their documented setup paths; they are not tests on this PC.

1) Windows 10/11

What you will need:

- Windows 10 22H2 or newer, with enough space for the app and models
- For GPU acceleration: a supported GPU and current compatible driver; check the exact NVIDIA/AMD support for your Ollama release
- For CPU-only: a supported processor and enough free RAM for the chosen model

Option A - Installer (recommended)

Go to ollama.com/download🔗 and click the Windows button to download OllamaSetup.exe.

Ollama download page showing Windows, macOS, and Linux download buttons

Screenshot: ollama.com/download - the Windows button.

Run OllamaSetup.exe from the official download. The standard Windows app installs per user and normally does not need administrator rights. Let it finish, then open Ollama. Installer screens and timing can change between releases.

The Windows app runs in the background and places a llama icon in the system tray. Use its menu to open the app or quit it before changing environment settings. This desktop startup behavior is separate from installing a Windows system service.

Windows system tray with the Ollama llama icon in the notification area

Screenshot: The Ollama llama icon in the Windows system tray.

Option B - Install Ollama with PowerShell

# Downloads and executes the script from Ollama's official endpoint
irm https://ollama.com/install.ps1 | iex

Verify the install

Open a new terminal (PowerShell or Command Prompt) and type:

ollama --version
Command Prompt showing ollama --version output with the installed version number

Screenshot: ollama --version output - a version number confirms a working install.

A version number confirms the CLI is installed. For a local-only setup, set the user environment variable OLLAMA_NO_CLOUD to 1, keep OLLAMA_HOST at 127.0.0.1:11434, then quit and reopen the app. This disables Ollama cloud features; downloads and app updates can still use the network. To check that the local server responds, run Invoke-RestMethod -Uri "http://127.0.0.1:11434/". The API example later checks generation with an actual local model.

Change Ollama's model location

The default Windows model folder is C:\Users\YourName\.ollama\models. To use another drive, quit Ollama and choose the app's Model location setting where available, or set the supported user variable OLLAMA_MODELS. The example below uses D:\ollama-models; choose a real writable folder on your own drive. Do not combine several relocation methods while troubleshooting.

With Ollama fully quit, create the destination and set the user variable in PowerShell. The last two settings keep this example on loopback with cloud features disabled. Administrator rights are not needed for user variables:

New-Item -ItemType Directory -Path "D:\ollama-models" -Force
[Environment]::SetEnvironmentVariable("OLLAMA_MODELS", "D:\ollama-models", "User")
[Environment]::SetEnvironmentVariable("OLLAMA_NO_CLOUD", "1", "User")
[Environment]::SetEnvironmentVariable("OLLAMA_HOST", "127.0.0.1:11434", "User")

If models already exist in the default folder, keep a backup and copy the folder contents before reopening Ollama. The optional copy below leaves the originals in place:

Copy-Item -Path "$env:USERPROFILE\.ollama\models\*" -Destination "D:\ollama-models" -Recurse

Reopen Ollama from Start so it inherits the new variables. Check ollama list, run a copied model and confirm new downloads appear in the destination. Keep the backup until that works. The screenshot beside this text shows the junction approach I used earlier; a junction is not required for the variable-based method above.

File Explorer showing the .ollama folder with the models folder marked by a junction arrow overlay

Screenshot: my earlier junction-based setup. The user-variable method above does not need this folder link.


Video thumbnail

Video: Full Ollama install walkthrough on Windows 11 (2026), including the GUI.

2) macOS

What you will need:

- macOS 14 Sonoma or later
- Apple Silicon strongly recommended - Intel Macs work but without Metal GPU acceleration

Option A - DMG (simplest)

Go to ollama.com/download🔗, download Ollama.dmg, open it, drag Ollama to Applications, and launch it. A menu bar icon appears. Done.

Option B - Homebrew

brew install ollama

Then start the background service:

brew services start ollama

Verify

ollama --version

The native app supports Metal on Apple silicon; Intel Macs use CPU inference. The Homebrew service is a separate launch method from the desktop app. Use one server at a time, and verify the installed app before approving a security prompt.

Change Ollama's model location

The default is ~/.ollama/models. For the desktop app, use launchctl rather than relying on ~/.zshrc. Quit Ollama, create a writable destination, back up/copy existing models if needed, then set:

launchctl setenv OLLAMA_MODELS "/Volumes/ExternalDrive/ollama-models"
launchctl setenv OLLAMA_NO_CLOUD "1"
launchctl setenv OLLAMA_HOST "127.0.0.1:11434"

For a foreground server started from Terminal, export OLLAMA_MODELS="/Volumes/ExternalDrive/ollama-models" applies to that shell. Reopen the desktop app after launchctl changes; repeat/verify them after a new login. A Homebrew-managed service needs configuration for that service, not assumptions about the interactive shell.

3) Linux

What you will need:

- A supported Linux system and enough free space for the app and models
- For NVIDIA: a supported card and compatible driver
- For AMD: check the current ROCm/Vulkan guidance for your exact card and Ollama release
- For CPU inference: enough free system memory for the chosen workload

One command install

curl -fsSL https://ollama.com/install.sh | sh

The script installs the ollama binary, creates a systemd service called ollama.service, and starts it immediately. No manual PATH work needed.

Check service status and verify

ollama --version
systemctl status ollama

If you are not using systemd (or prefer to run it manually in the foreground):

ollama serve

NVIDIA check

After loading a model with ollama run, inspect ollama ps for CPU/GPU allocation. For NVIDIA hardware, nvidia-smi checks driver visibility. If acceleration is missing, check the server log and current GPU support; an old driver is only one possible cause.

Change Ollama's model location

The standard service stores models under /usr/share/ollama/.ollama/models; a server run as your own user commonly uses ~/.ollama/models. For systemd, create a destination writable by the service user and back up/copy existing model data. Run sudo systemctl edit ollama.service, then add this override:

[Service]
Environment="OLLAMA_MODELS=/mnt/storage/ollama-models"
Environment="OLLAMA_NO_CLOUD=1"
Environment="OLLAMA_HOST=127.0.0.1:11434"

Save the override, then run sudo systemctl daemon-reload and sudo systemctl restart ollama.service. Check service status, logs and ollama list. Do not assume /etc/default/ollama is read by the standard unit. For a foreground server, export the variables in the same shell before ollama serve.

Part Three: Your First Model

Ollama is installed and running. Pull a model and talk to it.

1) The model library

1.1) Where to browse
All available models are listed at ollama.com/library🔗. Each model page shows available sizes, quantization variants, a description, and pull counts. Pull counts describe registry activity; they are not a benchmark or proof that a model works well on your hardware. Check the model card, license, exact tag and your own task.

Ollama library page listing available models with names and pull counts

Screenshot: ollama.com/library - the full model catalogue with pull counts.

Some model families used in this guide, and their Ollama names. These are examples, not a current popularity ranking:

llama3.2 - Meta, 1B and 3B. A lightweight text-model family with explicit 1B and 3B tags.
llama3.1 - Meta, 8B to 405B. A range of sizes; larger variants need substantially more memory.
gemma3 - Google, 1B to 27B. Check the exact tag and memory use, especially for larger vision variants.
qwen2.5 - Alibaba, 0.5B to 72B. Includes multilingual models in several sizes.
qwen3 - Alibaba, 0.6B to 235B. Includes dense and mixture-of-experts variants.
mistral - Mistral AI, 7B. A 7B family to compare on your own prompts.
phi4 - Microsoft, 14B. A 14B option for reasoning and instruction-following tasks.
deepseek-r1 - 1.5B to 671B. A reasoning-model family with several distilled sizes. Generated reasoning still needs checking.

1.2) Sizes and how to specify them
Most models come in multiple sizes. You pick one with a tag after the colon:

ollama pull llama3.2:1b         # 1 billion params - tiny and very fast
ollama pull llama3.2:3b         # 3 billion params - the reliable starter
ollama pull gemma3:4b           # Google's 4B - excellent quality for the size
ollama pull qwen2.5:7b          # strong all-rounder, 4.4 GB
ollama pull phi4:14b            # Microsoft's model; check the current tag size
ollama pull llama3.1:70b        # for the serious rigs, 40 GB

If you omit the tag, Ollama uses that model's latest tag. This is a registry default, not automatic sizing for your machine. Use an explicit tag for the examples below.

2) Pull, run, and talk

2.1) Pull your first model
Start with llama3.2:3b. It is a small starting point for text chat, with a download of about 2 GB for the checked tag. Leave additional memory for context and the OS. If it is too heavy, try the 1B variant first.

ollama pull llama3.2:3b
Terminal showing ollama pull progress with per-layer download bars

Screenshot: ollama pull in progress - each layer downloads and verifies separately.

Ollama downloads model layers into the configured models directory. Re-running a pull checks the registry and can download changed layers. Keep enough free storage for updates as well as the models you use.

2.2) Run it
One command:

ollama run llama3.2:3b

The downloaded local model loads into memory and opens an interactive prompt. Type a question and read the response. Local inference can work without internet or an Ollama account. For an offline check, finish the downloads, disable cloud features, disconnect the network and retry this local model. Connected tools and cloud models have different requirements.

If you have not pulled the model yet, ollama run will pull it automatically before starting. So the pull step is optional - run does both.

Terminal showing the ollama run interactive prompt waiting for input

Screenshot: The interactive prompt after ollama run - type here, model responds below.

Not a terminal person? Ollama ships with its own GUI.

The Windows and macOS desktop apps also provide a chat window. Open the app, choose a downloaded local model and start a conversation. The screenshot below shows llama3.2:3b answering a question about Joseph Fourier. Check the selected model and cloud settings rather than assuming every GUI conversation is local.

ollama GUI showing a question sent to the model and its complete response

Screenshot: the Ollama GUI with llama3.2:3b selected and a response about Joseph Fourier.

2.3) In-session commands
While inside an ollama run session, a few useful commands:

/bye               # exit the session
/clear             # reset the conversation context
/show info         # display model details and active parameters
/?                 # list all available commands
3) Day-to-day commands

The full set of commands you will actually use:

ollama list                  # see all downloaded models with sizes
ollama pull mistral          # download a new model
ollama run mistral           # run an interactive session
ollama rm mistral            # delete a model from disk
ollama show llama3.2:3b      # show model metadata and parameter details
ollama ps                    # see which models are currently loaded in memory
ollama stop llama3.2:3b      # unload a model from memory immediately

ollama list shows everything you have pulled and how much disk each takes. ollama ps is useful when managing VRAM - Ollama keeps a model loaded for a few minutes after the last request so repeated calls are fast. If you want to free the memory right away, ollama stop does it instantly.

Terminal showing ollama list output with model names, IDs, and file sizes

Screenshot: ollama list - your local model library with names, sizes, and modification dates.

To update a model to its latest registry version, just re-pull it:

ollama pull llama3.2:3b

Ollama checks the digest and only downloads what has changed.

Part Four: Going Deeper

The CLI is the fast path in. The API is where it gets interesting.

1) The REST API

1.1) What it is
Ollama serves its API at http://localhost:11434 by default. Keep the listener on loopback for this setup. Your local scripts can send requests directly; a frontend or connected tool may have its own network behavior. Confirm the server is running and the named local model is downloaded before testing generation.

The three endpoints you will reach for:

POST http://localhost:11434/api/generate    # prompt completion; streaming by default
POST http://localhost:11434/api/chat        # multi-turn conversation with history
GET  http://localhost:11434/api/tags        # list all downloaded models

1.2) Ollama API generate example in PowerShell
Use native PowerShell JSON serialization so the same example works in Windows PowerShell 5.1 and PowerShell 7:

$body = @{
    model = "llama3.2:3b"
    prompt = "What is the Fourier transform, in two sentences?"
    stream = $false
} | ConvertTo-Json
$result = Invoke-RestMethod -Uri "http://127.0.0.1:11434/api/generate" -Method Post -ContentType "application/json" -Body $body
$result.response

Setting "stream": false returns one complete JSON object when the generation is done, rather than streaming tokens as they are produced. The field you want is "response".

Command Prompt showing a curl request to the local Ollama API and the JSON response

Screenshot: my earlier Command Prompt curl call to the same API. The PowerShell example above uses Invoke-RestMethod and prints the response field.

1.3) Chat - with conversation history
For a multi-turn conversation, send the previous messages with the request. This example uses Bash/macOS/Linux curl syntax; its backslash line continuation is not PowerShell syntax:

curl http://localhost:11434/api/chat \
  -d '{
    "model": "llama3.2:3b",
    "messages": [
      { "role": "user", "content": "My name is Theo." },
      { "role": "assistant", "content": "Got it, Theo." },
      { "role": "user", "content": "What is my name?" }
    ],
    "stream": false
  }'

You manage the history yourself - send the full message array every time. Ollama does not retain state between API calls, which keeps things clean and predictable.

1.4) Ollama API example in Python
This example uses Python's standard library. The popular requests package is an optional third-party dependency, not built into Python:

import json
from urllib.request import Request, urlopen

payload = {"model": "llama3.2:3b", "prompt": "Explain entropy briefly.", "stream": False}
request = Request(
    "http://127.0.0.1:11434/api/generate",
    data=json.dumps(payload).encode("utf-8"),
    headers={"Content-Type": "application/json"},
    method="POST",
)
with urlopen(request, timeout=120) as response:
    print(json.load(response)["response"])

Or, inside your project's Python virtual environment, install the official Ollama client. It still needs a running Ollama server and the named model:

python -m pip install ollama
import ollama

response = ollama.chat(
    model="llama3.2:3b",
    messages=[{"role": "user", "content": "Explain entropy briefly."}]
)
print(response.message.content)

That is the full integration. If your language can make an HTTP POST request, it can talk to Ollama. The complete API reference is at github.com/ollama/ollama - docs/api.md🔗.

2) Modelfiles - custom system prompts

2.1) What a Modelfile does
A Modelfile lets you bake a system prompt, a temperature setting, and other parameters into a named model you can call directly by your own name. Think of it as a lightweight config layer you wrap around any base model - without duplicating the weights.

Create a plain text file called Modelfile (no extension) anywhere on your machine:

FROM llama3.2:3b
SYSTEM "You are a concise technical assistant. Answer in plain text. No markdown, no bullet points unless explicitly asked."

On Windows, save it in Notepad - set the file type to "All Files (*.*)" and name it exactly Modelfile with no extension. If you see Modelfile.txt in the folder, rename and remove the extension.

Notepad open with a Modelfile showing FROM and SYSTEM lines, title bar showing no .txt extension

Screenshot: Modelfile open in Notepad - FROM and SYSTEM lines, no .txt extension on the file.

Build it into a named model:

ollama create my-assistant -f Modelfile

Run it:

ollama run my-assistant
Terminal showing ollama create completing, followed by ollama list with the custom model visible

Screenshot: ollama create completing, followed by ollama list showing my-assistant alongside the base model.

It shows up in ollama list like any other model. Delete it with ollama rm my-assistant when you do not need it anymore.

2.2) Useful parameters to set
Two parameters worth knowing:

FROM qwen2.5:7b
SYSTEM "You are a Romanian-to-English translator. Translate everything the user sends."
PARAMETER temperature 0.2
PARAMETER num_ctx 8192

temperature controls randomness. Lower values generally reduce variation; higher values allow more varied sampling. A low temperature does not make an answer factual. Choose it for the model and task, and check the model's own defaults rather than assuming one value.

num_ctx is the context window in tokens - how much of the conversation the model can "see" at once. Defaults depend on the Ollama release, model and configuration. This example explicitly requests 8192 tokens. Longer contexts use more memory; check the allocated context and CPU/GPU split with ollama ps instead of assuming a universal default.

3) Which model should you pick?

Here is where I would start. These are model candidates from this walkthrough, not a ranking of the best models today. Check the exact tag, free memory and your own prompts before moving up in size:

8 GB VRAM or less
Start with gemma3:4b. It is one option for general chat and image-capable tasks. The checked tag is about 3.4 GB on disk; runtime memory is higher. Compare it with qwen2.5:7b on the prompts you actually use, and start with a modest context before increasing it.

12 GB VRAM or Apple Silicon with 16 GB
phi4:14b. This is the one that most surprised me when I started testing. Microsoft's Phi-4 is one of my picks for reasoning, instruction following and code. The checked tag is about 9.1 GB on disk, before runtime allocations, so 12 GB VRAM needs careful context and memory checks. Compare gemma3:12b as another candidate rather than assuming one download size predicts the better fit.

You want to see the reasoning, not just the answer
deepseek-r1:7b or deepseek-r1:14b. These variants generate reasoning text before the answer, which can be useful when comparing approaches to a problem. Treat that text as model output to check, not a faithful audit of internal computation or proof that the final answer is correct. Longer reasoning also adds latency.

CPU only
llama3.2:3b. Do not fight the hardware. Start small, keep the context modest and measure response time on your CPU. The 1B variant (llama3.2:1b) is another starting point for extraction, summarization or classification. A task-specific check is more useful than a promised token rate.

Model candidates to test

8 GB VRAM: gemma3:4b
12 GB VRAM: phi4:14b
16 GB VRAM or Apple Silicon 16 GB+: phi4:14b or gemma3:12b
24 GB+ VRAM: qwen2.5:32b or deepseek-r1:32b
CPU only, 8-16 GB RAM: llama3.2:3b
CPU only, 32 GB RAM: qwen2.5:7b (slower, but capable)

The complete VRAM requirements guide🔗 at LocalLLM.in goes much deeper if you want to optimize for a specific card or memory budget.

Closing Transmission

One install, one local model, one command. With cloud features disabled and the model downloaded, you can keep using local inference without a hosted API. Keep an eye on the tools you connect, and test offline operation if privacy is the point. The hardware is yours; make the setup earn its place on it.

This is nova: fewer moving parts, more control over the tools you use.

Ollama gives you a useful route into local AI. The CLI, GUI and API cover different ways of working. Check ollama.com/library🔗 for model cards, supported tasks and licenses. There are options for vision, code, translation and structured output. Try them against a real task before replacing the setup that already works for you.

Start with gemma3:4b or llama3.2:3b depending on your hardware. Then push into the API, write a Modelfile or two, and it becomes a tool you can actually use.

Of course, much more is coming soon, so:
Stay tuned right here, on Unbound Planet, with your favorite host.
--Theo

Contact me🔗 for suggestions, feedback, ideas.