Dev.to AI 🤖 Ai 👁 0 📖 11 min read

How to Set Up a Local LLM on Any Budget: A Buyer's Guide for December 2026

Most people pick a local AI machine by looking at the chip. That is the wrong number to look at first. For running a language model at home, two numbers decide almost everything: how much memory the machine has and how

Most people pick a local AI machine by looking at the chip. That is the wrong number to look at first.

For running a language model at home, two numbers decide almost everything: how much memory the machine has and how fast that memory moves data (memory bandwidth). The chip matters much less. A $1,299 Mac mini and a $5,399 Mac Studio can run the same 27B model. One does it at about 10 tokens per second, and the other at about 30.

This guide walks through every budget, from the laptop you already own to a $10,000 workstation. Each tier lists what it costs, which models fit, and how fast they run. Speeds come from published reviews and owner reports, with links. Vendor benchmark scores are marked as vendor claims.

Prices are US list prices in early December 2026.

Two numbers that decide everything

Memory size decides which models fit. A model's weights must sit in memory. At 4-bit quantization (a compressed format that keeps most of the quality), a model needs roughly 0.6 GB per billion parameters. A 27B model needs about 17 to 19 GB. A 120B model needs about 60 to 65 GB.

You also need room for three more things:

  • The context (the conversation and files the model is reading). Newer models are cheap here. Qwen3.8-27B needs about 10 GB for a 128K-token context, according to this analysis.
  • The operating system and your other apps.
  • The GPU limit. On a Mac, the GPU can use only part of the memory by default. One owner of a 128 GB Mac Studio measured the limit at about 107.5 GiB. On smaller Macs it is roughly 75%.

Memory bandwidth decides speed. For each word it writes, the model reads its active weights from memory. More bandwidth means more tokens per second. That is why a Mac Studio M5 Max (614 GB/s) runs the same model about twice as fast as a Mac mini M5 Pro (307 GB/s).

One more term helps. A mixture-of-experts (MoE) model has many parameters but uses only a few for each token. Qwen3.6-35B-A3B has 35B parameters but only 3B active. So it needs the memory of a 35B model but runs at the speed of a 3B one. On cheaper machines, MoE models are your best friend.

Budget 0: the machine you already own

Start here, even if you plan to buy. A week of testing on your current laptop tells you whether local AI is useful for your work. A new machine makes it faster. It does not make a weak model smarter.

Install LM Studio or Ollama and pick a model by memory:

  • 8 GB: small models only, such as Qwen3 4B or Gemma 4 E4B. Fine for short questions and summaries.
  • 16 GB: Gemma 4 12B or Qwen 3.5 9B. In one reviewer's test, a 16 GB M5 MacBook Air ran Qwen 3.5 9B at 21 tokens per second and Gemma 4 12B at 16.
  • 24 GB: Inkling 2 Mini or Qwen3.8-27B at 4-bit (about 17 to 20 GB). This is tight. Close other apps and keep the context short.
  • 32 GB and up: the 27B tier fits with room to spare. More on these models below.

Gaming PC owners have another path. A graphics card with 24 GB or more of video memory runs the 27B tier well, because graphics memory is very fast.

Budget $1,300: Mac mini M6 with 32 GB

Price: $1,299 with 32 GB and 512 GB of storage (Apple configurator prices, collected here).

Bandwidth: 170 GB/s.

The base M6 Mac mini ($899, 16 GB) is a poor AI machine. It has too little memory and slower bandwidth (153 GB/s). Pay the extra $400 for 32 GB, because memory cannot be upgraded later.

Measured speeds on the 32 GB M6:

  • Qwen3.6-35B-A3B (MoE): about 59 to 64 tokens per second (community runs, collected by LLMCheck)
  • Gemma 4 26B-A4B (MoE): about 48 to 52 tokens per second (same source)
  • Qwen3.8-27B (dense): 9.6 to 12.8 tokens per second in standard runtimes, and 21 with the Splash runtime, which uses speculative decoding (video review)

Good for: one person who wants a quiet, always-on assistant with a 27B-class model. That reviewer ran Qwen3.8-27B daily with an 80,000-token context, using about 27 GB of the 32.

Not good for: anything above 32 GB. The M6 cannot be configured with more.

Budget $2,300 to $3,200: Mac mini M5 Pro with 48 or 64 GB

Prices:

  • 48 GB, 15-core CPU, 512 GB storage: $2,299
  • 64 GB, 18-core CPU, 1 TB storage: $3,199

Bandwidth: 307 GB/s, nearly twice the M6.

Measured speeds on a 64 GB M5 Pro (owner benchmark):

  • Qwen3.6-35B-A3B: 105 tokens per second
  • Qwen3 32B dense: 15.7 tokens per second, with 31.6 seconds before the first word on an 8K-token prompt
  • Llama 3.3 70B: 7.3 tokens per second

