Skip to content

Premium web, mobile & AI solutions — Start your project today

BlueArc Tech Solutions
All Articles
6 July 2026 9 min
AI & Automation

How to Run Open-Source AI Models Locally with Ollama (Complete Beginner Tutorial)

Step-by-step guide to running GLM, Qwen, DeepSeek, and other open models on your own computer — no cloud, no API key needed

Want to run powerful AI models on your own laptop, completely offline and private? This tutorial walks you through installing Ollama and running your first open-source model in under 10 minutes.

Author

BlueArc Tech Team

How to Run Open-Source AI Models Locally with Ollama (Complete Beginner Tutorial)

Featured

01Visual Story
01 / 01
02The Article

How to Run Open-Source AI Models Locally with Ollama

Every model we've covered so far — GLM 5.2, Kimi K2, DeepSeek V4 — can be run on your own computer using a tool called Ollama. Here's exactly how.

Developer setting up local AI environment
Developer setting up local AI environment

What Is Ollama?

Ollama is a free tool that lets you download and run open-source AI models directly on your own machine — no internet connection needed once the model is downloaded, no data sent to any company's servers.

Why people use it:

  • Full privacy — your prompts and documents never leave your computer
  • Zero ongoing cost — no per-token API fees
  • Works offline — no internet required after setup
  • Easy experimentation — switch between models with one command

  • Before You Start: Do You Have Enough Hardware?

    This is the single most important thing to check first.

    Model sizeMinimum RAMWorks on a normal laptop? Small (7B to 12B parameters)8 to 16 GBYes, most modern laptops Medium (26B to 35B parameters)24 to 32 GBOnly with a good GPU Large (100B+ parameters)64 GB+ or multi-GPUNo, needs server-grade hardware
    Beginner tip: Start with a small model like Gemma 4 12B or a small Qwen variant. You can always move to bigger models later.

    Step-by-Step Installation

    Step 1 — Install Ollama

    Download it from ollama.com for Windows, Mac, or Linux, and run the installer.

    Step 2 — Open Your Terminal

    On Mac or Linux: open Terminal. On Windows: open Command Prompt or PowerShell.

    Step 3 — Download Your First Model

    `bash ollama pull gemma4:12b ` This downloads the model files — depending on your internet speed, this can take a few minutes.

    Step 4 — Run It

    `bash ollama run gemma4:12b ` You'll get a chat prompt right in your terminal. Type a question and press Enter.

    Step 5 — Try a Different Model

    `bash ollama pull qwen3:7b ollama run qwen3:7b ` Switching models is as simple as pulling and running a different name.
    Terminal command line interface
    Terminal command line interface

    Making It Easier: A Simple Chat Interface

    If typing in a terminal isn't your style, tools exist that give Ollama a proper chat window, similar to ChatGPT's interface, while still running everything locally. Search for Ollama web UI for several free options.


    Common Beginner Questions

    Do I need a GPU? Not for small models — they can run on CPU, just slower. A GPU significantly speeds up response time.

    Is this really free? Yes. Ollama itself is free, and most model weights are free to download under their respective licenses.

    Can I use this for my business? Yes — many companies run local models specifically to keep sensitive data off external servers. Check each model's license for commercial-use terms first.

    What if my laptop is too slow? Try a smaller model (7B or below), or consider a hosted API instead for anything beyond casual experimentation.


    Final Takeaway

    Running AI locally used to require serious technical skill. Ollama has made it a five-minute setup. Start small, confirm your hardware can handle it, and expand from there.

    BlueArc Tech helps businesses decide between local AI, hosted APIs, and hybrid setups based on real cost and privacy needs. Get a free AI infrastructure consultation at bluearctech.in.

    End

    Work with us

    Turn ideas into digital products

    Web, mobile, and IT services for businesses across Tamil Nadu and India.

    Start a Project