Just in
TechOkta Earnings: GAAP Profit Nearly Triples on $834 Million RevenueTechNvidia SpaceX Kyber Galaxy: Vera Rubin Rack Set for Orbit in 2027AIAmazon Ergo Is a 1.1 Trillion Parameter Open-Weight Coding ModelTechAWS Vera Rubin P7 Instances Now Generally Available on Amazon EC2TechSemiconductor Market Forecast: WSTS Sees $2.6 Trillion in 2027TechMarvell Earnings (MRVL): Q3 Revenue Up 52%, $3.9 Billion Q4 Outlook
AI · Guide

How to Run AI Locally on Your Mac, Windows PC or Linux Machine

You can run AI locally for free with LM Studio or Ollama, and keep chatting even with no internet. Here is what your computer needs and how to set it up step by step.

USA Publishing Group6 min read
Share
Computer screen filled with lines of chatbot text, like the chat window you see when you run AI locally
Photo: Emiliano Vittoriosi / Unsplash

Key takeaways

  • LM Studio recommends 16GB of RAM on Apple Silicon Macs and Windows PCs, and it does not support Intel Macs.
  • Ollama's quickstart model, gemma4:e2b, is about a 7.2GB download and works best with 8GB of available video or unified memory.
  • Once a model is downloaded, both LM Studio and Ollama can chat offline, and Ollama says it does not see prompts from local use.
In this story 5 sections
  1. Check your computer before you download anything
  2. Option 1: Run a model in LM Studio (no command line)
  3. Option 2: Run a model with Ollama (a few commands)
  4. Getting more out of a local model
  5. When running AI locally doesn't work

Want a chatbot that keeps working on a plane, never sends your notes to a server, and costs nothing per message? You can run AI locally on a reasonably recent Mac, Windows PC or Linux machine. This guide is for anyone comfortable installing an app, and the first setup usually takes 20 to 40 minutes, most of it spent waiting for a model file to download. We cover two free tools: LM Studio if you want a point and click chat window, and Ollama if you don't mind typing a couple of commands.

If the idea of a "model" is still fuzzy, our explainer on what a large language model is is a quick primer before you start.

Check your computer before you download anything

