Skip to main content

Running AI Locally with Ollama: A Complete Walkthrough

Running AI Locally with Ollama: A Complete Walkthrough — Local AI 2026
Local AI 2026 — AppSwifts

This is the hands-on companion to running AI on your own machine: what to install, which model to pick, how to talk to it from your own code, and what to do when it will not start. Everything here runs on a laptop, with no cloud account and no per-token bill.

What You Need Before You Start

Memory is the constraint that matters, not processor speed. As a working rule, a quantised model needs roughly one gigabyte of RAM per billion parameters, plus additional room for the context window and the operating system.

An eight gigabyte machine handles a seven or eight billion parameter model comfortably. Sixteen gigabytes opens up the mid-teens. Thirty-two gigabytes is genuinely capable. A dedicated GPU helps speed, not capability, and a model that fits in memory will run acceptably on a modern processor.

Installing Ollama

Installing Ollama — Local AI 2026
Installing Ollama — Local AI 2026

On Linux and macOS installation is a shell script, and on Windows it is an installer. Either way a background service starts and stays running, which is worth knowing because most problems people hit trace back to that service not being up.

Verify installation by asking the command line client for its version. If that returns a number, the service is running and you are ready to pull a model.

Your First Model

Your First Model — Local AI 2026
Your First Model — Local AI 2026

Pulling a model downloads its weights to a local directory. Sizes range from around two gigabytes for a small model to tens of gigabytes for a large one, so the first download is the slowest part of the whole process.

Once downloaded, running a model opens an interactive session in your terminal. You can talk to it immediately, with no account, no key and no network connection.

Choosing a Model That Fits Your RAM

Choosing a Model That Fits Your RAM — Local AI 2026
Choosing a Model That Fits Your RAM — Local AI 2026

Match the model to the machine rather than chasing benchmarks. A well-quantised small model that fits entirely in memory will outperform a larger model that has to swap to disk, every time.

Start smaller than you think you need. Raise the size only when you can name a task the current model is failing, because the failure is usually about reasoning depth rather than raw size.

Talking to the API

Talking to the API — Local AI 2026
Talking to the API — Local AI 2026

The reason Ollama is worth using over a bespoke setup is that it exposes a local HTTP API. Anything on your machine can send it a model name and a list of messages and get a response back.

It is also compatible with the common chat completion format, which means existing tools can often be pointed at it by changing a base URL. That compatibility is what turns a local model from a curiosity into something you can drop into real work.

Giving It Your Own Documents

Giving It Your Own Documents — Local AI 2026
Giving It Your Own Documents — Local AI 2026

Out of the box a local model knows nothing about your files and has no internet access. To make it useful on your own material you need a retrieval layer of your own: split your documents into chunks, store them somewhere searchable, and paste the relevant chunks into the prompt.

This is genuinely simple to build for a modest document set, and it is the difference between a general chatbot and something that answers questions about your own paperwork.

Running Ollama on a Server or an Old Laptop

Running Ollama on a Server or an Old Laptop — Local AI 2026
Running Ollama on a Server or an Old Laptop — Local AI 2026

A machine that is no longer good enough to be a daily driver is often good enough to be a local model server. Point the service at the network, and every other device in the office can use it, which is usually a better arrangement than running a separate copy on each laptop.

In places where power and bandwidth are unpredictable, this matters more than raw performance. One machine that stays on is a better arrangement than five laptops that each need their own multi-gigabyte download.

Troubleshooting Common Problems

Three failures cover most of it. If the client cannot connect, the background service is not running. If a model starts and then hangs, it does not fit in available memory and is paging to disk, so choose a smaller quantisation. If output is fluent but wrong, the model is too small for the reasoning the task requires, and no amount of prompt tuning will fix that.

Run locally for privacy, for cost, and for the days when the connection is down. Keep a frontier model for the tasks that genuinely need one. Knowing which is which is most of the skill.

Comments

Popular posts from this blog

Sora Is Dead: 7 Best AI Video Generators to Use Instead in 2026

In March 2026, OpenAI officially shut down Sora — the AI video tool that took the world by storm just a year earlier. Millions of creators, marketers, and filmmakers were left scrambling for alternatives. The good news? The AI video landscape in 2026 is richer and more powerful than ever before. This guide covers the 7 best AI video generators you should be using right now, with detailed breakdowns of features, pricing, and who each tool is best for. Why Did Sora Shut Down? OpenAI retired the Sora consumer app in March 2026, redirecting resources toward its newer multimodal systems and agentic products. While Sora 2 had excellent photorealistic output, the platform lacked native audio, had limited free access, and required expensive ChatGPT Pro subscriptions ($200/mo). With competitors like Google Veo and Kling offering more features at lower costs, Sora lost its competitive edge. Quick Comparison: Best AI Video Generators in 2026 Tool Best For Free Tier Starting Price ...

AI Video Generation in 2026: Sora, Runway, Pika and the Best Text-to-Video Tools

AI video generation went from incoherent clips to usable footage in roughly eighteen months. The remaining gaps are consistency across shots and control over camera and motion. This guide compares the leading models on those two dimensions, and on cost per second of usable output. AI video generation is one of the most exciting and rapidly advancing frontiers in artificial intelligence in 2026. Tools that can turn a text description into a high-quality video clip in seconds have gone from science fiction to everyday reality. Whether you are a content creator, marketer, filmmaker, educator, or business owner, AI video generation tools offer extraordinary new creative possibilities at dramatically lower cost and effort than traditional video production. This guide covers the leading AI video generation tools in 2026, their capabilities, pricing, and which one is best for your needs. The Top AI Video Generation Tools in 2026 OpenAI Sora Sora is OpenAI's...

Best Payment Gateways for African Businesses in 2026

Getting paid online is one of the most critical pieces of infrastructure for any digital business in Africa. Whether you run an e-commerce store, a SaaS product, a travel agency, or a freelance service, choosing the right payment gateway determines whether you collect revenue reliably from local and international customers. Here is an in-depth breakdown of the best payment gateways for African businesses in 2026. 1. Flutterwave Best for: Pan-African payments and international collections Flutterwave is Africa's leading payment infrastructure provider, supporting over 30 currencies, debit/credit cards, mobile money (M-Pesa, MTN Mobile Money, Airtel Money), bank transfers, and USSD. Flutterwave is fully available in Nigeria, Kenya, Ghana, Rwanda, Uganda, South Africa, Tanzania, and across the continent. Robust REST APIs and plugins make integration seamless across web and mobile platforms. 2. Paystack Best for: Nigerian and West African business...