How to run AI locally on Windows and Linux

Local AI means AI models that run on your own device instead of on a company's servers. You download a model once. After that, your prompts and files stay on your device, the model works with no internet connection, and a request has no cost.

This guide shows what you need, how to tell which models your device can run, and every step from the download to your first conversation. The steps use Hearthscale, a free app for Windows and Linux. Hearthscale Server, which comes with it, downloads and runs the models for you.

What you need

  • A 64-bit device with Windows 10 or 11, or Linux. Hearthscale for Windows on Arm is in beta. There, models run on the processor, and image, music and video are off.
  • Enough memory for the model. A model stays in memory while you use it: in the graphics card's own memory, called VRAM, or in system memory. The next section shows how much a model takes.
  • A graphics card, if you have one. A graphics card makes models faster, but you don't need one: see Run a local LLM without a GPU. NVIDIA, AMD and Intel graphics cards work.
  • Disk space for the models. A model takes as much space on disk as its files: a few gigabytes for a small chat model, 20 GB or more for a large one.
  • An internet connection, once, to install Hearthscale and download the models.

How much memory do you need?

A chat model, also called an LLM (large language model), keeps two things in memory while you use it:

  • Its weights, the files you download.
  • Its context: the conversation and the files you give it. The recommendations count 15% of the size of the model's files for the context, and at least 1.5 GB.

Most local models come quantized: their weights are stored at lower precision, such as 4 or 8 bits for each parameter. A smaller quantization needs less memory and disk space, with some loss of quality. At 4 bits, as in the common Q4_K_M files, a model's files take about 0.6 GB for each billion parameters, so the files of a 9B model take about 5.5 GB. At 8 bits (Q8_0), they take about 1.1 GB for each billion. To choose between them, see GGUF quantization explained.

A graphics card does the work fastest from its own memory. Hearthscale Server keeps 512 MB of it for other programs. Where the card cannot hold the whole model, the rest goes to system memory, which is slower.

Your deviceThe largest chat model it holds wholeParameters at 4 bits, up to about
8 GB of VRAM6 GB9B
12 GB of VRAM10 GB16B
16 GB of VRAM13 GB20B
24 GB of VRAM20 GB32B
No graphics card, 16 GB of system memory8 GB, on the processor13B

With no graphics card, the processor does the work in system memory, which is slower. Only models that half of system memory can hold are recommended. Integrated graphics share system memory, so they count as no graphics card. On the processor, replies come faster from a smaller model.

A mixture-of-experts model, such as one named 35B-A3B, needs memory for all 35 billion parameters, but only about 3 billion of them compute each token. Its replies come much faster than those of a dense model of the same size, also when part of it is in system memory.

To see the models recommended for your memory, with their sizes, choose your graphics card and system memory on What AI models can your device run?. Hearthscale Server shows the same before each download. In Explore, a mark below each file shows whether your graphics card holds the whole model (Full GPU offload possible) or part of it (Partial GPU offload possible), or whether the file is likely too large for the device.

Explore with Qwen3 0.6B selected, its Q8_0 file of 610 MB, a Download button and Full GPU offload possible.

A model in Explore. The mark below the file shows that the graphics card holds the whole model.

Getting started

Download Hearthscale

Open the download page and choose the download for your system.

On Windows, run the installer. The download is not signed yet, so Windows shows a warning first: choose More info, check that the app is Hearthscale-Setup-x64.exe, and choose Run anyway. Then choose Install. The installer downloads Hearthscale, so stay connected to the internet.

On Ubuntu, Debian and other Linux systems with apt, install the Debian package:

sudo apt install ./Hearthscale-x86_64.deb

On other Linux systems, use the AppImage. Install Hearthscale has every step.

Choose your models

On Windows, the installer's Your setup step lists the models recommended for your device. Select the ones you want and choose Download. On every system, you can add models later.

Open Hearthscale and follow the first-run steps. You don't need an account to use local models.

Install Ash

