Smart Systems for Home

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

PC Requirements for Local AI: RAM, VRAM, SSD

· 6 min read · Home Tech

In this article
  1. Why Local AI Is Different from Cloud AI
  2. How AI Models Use RAM, VRAM, and SSD
  3. Minimum vs. Comfortable Requirements
  4. How to Choose the Right Hardware
  5. Common Problems and Misconceptions
  6. Comparison: CPU vs. GPU for Local AI
  7. Cost and Upgrade Considerations
  8. Frequently Asked Questions

To run AI locally, your PC needs at least 16 GB of RAM, a GPU with 8 GB of VRAM (for most models), and an SSD with 20–50 GB of free space. The exact amounts depend on the AI model size and whether you run it on GPU or CPU.

Why Local AI Is Different from Cloud AI

Cloud AI services like ChatGPT or Bing Chat process your requests on remote servers. Local AI runs entirely on your own hardware, which means no internet connection is required, your data never leaves your machine, and you avoid per-use fees. The trade-off is that your PC must handle the entire workload, so hardware requirements are higher than for typical office tasks.

Local AI models come in different sizes, usually measured in billions of parameters (e.g., 7B, 13B, 70B). Larger models are more capable but require more memory. The key hardware components are RAM (system memory), VRAM (GPU memory), and SSD (storage).

How AI Models Use RAM, VRAM, and SSD

When you run a local AI model, the model files (weights) are loaded from the SSD into memory. The model then runs either on the GPU (using VRAM) or on the CPU (using system RAM).

  • VRAM (GPU memory): The GPU is the fastest way to run AI. The model must fit into VRAM. If it doesn't, the system either falls back to CPU or uses a combination (offloading).
  • RAM (system memory): When running on CPU, the model is loaded into RAM. Even when using a GPU, some RAM is needed for the operating system, the AI software, and the context window (the text you give the model).
  • SSD (storage): The model files are stored on the SSD. Loading a model from an SSD is much faster than from a hard drive, and an SSD also helps with swapping if memory runs out.

In practice, a 7B parameter model quantized to 4-bit (a common compression) uses about 4–5 GB of storage and roughly the same amount of VRAM or RAM. A 13B model uses about 8–10 GB, and a 70B model uses around 40 GB.

Minimum vs. Comfortable Requirements

You can run small AI models on modest hardware, but larger models need more. Here are general guidelines:

  • Minimum for small models (7B): 16 GB RAM, 6 GB VRAM, 20 GB free SSD. You can run a 7B model on CPU with 16 GB RAM, but it will be slow.
  • Comfortable for 13B models: 32 GB RAM, 12 GB VRAM, 50 GB free SSD. A 13B model runs well on a GPU with 12 GB VRAM, or on CPU with 32 GB RAM (slower but usable).
  • For 70B models: 64 GB RAM, 24 GB VRAM, 100 GB free SSD. These are heavy; most users run them on CPU with 64 GB RAM, or use GPU offloading.

These numbers assume you are using quantized models (like GGUF or GPTQ). Full-precision models require roughly 2–4 times more memory.

How to Choose the Right Hardware

Start by deciding which AI models you want to run. If you only need a chatbot for simple tasks, a 7B model is enough. If you want better reasoning or coding assistance, aim for 13B or larger.

  1. Check the model's size (in GB) on its page (e.g., Hugging Face).
  2. Add 4–6 GB for the context window and system overhead.
  3. If using a GPU, ensure your VRAM is at least that total. If not, plan to run on CPU with enough RAM.
  4. Ensure your SSD has at least twice the model size free, to allow for downloads and temporary files.

For example, to run a 13B GGUF model that is 8 GB, you would want at least 12 GB VRAM (if GPU) or 32 GB RAM (if CPU).

Common Problems and Misconceptions

Misconception: You need a top-end GPU to run any AI. Not true. Many models run on CPU alone, albeit slower. A 7B model can run on a modern CPU with 16 GB RAM, taking a few seconds per response.

Problem: Out of memory errors. This happens when the model plus context exceeds your VRAM or RAM. Solutions: use a smaller model, reduce the context length, or enable GPU offloading (which uses both VRAM and RAM).

Problem: Slow generation. If the model is too large for your hardware, it will be slow. Upgrading RAM or VRAM helps, but also consider using a quantized model.

Misconception: SSD speed matters for performance. SSD speed affects load time, not generation speed. Once the model is loaded into memory, the SSD is not used until you load a new model.

Comparison: CPU vs. GPU for Local AI

Running AI on a GPU is generally 5–10 times faster than on a CPU, because GPUs have thousands of cores optimized for parallel math. However, GPUs are limited by VRAM. If your model doesn't fit in VRAM, you can offload some layers to system RAM, but this slows things down.

Running on CPU uses system RAM, which is cheaper and more expandable. A 64 GB RAM system can run a 70B model that would require a 48 GB VRAM GPU (very expensive). The trade-off is speed: CPU inference can be 20–50 tokens per second for small models, but only 1–5 tokens per second for large ones.

For most users, a mid-range GPU with 12–16 GB VRAM (like an RTX 3060 or 4070) is a good balance. If you only have integrated graphics, you can still run small models on CPU, but expect long waits.

Cost and Upgrade Considerations

Upgrading your PC for local AI can be expensive. Adding RAM is usually the cheapest upgrade (e.g., 32 GB DDR4 costs less than a GPU). Adding a GPU with 12+ GB VRAM is the most effective for speed. If you have a desktop, you can often upgrade components yourself; laptops are more limited.

Before buying, check if your motherboard supports the RAM you want, and if your power supply can handle a new GPU. Also, note that some older GPUs lack features like CUDA (NVIDIA) or ROCm (AMD), which are required for many AI frameworks.

Frequently Asked Questions

Can I run AI locally without a GPU?

Yes. You can run smaller models (7B or smaller) on CPU using system RAM. It will be slower, but it works. For example, a 7B model might take 10–20 seconds to generate a response on a modern CPU.

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

For a quantized 7B model (4-bit), you need about 4–6 GB of VRAM. If you have less, you can offload to RAM, but performance drops.

Is an SSD necessary for local AI?

An SSD is strongly recommended because model files are large (several GB). Loading a model from an SSD takes seconds, while a hard drive can take minutes. Once loaded, the SSD doesn't affect performance.

What is the difference between RAM and VRAM?

RAM is the system memory used by the CPU. VRAM is the memory on the graphics card, used by the GPU. AI models can use either, but VRAM is faster for AI workloads.

Can I run a 70B model on a 16 GB RAM PC?

No. A 70B model quantized to 4-bit needs about 40 GB of memory. With 16 GB RAM, you would run out of memory immediately. You would need at least 48 GB RAM, and even then it would be very slow.

Does the SSD speed affect AI generation speed?

No. Generation speed is determined by the CPU/GPU and memory. SSD speed only affects how quickly the model loads into memory when you start the program.