WADE
← Journal
AI & Machine Learning

Ollama Models: The Complete Beginner's Guide to Running AI Locally

Want to run AI on your own computer? Learn what Ollama is, how Ollama models work, which model to choose, how to install Ollama on Windows, macOS, or Linux, and how to build applications with local AI.

A laptop on a desk at night running a local AI model, lit by a single warm desk lamp

What if you could run an AI assistant on your own computer without sending every prompt to ChatGPT, Gemini, Claude, or another cloud service?

No subscription.

No API bill for every request.

No internet connection required after the model is downloaded.

And, depending on your setup, your prompts and documents can stay on your machine.

That's the idea behind local AI.

And one of the easiest ways for developers and curious beginners to get started is Ollama.

Ollama lets you download and run large language models directly on your computer through a simple command-line interface. It also provides a local API, which means you can go beyond chatting with an AI model and actually build software around it.

In this guide, we'll go from "What is Ollama?" all the way to running your first model, creating a custom AI assistant, and connecting Ollama to your own applications.

WADE Tech takeaway: You don't need an expensive AI server to start experimenting with local AI. Start with a model your existing computer can handle, understand the trade-offs, and scale up as your hardware allows.

What Is Ollama?

Ollama is software for running large language models locally.

The simplest way to think about it is:

Ollama is the engine. The model is the AI.

For example:

text
Your computer
      ↓
    Ollama
      ↓
  AI model
      ↓
Generated response

Instead of sending your prompt to a remote AI provider:

text
Your computer
      ↓
   Internet
      ↓
Cloud AI server
      ↓
   AI model
      ↓
   Response

Ollama allows the model to run locally on supported hardware.

The Ollama ecosystem supports model families such as Llama, Gemma, Mistral, Phi, DeepSeek and others. Available models and tags change over time, so developers should check the current Ollama model library when choosing a model.

Why Run AI Locally?

Cloud AI is incredibly useful, but local AI solves a different set of problems.

1. Privacy

When an AI model runs locally, your prompts can remain on your machine rather than being sent to a third-party AI provider.

This can be useful when working with:

  • Source code
  • Private documents
  • Internal company information
  • Customer data
  • Business plans
  • Proprietary software
  • Local databases

That doesn't automatically make your entire workflow private. Other software running on your computer can still transmit data. But local inference removes one major external dependency.

2. No per-request API costs

With a local model, you're not paying an AI provider every time you generate a response.

Your costs become primarily:

  • Hardware
  • Electricity
  • Storage
  • Your time

For developers experimenting with hundreds or thousands of prompts, this can be attractive.

3. Offline AI

Once you've downloaded the model, you can generally use it without an internet connection.

That makes local models useful in environments where connectivity is unreliable or unavailable.

4. Developer control

This is perhaps the biggest advantage.

Instead of simply consuming an AI service, you can build your own system around the model.

For example:

text
React / Next.js
       ↓
Your backend
       ↓
Ollama API
       ↓
Local AI model

Now AI becomes a component of your software architecture.

Ollama vs ChatGPT: What's the Difference?

Ollama and ChatGPT solve different problems.

ChatGPT is a hosted AI product.

Ollama is primarily infrastructure for running models locally.

A simplified comparison looks like this:

FeatureCloud AIOllama
Runs locallyNoYes
Internet requiredUsuallyNot after model download
Per-request API costOftenNo
Hardware requiredMinimalYour computer does the work
Model selectionProvider-controlledYou choose
Local APIDepends on providerYes
PrivacyDepends on provider/settingsLocal inference possible
Maximum model sizeProvider infrastructureLimited by your hardware

Neither approach is automatically better for every situation.

Cloud models give you access to powerful infrastructure without buying hardware.

Local models give you greater control over where inference happens and how you integrate it into your own systems.

What Is an Ollama Model?

Ollama itself isn't the intelligence.

The intelligence comes from the model you run through it.

You can think of Ollama like a media player.

A media player isn't the movie.

Similarly:

text
Ollama = model runtime
Model = AI

You can install Ollama once and then download multiple models.

For example:

bash
ollama pull llama3.2:1b
ollama pull mistral

You can then choose which one you want to run.

What Does "7B" Mean?

If you've started researching local AI models, you've probably seen names like:

  • 1B
  • 3B
  • 7B
  • 8B
  • 14B
  • 32B
  • 70B

