Model library / Guide

Local LLMs: how to run AI models on your own machine

A local LLM is an AI language model that runs on a computer you own instead of on a company's servers. It answers with no internet connection, and nothing you type leaves the machine. This guide covers what you need to do it well.

What you need: memory first

The model has to fit in memory. A model's files are roughly one gigabyte per billion parameters at 8-bit, and two at 16-bit, so a 27-billion-parameter model needs about 56 GB at 16-bit, and a 321-billion-parameter one about 328 GB at 8-bit.

On a PC, that memory is on the graphics card, and even our largest card holds 96 GB. On a Mac Studio the processor and graphics share up to 512 GB, which is why Macs run models no single graphics card can hold.

The second number is memory speed, which decides how fast answers appear: the M5 Max moves 614 GB/s and the M5 Ultra about twice that.

The software that runs them

  • Ollama: the easiest start; one command downloads and runs a model, on Mac, Windows or Linux.
  • LM Studio: a desktop app with a chat window and a model browser.
  • llama.cpp: the engine underneath many tools; runs the GGUF file format on Macs and Nvidia cards alike.
  • MLX: Apple's own engine for Macs.
  • vLLM: the server engine for Nvidia cards, built for many people asking at once.

File formats, in one paragraph

Labs publish the original weights as safetensors files. GGUF is a single-file format that llama.cpp, Ollama and LM Studio read on both Mac and PC. MLX files run on Macs. A compressed copy (4-bit, 6-bit) is smaller and faster but loses some quality; we keep the originals and make compressed copies only when a machine needs one.

Where the models come from, and why we keep our own copies

Most open models are published on Hugging Face, with copies on ModelScope and in the Ollama library. Websites change owners, rules and terms, so we keep our own archive of the open models we install, checked and stored offline. A machine we set up does not depend on any one website staying the same.

Questions we get asked

Can a local LLM run completely offline?

+

Yes. Downloading the model needs the internet once. After that it runs with no connection at all.

Is a local LLM as good as ChatGPT?

+

The largest open models are close to the best cloud models on many tasks but still behind on long, multi-step work. What you can run depends on your machine's memory: a 128 GB machine runs mid-sized models well; the largest need a server.

Which is better for local AI, a Mac or a PC?

+

A Mac Studio holds bigger models (up to 512 GB). A PC with a graphics card is faster on models that fit in its card's memory and is the better choice for training. See our Mac Studio vs DGX Spark comparison for the details.

Want it running without the setup?

Any tower or Mac Studio we sell can ship with the models that fit it already installed and tested. For an office, we also connect it to your files and systems and train your team.