A new Hearthscale has no apps. Choose Marketplace in the first tile, open Ash and choose Install. With Ash, you chat, plan and get work done on your files. Ash is free.

Choose a model and ask a question

In Ash, click the model's name at the bottom right of the composer. A model that is not on your device yet has Download on its row. Choose a model, type a question and press Enter. A local model may take a moment to load before its first reply.

Try it offline

Turn off Wi-Fi or unplug the network cable, and ask Ash another question. The reply comes from the model on your device.

You need a connection only to install Hearthscale, to start it for the first time, when Hearthscale Server downloads the runtimes for your device, and to download models, apps and updates. A runtime is the program that runs a model, such as llama.cpp. Web research, connectors to online services and cloud models need a connection too. Everything else works offline. See Offline AI.

NVIDIA, AMD and Intel cards

On Windows and Linux, Hearthscale Server installs the Vulkan build of each runtime that has one. Vulkan runs on NVIDIA, AMD and Intel graphics cards. On Windows with an NVIDIA graphics card, the Server then moves each runtime to its faster CUDA build in the background. On Linux with an NVIDIA graphics card, llama.cpp runs with CUDA from the start. If the Vulkan build cannot run on the device, for example because it has no Vulkan driver, the Server installs the runtime's CPU build.

To choose another build yourself, open Runtime in Hearthscale Server and choose it in the runtime's Acceleration menu. See Runtimes and builds. How fast each GeForce card is, and whether CUDA or Vulkan is faster on it, is in Local LLMs on NVIDIA GPUs. Run local AI on an AMD GPU has the same for Radeon cards, with Vulkan and ROCm, and Run local AI on an Intel Arc GPU for Intel's cards, with Vulkan and SYCL.

Speech, pictures and music

The same Server runs models for speech, pictures and music. Install the apps for them from the Marketplace:

Using models from another device

A laptop can use the models of a stronger device. Run Hearthscale Server on the device with the strongest graphics card, and every other device with Hearthscale can use the models there. The connection is end-to-end encrypted, and you open no port on your router. On the same network, you need no account and no internet. The Server asks you before each new device connects. See Hearthscale Server.

Using the API

Hearthscale Server has an OpenAI-compatible API, with Chat Completions and Responses, and Anthropic's Messages API. A program that lets you set a base URL can use your local models. Open API & access in the Server to copy the address and the token, and use the token as the API key:

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:7283/v1", api_key="YOUR_TOKEN")
reply = client.chat.completions.create(
    model="YOUR_MODEL_ID",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)

GET /v1/models lists the ids of your downloaded models. Every route is in Use the OpenAI-compatible API. To run Claude Code or Codex on a local model, see Claude Code and Codex with local models, and to choose the model, Best local LLM for coding.

Local vs cloud AI

Local AICloud AI
Your prompts and filesStay on your deviceGo to the provider's servers
Internet connectionOnly to downloadFor every request
CostNo cost per requestA subscription or a price per request
LimitsYour device's memory and speedThe usage limits of your plan
Model sizeWhat your memory holdsThe largest models

You can use both. In Hearthscale, add a cloud service in Settings → Providers, and choose in each conversation where its model runs.

Troubleshooting

  • Replies come slowly. Replies come more slowly when part of a model is in system memory. Choose a smaller model, or a smaller quantization of it, so that your graphics card holds the whole model. Loaded in Hearthscale Server shows how much of each model is in graphics memory and in system memory.
  • The Server refuses to load a model. The refusal names the limit that stops it and what to change, such as closing other programs. See Loaded models and memory.
  • Windows blocks the installer. If Smart App Control is on, it blocks the installer, and there is no way past it.

Download Hearthscale for Windows or Linux. Hearthscale is free, and you need no account.

More guides

Run a local LLM without a GPU

No graphics card? Run a local LLM on your processor on Windows or Linux: how fast common processors are, which models to choose, and why memory speed matters.

Bring your AI home.