The B means billion parameters.

A 7B model has approximately seven billion parameters.

Parameters are learned numerical values within the neural network that help the model process information and generate responses.

But there's an important misconception:

A bigger model isn't automatically better for your computer or your particular task.

A 3B model might be incredibly useful on a modest laptop.

A 70B model might be unusably slow without substantial hardware.

Local AI is about finding the right balance.

How Much RAM Does Ollama Need?

There isn't one universal RAM requirement.

The amount of memory you need depends on:

  • Model size
  • Quantization
  • Context length
  • GPU memory
  • CPU
  • Operating system
  • Other applications running simultaneously

As a practical starting point:

System RAMModels worth exploring
8 GB1B–3B
16 GB3B–8B
32 GB7B–14B+
64 GB+Larger models become more practical

These are guidelines, not hard limits.

A quantized model can require substantially less memory than an equivalent full-precision model.

For example, Ollama's published model examples demonstrate that some 3B and 7B models can fit into only a few gigabytes of storage, while much larger models can require tens of gigabytes.

The rule is simple:

Don't buy a massive model because the number looks impressive. Choose a model your hardware can actually run comfortably.

What Is Quantization?

Quantization is one of the most important concepts in local AI.

AI models normally use numerical representations with different levels of precision.

Quantization reduces that precision to make models smaller and less demanding.

You'll encounter names such as:

text
Q4
Q5
Q6
Q8

A Q4 model, for example, uses a lower numerical precision than an equivalent higher-precision model.

The result can be:

  • Smaller model size
  • Lower memory requirements
  • Faster inference
  • Some potential reduction in output quality

This trade-off is one of the reasons powerful AI models can now run on consumer computers.

Which Ollama Model Should You Use?

There's no universal answer.

The right model depends on what you're trying to accomplish.

For a beginner, however, a small model is usually the easiest place to start.

For example, the Llama 3.2 family includes smaller models that are practical for experimentation.

Other model families available through Ollama include:

  • Llama
  • Gemma
  • Mistral
  • Phi
  • DeepSeek
  • Qwen
  • Other community and specialized models

How to Install Ollama on Windows

Now let's stop talking about local AI and actually run one.

The following walkthrough is designed for someone who has never used Ollama before.

Step 1: Check Your Computer

Before downloading anything, check your hardware.

On Windows, press:

text
Windows + R

Then type:

text
msinfo32

Press Enter.

Look for:

text
Installed Physical Memory (RAM)

You can also check:

text
Settings
→ System
→ About

Check your available storage too.

AI models can consume several gigabytes each, and larger models can consume considerably more.

Step 2: Download Ollama

Download Ollama from its official website.

Official Ollama website: ollama.com

Don't download AI runtimes from random software-download websites.

Use the official Ollama distribution.

Step 3: Install Ollama

Run the installer and follow the installation instructions.

Once installation completes, Ollama can run as a background service on Windows and exposes its command-line interface.

You don't need to install Linux or WSL simply to get started with Ollama on Windows.

Step 4: Open PowerShell

Press:

text
Windows + X

and open:

text
Terminal

or:

text
PowerShell

Now type:

bash
ollama

Press Enter.

If installation was successful, you should see Ollama's command-line help.

That's your first confirmation that everything is working.

Step 5: Download Your First AI Model

Now we're going to install an actual AI model.

Try:

bash
ollama run llama3.2:1b

Ollama will download the model if it isn't already installed.

After the download finishes, the model will start.

You should eventually see something resembling:

text
>>>

That means your local AI model is ready.

Step 6: Ask Your First Question

Type:

text
Explain what an API is to someone who has never programmed before.

Press Enter.

The response is being generated by the model running on your computer.

That's it.

You've just run a local AI model.

Step 7: Try Something More Interesting

Now ask:

text
Write a Python program that calculates the average of five numbers.

Then try:

text
Explain how the program works line by line.

Then:

text
Improve the program so that it handles invalid input.

You're now using the model as a programming assistant.

Step 8: Exit Ollama

When you're finished:

text
/bye

You'll return to your terminal.

Essential Ollama Commands

These are the commands you'll use most often.

Run a model

bash
ollama run llama3.2:1b

Download a model

bash
ollama pull llama3.2:1b

List installed models

bash
ollama list

Show model information

bash
ollama show llama3.2:1b

Delete a model

bash
ollama rm llama3.2:1b

