If you’re interested in building a home large language model server, I’ve got you. Try my calculator to estimate costs based on popular hardware options. Keep in mind, frontier models are basically subsidized by investors today so in terms of raw cost, they’ll often work out cheaper than a home build (now), especially if electricity is expensive in your area. But if you like owning your pipeline and hardware, experimenting, an decentralization, then home is a great option.
I’ve included budget builds using legacy equipment, such as older motherboards that use DDR4 RAM (slower than DDR5 but a quarter the price during today’s memory shortage), and dream builds using more modern hardware. I was lucky to have acquired a 5090 and 192gb DDR5 RAM to run my local models before the bloviated prices expanded into unrealistic home server territory. If you’re late to the game, this planning tool should get you started quickly. Remember, do your own research, and always vet online sellers before giving them your money – many are scammers!!!
Local LLM build calculator
Pick an AI model and see which hardware runs it, how fast it writes, what the build costs and whether it beats paying for a subscription. Start from a ready-made build or choose every part yourself.
Ready-made builds and prices
| Build | Total est. | GPU or system | Set up for | Result |
|---|---|---|---|---|
| Starter: used RTX 3060 12GB desktop | $1,038 | RTX 3060 12GB | Qwen3 8B, Q4_K_M | Runs well 35 tok/s |
| Bargain 48GB: 2x Tesla P40 | $1,659 | 2 x Tesla P40 24GB (passive, needs fan) | Llama 3.3 70B, Q4_K_M | Runs, slower (partly in RAM) 2.3 tok/s |
| Budget 24GB: used RTX 3090 | $2,124 | RTX 3090 24GB | Mistral Small 24B, Q4_K_M | Runs well 33 tok/s |
| New parts 32GB: 2x RTX 5060 Ti 16GB | $2,231 | 2 x RTX 5060 Ti 16GB | Qwen3 32B, Q4_K_M | Runs well 11 tok/s |
| Compact 128GB unified: Strix Halo mini PC | $2,246 | AMD Ryzen AI Max+ 395 mini PC (Strix Halo), 128GB | gpt-oss 120B (MoE), MXFP4 | Runs well 39 tok/s |
| Mac Studio M4 Max 128GB | $3,958 | Mac Studio M4 Max, 128GB unified memory | Llama 3.3 70B, Q4_K_M | Runs well 6.8 tok/s |
| Enthusiast 48GB: 2x RTX 3090 | $4,366 | 2 x RTX 3090 24GB | Llama 3.3 70B, Q4_K_M | Runs, slower (partly in RAM) 5.1 tok/s |
| Consumer 32GB: RTX 5090 + X870E Tomahawk, 7950X, 192GB | $7,902 | RTX 5090 32GB | gpt-oss 120B (MoE), MXFP4 | Runs, slower (partly in RAM) 23 tok/s |
| Consumer 32GB: RTX 5090 + X870E Tomahawk, 9950X3D2, 192GB | $8,351 | RTX 5090 32GB | gpt-oss 120B (MoE), MXFP4 | Runs, slower (partly in RAM) 23 tok/s |
| Workstation 96GB: 4x RTX 3090 on EPYC | $8,752 | 4 x RTX 3090 24GB | gpt-oss 120B (MoE), MXFP4 | Runs well 123 tok/s |
| EPYC + CMP 170HX 64GB | $9,711 | CMP 170HX unlocked 64GB | Qwen3 30B-A3B (MoE), Q4_K_M | Runs well 60 tok/s |
| Dream unified: Mac Studio M3 Ultra 512GB | $10,164 | Mac Studio M3 Ultra, 512GB unified memory | DeepSeek V3 / R1 671B (MoE, MLA), Q3_K_M | Runs well 26 tok/s |
| EPYC + CMP 170HX 80GB (PCIe 4.0 x16) | $12,172 | CMP 170HX unlocked 80GB, PCIe 4.0 x16 | Qwen3 30B-A3B (MoE), Q4_K_M | Runs well 60 tok/s |
| Dream MoE server: EPYC 9005 + 768GB DDR5 + RTX PRO 6000 | $24,289 | RTX PRO 6000 Blackwell 96GB | DeepSeek V3 / R1 671B (MoE, MLA), Q4_K_M | Runs, slower (partly in RAM) 17 tok/s |
| Dream workstation: 2x RTX PRO 6000 + Threadripper PRO | $30,345 | 2 x RTX PRO 6000 Blackwell Max-Q 96GB (300W) | Qwen3 235B-A22B (MoE), Q4_K_M | Runs well 62 tok/s |
Totals include a 7.0% slush fund for cables, risers and shipping. Speeds are estimates for one user.
Parts list: Budget 24GB: used RTX 3090
Store links are affiliate links: I may earn a commission at no cost to you. Prices are estimates.
- AMD Ryzen 5 7600 + B650 board (DDR5): $330 Amazon Newegg eBay Facebook Marketplace Alibaba
- 64GB DDR5-6000 (2x32GB): $350 Amazon Newegg eBay Facebook Marketplace Alibaba
- RTX 3090 24GB: $900 Amazon Newegg eBay Facebook Marketplace Alibaba
- Corsair RM850e (2025) 850W Gold, ATX 3.1: $115 Amazon Newegg eBay Facebook Marketplace Alibaba
- Samsung 990 EVO Plus 2TB NVMe: $150 Amazon Newegg eBay Facebook Marketplace Alibaba
- Corsair 4000D Airflow mid-tower: $105 Amazon Newegg eBay Facebook Marketplace Alibaba
- Thermalright Peerless Assassin 120 SE air cooler: $35 Amazon Newegg eBay Facebook Marketplace Alibaba
Scam warning: eBay, Facebook Marketplace, Alibaba and other auction, classified and overseas marketplaces all have scammers. Listed prices may be inaccurate and may not include tariffs, import duties, taxes or shipping. You are completely responsible for vetting sellers before any purchase.
How to plan a local LLM build
How much VRAM do you need?
Memory is the first question, because a model that does not fit in GPU memory either runs slowly or not at all. Its size is the number of parameters times the bits per weight, divided by 8. Quantization shrinks it: Q4_K_M stores about 4.85 bits per weight, so a 32B model needs about 20 GB instead of 64 GB at full precision, with little loss in quality. Add room for the KV cache, the memory that holds the conversation, which grows with context length.
| Model size | Q4_K_M, 8K context | Typical hardware |
|---|---|---|
| 8B | about 6 GB | Any 8 to 12 GB gaming GPU |
| 14B | about 10 GB | A 12 to 16 GB GPU |
| 32B | about 21 GB | One 24 GB GPU, such as an RTX 3090 |
| 70B | about 44 GB | Two 24 GB GPUs, or a 64 GB Mac |
| 120B MoE | about 66 GB | One 24 GB GPU plus 64 GB of RAM, or a 96 GB card |
Dense models, mixture of experts and flash streaming
A dense model, such as Llama 3.3 70B, reads every weight for every word it writes, so its speed depends on fitting entirely in fast GPU memory. A mixture-of-experts (MoE) model, such as gpt-oss-120b or Qwen3 235B, reads only a few experts per word. It still needs memory for all its weights, but it stays usable when part of it sits in system RAM, which costs far less than VRAM.
Flash-streaming engines such as Strata go a step further: experts that do not fit in RAM stay on a fast NVMe SSD and load as needed. That runs very large MoE models on an ordinary PC, slowly. It works only for MoE models and the models each engine supports.
Speed: why memory bandwidth matters
Writing each word means reading the active weights from memory once, so generation speed is about memory bandwidth divided by the active model size. An RTX 3090 reads about 936 GB/s, so a 20 GB model writes roughly 25 to 30 tokens per second. Reading the prompt is limited by compute instead, which is why long documents take a moment before the answer starts.
Buying used parts
Used GPUs and server parts are the cheapest way to get a lot of VRAM and RAM. Buy from sellers with a track record and a return policy, ask for photos of the actual item, test it the day it arrives, and walk away from prices far below the market. Passive server cards need fans, and older cards may not work with every engine.
Frequently asked questions
How much VRAM do I need to run an LLM locally?
Roughly the model size in billions of parameters times the bits per weight divided by 8, plus a few gigabytes for the conversation. At the common Q4_K_M quantization, an 8B model needs about 6 GB, a 32B model about 21 GB and a 70B model about 44 GB. Longer conversations need more.
Is one big GPU better than two smaller ones?
For fitting a model, total VRAM is what counts, so two used 24 GB cards can run what one 48 GB card runs, often for less money. One card is simpler, quieter and uses less power. Speed with two cards is close to one card when the model is split by layers.
What is a mixture-of-experts (MoE) model?
A model made of many smaller expert networks, of which only a few run for each word. It needs memory for all of its weights but reads only the active ones, so it runs much faster than a dense model of the same size and still works well when part of it sits in system RAM.
What is flash streaming?
Engines such as Strata keep the experts of a mixture-of-experts model that do not fit in memory on a fast NVMe SSD and load them as needed, caching the busy ones in RAM. Very large models then run on an ordinary PC, more slowly than from VRAM. It does not help dense models.
How fast will a local LLM run?
Generation speed is close to memory bandwidth divided by the size of the active weights. A model that fits in GPU memory usually writes faster than you can read. Once part of it runs from system RAM, speed drops sharply. The calculator estimates speed for each build.
Is a local LLM server cheaper than ChatGPT or Claude subscriptions?
It depends on how much you use it. Light users rarely save money, because a subscription costs less than the hardware and electricity. Heavy users, teams, and anyone running agents all day can pay off a server in a year or two. Privacy, offline use and no rate limits are the other reasons people build one.
Is it safe to buy used GPUs?
Often, yes, and used cards are the cheapest VRAM. Buy from sellers with a history and a return policy, ask for photos of the actual card, test it as soon as it arrives, and be wary of prices far below the market. Auction, classified and overseas marketplaces all have scammers.
Terms explained
- Quantization
- Storing weights with fewer bits. Q4_K_M uses about 4.85 bits per weight, so a 32B model needs about 20 GB instead of 65 GB at FP16.
- KV cache
- Memory that holds the conversation so far. It grows with context length and can exceed the model size at very long context.
- Prefill
- Reading the prompt. It is compute-bound, so it scales with GPU TFLOPS. Generation is memory-bound, so it scales with bandwidth.
- MoE
- Mixture of experts. Only a few experts run per token, so a 120B MoE can generate faster than a dense 32B model, but it still needs memory for all its weights.
- Offloading
- When the model does not fit in VRAM, the rest runs from system RAM. It works, but speed drops toward system RAM bandwidth.
- SSD streaming (flash MoE)
- Engines such as Strata keep the MoE experts that do not fit in memory on the SSD and read them as needed, caching the busy ones in RAM. Very large MoE models then run on modest hardware, slowly.
- GPU bridge
- NVLink (RTX 3090 and some workstation cards) and AMD Infinity Fabric Link connect cards directly. It mainly helps tensor parallel, where the cards exchange data on every token.
- Unified memory
- Macs, Strix Halo and DGX Spark share one memory pool between CPU and GPU, which allows very large models in a small, quiet, low-power box at lower bandwidth than high-end GPUs.
Method and limitations
Memory need = weights (parameters x bits per weight / 8) + KV cache (layers x KV values x context x precision) + about 0.6 GB per device. Generation speed = bandwidth x efficiency / bytes read per token, with offloaded weights read at system RAM speed and SSD-streamed experts at SSD speed after the engine cache. Prefill = about 35% of FP16 TFLOPS / (2 x active parameters). Local cost = (hardware + slush fund - resale + maintenance + electricity) / lifetime output. Pay-off time = hardware cost / (cloud monthly cost - local running cost). Estimates ignore batching, speculative decoding and engine differences beyond efficiency. No data leaves your browser.
Beyond cost: a local server keeps your data private, works offline, has no rate limits and can run uncensored or fine-tuned models. Cloud models may still be stronger for hard tasks.
Shop my recommended AI hardware on Amazon
As an Amazon Associate I earn from qualifying purchases. Some other links on this page are also affiliate links, which means I may earn a commission at no extra cost to you. Prices and specifications are estimates and may be out of date, so verify them with the seller before you buy.