Run AI on your own machine in 2027.

Ollama, LM Studio, Jan, llama.cpp and MLX side by side: how to run AI models on your own computer, what hardware you need and how to keep it private.

Home lab, a holo rare equip card for the guide “Run AI on your own machine in 2027”: Claymation still of a small clay robot sitting cross-legged inside an old beige computer tower made into a cosy bedroom, a graphics card for a bed.
LRN 29/38 · holo rare

By Rabin Nuchtabek · Updated 2026-11-04 · 5 min read · For Must know, Builders

Part of What is a forward deployed engineer? The ultimate guide to becoming one in 2027

Running a model locally means the AI works on your own laptop or server instead of someone else's cloud. Your prompts stay on your machine, it works offline and nothing bills you per token. The trade-off is size: your memory decides how big a model you can run, and the biggest open models still need serious hardware. Going into 2027 the tools are easy enough to try in an afternoon. This directory covers the apps, the engines underneath, what your machine can run and how to keep it private for real. Descriptions are each project's own words; GitHub numbers are from 4 November 2026.

Start here: apps for your laptop

The engines underneath

Most local apps run on one of these. You'll meet them when you want more speed or control.

A chat window and an API

Serving a team or a product

When many people or an app need the model at once, you need a serving engine on a proper GPU server.

What your machine can run

Memory is the limit. Most people run models compressed to 4 bits per weight, which is called quantization. At that size a model needs a little over half a gigabyte of memory for every billion parameters, plus room for the conversation.

On a Mac with Apple silicon, the memory is shared, so most of it can hold the model. On a PC, the graphics card's own memory sets the fast limit; a model that spills into normal memory still runs, just slower. Some models are a mixture of experts: they use only part of the model for each token, so they run faster than their size suggests, but you still need the memory to hold all of it.

Which models to try

Ollama's own description names Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen and Gemma. The biggest versions of these need far more memory than a laptop has, so pick a size that fits the list above; Ollama's model library shows the download size of each one. Small language models are the ones built to fit. Each model also comes with its own licence, and open weights don't always mean open source, so read the licence before you use one at work.

How to choose

  1. Just want a private chat? Start with LM Studio or Jan. Download a small model, then turn off your wifi and see that it still answers.
  2. Building something? Use Ollama or LocalAI and point your code at their OpenAI-style API.
  3. On a Mac? Try the MLX tools; they're built for Apple silicon.
  4. Serving a team? That's a server job: vLLM or SGLang on a GPU machine.
  5. Coding with it? Several open-source coding agents can run on a local model. AI coding agents for 2027, compared lists the ones that let you pick your model.

Keep it private for real

New to the idea? Read what a local LLM is in plain words, then Open-source AI agents worth trying in 2027 for agents you can run on top.

What's happening now

  • An exposed Ollama server became an attacker’s brain. Sysdig watched an attacker point a hacking tool at a misconfigured Ollama server and use its model to scan targets, match them to known flaws and write exploit code. Its advice: treat an exposed model server like an exposed database. Sysdig Threat Research
  • Ollama memory leak fixed in 0.17.1. CVE-2026-7482: a crafted model file sent to an unpatched Ollama server could leak its memory to anyone, no login needed. That memory may include API keys, system prompts and other users’ conversations. CVE record
  • 12,269 Ollama servers open to anyone. LeakIX found 12,269 Ollama instances on the public internet with zero authentication, mostly because people set them to listen on every network interface so other machines could reach them. LeakIX

Fresh from This week in AI

local llm went from "fun toy" to "production stack" in the last 30 days. almost nobody noticed.

Rabin Nuchtabek on X, 2026-05-05: the post
The main tools side by side
Best forLicenceStars, Nov 2026
OllamaRunning models with one command and an APIMIT185,788
Open WebUIA ChatGPT-style window for local modelsOpen WebUI License157,654
llama.cppThe engine many local tools build onMIT133,261
vLLMServing many users from a GPU serverApache-2.096,224
JanA private chat app that works offlineApache-2.045,378
MLXRunning models on Apple silicon MacsMIT29,036

Questions people ask

What does running an AI model locally actually mean?

Running a model locally means the AI works on your own laptop or server instead of someone else's cloud. Your prompts stay on your machine, it works offline and nothing bills you per token. The trade-off is size: your memory decides how big a model you can run, and the biggest open models still need serious hardware.

How much memory do I need to run a local LLM?

At 4-bit quantization, plan a little over half a gigabyte per billion parameters, plus room for the conversation. An 8-billion-parameter model needs about 5 GB, so a 16 GB laptop runs it comfortably. A 32-billion model needs about 20 GB, and a 70-billion model needs about 40 GB, such as a Mac with 64 GB or two 24 GB graphics cards.

Ollama vs LM Studio vs Jan: which should I use?

For a private chat, start with LM Studio or Jan, download a small model, then turn off your wifi to confirm it still answers. If you are building something, use Ollama or LocalAI and point your code at their OpenAI-style API. Note that the LM Studio app itself isn't open source, while Jan is Apache-2.0.

Is it risky to expose my Ollama server to the internet?

Yes. Ollama listens only on your own machine by default and has no login. In February 2026 LeakIX found 12,269 Ollama servers open to the public internet with no authentication. Keep it local, or put it behind a VPN and a login, and keep it updated, since versions older than 0.17.1 could leak memory including API keys.

How should I prepare for running AI locally in 2027?

Check your memory first and pick a model size that fits, using Ollama's library to see download sizes. Try LM Studio or Jan in an afternoon, or the MLX tools on a Mac. Read each model's licence before work use, download only from trusted publishers, avoid older pickle files, keep approval on for actions and never open the model server to the internet.

Key terms

Local LLM · Quantization · Parameters · Open-weights model · Small language model · Prompt injection

Try it here

Repos worth building on · Skills and workflows

Sources

How this site is made · Every Learn guide