TechBuzzPro

How to Run AI Locally on a Low RAM PC: Step-by-Step

· 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 a capable AI chatbot entirely on a low-RAM PC by using a small, quantized model with a lightweight runner such as Ollama or llama.cpp. The key is to pick a model that fits your available memory, keep the context window short, and let the model stream from disk instead of trying to hold everything in RAM. This guide walks you through a working setup on Windows, with notes for macOS and Linux, and explains what to do when your machine runs out of memory or the model feels too slow.

What You'll Need

  • A PC with at least 8 GB of RAM (4 GB can work with very small models, but expect slow responses and frequent swapping).
  • About 10–20 GB of free disk space for the runtime and one or two small models.
  • A 64-bit operating system: Windows 10 or 11, a recent macOS, or a mainstream Linux distribution.
  • An internet connection for the initial download only. After that, everything runs offline.
  • Optional: a GPU with 4 GB or more of VRAM will speed things up, but a CPU-only setup is fine for small models.

Step-by-Step

  1. Check your available RAM and disk space. On Windows, open Task Manager (Ctrl+Shift+Esc) and look at the Performance tab. On macOS, open Activity Monitor. You want to know how much RAM is free after your browser and other apps are closed. As a rule of thumb, a model file should be no larger than about half your total RAM so the system has room to breathe.
  2. Close memory-hungry apps. Browsers with many tabs, video editors, and games eat RAM. Close them before you start the model. On Windows you can also disable startup apps you do not need from Task Manager's Startup tab.
  3. Install a local model runner. The simplest option is Ollama, which has official installers for Windows, macOS, and Linux from ollama.com. Download the installer for your system, run it, and let it finish. On Linux, follow the official install script from the same site. Avoid third-party mirrors or repackaged installers.
  4. Open a terminal and confirm the install. On Windows, open PowerShell or Command Prompt. On macOS or Linux, open Terminal. Type ollama --version and press Enter. If you see a version number, the runner is ready. If the command is not found, restart the terminal or your PC and try again.
  5. Download a small model. In the same terminal, run ollama pull llama3.2:1b for a roughly 1-billion-parameter model, or ollama pull qwen2.5:1.5b for a slightly larger but still low-memory option. These are quantized builds that fit comfortably in 4–8 GB of RAM. The download is a few hundred megabytes to about 1 GB. Do not pick a 7B or larger model on a low-RAM machine; it will either fail to load or crawl.
  6. Start a chat. Run ollama run llama3.2:1b (or whichever model you pulled). The first run loads the model into memory, which can take a minute on a slow disk. Once you see a prompt, type a question and press Enter. Responses stream token by token; on a low-RAM CPU-only machine, expect a few words per second rather than instant answers.
  7. Keep the context short. Long conversations use more memory because the model has to remember more text. If you notice slowdowns or errors, type /clear in the Ollama chat to reset the conversation, or start a fresh session. Keeping each chat to a few exchanges is the single biggest thing you can do for stability on a low-RAM PC.
  8. Use it offline. Once the model is downloaded, disconnect from the internet and run the same command. It will work exactly the same, because the model file lives on your disk. This is the main reason people run AI locally: privacy and no dependency on a connection.
  9. Try a graphical interface if you prefer. Ollama runs as a background service, and several open-source desktop chat apps can connect to it. Install one from its official site or package manager, point it at the local Ollama address (usually http://localhost:11434), and pick your downloaded model from its list. This gives you a chat window instead of a terminal.
  10. Shut it down when done. Close the chat window or press Ctrl+C in the terminal. On Windows, the Ollama background service keeps running; you can quit it from the system tray icon if you want to free the RAM it holds.

Common Mistakes

  • Downloading a model that is too large. A 7B model needs roughly 4–5 GB just for the weights, plus overhead. On an 8 GB machine with a browser open, that tips into swapping and feels broken. Start with 1B–2B models.
  • Leaving the browser open. A browser with a dozen tabs can use 2–3 GB of RAM. Closing it often doubles the speed of a small model.
  • Expecting ChatGPT-level answers. Small models are useful for summarising, rewriting, simple Q&A, and brainstorming, but they make more factual mistakes. Verify anything important.
  • Ignoring disk speed. A model on a slow mechanical hard drive loads much more slowly than on an SSD. If loading takes several minutes, that is usually the cause.
  • Using unofficial installers. Only download the runner and models from the official project sites. Repackaged installers are a common way to get unwanted software.

Tips

  • Set a smaller context size if the runner exposes that option; a shorter context uses less RAM per conversation.
  • Keep two small models rather than one large one: a fast 1B model for quick tasks and a slightly larger 3B model for when you need better answers.
  • Run the model when you are not doing other heavy work. CPU-only inference uses all available cores, so background tasks slow both down.
  • If you have a compatible GPU, the runner will use it automatically in many cases; check the runner's documentation for your platform rather than forcing settings you are unsure about.
  • Store models on the fastest drive you have. Moving the model folder to an SSD is a real speedup on older PCs.

Troubleshooting

If the model fails to load or the PC becomes unresponsive, close the chat and any other apps, then try a smaller model. Out-of-memory errors almost always mean the model plus your other software exceeds physical RAM. If responses are extremely slow, check Task Manager or Activity Monitor to see whether the disk is at 100% — that indicates swapping, and the fix is a smaller model or more free RAM. If the ollama command is not recognised, restart the terminal and then the PC; the installer adds it to the system path, and a restart picks that up. If a download stalls, cancel it and run the pull command again; partial downloads are resumed or replaced cleanly. If a desktop chat app cannot connect, confirm the Ollama service is running (look for its tray icon on Windows) and that the app is pointed at the local address shown in the runner's documentation.

Frequently Asked Questions

Can I run AI locally with only 4 GB of RAM?

Yes, but only very small models (around 1B parameters or less) and with everything else closed. Expect slow responses and occasional failures if you open other apps.

Do I need a GPU?

No. CPU-only inference works for small models. A GPU speeds things up but is not required, and many low-RAM PCs do not have a usable one.

Is it private?

Yes. Once the model is downloaded, prompts and responses stay on your machine. You can disconnect from the internet and it still works.

Which model should I start with?

A 1B–2B parameter quantized model is the safe starting point on 8 GB of RAM. Move up only if it runs comfortably.

Why are the answers worse than online chatbots?

Small models have far fewer parameters, so they are less accurate and less fluent. They are best for simple tasks where you can check the output.

Can I use it without the terminal?

Yes. Install a desktop chat app that connects to the local runner, then pick your downloaded model from its list.