Create a customized model

bash
ollama create my-model -f Modelfile

Save these commands. You'll use them repeatedly.

ollama pull vs ollama run

This confuses almost everyone initially.

pull downloads a model:

bash
ollama pull llama3.2:1b

run starts the model:

bash
ollama run llama3.2:1b

The convenient part is that run can also download the model if you don't already have it.

So for your first experiment, this is usually enough:

bash
ollama run llama3.2:1b

How to See Which Models You Have

Run:

bash
ollama list

You'll see your installed models.

For example:

text
NAME             SIZE
llama3.2:1b      ...
mistral          ...

This is especially useful once you start experimenting with multiple models.

How to Remove an Ollama Model

Models can consume a lot of storage.

If you no longer need one:

bash
ollama rm MODEL_NAME

For example:

bash
ollama rm llama3.2:1b

Check your installed models with:

bash
ollama list

before deleting anything.

Creating Your Own AI Assistant

Here's where Ollama becomes much more powerful.

You can customize the behavior of a model using a Modelfile.

Create a file called:

text
Modelfile

Add:

text
FROM llama3.2:1b

PARAMETER temperature 0.4

SYSTEM """
You are a professional programming assistant.

Explain technical concepts clearly and concisely.
Prefer simple solutions before complex ones.
When providing code, explain what the code does.
Point out potential errors and security problems.
"""

Then create your customized model:

bash
ollama create wade-coder -f Modelfile

Now run it:

bash
ollama run wade-coder

You have created your own specialized AI assistant.

Why Modelfiles Matter

Without customization, you might repeatedly tell your AI:

text
You are a programming assistant.
Use concise explanations.
Explain your code.
Prefer simple solutions.
...

With a Modelfile, those instructions become part of the model configuration.

You can create specialized assistants such as:

text
wade-coder
wade-writer
wade-support
wade-researcher
wade-business

Each could have a different system prompt and configuration.

For developers building internal AI systems, this becomes particularly useful.

Using Ollama With Python

Ollama isn't just a command-line chatbot.

You can use it from code.

For example:

python
from ollama import chat

response = chat(
    model='llama3.2:1b',
    messages=[
        {
            'role': 'user',
            'content': 'Explain APIs to a beginner.'
        }
    ]
)

print(response.message.content)

Now your Python application can communicate with your local AI model.

That means you can build software such as:

  • AI document assistants
  • Local chatbots
  • Coding tools
  • Data-analysis assistants
  • Business automation
  • Internal knowledge systems
  • AI-powered dashboards

Using Ollama With JavaScript

JavaScript developers can integrate Ollama into their applications as well.

A typical architecture might look like:

text
React / Next.js
       ↓
Backend API
       ↓
Ollama
       ↓
Local AI Model

For example, you could create a Next.js application where a user enters a question, your backend sends the request to Ollama, and the model returns the response.

Related: Mindmerge: a local-first AI coding agent

This is particularly interesting for developers who want to experiment with AI without immediately paying for an external model API.

The Ollama API

Ollama exposes a local API.

A typical local Ollama installation uses:

text
http://localhost:11434

Your application can communicate with this endpoint.

That means your computer can effectively become an AI server for applications running locally.

For example:

text
┌───────────────────┐
│    Web Browser    │
└─────────┬─────────┘
          ↓
┌───────────────────┐
│   Your Backend    │
└─────────┬─────────┘
          ↓
┌───────────────────┐
│      Ollama       │
└─────────┬─────────┘
          ↓
┌───────────────────┐
│    AI Model       │
└───────────────────┘

This architecture is the foundation for many local AI applications.

What Can You Build With Ollama?

Once you understand the basics, the possibilities expand considerably.

Local coding assistant

text
IDE
 ↓
Your AI interface
 ↓
Ollama
 ↓
Coding model

Company knowledge assistant

text
Company documents
 ↓
Retrieval system
 ↓
Ollama
 ↓
AI assistant

Customer-support assistant

text
Customer question
 ↓
Backend
 ↓
Knowledge base
 ↓
Ollama
 ↓
Generated response

AI automation system

text
Database
 ↓
Business logic
 ↓
Ollama
 ↓
Analysis
 ↓
Action

This is where local AI starts becoming an engineering tool rather than simply another chatbot.

What Is RAG?

If you're building serious AI applications, you'll eventually encounter RAG.

RAG stands for:

Retrieval-Augmented Generation.

The idea is straightforward.

Instead of asking the AI model to know everything, your application retrieves relevant information and provides it to the model.

For example:

text
User question
      ↓
Search company documents
      ↓
Find relevant information
      ↓
Send information + question
      ↓
Ollama
      ↓
Answer

This allows a relatively general model to answer questions about your own data.

For example:

"What is our refund policy?"

The model doesn't need to have memorized your company's refund policy.

Your application retrieves the relevant document and gives it to the model.

Ollama for Software Developers

Ollama becomes particularly interesting when you're building software.

A local model can help with:

  • Code generation
  • Debugging
  • Refactoring
  • Documentation
  • SQL generation
  • Test generation
  • API explanations
  • Code reviews
  • Data transformation
  • Development automation

But don't assume that every model is equally good at programming.

A lightweight general-purpose model might be perfectly adequate for simple tasks while struggling with a large multi-file codebase.

For serious coding work, compare models based on the tasks you actually perform.

CPU vs GPU: What Hardware Does Ollama Need?

Ollama can use your CPU and, where supported, GPU acceleration.

A compatible GPU can make inference dramatically faster.

However, you don't need a high-end GPU to start.

If you have:

text
8 GB RAM

start small.

If you have:

text
16 GB RAM

you have considerably more flexibility.

If you have:

text
32 GB+

you can explore larger models and workloads.

GPU memory is also important.

A computer with 32 GB system RAM but only a small GPU may behave very differently from a machine with a large amount of VRAM.

The important thing is to test your actual workload rather than relying solely on model size.

Why Is My Ollama Model So Slow?

This is one of the most common questions beginners ask.

There are several possible reasons.

Your model is too large

Try a smaller model.

You're running entirely on CPU

CPU inference can be significantly slower than GPU-accelerated inference.

You don't have enough RAM

Your operating system may start swapping data to disk.

This can make the system painfully slow.

Your context is too large

Larger context windows require more memory.

Other applications are consuming resources

Close unnecessary applications and check Task Manager.

On Windows, press:

text
Ctrl + Shift + Esc

and inspect:

  • CPU
  • Memory
  • GPU
  • Disk

Can You Store Ollama Models on Another Drive?

Yes.

This can be useful if your operating-system drive is small.

Ollama supports the OLLAMA_MODELS environment variable for changing where model files are stored.

For example, if your main SSD is:

text
C:

and you have a larger:

text
D:

drive, you can configure Ollama to store models there.

This is especially useful if you're experimenting with multiple large models.

Common Ollama Problems

"ollama is not recognized"

Close and reopen your terminal.

If that doesn't work, verify that Ollama is installed correctly and that its command is available in your PATH.

The model is extremely slow

Try a smaller model.

Check your RAM and GPU utilization.

Also check whether the model is larger than your available memory.

My computer is running out of memory

Try a smaller model or reduce the context size.

For example, moving from a 14B model to a 3B or 7B model can make a substantial difference.

I don't have enough storage

Remove models you aren't using:

bash
ollama list

Then:

bash
ollama rm MODEL_NAME

Ollama isn't responding

Make sure the Ollama application/service is running.

If you're developing against the local API, verify that the service is available at:

text
http://localhost:11434

Your First Ollama Learning Path

Don't try to learn everything in one day.

Follow this progression.

Level 1 — Run a model

bash
ollama run llama3.2:1b

Level 2 — Try different models

Experiment with several model families.

Level 3 — Learn model sizing

Understand:

  • Parameters
  • Quantization
  • Context
  • RAM
  • VRAM

Level 4 — Customize a model

Create a Modelfile.

Level 5 — Use the API

Connect Ollama to Python or JavaScript.

Level 6 — Build an application

Create a small AI-powered project.

Level 7 — Learn RAG

Connect your model to your own documents.

Level 8 — Build an AI system

Combine:

text
Models
+
APIs
+
Databases
+
RAG
+
Automation

That's when local AI becomes genuinely powerful.

Ollama Command Cheat Sheet

Keep this nearby while you're learning:

bash
# Show Ollama help
ollama

# Run a model
ollama run llama3.2:1b

# Download a model
ollama pull llama3.2:1b

# List installed models
ollama list

# Inspect a model
ollama show llama3.2:1b

# Delete a model
ollama rm llama3.2:1b

