A laptop on a wooden desk showing a chat window, with its Wi-Fi switched off in the system tray and a notebook beside it

Running AI Models Locally: A Beginner’s Guide to Private, Offline AI

AI Tools By Rohan Iyer 10 min read

Every prompt you type into a cloud chatbot travels to someone else's server. For drafts, client documents or anything personal, that is not always acceptable. The alternative is to run AI models locally, on your own laptop or desktop, so the model, your prompts and its answers never leave the machine. This guide explains what hardware you need, which free tools make it easy, how to pick a model that fits, and the limits you should know before you rely on it.

What "running AI locally" actually means

A large language model is, at its core, a big file of numbers (the weights) plus software that turns your text into a prediction of the next words. Companies such as Google and Meta publish some of their models as downloadable weights, usually called open-weight models. When you run one locally, three things live on your computer: the model file, the inference engine that does the maths, and an interface (a chat window or a command line).

Most beginner-friendly tools are built on llama.cpp, an open-source C/C++ project whose stated aim is to "enable LLM (and VLM) inference with minimal setup and state-of-the-art performance on a wide range of hardware". It supports Apple silicon, NVIDIA GPUs through CUDA, Vulkan, and ordinary x86 processors, and can split a model between your CPU and GPU when the model is larger than your graphics memory. The project is MIT-licensed.

You rarely need to touch llama.cpp directly. Two apps wrap it for ordinary users:

  • Ollama: a small background service with a command line and a local API. You type one command and it downloads and runs a model.
  • LM Studio: a desktop app with a model browser, a chat window and document chat, for people who prefer clicking to typing.

Why run a model locally?

Privacy and confidentiality

Ollama's documentation states plainly: "Ollama runs locally. We don't see your prompts or data when you run locally" (Ollama FAQ). LM Studio's offline guide says that nothing you enter when chatting leaves your device, and that documents you attach for retrieval are processed locally too (LM Studio, offline operation). For a freelancer handling client contracts, a clinic drafting letters or a student working on unpublished research, that is the main attraction.

Working offline

Once the model file is on your disk, you do not need a connection to chat with it. That helps on trains and flights, in areas with patchy mobile data, and during outages.

No per-message cost and no account

The tools and many models are free to download. You pay in hardware, electricity and disk space instead of a subscription. There is also no usage cap beyond what your machine can handle.

Learning how models work

Running a model yourself makes concepts like context windows, quantisation and model size concrete. That understanding transfers directly to cloud tools and to building your own automations later.

What hardware do you need?

The honest answer is "more memory than you think, but less than you fear". The table below summarises the official requirements for the two main apps.

PlatformLM StudioOllama
Windowsx64 with AVX2 support, or ARM (Snapdragon X Elite); at least 16GB RAM recommended; 4GB+ dedicated VRAM recommended for GPU useWindows 10 22H2 or newer (Home or Pro); NVIDIA driver 551.61 or newer if you have an NVIDIA card; AMD supported via ROCm or Vulkan; at least 4GB disk for the app itself
macOSApple Silicon (M1 to M4) only; macOS 14.0 or newer; 16GB+ RAM recommended, 8GB workable with smaller modelsInstaller or one-line script available
Linuxx64 or ARM64, distributed as an AppImage; Ubuntu 20.04 or newerOne-line install script or manual install

Sources: LM Studio system requirements, Ollama for Windows and the Ollama repository. Requirements change with new releases, so check the current pages before you buy hardware.

Why memory matters most

The whole model has to fit in memory to run at a usable speed: in your GPU's video memory (VRAM) if you have a dedicated graphics card, or in system RAM otherwise. On Apple Silicon Macs, the CPU and GPU share one pool of memory, which is why LM Studio's guidance for Macs is stated simply in RAM. If a model does not fit in VRAM, Ollama and llama.cpp can split it between GPU and CPU, but it will run more slowly. Ollama's ollama ps command shows whether a loaded model is "100% GPU" or split between CPU and GPU (Ollama FAQ).

