AEO Explainers

What Hardware Do You Actually Need to Run LLMs Locally?

A practical breakdown of what it takes to run a 27B-class model like Qwen3 on your own hardware, from a $2,000 GPU to a $4,699 desktop supercomputer to a data-center rack.

At a glance
  1. 01A quantized 27B model fits on a single $1,600 consumer GPU with 16GB of VRAM.
  2. 02Unified-memory machines offer high capacity for large models but struggle with generation speed.
  3. 03Self-hosting a 27B model can break even against commercial API costs in under three months.
  4. 04Processing-in-memory chips promise an eightfold bandwidth increase to solve hardware bottlenecks.
A spatial diagram of computing hardware scaling up in size, from a single graphics processing card to a multi-board desktop workstation, and finally to a towering server rack, all linked by physical data traces.
Illustration generated by Remy for this story.

The hardware requirements for local LLM inference come down to one number more than any other: how much VRAM (or unified memory) you have, and how fast that memory can feed the GPU. A 27B-class model like Qwen3 needs somewhere between 15GB and 56GB depending on quantization, and that range is the difference between a $1,600 gaming GPU and a rack of A100s.1 Compute matters too, but for most enterprise inference workloads, memory capacity and bandwidth are the real bottleneck. Everything below maps to that framework.

1. What does Qwen 27B actually need?

Start with the model, not the hardware. A dense 27B model needs:

  • BF16 (full precision): ~56GB VRAM.1
  • FP8: ~28GB VRAM.1
  • Q4_K_M (4-bit quantized): roughly 14-18GB VRAM before KV cache and context overhead.12
Figure 1
VRAM Required for a 27B Model by Quantization
VRAM required (GB)
16Q4_K_M (4-bit)28FP856BF16 (full precision)
Quantization level
Source: Yotta Labs

That last number is why this conversation changed in the last year. A quantized 27B model now fits on hardware a mid-size team can just buy, not requisition. Community testing backs this up directly: one setup running Qwen 27B Q4_K_M on a 16GB RTX 4070 Ti SUPER hit 130K context at roughly 20 tokens/sec.2 Drop to 12GB or 8GB and you're trading context length or quantization quality, but the model still runs.2

2. Consumer GPU tier: RTX 4090 / 5090

This is the entry point for anyone serious about running a 27B model in-house. The RTX 4090 launched at $1,599 with 24GB of GDDR6X.3 At that VRAM ceiling, Qwen 27B fits entirely in memory at Q4-Q5 quantization with room for about 16K of context.4 Step up to a 32GB RTX 5090 and you can push context out to 131K tokens while running around 90-175 tokens/sec depending on the exact model variant.5

This tier is the sweet spot for a single-model, single-team deployment. You're not fighting bandwidth limits the way unified-memory machines do, because a discrete GPU's dedicated GDDR memory sits close to the compute die and is built for exactly this job.

3. Unified-memory tier: Mac Studio M3 Ultra

The Mac Studio M3 Ultra is the quiet, single-box alternative. It configures up to 512GB of unified memory, which means it can load models that would need multiple discrete GPUs to fit anywhere else.6 Bandwidth on that memory pool is 819GB/s.7

That number sounds high until you compare it to a discrete GPU rig, where dedicated VRAM moves data faster per watt. Benchmarks on Mac hardware show throughput dropping as a model chews through serious token counts, because unified-memory architecture can't move data as fast as dedicated VRAM once generation ramps up.6 You get capacity. You don't get speed. For a 27B model that fits on a $1,600 GPU anyway, the Mac Studio's real value is running much larger models you couldn't otherwise touch on consumer hardware, not running a 27B model faster.

4. Purpose-built desktop AI: DGX Spark and Strix Halo-class boxes

NVIDIA's DGX Spark is the newest entrant in the "AI mini supercomputer" category: 128GB of unified LPDDR5x memory and a Blackwell GPU with NVFP4 support, marketed as capable of running models up to 200B parameters locally.8

The price tells its own story. NVIDIA raised the Founders Edition price 18%, from $3,999 to $4,699, in February 2026 due to memory supply constraints.8 The benchmarks complicate the pitch further: on GPT-OSS 120B, the DGX Spark generates about 38.6 tokens/sec, while a three-GPU RTX 3090 rig costing roughly $2,500-3,000 hits 124 tokens/sec on the same test.8 The Spark's ~273GB/s bandwidth is the limiter, same story as the Mac Studio, just at a higher price point.8

Figure 2
Token Generation Speed: GPT-OSS 120B
3x RTX 3090 rig (~$2,500-3,000)124DGX Spark ($4,699)39

If you need one quiet box that can technically load a very large model, this tier delivers. If you need throughput for real workloads, a used multi-GPU rig will beat it for less money.

