Skip to content
Back to Blog

Run Llama Locally in 2026: Hardware, Ollama and Setup

Which Llama model to run on your own hardware in 2026, how much memory it needs, how to install it with Ollama, LM Studio or llama.cpp, and when a business is better off with a hosted model.

By Matthew Clarkson · August 1, 2024 · Updated November 17, 2026

Running Llama locally

This post started in 2024 as a guide to running Llama 3 on a laptop. Since then Meta has released one more Llama generation and moved its work to a new model family called Muse. The tools have matured too, and getting a model running on your own machine now takes a few commands.

This guide covers running the model: which one to pick, whether your hardware can hold it, and how to install it. If you want to build an agent on top of it, read the companion post, Build an AI Agent on Llama.

Where Llama stands in late 2026

The last Llama release was Llama 4, in April 2025. It came in two open sizes: Scout (109 billion parameters in total, 17 billion active per token) and Maverick (400 billion total, 17 billion active). Both use a mixture-of-experts design: only part of the model runs for each token, but the whole model still has to fit in memory.

In April 2026 Meta launched Muse Spark, the first model from Meta Superintelligence Labs. It's a closed model, and it marked a clear move away from the open-weights Llama strategy. Meta has since published open weights again, under the Muse name:

  • Muse Glimmer (August 2026): a 30 billion parameter model under the Apache 2.0 licence. A quantised 4-bit build runs on one consumer GPU or a well-specified Mac. At full precision it needs more than 55 GB of memory.
  • Muse Spark Open (October 2026): 816 billion parameters with 42 billion active, under Meta's own Muse Model License. It needs server-class hardware, so it's out of scope here.

Meta hasn't announced a Llama 5. The Llama models are still on Hugging Face and in Ollama, and they're fine for many jobs. If you're choosing a Meta model to run locally today, test Muse Glimmer next to Llama.

Pick a model

Start with the smallest model that does the job. Bigger models are slower and need more memory, and for classification, extraction and summaries a small model is often enough.

Sizes below are Ollama's default 4-bit downloads. The last column is our rough guide to the memory you'll want, with room left for the context and the operating system.

Model Download Context Licence Comfortable on
Llama 3.2 3B 2.0 GB 128K Llama 3.2 Community Most recent laptops
Llama 3.1 8B 4.9 GB 128K Llama 3.1 Community 16 GB Mac or 8 GB GPU
Muse Glimmer 30B 18 GB 128K Apache 2.0 32 GB Mac or 24 GB GPU
Llama 3.3 70B 43 GB 128K Llama 3.3 Community 64 GB Mac or 48 GB of VRAM
Llama 4 Scout 67 GB 10M Llama 4 Community 96 GB Mac or one 80 GB GPU
Llama 4 Maverick 245 GB 1M Llama 4 Community Multi-GPU server

These figures are for the quantised 4-bit builds. Full-precision weights need far more memory: Muse Glimmer, for example, needs more than 55 GB at full precision against 18 GB at 4-bit.

Other open-weight models run in the same tools, so it costs you one command to compare them:

  • gpt-oss-20b from OpenAI (14 GB, Apache 2.0)
  • Gemma 4 from Google DeepMind (Apache 2.0, from the small E2B up to 31B)
  • Qwen 3.6 from Alibaba (27B and 35B)

A note on licences. The Llama licences allow commercial use, but if you distribute the model or a product that contains it, you must show "Built with Llama" and include the licence. Companies with more than 700 million monthly active users need a separate licence from Meta. Meta's Hugging Face repositories also ask you to accept the licence before you can download. Apache 2.0 models such as Muse Glimmer, gpt-oss and Gemma 4 are simpler to clear with a legal team.

Check your hardware

The model has to fit in memory, with space left for the context (the text you send it and the reply) and for everything else on the machine. A useful rule: at 4-bit, plan on about 0.6 GB per billion parameters. That matches the download sizes in the table. Long prompts need more on top.

Where that memory sits depends on the machine.

  • Apple Silicon Mac: the GPU uses the Mac's unified memory, so a 64 GB MacBook Pro can hold a model that would need a 48 GB workstation card in a PC. macOS keeps some memory for itself, so don't plan to use all of it.
  • PC with an NVIDIA GPU: what counts is the card's VRAM. A 24 GB or 32 GB card holds models up to about 30 billion parameters in a quantised 4-bit build, such as Muse Glimmer. At full precision Muse Glimmer needs more than 55 GB. When a model is too big for the card, part of it runs from system RAM and speed drops a lot.
  • No GPU: Ollama and llama.cpp will run on the CPU. It's workable for small models and slow for anything bigger. Meta estimates about 6 to 14 tokens per second for Muse Glimmer without a dedicated graphics card.