That last number matters. 64 GB lets a 70B model load, but at 7 tokens per second it feels slow. The real benefit of 64 GB is running the 27B tier at higher quality (8-bit) with a long context, or running two models side by side.

Watch out: gpt-oss-120b (about 59 to 65 GB) does not fit comfortably, because the GPU limit on a 64 GB Mac is about 48 GB by default.

Good for: developers who want fast MoE models and a 27B model for harder work, in a small box.

Budget $3,500: the Linux option, AMD Ryzen AI Max+ 395 with 128 GB

Price: about $3,449 to $3,650 (Framework Desktop or GMKtec EVO-X2, prices collected here).

Bandwidth: about 256 GB/s.

These mini PCs have 128 GB of shared memory, so the big models fit. Speed is the catch.

Measured speeds (llama.cpp, benchmark repo):

  • gpt-oss-120b: 51 to 55 tokens per second
  • Qwen3.5-35B-A3B: 62 tokens per second
  • Qwen3.8-27B dense: about 10.5 tokens per second

Why pick it: it runs native Linux. If the box will also host your apps, databases and containers, Linux is simpler than macOS. Docker runs natively, systemd manages services, and the setup matches a cloud server.

Why not: the AMD GPU software (ROCm) still has open bugs, including GPU faults under sustained load. The Vulkan backend in llama.cpp avoids most of them.

Budget $3,800 to $5,900: Mac Studio M5 Max

Prices (40-core GPU, 614 GB/s):

  • 64 GB, 1 TB: $3,799
  • 128 GB, 1 TB: $5,399
  • 128 GB, 2 TB: $5,899

Make sure you choose the 40-core GPU. The cheaper 32-core version has only 460 GB/s.

Measured speeds on the 128 GB model:

  • gpt-oss-120b: 88 to 109 tokens per second on an empty context, falling to 56 at 64K (owner benchmark, hardware-corner)
  • Qwen3.6-35B-A3B: 109 tokens per second, and still 73 at 64K (owner benchmark)
  • Qwen3.8-27B dense: about 25 to 31 tokens per second, and 50 to 60 with speculative decoding (summary of community tests)

For generation speed, this is about twice as fast as any 128 GB non-Apple box in this guide.

What owners say:

  • A one-month owner report ran two models at once (108.5 GB peak) and handed 94 real tasks to local models. The whole machine drew 120 to 140 W under load. The owner's conclusion: 128 GB was enough, and the limit was model quality, not memory.
  • Another owner runs Qwen3.8-27B with a 256K context inside an AI agent. Memory reaches about 100 GB when the context is full. Tasks take 1.5 to 2 times as long as Claude Opus.
  • tbreak's review (9/10) calls it "effectively inaudible" under sustained load, and notes that local AI tooling "still needs considerable setup and troubleshooting."

64 GB or 128 GB? On today's best 27B model, both run at the same speed. 128 GB buys headroom: 120B-class models, long contexts, several models at once, and room for future releases. If the machine must last four or five years, 128 GB is the safer choice.

Storage: get 2 TB or plan for an external SSD. Model files add up fast. The owner above filled 97% of a 2 TB drive in one month of testing models.

Budget $9,500 and up: Mac Studio M5 Ultra with 256 GB

Price: $9,499 (64-core GPU) or $10,799 (80-core GPU) with 256 GB. The 96 GB base model is $5,499.

Bandwidth: 1.2 TB/s.

This tier runs the near-frontier open models. GLM-5.3-Flash needs a 181 GB file at 4-bit (size estimate). Its vendor reports 84.3 on Terminal-Bench 2.1. Claude Opus 5.5 scores 87.64 in vals.ai's measured run, so on paper the gap is small.

Measured: Qwen3.8-27B at 42.6 to 55 tokens per second in reviews by NetworkChuck, BGR and MacStories.

Watch out: delivery waits of 16 to 18 weeks were reported because of the memory shortage. The 96 GB Ultra costs more than the 128 GB Max and has less memory. Skip it unless you need the bandwidth.

What to skip right now

  • DGX Spark: now $6,950 on NVIDIA's store, up from $4,699. Its generation speed (about 59 tokens per second on gpt-oss-120b) is below the cheaper M5 Max. It makes sense only if you need CUDA.
  • A new RTX 5090 build: the card's list price is $1,999, but the cheapest new card on Newegg was $6,499 on December 1. It is very fast on models up to 32 GB, but not at that price.
  • Any machine with less memory than you need: memory on Macs and these mini PCs cannot be upgraded later. Cut storage before you cut memory. Storage can be added with an external drive.

Which model to run at each memory size

