Self-hosted LLM guide

How to run your own ChatGPT offline

ChatGPT runs on someone else's computers. Every question you type goes over the internet to a data center, and it stops working when the connection does. A self-hosted LLM flips that around: the AI model is a file on your own drive, your computer does the work, and nothing leaves the machine.

This guide covers what that takes: the hardware, the software, and what to expect from a model small enough to run at home.

What "self-hosted LLM" means

An LLM, or large language model, is the engine behind chat assistants like ChatGPT. Open-weight models are published so anyone can download and run them. Well-known families include Meta's Llama, Qwen, Gemma, Mistral, DeepSeek-R1, and OpenAI's gpt-oss.

Self-hosting means three pieces on your own computer:

  1. The model, a file of a few gigabytes. In Project NOMAD's catalog they range from about 1.3 GB for Llama 3.2 1B to 20 GB for Qwen 3 32B.
  2. A runner that loads the model and generates text. Ollama is a popular open-source one, and it is what Project NOMAD uses.
  3. A chat interface, the window you type into.

Once the model is downloaded, none of the three needs the internet.

Local AI vs ChatGPT: the honest trade-off

  • Works offline

    Cloud: No

    Self-hosted: Yes, once it is set up

  • Your data

    Cloud: Sent to the provider

    Self-hosted: Stays on your machine

  • Software cost

    Cloud: Free tier or subscription

    Self-hosted: Free, open-source software. You supply the hardware.

  • Model size

    Cloud: Very large models

    Self-hosted: Smaller models that know less and make more mistakes

  • Speed

    Cloud: Fast

    Self-hosted: Depends on your hardware

Home-sized models are smaller than cloud models, and it shows: they know less, and they get things wrong more often. Where they earn their place is privacy, independence from the internet, and working through your own documents.

What hardware do you need?

The short version: memory decides which models you can run, and the graphics card decides how fast they run.

  • A model needs about its download size in memory while it answers, plus about 1.2 GB for Ollama itself.
  • With a graphics card, that memory is the card's VRAM. With integrated graphics or no GPU, it comes from system RAM: 8 GB is workable for a small model, 16 GB is comfortable, and 32 GB is the recommendation for larger ones.
  • On an 8-billion-parameter model we measured 12.3 tokens per second on AMD Radeon 780M integrated graphics and 84.2 on an NVIDIA RTX 5060. Community builds report around 65 on an RTX 3060 12 GB and around 150 on an RTX 3090.

The offline AI model list shows the sizes of popular models, and the hardware guide has builds at three price points. The NOMAD Benchmark leaderboard shows what other people's machines do.

Your options for running an LLM at home

1. Ollama on its own

A command-line runner, open source under the MIT license. On Linux you install it with one command, then download and chat with a model in the terminal:

curl -fsSL https://ollama.com/install.sh | sh
ollama run <model-name>

Good if you are comfortable in a shell. Ollama also offers cloud models that run on its servers, so if privacy is the point, pick models that download to your machine.

2. Ollama plus Open WebUI

Open WebUI is a self-hosted chat interface that runs in your browser and works with Ollama and OpenAI-compatible servers. It gives you a ChatGPT-style window on top of your own models, and you install and maintain both pieces yourself.

3. Project NOMAD

Free and open source under the Apache 2.0 license. It installs Ollama for you, puts a chat window in the same dashboard as an offline library of Wikipedia, maps, books, medical references, and courses, detects NVIDIA and AMD graphics cards, and lets you add your own PDFs and documents to a Knowledge Base the AI can search.

If you want the AI to be part of a whole offline setup rather than a standalone chat app, that is what Project NOMAD is for. The install is two commands and a setup wizard, and the AI is a checkbox, not a requirement.

Setting it up with Project NOMAD

  1. Get an x86 PC running Ubuntu or Debian. Ubuntu 26.04 LTS is recommended, and 24.04 LTS and Debian 12 also work. It does not run on a Raspberry Pi or natively on macOS.
  2. Run the install command from the install guide.
  3. Open http://localhost:8080 in a browser on that PC, or the PC’s IP address on port 8080 from another device.
  4. In the Easy Setup wizard, tick the AI Assistant and pick a model. The wizard suggests a few to start with.
  5. For more choice, the AI Assistant settings page lists more than 200 local models, searchable by name.
  6. Unplug the internet and keep chatting.

Already have a computer with a big graphics card running Ollama elsewhere on your network? Project NOMAD can use it as a remote AI backend, as well as LM Studio, llama.cpp, and other OpenAI-compatible servers.

Getting good answers from a small model

  • Start small. On modest hardware, a 3B to 8B model that fits comfortably answers faster than a big one that barely fits.
  • Give it your documents. A small model is more useful when it can read the manual you uploaded than when it answers from memory.
  • Check what matters. Treat the assistant as a fast way into your library, and treat the library itself as the source of truth.

Self-hosted LLM questions

Can I run ChatGPT itself offline?

ChatGPT is a cloud service, so no. What you run at home is an open-weight model that works the same way, in a chat window that looks much the same. OpenAI does publish two open-weight models of its own, gpt-oss-20b and gpt-oss-120b, and the smaller one is a 14 GB download in Project NOMAD.

Is a self-hosted LLM free?

The software can be. Project NOMAD is free and open source under the Apache 2.0 license, and Ollama is open source under the MIT license. You pay for the hardware and the electricity.

Do I need a GPU?

No, but it helps a lot. Without one, the model runs on the CPU and integrated graphics. That works for small models and is considerably slower.

How much storage do AI models need?

From about 1 GB for the smallest models to 20 GB or more for larger ones. Plan on roughly 25 GB in total for Project NOMAD with the AI Assistant and a general-purpose model, before any other content.

Is a self-hosted LLM private?

With Project NOMAD, yes. There is no account and no API key, and nothing you type is sent to a company or a data center. If you use another tool, check whether the model you picked runs locally: Ollama, for example, also offers cloud models that run on its servers.