For a sense of speed with a GPU, Meta measured the 4-bit Muse Glimmer at about 75 tokens per second on an RTX 5090 and about 27 on an M5 Max MacBook Pro. With the speculative-decoding drafter Meta ships alongside it, those rose to about 233 and 50.

Install and run

Pick one tool. Each one downloads models, runs them and serves an API your own code can call.

Ollama

Ollama is the best default for most people. It runs in the background, manages downloads and exposes an OpenAI-compatible API.

# macOS or Linux
curl -fsSL https://ollama.com/install.sh | sh

# Windows (PowerShell)
irm https://ollama.com/install.ps1 | iex

# Download and chat with Llama 3.1 8B
ollama run llama3.1:8b

# Or Meta's newer local model
ollama run muse-glimmer

On Apple Silicon, some models have an MLX build, for example muse-glimmer:30b-mlx. MLX is Apple's own machine learning framework.

The API sits at http://localhost:11434/v1. Code written for the OpenAI SDK works once you change the base URL:

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:11434/v1",
    api_key="ollama",  # Ollama ignores the value, but the SDK needs one
)

response = client.chat.completions.create(
    model="llama3.1:8b",
    messages=[
        {"role": "system", "content": "You classify support tickets."},
        {"role": "user", "content": "My order arrived damaged."},
    ],
)
print(response.choices[0].message.content)

LM Studio

LM Studio is a desktop app for people who'd rather not use a terminal: search for a model, download it and chat with it in a window. It has been free for use at work since July 2025. On a Mac it needs Apple Silicon and macOS 14 or later, with 16 GB of RAM recommended. It can also run a local OpenAI-compatible server with lms server start.

llama.cpp

llama.cpp is the engine underneath a lot of local AI tools, and it reached version 1.0 with a single llama command. Use it directly when you want control over the exact quantisation, or you're running on unusual hardware.

# Install (macOS or Linux)
curl -LsSf https://llama.app/install.sh | sh

# Chat with a 4-bit Llama 3.1 8B from Hugging Face
llama cli -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M

# Or serve it as an OpenAI-compatible API
llama serve -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M

vLLM

vLLM is for serving many users at once from a Linux server with NVIDIA or AMD GPUs. It's not a laptop tool. Once you've accepted Meta's licence on Hugging Face, vllm serve meta-llama/Llama-3.3-70B-Instruct starts an OpenAI-compatible server on port 8000. Sizing a production server and running an agent loop against it are covered in the Llama agent guide.

Test it on your own work

Public benchmarks won't tell you whether a model handles your invoices or support tickets. Before you commit, run a few dozen real examples through the local model and a hosted model and compare the answers. Check accuracy, whether the output keeps to the format you asked for, and the speed on the hardware you plan to use.

If the job is answering questions from your own documents, the model matters less than the retrieval around it. Our post on RAG explains how that part works.

When local is the wrong choice for a business

Running a model locally makes sense when data can't leave your network, when volume is high and steady, when the system must work offline, or when developers want to prototype without an API bill. Otherwise, a hosted model is usually the better call.

  • The volume is low. A few thousand requests a month costs little through an API. The hardware, and the staff time to look after it, cost more.
  • You need the strongest reasoning. Models that fit on a desk have improved a lot, but the largest hosted models still do better on long, multi-step tasks. Test before you assume either way.
  • Nobody owns it. A local model needs updates, monitoring and someone to fix it when a driver update breaks the GPU. If your team is already stretched, that work will slip.
  • Data residency is the only reason. Keeping data on your own hardware makes Australian Privacy Principle 8 (cross-border disclosure) simpler, but it isn't the only way to meet it. Check whether a hosted provider can process the data in Australia before you buy hardware.

Plenty of the systems we build use both: a local model for high-volume, well-defined steps, and a hosted model for the hard cases. Our AI consultants can help you work out the split.

Frequently asked questions

Can I run Llama offline?

Yes. Once the model is downloaded, it runs entirely on your machine with no internet connection, which suits air-gapped and restricted networks.

Is Llama free for commercial use?

Yes, under Meta's community licence, with conditions: show "Built with Llama" if you distribute it, follow Meta's acceptable use policy, and get a separate licence if you have more than 700 million monthly active users. Muse Glimmer uses Apache 2.0, which has fewer conditions.

If you're weighing a local model against a hosted API for a real workload, book a 15-minute call.

Last updated on November 17, 2026

Free tool · 3 minutes

AI Readiness Assessment

Score how ready your business is for AI in a few minutes, with tailored next steps.

Continue Reading

View all
AI Document Processing
Artificial Intelligence·14 min

AI Document Processing

How AI document processing reads, sorts and checks invoices, forms and records, what to verify on accuracy and privacy in Australia, and how to start with one document type.

Nov 23, 2026

Sick of reading about automation?

Book a free 15-minute intro call. We’ll talk through what you’re trying to automate and whether we’re a good fit.