Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

GPU for Local AI Inference: What to Check

· 6 min read · Home Tech

In this article
  1. Why VRAM Is the First Thing to Check
  2. Memory Bandwidth: The Speed Bottleneck
  3. Compute Capability and Tensor Cores
  4. Software Compatibility and Drivers
  5. Power Supply and Physical Fit
  6. Common Mistakes When Buying for AI
  7. Comparison: Consumer vs. Workstation GPUs
  8. Safety and Handling
  9. Frequently Asked Questions

Before buying a GPU for local AI inference, check VRAM capacity, memory bandwidth, compute capability (CUDA cores / Tensor cores), software compatibility, power supply requirements, physical size, and cooling. The single most important factor is VRAM: it determines the largest model you can load, and running out of VRAM means the model won't run at all or will be painfully slow.

Why VRAM Is the First Thing to Check

Local AI inference means running a trained neural network on your own hardware. The model weights, plus the intermediate activations, must fit into GPU memory. If they don't, the GPU either falls back to system RAM (which is 10–50x slower) or fails outright. For example, a 7B-parameter model in 16-bit precision needs roughly 14 GB of VRAM just for weights; in 8-bit it needs about 7 GB; in 4-bit about 3.5 GB. But you also need headroom for context windows, batch size, and the inference engine's overhead. A rule of thumb: buy at least 1.5x the VRAM that the model’s weights alone require.

Also consider that different model families have different memory footprints. Vision transformers, diffusion models, and LLMs all have distinct requirements. If you plan to run a 70B model in 4-bit, you need around 35 GB of VRAM, which means a card with 48 GB (like the RTX A6000 or RTX 6000 Ada) or multiple smaller cards. If you only run 7B models, a 12–16 GB card is usually enough.

Memory Bandwidth: The Speed Bottleneck

VRAM capacity only tells you if a model fits; memory bandwidth tells you how fast it runs. Inference is memory-bound: the GPU spends most of its time reading weights from VRAM, not doing math. Higher bandwidth (measured in GB/s) directly translates to faster token generation or faster image generation. For example, an RTX 4090 has ~1,008 GB/s, while an RTX 3060 has ~360 GB/s. The same model on the 4090 will generate tokens roughly three times faster, all else equal.

When comparing cards, look at the memory bus width and memory type (GDDR6, GDDR6X, HBM2e). HBM2e, found on some workstation cards, offers even higher bandwidth but at a much higher price. For most hobbyists, a card with at least 500 GB/s is a good starting point for LLMs.

Compute Capability and Tensor Cores

Modern GPUs have dedicated tensor cores that accelerate matrix multiplication, the core operation in neural networks. NVIDIA’s tensor cores are used by CUDA libraries like cuBLAS and by inference engines like TensorRT. AMD’s equivalent (Matrix Cores) and Intel’s Xe Matrix Extensions (XMX) exist, but software support is less mature. For local AI, NVIDIA is the safe choice because most tools (Ollama, llama.cpp, Stable Diffusion WebUI, ComfyUI, TensorRT) are optimized for CUDA.

Compute capability (e.g., 8.6 for Ampere, 8.9 for Ada Lovelace, 9.0 for Blackwell) determines which CUDA features are available. Some recent libraries require compute capability 8.0 or higher. If you buy an older card (e.g., GTX 10-series), you may miss out on optimizations. However, many inference engines still support older cards via fallback paths.

Software Compatibility and Drivers

Before buying, verify that the GPU is supported by the software you intend to use. Most tools list minimum requirements. For example, Stable Diffusion WebUI works on NVIDIA cards with at least 4 GB VRAM, but performance is poor below 8 GB. Ollama supports NVIDIA, AMD, and Intel GPUs, but NVIDIA is the most tested. Also check the operating system: Linux is often preferred for AI because of better driver support and Docker compatibility, but Windows works fine for most consumer cards.

Also consider the driver stack. NVIDIA’s proprietary drivers are generally stable, but you need to install CUDA toolkit or use a runtime like Docker that bundles it. AMD’s ROCm is improving but still has gaps on Windows. For a hassle-free experience, stick with NVIDIA.

Power Supply and Physical Fit

GPUs consume significant power. A high-end card like the RTX 4090 has a 450W TDP and requires a 850W power supply. Check your PSU’s wattage and available PCIe power connectors. Also check the card’s length and width: some cards are over 300mm long and may not fit in smaller cases. Measure the space from the rear bracket to the drive bays. Also consider cooling: high-end cards exhaust heat into the case, so ensure adequate airflow. If you plan to run inference for hours, a blower-style card (common on workstation cards) may be better for tight spaces.

Common Mistakes When Buying for AI

  • Ignoring VRAM headroom: Buying a card with exactly enough VRAM for the weights leaves no room for context or batch size.
  • Focusing on gaming benchmarks: Gaming FPS is not a reliable indicator of inference speed.
  • Overlooking PCIe bandwidth: For a single GPU, PCIe 4.0 x16 is fine; but if you plan to use two GPUs, PCIe lanes matter.
  • Not checking motherboard compatibility: Some older motherboards have BIOS issues with newer GPUs.

Comparison: Consumer vs. Workstation GPUs

Consumer cards (RTX series) offer the best price-to-performance for inference, but they have limited VRAM (max 24 GB on RTX 4090). Workstation cards (RTX A series, RTX 6000 Ada) offer more VRAM (up to 48 GB) and ECC memory, but cost several times more. For most hobbyists, a used RTX 3090 (24 GB) is a sweet spot because it can run 13B models in 4-bit and even 30B models with quantization. If you need more than 24 GB, consider two consumer cards (e.g., two RTX 3090s) using NVLink or just running them independently. Note that NVLink does not pool VRAM for inference; you must use software that supports tensor parallelism.

Safety and Handling

When installing a GPU, always unplug the PC and ground yourself to avoid static damage. Never open the power supply. When overclocking or undervolting, be aware that it can cause instability and may affect warranty; do not attempt to modify voltages without proper knowledge. Also, ensure the GPU is seated firmly in the PCIe slot and the power connectors are fully inserted. After installation, monitor temperatures during stress tests; if the card exceeds 85°C under load, improve case airflow.

Frequently Asked Questions

Can I use an AMD GPU for local AI?

Yes, but with caveats. AMD cards work with ROCm on Linux, and some tools like Ollama support them. However, performance and stability are often inferior to NVIDIA, and many libraries are not optimized. If you are a beginner, NVIDIA is the safer choice.

How much VRAM do I need for a 7B model?

For a 7B model in 4-bit quantization, you need about 4 GB of VRAM, but 8 GB is recommended for comfortable operation with a reasonable context length. For 16-bit, you need about 14 GB.

Is it worth buying a used GPU for AI?

Yes, used GPUs like the RTX 3090 can offer great value, but be cautious about mining cards that may have degraded fans or thermal pads. Check the card’s temperature under load and ask for a stress test result.

Can I run inference on a CPU instead?

Yes, but it is much slower. For LLMs, CPU inference can be 10-100x slower than a GPU. It is only practical for very small models or when you have no GPU.

Does more VRAM always mean faster inference?

No. If the model fits in VRAM, speed is determined by memory bandwidth and compute. A card with more VRAM but lower bandwidth (e.g., a workstation card with slower GDDR6) may be slower than a consumer card with less VRAM.