5. Data-center grade: A100/H100 multi-GPU racks

None of the above applies once you're running mixture-of-experts giants like Kimi-K2 (1T parameters), GLM-4.5 (355B), or Qwen3-235B. Those models need 4 to 16 A100-80GB GPUs, with total hardware costs running from $60,000 to $240,000.9

That's real infrastructure, and it's worth naming clearly because it's not the tier most teams need. A dense 27B model fits on a single consumer GPU costing around $2,000.9 Don't buy a rack because you saw a benchmark for a trillion-parameter model. Match the hardware tier to the model you're actually running.

6. When does local hardware beat the API bill?

This is the question that actually decides the purchase, and a peer-reviewed Carnegie Mellon study puts real numbers on it.9 For small open-source models in the 27B-32B class, running on a single ~$2,000 GPU like an RTX 5090, break-even against commercial APIs can happen in as little as 0.3 months when compared against a premium model like Claude-4 Opus.9 Even against cheaper baselines, most small-model deployments break even within three months.9

Figure 3
Break-Even Speed for Small Models
0.3 mo
Break-even vs. Claude-4 Opus
$2,000
Cost of a capable local GPU (RTX 5090)
3 mo
Typical break-even vs. cheaper APIs

The math gets murkier as models scale up:

  • Medium models (70B-class): break-even stretches to 3.8-31.2 months, depending on hardware cost ($15k-$30k) and which API you're comparing against.9
  • Large models (235B+): break-even ranges from 3.5 months to nearly 9 years, again almost entirely dependent on the comparison API.9
Figure 4
On-Premise Break-Even Time by Model Tier
Break-even (low end)Break-even (high end)
months to break even (months)
0100200Small (27B-32B)Medium (70B-class)Large (235B+)
Model size tier
Large-model high end reflects 'nearly 9 years' converted to months (~108).

That spread matters because API pricing itself spans a 600x range, from $0.10 per million tokens on the cheap end to $60 per million tokens for frontier reasoning models.10 Enterprise LLM API spend hit $8.4 billion in 2025, more than doubling in six months, and inference now outweighs training as the dominant AI budget line.10 If your team is burning serious token volume against a mid-to-premium API, a 27B-class self-hosted model is not a moonshot. It is often the cheaper option within a single quarter. If you're a low-volume team already on a cheap-tier API, the math flips and buying hardware is a slower payback.

This is the same tension we covered in The Race to the Bottom: falling API prices move the break-even line constantly, so this isn't a one-time calculation. Re-run it whenever your provider changes pricing tiers.

7. What's next: processing-in-memory chips

Every tier above hits the same wall eventually: memory bandwidth, not raw compute, caps how fast you can generate tokens. Processing-in-memory (PIM) chips are the industry's answer, and they're not vaporware anymore.

Samsung's LPDDR5X-PIM adds compute logic directly into the memory banks. Standard LPDDR5X-9600 tops out at 76.8GB/s; the PIM version hits 614GB/s, an eightfold bandwidth increase, and measured 3.01x faster tokens-per-second in AI inference benchmarks.11 SK Hynix is chasing the same problem with its own approach, which it calls Accelerator-in-Memory, or AiM.12 Both companies are pursuing this because HBM is expensive and memory now makes up the bulk of AI chip cost. PIM is the lower-cost, lower-power path to similar speedups.12

Figure 5
LPDDR5X Memory Bandwidth: Standard vs. PIM
13%Standard LPDDR5X-9600
Standard LPDDR5X-960013%
PIM-added bandwidth87%
PIM version totals 614 GB/s; chart splits standard baseline from the additional bandwidth PIM contributes.

If PIM memory reaches consumer and prosumer hardware, the bandwidth bottleneck that limits Mac Studios and DGX Sparks today gets a lot less punishing. That would shift the local-vs-API break-even math again, likely in favor of local deployment, since the gap between "can fit" and "runs fast" starts to close.

Bottom line: a hardware decision tree

Strip out the marketing and the decision is fairly mechanical:

  • Running a 27B-class model, single team, need speed: get a 24-32GB consumer GPU (RTX 4090/5090). Cheapest path to full throughput.
  • Need to load much larger models occasionally, quiet office setup, throughput isn't critical: Mac Studio M3 Ultra, but budget for slower generation.
  • Want a compact dedicated box and can absorb a premium for convenience: DGX Spark or a Strix Halo-class machine, understanding you're paying more for less throughput than a discrete-GPU rig.
  • Running trillion-parameter MoE models in production: you need the multi-GPU data-center tier and the budget that comes with it.
  • High token volume against a mid-to-premium API and predictable workloads: run the CMU break-even math yourself. For 27B-class models, payback is often under three months.9
  • Handling regulated data or contractual data-residency requirements: local deployment answers the compliance question before the cost math even matters, which is a big part of why teams evaluate platforms like Remy alongside the raw hardware calculus.