Disk space matters too. Ollama warns that models "can be tens to hundreds of GB in size" (Ollama for Windows). On Windows they are stored under your user folder by default, and you can move them to a larger drive with the OLLAMA_MODELS environment variable.

Quantisation: how big models fit on small machines

A model's raw weights are usually stored as 16-bit numbers. Quantisation stores them with fewer bits, trading a little accuracy for a much smaller file. The common file format for local models is GGUF, created by the developer of llama.cpp. Hugging Face's documentation explains that GGUF stores both the weights and standard metadata, and is used by llama.cpp, LM Studio, GPT4All and Ollama (Hugging Face, GGUF).

The same page lists the effective bits per weight for each quantisation type. A few common ones:

TypeBits per weight (per Hugging Face)Approximate weight size for a 7B-parameter model*
F16 (unquantised)16about 14 GB
Q6_K6.5625about 5.7 GB
Q5_K5.5about 4.8 GB
Q4_K4.5about 3.9 GB
Q2_K2.625about 2.3 GB

*Calculated as parameters × bits per weight ÷ 8, ignoring overhead. Real files differ slightly because some layers are stored at higher precision, and the model needs extra memory while running for its context (the conversation it is holding in mind). A longer context window uses more memory; Ollama uses a 4,096-token context by default, which you can raise (Ollama FAQ).

The arithmetic matches what you see in practice. On Ollama's library, Google's Gemma 3 at 12 billion parameters is an 8.2GB download, the 4B version is 3.4GB and the 1B version is 806MB (Ollama library: gemma3). Meta's Llama 3.2 is 2.0GB at 3B and 1.3GB at 1B (Ollama library: llama3.2).

Pick the largest model that fits comfortably in memory with room to spare, not the largest one that technically loads.

Lower-bit versions lose some quality. As a starting point, many people use a 4-bit or 5-bit version, then compare it with a higher-bit version on their own tasks if they have the memory.

Step by step: your first local model

Option A: Ollama (command line)

  1. Install it. Download the installer from Ollama's site, or use the one-line install command listed in the Ollama repository for macOS, Windows or Linux.
  2. Run a small model first. In a terminal, type ollama run llama3.2:1b or ollama run gemma3:1b. Ollama downloads the model the first time, then opens a chat prompt.
  3. Try a larger one. If the small model runs smoothly, try a 3B or 4B model, then 12B if you have 16GB or more of free memory.
  4. Check where it is running. In a second terminal, ollama ps shows whether the model is on the GPU, the CPU or both.
  5. Connect other apps. Ollama exposes a local API at http://localhost:11434, which other tools, including automation platforms, can call.

Option B: LM Studio (graphical)

  1. Download LM Studio for your operating system and check your machine against the system requirements.
  2. Use the built-in model search (this needs internet) to find a model. LM Studio shows file sizes, so pick one that fits your memory with room to spare.
  3. Download it, load it and start a chat. You can attach documents and ask questions about them; LM Studio says this processing stays on your device.
  4. Disconnect from the internet and confirm the chat still works.

Choosing a model for your task

TaskStarting pointWhat to watch
Quick rewrites, summaries, email drafts1B to 4B modelsFast, but may miss nuance or make factual slips
Longer documents, reasoning, structured output8B to 14B modelsAt 4-bit, the weights alone are roughly 4.5GB to 8GB, plus working memory for the context
Describing images or screenshotsA multimodal model, such as Gemma 3 at 4B or larger, which accepts text and imagesImage input adds memory use
Indian languagesCheck the model card for the languages it was trained onQuality varies widely between languages and models; test with your own text

Model capabilities in the table above come from the model listings on Ollama's library; sizes and features change as new versions are released, so check the listing before you download.

Where the privacy promise starts and stops

