Arun Pandian M

Arun Pandian M

Android Dev | Full-Stack & AI Learner

Written by: Arun Pandian MPublished on: Jun 7, 2026

Understanding Ollama: Installing, Managing, and Running Local AI Models

One of the biggest misconceptions beginners have when learning AI engineering is thinking that an AI model is the same thing as Ollama. They are not. Think about Java development.

Java Code
    ↓
    JVM
    ↓
 Execution

The JVM runs Java applications.

Similarly:

AI Model
    ↓
 Ollama
    ↓
 Execution

Ollama is a runtime that allows us to download, manage, and run Large Language Models (LLMs) locally on our machine.

This means we can build AI applications without relying on cloud APIs or paying per request.

https://storage.googleapis.com/lambdabricks-cd393.firebasestorage.app/img_ollama_manage.svg?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=firebase-adminsdk-fbsvc%40lambdabricks-cd393.iam.gserviceaccount.com%2F20260607%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20260607T171641Z&X-Goog-Expires=3600&X-Goog-SignedHeaders=host&X-Goog-Signature=8bd1a9924f7190d4d4d4f49b9aa19a5dbe0380714e4039d20539d56158c3b8af06f3782428c74157e10443f037c959b7d234b5920e11fe6554319fb96210830c241913d9fc850ae738bdc598598c4a50ba50ed8fc6f864387f1a319472300a8e03bf986e215a2d5ffe059f68b01536046eb323d36f2f372678692be66c961477d325cad2aed70d605dff434f5b41b853c139b660ee055ab0e4f6f232f8c7bed96fe4894c70c2944c4980ca298f91562f54831a68f2e83f06a199c14d63664efec11ad572f8a537443e0c0e8355703c4e84bfaeff8e7e209b93263ea5fdee0b2b9bf4eaba6b59060bf3b75df6f88ad70a04ae03e4750c0babc689f611338fba6f

Installing Ollama

The first step is installing Ollama.

For macOS:

brew install ollama

Verify the installation:

ollama --version

Example:

Warning: could not connect to a running Ollama instance
Warning: client version is 0.18.3

This simply means Ollama is installed, but the Ollama server is not currently running.

Starting the Ollama Server

Before we can use any model, we must start the Ollama server.

ollama serve

Expected output:

Listening on 127.0.0.1:11434

This means Ollama is now listening for requests from applications.

Conceptually:

Python App ↓ localhost:11434 ↓ Ollama Server

Keep this terminal open. The server must remain running while we use models.

Installing a Model

A fresh Ollama installation contains no models. We need to download one.

For example:

ollama pull qwen3:4b

What happens?

Ollama Registry
        ↓
 Download Model
        ↓
 Store On Disk

After the download completes, the model is available locally. A common mistake is assuming that downloading a model means it is running. It is not.

Think:

Movie Downloaded
≠
Movie Playing

Installing and running are different operations.

Viewing Installed Models

To see all downloaded models:

ollama list

Example:

NAME
qwen3:4b
phi3:mini
nomic-embed-text

These models exist on your SSD. They are not necessarily consuming RAM.

Running a Model

To start a model:

ollama run qwen3:4b

What happens internally?

SSD
 ↓
Load Model Into RAM
 ↓
Start Inference
 ↓
Ready For Questions

You can now ask:

What is Kotlin?

the model generates an answer. This process is called:

Inference

Inference is the act of using a trained model. Most AI application engineers perform inference rather than training models.

Viewing Running Models

To see which models are currently loaded into memory:

ollama ps

Example:

NAME
qwen3:4b

This command is different from:

ollama list

Remember:

ollama list
=
Installed Models

ollama ps
=
Running Models

This distinction is important.

Stopping a Model

When you’re finished using a model:

ollama stop qwen3:4b

What happens?

RAM
 ↓
Unload Model
 ↓
Free Memory

The model remains installed and can be started again later.

Removing a Model

If you no longer need a model:

ollama rm qwen3:4b

What happens?

Delete Model Files
       ↓
 Free Disk Space

The model must be downloaded again before it can be used.

A Typical AI Engineering Workflow

A common workflow looks like this:

Start Ollama:

ollama serve

Download a model:

ollama pull qwen3:4b

Verify installation:

ollama list

Run the model:

ollama run qwen3:4b

Check running models:

ollama ps

Stop the model:

ollama stop qwen3:4b

Remove the model:

ollama rm qwen3:4b

Mental Model

Whenever you work with Ollama, think about three layers:

Storage Layer
│
├── qwen3:4b
├── phi3:mini
└── nomic-embed-text

        ↓

Memory Layer
│
└── Running Models

        ↓

Application Layer
│
├── Python
├── CLI Tools
├── Agents
└── AI Applications

Understanding these layers removes much of the mystery around local AI.

Once you know how to install, manage, run, and stop models, you’re ready to start building real AI applications on top of them.

#BuildInPublic#GenerativeAI#LocalLLM#Python#MachineLearning#SoftwareEngineering#AIInfrastructure#ArtificialIntelligence#AIEngineering#Inference#LargeLanguageModels#OpenSourceAI#TechLearning#DeveloperTools#Ollama#AIApplications#SelfHostedAI#PromptEngineering#AIAgents#LLM
LAMBDA BRICKS