VRAM & eGPU Limits for Local AI on Mini PCs
In this article
The practical limits for local AI on mini PCs are set by VRAM (typically 8–16 GB on integrated or low-profile GPUs) and by the Thunderbolt/USB4 bandwidth ceiling of an external GPU (eGPU), which caps performance at roughly 60–80% of the same card in a desktop. In short, you can run 7–13 billion parameter models quantized to 4-bit on a mini PC with 16 GB of unified memory or a 16 GB eGPU, but 30B+ models or fine-tuning are impractical due to memory and bandwidth constraints.
Why VRAM Matters More Than Raw Compute
Local AI inference—especially for large language models (LLMs) and image generation—is memory-bound. The model weights must reside in VRAM (or unified memory) to avoid constant swapping to system RAM, which slows generation to a crawl. A rule of thumb: a 4-bit quantized 7B model needs about 4–5 GB of VRAM, a 13B model needs 8–10 GB, and a 30B model needs 20+ GB. Mini PCs with integrated GPUs (like AMD's 780M or Intel's Arc iGPU) typically share system RAM, so a 32 GB mini PC can allocate 16 GB to the iGPU, but that memory is slower than dedicated GDDR6 and competes with the OS.
eGPU Bandwidth: The Real Bottleneck
Most mini PCs lack a PCIe slot, so an eGPU connects via Thunderbolt 3/4 or USB4, which offers 40 Gbps (about 3.5 GB/s) of raw bandwidth. That's roughly one-eighth of a desktop PCIe 4.0 x16 slot. In practice, this means:
- Inference latency increases by 10–30% compared to the same GPU in a desktop.
- Data transfer between system RAM and GPU VRAM becomes the limiting factor for large batch sizes.
- Some eGPU enclosures have their own power supply, but the connection still bottlenecks.
For single-stream inference (like chatting with a model), the impact is modest. For training or fine-tuning, which requires constant data shuffling, the bottleneck is severe.
Mini PC Memory Architectures: Unified vs. Discrete
Mini PCs fall into two camps:
- Integrated GPUs with shared memory (e.g., AMD Ryzen 7040/8040 series, Intel Core Ultra): The CPU and GPU share system RAM. You can set the iGPU's allocation in BIOS (often up to half of total RAM). This is flexible but slower than dedicated VRAM.
- Discrete GPUs in larger mini PCs (e.g., Minisforum HX100G, ASUS ROG NUC): Some mini PCs have a built-in discrete GPU with dedicated VRAM (e.g., 8 GB or 12 GB). These are more expensive but provide faster memory and better AI performance.
For local AI, unified memory is actually a plus if you have enough RAM—Apple's M-series chips use this approach, and it's why a 32 GB Mac mini can run 13B models comfortably. On x86 mini PCs, the same principle applies if the iGPU can access system RAM at full speed.
How to Choose: What to Look For
When selecting a mini PC for local AI, consider these factors in order:
- Total system RAM (for iGPU models): 32 GB minimum for 7B–13B models, 64 GB for 13B–30B.
- GPU VRAM (for discrete models): 8 GB for 7B, 16 GB for 13B–30B.
- Thunderbolt/USB4 support if you plan an eGPU later—check it's a full 40 Gbps port, not a 20 Gbps USB4.
- Cooling and power supply: eGPUs need a 400W+ PSU; mini PCs with iGPUs need adequate cooling for sustained loads.
A common mistake is buying a mini PC with only 16 GB RAM and expecting to run a 13B model—it will swap and become unusably slow. Always check the model's memory bandwidth (e.g., LPDDR5 vs DDR5) because that affects iGPU performance.
Common Problems and Workarounds
Users often hit these issues:
- Out of memory errors: Reduce the context window (e.g., from 4096 to 2048 tokens) or use a smaller quantized model (Q4_K_M instead of Q8).
- eGPU not recognized: Ensure the mini PC's BIOS has Thunderbolt security set to “No Security” or “Legacy”, and update the Thunderbolt driver.
- High latency: Use a model that fits entirely in VRAM; avoid offloading layers to system RAM.
- Power delivery issues: Some eGPU enclosures don't supply enough power to the GPU—check the enclosure's wattage rating.
For eGPUs, a common misconception is that you need a top-end GPU. In reality, a mid-range card like an RTX 3060 12GB or RX 6700 XT 12GB is often the sweet spot because the Thunderbolt bottleneck limits high-end cards more than mid-range ones.
Costs and Practicality
Mini PCs with iGPUs start at around $500–800 for 32 GB RAM models. Adding an eGPU enclosure and a used GPU can cost $300–600 more. A discrete-GPU mini PC (e.g., with RTX 4060 8GB) runs $1,000–1,500. For most hobbyists, a 32 GB mini PC with an iGPU is the most cost-effective way to run 7B–13B models. If you need 30B models, a used 16 GB GPU in an eGPU is cheaper than a high-end mini PC with 64 GB RAM.
Safety and Maintenance
When working with eGPUs, always unplug the power cable before opening the enclosure. Never open a power supply—it contains capacitors that can hold a lethal charge. Ground yourself to avoid static damage to the GPU. For mini PCs with iGPUs, ensure adequate airflow; sustained AI inference can heat the system, so keep vents clear and consider a cooling pad. Overclocking or undervolting the GPU can cause instability and may void warranty—avoid it unless you know what you're doing.
Alternatives to eGPUs
If an eGPU seems too fiddly, consider:
- Cloud inference: Use APIs or services for large models, but that requires internet and may cost money per query.
- Distilled/smaller models: Models like Phi-3 (3.8B) or Gemma 2 9B run well on 8 GB VRAM.
- CPU-only inference: With llama.cpp, you can run 7B models on a fast CPU with 32 GB RAM, but it's 5–10x slower than a GPU.
Frequently Asked Questions
Can I run a 70B model on a mini PC with an eGPU?
Only if you have 48 GB+ VRAM (e.g., two 24 GB GPUs, but that's rare in eGPU enclosures) or you offload layers to system RAM, which makes generation very slow. Practically, 30B is the ceiling for a single 24 GB GPU, and even then you'll need quantization.
Does Thunderbolt 4 vs USB4 matter for eGPUs?
Both offer 40 Gbps bandwidth, so performance is identical. However, some USB4 ports are limited to 20 Gbps—check the spec. Also, ensure the port supports PCIe tunneling; most do, but some laptop USB4 ports don't.
Is 16 GB RAM enough for local AI on a mini PC?
For 7B models, yes, if you use a 4-bit quantized version and a small context window. For 13B models, you'll likely run out of memory. 32 GB is the sweet spot for most users.
Can I use an eGPU with any mini PC?
Only if it has a Thunderbolt 3/4 or USB4 port. Many mini PCs lack these, so check before buying. Also, some mini PCs have a proprietary eGPU connector (like Minisforum's OCuLink), which offers better bandwidth but requires a compatible enclosure.
Why is my eGPU slower than expected?
Check that the GPU is being used (not the iGPU) by setting the eGPU as the preferred graphics processor in your OS. Also, ensure you're using a high-quality Thunderbolt cable and that the enclosure's power supply is sufficient. Finally, some games/AI apps don't support eGPUs well—use a recent version of llama.cpp or PyTorch that supports CUDA on Thunderbolt.