# Create a custom model
ollama create wade-coder -f Modelfile

For most beginners, these commands are enough to get started.

The Bigger Picture: Local AI Is Becoming Developer Infrastructure

It's easy to think about Ollama as:

"That program that lets me chat with an AI in PowerShell."

That's underselling it.

Ollama can be part of a much larger architecture.

Imagine:

text
                  YOUR APPLICATION
                        │
             ┌──────────┴──────────┐
             │                     │
          Database              Backend
             │                     │
             └──────────┬──────────┘
                        │
                     Ollama
                        │
             ┌──────────┴──────────┐
             │                     │
          AI Model              RAG
             │                     │
             └──────────┬──────────┘
                        │
                 Generated Output

Now you're not simply "using AI."

You're engineering an AI-powered system.

That's a very different proposition.

Final Thoughts

Local AI isn't going to replace every cloud AI service.

And you shouldn't expect a small model running on an ordinary laptop to compete with every large commercial model.

That's not the point.

The value of local AI is control.

You control the hardware.

You choose the model.

You decide how your application interacts with it.

You can experiment without paying for every API request.

And, depending on your architecture, you can keep sensitive workloads on your own infrastructure.

Ollama makes that experimentation remarkably accessible.

If you've never touched local AI before, don't start by trying to run the largest model you can find.

Start here:

bash
ollama run llama3.2:1b

Ask it a question.

Try another model.

Create a Modelfile.

Connect it to Python.

Build something.

Then add RAG.

Then connect it to a real application.

That's the path from running your first local model to building your own AI-powered software.

And that's where local AI gets interesting.

Frequently Asked Questions

What is Ollama?

Ollama is software that makes it easier to download and run large language models locally on your computer. It also provides APIs that developers can use to integrate local AI models into applications.

Is Ollama free?

Ollama's software is available for local use, but running models still consumes your computer's resources, including RAM, storage, CPU/GPU resources, and electricity.

Does Ollama require internet?

Internet access is normally required to download Ollama and AI models. Once a model is installed locally, you can generally run it without an internet connection.

Can Ollama run on 8 GB RAM?

Yes, smaller models can be practical on an 8 GB system. Start with lightweight models rather than large 14B, 32B, or 70B models.

Can Ollama run without a GPU?

Yes. Ollama can run models using CPU resources, although inference may be considerably slower than with suitable GPU acceleration.

Can I use Ollama for coding?

Yes. You can use appropriate local models for code generation, debugging, explanation, refactoring, documentation and other programming tasks.

Can Ollama replace ChatGPT?

Not universally. Ollama and ChatGPT serve different purposes. Ollama gives you a way to run supported models locally, while ChatGPT is a hosted AI product with access to cloud infrastructure and its own capabilities.

Can I create my own Ollama model?

You can create customized model configurations using an Ollama Modelfile. You can define a base model, system instructions, parameters and other configuration options.

Can I use Ollama in a web application?

Yes. Ollama provides a local API that applications can communicate with. A backend can use Ollama to generate responses for a web application.

Can I use Ollama with Python?

Yes. Ollama provides Python integration, allowing Python applications to communicate with local models.

Can I use Ollama with JavaScript?

Yes. Ollama provides JavaScript integration and an HTTP API that can be used from applications built with JavaScript and related frameworks.

What is the best Ollama model?

There isn't one universally best model. The appropriate model depends on your hardware, task, required response quality, context requirements and acceptable inference speed.

How much storage does Ollama need?

The Ollama application itself is relatively small compared with the models. Model storage requirements vary considerably, from around a gigabyte for some small models to many tens of gigabytes for larger models.

Is local AI private?

Running inference locally can prevent prompts from needing to be sent to a cloud AI provider. However, overall privacy still depends on your operating system, applications, network configuration and how your local AI system is built.

What's Next?

If you're a developer, the next step isn't downloading twenty models.

Build something.

Start with a simple project:

Ollama + Python + a small model.

Then graduate to:

Ollama + Next.js + an API.

Then:

Ollama + RAG + your own documents.

And eventually:

Ollama + your application + databases + automation + specialized models.

That's the point where local AI stops being an experiment and starts becoming part of your development stack.

Build locally. Experiment aggressively. Ship useful things.

WADE Tech

Written by Wade Studio. If you want to talk through any of this, the studio is one message away.

Start a project ↗

Published September 21, 2026 in AI & Machine Learning.