Local AI is private by design, but a few details can undo that if you are not careful.

  • Some features use the internet. LM Studio's model search, downloads, runtime updates and app-update checks all need a connection (LM Studio, offline operation). Ollama offers optional cloud models and web search; its FAQ explains that these can be turned off with OLLAMA_NO_CLOUD=1 or a setting in its server configuration (Ollama FAQ). If confidentiality matters, make sure you are using a downloaded local model, not a cloud one.
  • Network exposure. Ollama listens only on 127.0.0.1 (your own machine) by default. If you change OLLAMA_HOST to make it reachable from other devices, anyone on that network may be able to use it, so do this only on a network you trust.
  • Your own device security. Local chats are only as safe as the laptop. Use disk encryption and a strong login, especially if the files contain client or patient information.
  • Where the model came from. Download models from the official libraries in Ollama or LM Studio, or from the original publisher's page, rather than from unknown re-uploads.

Honest limitations

  • Smaller models are less capable. A 4B model running on a laptop will not match the largest cloud models on complex reasoning, coding or up-to-date facts.
  • No live knowledge. A local model knows only what was in its training data, unless you give it documents or connect a search tool.
  • Speed depends on hardware. On CPU-only machines, replies can arrive slowly, word by word.
  • Heat, battery and fan noise. Running a model works the processor hard. Expect laptops to warm up and batteries to drain faster.
  • Same old mistakes. Local models can still invent facts. Check anything important against a reliable source.

Where to go next

Once a model runs locally, you can plug it into other tools. Ollama's local API means automation platforms that support custom HTTP calls can use it; our comparison of Zapier, Make and n8n explains which of them can be self-hosted alongside a local model. If you would rather build a ready-made assistant for customers or staff, see our guide to building a custom AI assistant for a small business without code.

The bottom line

To run AI models locally, you need an open-weight model, a tool such as Ollama or LM Studio, and enough memory to hold the model. Start with a 1B to 4B model at 4-bit quantisation, check that it runs offline, then move up in size while it stays responsive. Keep cloud features switched off when you need confidentiality, read each model's licence, and use local AI for the tasks where privacy matters more than having the largest model available.

Frequently asked questions

Can I run AI models locally on a laptop with 8GB of RAM?

Yes, with small models. LM Studio says 8GB Macs can run it with smaller models and modest context sizes, and 1B to 3B models such as Llama 3.2 or Gemma 3 1B are 0.8GB to 2GB downloads on Ollama.

Do I need a graphics card?

No, but it helps. llama.cpp, which powers Ollama and LM Studio, runs on ordinary CPUs and can split a model between CPU and GPU, but a GPU with enough VRAM, or an Apple Silicon Mac, is much faster.

Is local AI completely private?

Chats with a downloaded model stay on your device, according to both Ollama and LM Studio. Model downloads, update checks and any optional cloud models or web search do use the internet, so turn those off when confidentiality matters.

Is Ollama or LM Studio better for beginners?

LM Studio suits people who prefer a graphical app with a built-in model browser. Ollama suits people comfortable with a terminal, or who want a local API for other apps to use.

Can I use local models for my business?

Often, but it depends on each model's licence. Read the terms linked from the model page, such as Google's Gemma Terms of Use, before using a model in a commercial product.

Sources

  1. llama.cpp, ggml-org on GitHub, accessed 2026.
  2. Ollama, Ollama on GitHub, accessed 2026.
  3. FAQ, Ollama documentation, accessed 2026.
  4. Windows, Ollama documentation, accessed 2026.
  5. System Requirements, LM Studio documentation, accessed 2026.
  6. Offline Operation, LM Studio documentation, accessed 2026.
  7. GGUF, Hugging Face Hub documentation, accessed 2026.
  8. gemma3, Ollama model library, accessed 2026.
  9. llama3.2, Ollama model library, accessed 2026.
  10. Gemma Terms of Use, Google AI for Developers, accessed 2026.