Figure 6
Local LLM Hardware Tiers Compared
Local LLM Hardware Tiers Compared
Upfront CostMemory CapacityThroughputBest Model Fit
RecommendedConsumer GPU (RTX 4090/5090)single-team, speed-critical 27B deployments$1,600-$2,00024-32GBHigh27B-class dense models
Mac Studio M3 Ultraloading very large models quietly, without needing speed~$4,000+Up to 512GBLowLarge models you can't fit elsewhere
DGX Spark / Strix Halo-classa compact dedicated box, convenience over throughput$4,699128GBLowOccasional large-model loads up to ~200B
A100/H100 multi-GPU rackproduction-scale trillion-parameter MoE models$60,000-$240,000320GB-1.3TB+ (4-16 GPUs)HighKimi-K2, GLM-4.5, Qwen3-235B
Ratings are relative across these options, not absolute. Throughput reflects memory bandwidth advantages of dedicated VRAM over unified memory.
Source: Remy analysis

A 27B model is no longer a data-center problem. It's a purchasing decision you can make with a corporate card and a weekend. The bigger models still need the bigger checks. Know which one you're actually running before you buy hardware for the wrong tier.

Frequently asked
Questions readers ask
How much VRAM do I need to run a 27B parameter model like Qwen3 locally?

It depends on quantization. Full BF16 precision needs about 56GB of VRAM, FP8 needs around 28GB, and 4-bit quantization (Q4_K_M) can run in as little as 14-18GB, though you'll want extra headroom for context and KV cache.

Can I run a large language model on a gaming GPU?

Yes, for models up to 27B-32B parameters. A 24GB RTX 4090 or 32GB RTX 5090 can run Qwen 27B at 4-5 bit quantization entirely in VRAM, with real-world throughput in the 20-175 tokens/sec range depending on context length and exact configuration.

Is a Mac Studio a good choice for running large models locally?

It's good for capacity, less good for speed. The M3 Ultra configures up to 512GB of unified memory, letting it load models no single consumer GPU could hold, but its 819GB/s bandwidth is a bottleneck compared to discrete GPU memory, so generation speed lags behind dedicated GPU rigs.

When does buying local hardware make more financial sense than paying for an API?

For small open-source models around 27B-32B parameters run on a roughly $2,000 GPU, break-even against commercial APIs can happen in under a month against premium models and typically within three months overall. Larger models and cheaper API tiers push that payback period out much further, sometimes years.

What is processing-in-memory (PIM) and why does it matter for local AI?

PIM chips build compute logic directly into memory, removing the bandwidth bottleneck that limits today's unified-memory machines. Samsung's LPDDR5X-PIM delivers 8x the bandwidth of standard LPDDR5X and measured a 3.01x improvement in inference tokens-per-second, which could make future local-inference hardware significantly faster without needing more VRAM.

Sources
  1. 1Qwen 3.8 27B: Specs, Hardware Requirements, and How to RunYotta Labs
  2. 2Guide for running dense models on ≤16 GB VRAM (Qwen 3.8 27B)Reddit r/LocalLLM
  3. 34090 Graphics Card Price: Full History from 2022 to 2026Bandurart
  4. 4How to Run Qwen 3.8 27B Locally: GGUF, Hardware and SetupAtomic Chat
  5. 5How to run Qwen 3.5 locally - Hacker News discussionHacker News
  6. 6[Benchmark] Quick-and-dirty test of 5 models on a Mac Studio M3 Ultra 512 GB (LM Studio) – Qwen3 runs away with itReddit r/LocalLLaMA
  7. 7How to Choose a Mac Studio for Local LLMsnote.com (npaka)
  8. 8NVIDIA DGX Spark Review: $4,699 Price & BenchmarksIntuitionLabs
  9. 9A Cost-Benefit Analysis of On-Premise Large Language Model Deployment: Breaking Even with Commercial LLM ServicesarXiv (Carnegie Mellon University)
  10. 10Self-Hosted LLM vs API: The Real Cost and Security Trade-offs for Enterprise in 2026Marka Development
  11. 11Hot Chips 2026: Samsung makes LPDDR5X smart with logic unit in memory — LPDDR5X-PIM is 3.01x faster than LPDDR5X in AI inference with 8x the bandwidthTom's Hardware
  12. 12Samsung bets on PIM while SK hynix keeps eye on HBMKorea JoongAng Daily
Portrait of Marcus Bello
Marcus Bello
Build vs Buy
Marcus writes about when teams should build their own tools instead of buying.
More from Marcus Bello
© 2026 The Official Remy BlogDrafted by AI authors, reviewed by human editors.