Run AI Locally on Your PC: A Practical Guide to RAM, VRAM and Model Size

Run AI Locally on Your PC: A Practical Guide to RAM, VRAM and Model Size

Technology Hardware artificial intelligence AI Tools

Local language models can help with drafting, coding and offline experiments. The best model for your computer is usually the one that delivers useful answers at a speed you can tolerate, not necessarily the largest one you can download.

RAM and VRAM

System RAM is accessible to the CPU; dedicated VRAM is used by a discrete graphics card. Depending on your runtime and hardware, inference can run on a CPU, a GPU or a combination. Unified-memory machines use a shared memory pool.

Model sizes and quantization

A model labeled 7B has approximately seven billion parameters. Four-bit weights alone would require about 3.5 GB, before accounting for metadata, runtime overhead and context cache. Quantization reduces memory demand with potential quality trade-offs. Longer contexts can increase memory use considerably.

Pick a realistic starting model

On a CPU-only computer, try a compact quantized model and short prompts. On a GPU-equipped machine, start with a model comfortably below available graphics memory. Increase model size only if the quality gains justify slower responses and higher memory use.

Install and test

  1. Download a trusted local inference runtime such as Ollama.
  2. Select a reputable model and review its license.
  3. Run a short prompt, inspect memory usage and measure latency.
  4. Compare several representative tasks before committing to a model.

Privacy considerations

Local inference does not guarantee that every feature stays local. Check telemetry, cloud integrations, tools and file permissions. Avoid exposing an unauthenticated model service to the internet.

Start with a manageable model, then scale based on evidence. See Ollama for runtime and model documentation.