TechBuzzPro

Run Local AI Models on an Old PC: RAM & Setup Guide

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can run local AI models on an old PC, but the size of the model you can run is limited by your RAM. As a rule of thumb, a 7-billion-parameter model needs about 8 GB of RAM, a 13B model needs about 16 GB, and anything larger needs 32 GB or more. The catch is that old PCs often have slow CPUs and limited RAM, so you will be working with smaller models (3B to 7B parameters) and quantized versions that trade some quality for speed and memory savings. This guide walks you through the practical steps to get a local AI model running on modest hardware, using free and open tools.

What You'll Need

  • A PC with at least 8 GB of RAM (16 GB is much better). 4 GB can work with tiny 1–3B models but will be slow.
  • At least 10 GB of free disk space for the model file and the runtime (more if you want multiple models).
  • A 64-bit operating system (Windows 10/11, macOS, or a Linux distribution).
  • An internet connection for the initial download.
  • Optional: a GPU with 4 GB+ VRAM will speed things up, but it is not required. The CPU alone can run small models.

Step-by-Step

  1. Check your RAM and free disk space. On Windows, open Task Manager (Ctrl+Shift+Esc) and go to the Performance tab; on macOS, open Activity Monitor; on Linux, use the free -h command. Note your total RAM and how much is free. You need enough free RAM to hold the model plus the operating system and other apps. Close unnecessary programs before running a model.
  2. Choose a model that fits your RAM. Look for models in the 3B to 7B parameter range and prefer quantized versions (often labeled Q4 or Q5). Quantization reduces the file size and RAM usage with a small quality loss. For example, a 7B model quantized to 4-bit is about 4 GB on disk and needs roughly 6–8 GB of RAM to run. A 3B model quantized to 4-bit is about 2 GB and runs in 4–6 GB of RAM. Avoid models larger than 13B on a machine with less than 16 GB of RAM.
  3. Install a local inference runtime. The easiest option is Ollama, which is available for Windows, macOS, and Linux. Download it from the official Ollama website and run the installer. Ollama runs in the background and provides a command-line interface. Alternative runtimes include LM Studio (graphical interface) and llama.cpp (more manual). For beginners, Ollama or LM Studio is recommended.
  4. Download a model. With Ollama, open a terminal (Command Prompt or PowerShell on Windows, Terminal on macOS/Linux) and run a command like ollama pull llama3.2:3b or ollama pull mistral:7b. This downloads the model file. The exact model names are listed on Ollama's website. If you use LM Studio, search for models in its built-in browser and download a quantized version that fits your RAM.
  5. Run the model and test it. With Ollama, run ollama run llama3.2:3b (replace with the model you downloaded). This starts an interactive chat in the terminal. Type a prompt and press Enter. The first response may take a few seconds as the model loads into RAM. If it is extremely slow or your system becomes unresponsive, stop and try a smaller model.
  6. Adjust settings for performance. If the model is too slow, try a smaller model or a more aggressive quantization (e.g., Q4 instead of Q5). In Ollama, you can set the number of CPU threads with the OLLAMA_NUM_THREADS environment variable (set it to the number of physical cores, not logical threads). In LM Studio, adjust the GPU offload layers if you have a GPU; otherwise, keep it on CPU. Also, close other memory-hungry applications.
  7. Use a graphical interface (optional). If you prefer a chat window, install a front-end like Open WebUI (runs in Docker) or use LM Studio's built-in chat. Ollama can also be accessed via third-party GUI apps. These add convenience but consume additional RAM, so on very old PCs, stick to the command line.

Common Mistakes

  • Downloading a model that is too large. A 13B model on an 8 GB machine will either fail to load or cause severe swapping, making the system unusable. Always check the model's RAM requirements before downloading.
  • Ignoring quantization. Full-precision (FP16) models use twice the RAM of 8-bit quantized ones and four times that of 4-bit. Always choose a quantized version for old hardware.
  • Not closing other programs. Browsers and background apps can consume several gigabytes. Close them before running a model to free up RAM.
  • Expecting fast responses. On a CPU-only old PC, a 7B model might generate only a few tokens per second. That is normal; do not assume something is broken.
  • Using a 32-bit OS. Most local AI tools require a 64-bit operating system. Check your system type in Settings > System > About (Windows) or > About This Mac (macOS).

Tips

  • Start with the smallest model you can tolerate (e.g., 3B) and work your way up only if performance is acceptable.
  • Use a lightweight Linux distribution on very old PCs to free up RAM that Windows would otherwise use.
  • If you have a GPU with at least 4 GB VRAM, offload some layers to it to speed up inference. Both Ollama and LM Studio support this.
  • Keep your runtime updated; newer versions often include performance improvements.
  • Consider using a dedicated swap file or increasing virtual memory if you occasionally run slightly larger models, but expect slowdowns.

Troubleshooting

  • Model fails to load or crashes: You likely do not have enough free RAM. Try a smaller model or a more quantized version. Close other applications and check free RAM again.
  • System becomes very slow or unresponsive: The model is causing swapping to disk. Stop the model, reduce its size, or add more RAM if possible.
  • Ollama command not found: Ensure Ollama is installed and running. On Windows, check that the Ollama service is active in the system tray. On macOS/Linux, verify the installation path is in your PATH.
  • Download stalls or fails: Check your internet connection and try again. Some models are large; ensure you have enough disk space.
  • Responses are gibberish or cut off: The model may be corrupted. Delete and re-download it. Also ensure you are using the correct prompt format for that model (Ollama handles this automatically).

Frequently Asked Questions

Can I run a local AI model on 4 GB of RAM?

Yes, but only very small models (1–3B parameters) with aggressive quantization. Expect slow performance and limited quality. Close all other programs to free up as much RAM as possible.

Do I need a GPU to run local AI models?

No. A CPU is sufficient for small models, though a GPU with enough VRAM will speed things up significantly. Without a GPU, stick to 3B–7B models.

What is quantization and why does it matter?

Quantization reduces the precision of the model's weights, shrinking the file size and RAM usage. A 4-bit quantized model uses roughly a quarter of the RAM of a full-precision model, with a small drop in quality. It is essential for running on old hardware.

How do I know which model size my PC can handle?

Check your total RAM. A 7B model quantized to 4-bit needs about 8 GB of RAM total (including the OS). A 3B model needs about 4–6 GB. Always leave at least 2 GB free for the operating system.

Can I use these models offline?

Yes. Once the model is downloaded, you can run it without an internet connection. The runtime (Ollama, LM Studio) works offline.

Is it safe to download models from third-party sites?

Only download models from official sources like Ollama's library, Hugging Face (verified repositories), or the model's official page. Avoid unofficial APKs or cracked software.