Local AI lives or dies by memory. The model has to fit in RAM (or in your graphics card's video memory) while it runs, so this is the first thing to look at.

  • Mac: LM Studio's system requirements page lists Apple Silicon (M1 through M4) and macOS 14.0 or later, and says Intel Macs are not supported. It recommends 16GB of RAM and notes that 8GB Macs may cope with smaller models. Ollama's Mac app also needs macOS Sonoma (14) or newer and runs on Intel Macs, but only on the CPU.
  • Windows: LM Studio recommends at least 16GB of RAM and 4GB of dedicated video memory, and an x64 processor needs AVX2 support. Snapdragon X Elite laptops are supported too. Ollama needs Windows 10 22H2 or newer, and NVIDIA owners need driver 551.61 or later.
  • Linux: LM Studio lists Ubuntu 20.04 or newer on x64 or ARM64. Ollama installs with one script and uses CUDA drivers on NVIDIA cards or ROCm on AMD cards.
  • Disk space: Ollama's Windows docs ask for at least 4GB for the program itself, and warn that models can take tens to hundreds of gigabytes. Plan for 10GB or more free for a single starter model.
  • Internet, once: You need a connection to download the app and the model. After that, chatting works offline.

Laptops sold as AI PCs often include an NPU, a dedicated AI chip. Our guide to what an NPU is explains what it does, but a decent amount of RAM and a good GPU still matter more for the tools below.

Option 1: Run a model in LM Studio (no command line)

LM Studio is the gentler route. It looks and works like a chat app, and its offline documentation states that chats with downloaded models stay on your device.

Install the app and pick a model

  1. Go to lmstudio.ai/download and install the version for your operating system.
  2. Open LM Studio and click the Discover tab.
  3. Pick one of the curated models, or search by name (for example "Llama", "Gemma" or "Qwen").
  4. Choose a download size that leaves headroom. As a rough guide, pick a model file smaller than about half your total RAM on a Mac, or smaller than your video memory on a Windows PC with a dedicated GPU.
  5. Click download and wait. Speed depends entirely on your connection.

Load it and start chatting

  1. Open the Chat tab.
  2. Open the model loader and select the model you just downloaded.
  3. Leave the load settings at their defaults for now and confirm.
  4. Type a message. Replies are generated on your machine, so you can switch off Wi-Fi and keep going.

LM Studio's docs list the few things that still need the internet: searching the catalog, downloading new models or runtimes, and in app updates. Everything else, including chatting with documents you drop in, runs locally.

Option 2: Run a model with Ollama (a few commands)

Ollama is lighter and popular with people who want to plug a local model into other tools, such as coding assistants or note apps. The steps below use a terminal window for chatting.

Install Ollama on your system

  1. Mac: download from ollama.com/download, open the disk image and drag Ollama into Applications. On first launch it offers to add the `ollama` command to your PATH. Say yes.
  2. Windows: run OllamaSetup.exe. It does not need administrator rights and installs into your home folder. Afterwards Ollama runs in the background and the `ollama` command works in PowerShell or Command Prompt.
  3. Linux: run the install script from the Ollama Linux docs, then start the service with `sudo systemctl start ollama`.

Pull a model and talk to it

  1. Open Terminal (Mac or Linux) or PowerShell (Windows).
  2. Download the model used in Ollama's own quickstart: `ollama pull gemma4:e2b`. The docs put it at about 7.2GB and recommend 8GB of available video memory or Mac unified memory.
  3. Start a chat with `ollama run gemma4:e2b` and type your question.
  4. Type `/bye` to leave the chat.

Ollama's FAQ says plainly that the company doesn't see your prompts or data when you run locally. Note that Ollama also offers optional cloud models that need an account and API key, so if privacy is the reason you're doing this, stick with models you've pulled to your own disk.

Getting more out of a local model

A few adjustments make a big difference once the basics work.

  • Check the model is using your GPU. In Ollama, run `ollama ps`. The Processor column shows "100% GPU" when the whole model sits on the graphics chip. A split like 48%/52% CPU/GPU means part of it spilled into system memory, which slows replies.
  • Give it a longer memory. Ollama's default context window is 4,096 tokens, roughly a few pages of text. You can raise it inside a chat with `/set parameter num_ctx` followed by a number, though larger values use more memory. Our piece on what a token is in AI explains the units.
  • Move models to a bigger drive. On Windows, open environment variables from Settings, create a user variable called `OLLAMA_MODELS` pointing at the new folder, then quit and reopen Ollama.
  • Try a model built for laptops. Small open weight models keep improving. Our look at Inkling 2 Mini shows the kind of model designed for this, and our comparison of self hosting Mistral Large 4 versus using its API shows where local setups hit their limits.

When running AI locally doesn't work

The model won't load or the app crashes. This usually means the model is too big for your memory. Close browsers and other heavy apps, then try a smaller download or a smaller version of the same model.

Replies crawl out one word at a time. The model is likely running on the CPU. Run `ollama ps` to check, update your GPU drivers (NVIDIA 551.61 or newer on Windows for Ollama), or switch to a smaller model that fits entirely in video memory.

LM Studio says your Mac isn't supported. LM Studio needs Apple Silicon and macOS 14 or later. On an Intel Mac, Ollama is the option, running on the CPU only.

The `ollama` command isn't recognized. On Windows, open a new terminal window after installing. On a Mac, relaunch the app and accept the prompt to add the command line tool. On Linux, start the server with `ollama serve` if the service isn't running.

Answers are confidently wrong. Small local models make things up more often than large cloud ones. Treat their output the way you would any AI hallucination risk and check facts that matter.

One last tip: download two or three models of different sizes while you still have a fast connection. That way you can pick the right one for each job later, even with no signal at all. More guides like this live in our AI section.