Hardware is half the decision. These are the strongest open models for coding and agent work as of December 2026:

  • 24 to 32 GB:
    • Qwen3.8-27B (about 17 to 19 GB at 4-bit). It scored 86.0% on SWE-bench Verified in vals.ai's run. It was also the best model under 64 GB in Plotly's data-analysis test.
    • Inkling 2 Mini (about 20 GB), released by Thinking Machines on November 20. Artificial Analysis gives it the same score as Qwen3.8-27B, while it finishes tasks about four times faster. Its weaker side is factual recall and following many instructions at once.
  • 64 GB: the same models at 8-bit with a long context, or two models loaded together.
  • 128 GB: gpt-oss-120b, Nemotron 3.5 Super and Qwen3.5-122B fit. A caution from Plotly's measured test: "128 GB doesn't buy more accuracy" today. In that test these larger models scored below Qwen3.8-27B. The extra memory helps with context, multiple models and future releases.
  • 256 GB: GLM-5.3-Flash and similar 300B-class MoE models.

How far behind the cloud are they? On Artificial Analysis's index, Claude Opus 5.5 scores 58 and the best open models score 32. Epoch AI estimates that a single consumer GPU runs models matching the frontier of 6 to 12 months earlier. Local models are a strong offline fallback and are good for private data. They are not a full replacement for the best cloud models on long, hard tasks.

The software stack

Pick a runtime:

  • LM Studio: the easiest start on a Mac. It uses Apple's MLX engine, has a model browser, and serves an OpenAI-compatible API at http://localhost:1234/v1.
  • Ollama: one command to pull and run a model, with an API at http://localhost:11434/v1. Good for scripts. But for agent work, check the open bugs first. Ollama has open issues where tool calls are dropped or leak into the text reply and where code arguments get corrupted.
  • llama.cpp (llama-server): the most control, and often the most accurate tool calling, because it uses the model's own chat template. Use it for long contexts and servers.

Connect your tools: most coding agents and frameworks (Spring AI, LangChain, opencode and others) accept an OpenAI-compatible base URL. Point them at the local server and keep your cloud key as a fallback.

Turn on the free speedups:

  • Prompt caching: asking a second question about the same 31K-token document cut the wait for the first word from 13 to 65 seconds down to 0.06 to 0.6 seconds, in one owner's test.
  • Speculative decoding (MTP): about 1.5 times faster on average, and up to 1.9 times on code and JSON (same source).
  • 8-bit KV cache: nearly free on Qwen and gpt-oss models, but it slowed Gemma by 18 to 20% (same source).

Do not raise the Mac GPU memory limit casually. The iogpu.wired_limit_mb setting lets the GPU pin more memory, but pinned memory cannot be given back. If macOS runs out, the machine can freeze.

Running it as an always-on home server

If the machine will run 24/7 and serve your phone or other devices:

  • Turn on automatic power-on. Apple supports "Start up when power is connected" on the Mac mini and Mac Studio (Apple support).
  • Plan for FileVault. With disk encryption on, the Mac waits at a login screen after a reboot. macOS 26 can unlock FileVault over SSH, but only over wired Ethernet.
  • Choose OrbStack for containers on a Mac. In one benchmark, it wrote to mounted folders at 548 MB/s, against 97 MB/s for Docker Desktop and 33 MB/s for Apple's container tool.
  • Reach it remotely without opening ports. Tailscale gives private access from your own devices. Cloudflare Tunnel publishes a web app even behind carrier-grade NAT.
  • Buy a UPS or IPS if power cuts are common where you live. A Mac Studio M5 Max is rated at 200 W maximum.

Treat local agents with care

Local models make different mistakes than cloud models. The month-long owner report above found two that matter:

  • False "done" messages: the review log recorded 8 cases where a model said a task was finished, but no file had been written. Trust tests, not the model's report.
  • Destructive commands: one batch ran rm -f *.py and deleted its own test script. Run agents in a sandbox or container, and never let deletions reach your real files.

A practical pattern is to let a cloud model plan and review, and let the local model do the mechanical work.

The short version

  • $0: test on what you have. 24 GB or more runs a useful 27B-class model.
  • About $1,300: Mac mini M6 with 32 GB. The cheapest good 27B machine. Fast MoE, slow dense.
  • About $2,300 to $3,200: Mac mini M5 Pro with 48 to 64 GB. About twice the speed of the M6.
  • About $3,500: Ryzen AI Max+ 395 with 128 GB. Big models and native Linux, at about half the Mac Studio's speed.
  • About $3,800 to $5,900: Mac Studio M5 Max with 64 or 128 GB. The best speed for the money, and the safest pick for four to five years.
  • $9,500 and up: Mac Studio M5 Ultra with 256 GB, for near-frontier open models offline.

Before you spend, test Qwen3.8-27B or Inkling 2 Mini on your current machine with your real work over several days. If the answers are good enough, buy the box that makes them fast. If they are not, more hardware will not fix that.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.