How to Run AI Privately on Your Computer
In this article
You can run an AI model entirely on your own computer, with no internet connection and no data leaving your machine. The short answer: install a free, open-source local AI app such as Ollama or LM Studio, download a model that fits your RAM, and chat with it offline. Your questions, prompts, and the model's answers stay on your hard drive. This guide walks through the practical steps, the hardware you need, and the mistakes that trip people up.
What You'll Need
- A computer with at least 8 GB of RAM for small models (3–4 billion parameters). 16 GB is a comfortable starting point; 32 GB or more lets you run larger, smarter models.
- A modern 64-bit operating system: Windows 10/11, macOS 12 or newer, or a mainstream Linux distribution.
- About 5–20 GB of free disk space per model, depending on size.
- A stable internet connection for the one-time download of the app and model. After that, you can disconnect entirely.
- Optional but helpful: a dedicated GPU (NVIDIA or AMD) for faster responses. Apple Silicon Macs use their unified memory efficiently without extra setup.
Note that menu labels and app layouts can differ slightly by version, device, or region. The steps below describe the current desktop apps; mobile phones are not suitable for running these models locally.
Step-by-Step
- Choose your local AI app. Two reliable, free options are Ollama (command-line and simple desktop app) and LM Studio (graphical interface). Both run models offline. Download only from the official websites; avoid third-party installers.
- Install the app. Run the installer and follow the prompts. On macOS, drag the app to Applications. On Windows, the installer may ask for permission to install; allow it. No account or sign-in is required for local use.
- Download a model. In Ollama, open a terminal and type
ollama pull llama3.2(or another model name from the official library). In LM Studio, use the search tab to find a model and click Download. Start with a 3B or 7B model if you have 8–16 GB of RAM; choose a quantized version (often labeled Q4) to save memory. - Load the model and start a chat. In Ollama, run
ollama run llama3.2. In LM Studio, select the downloaded model and open the chat panel. The first load may take a minute as the model is read into memory. - Disconnect from the internet (optional but recommended for sensitive questions). Turn off Wi-Fi or unplug the Ethernet cable. The model will continue to work because everything runs locally. This guarantees no data is sent anywhere.
- Ask your sensitive questions. Type your question in the chat box. The model generates answers on your CPU or GPU. Response speed depends on your hardware; small models on a laptop may take a few seconds per sentence.
- Keep your data private. Chat history is stored locally by the app. If you want to erase it, use the app's clear-history option or delete the conversation file. For maximum privacy, use a dedicated user account on your computer and enable full-disk encryption (BitLocker on Windows, FileVault on macOS, LUKS on Linux).
Common Mistakes
- Downloading models that are too large. A 70B model needs far more RAM than most laptops have. If the app crashes or freezes, try a smaller model or a more heavily quantized version.
- Assuming the app is offline by default. Some apps check for updates or send telemetry. Review the app's settings and disable any online features if you need strict offline operation.
- Using unofficial download sources. Models and apps from random websites can contain malware. Stick to the official app sites and the model library linked from within the app.
- Forgetting that the model itself is not a secure vault. Local AI keeps data on your machine, but anyone with access to your computer account can read the chat history. Use disk encryption and a strong login password.
- Expecting cloud-level accuracy. Small local models are less capable than large online services. They may produce incorrect or outdated information, so verify important answers independently.
Tips
- Start with a 3B model to test performance, then move up if your hardware handles it smoothly.
- Close other memory-heavy apps (browser tabs, games) before loading a model to free up RAM.
- Use the app's built-in system prompt or settings to instruct the model to be concise, which saves time and memory.
- Keep a note of which model and version you downloaded so you can reproduce results later.
- If you use a laptop, plug it in; running a model drains the battery quickly.
Troubleshooting
The app won't start or crashes on launch. Restart your computer, then check that your operating system is up to date. On Windows, ensure you have the latest Visual C++ redistributable if the installer mentions it. If the problem persists, uninstall and reinstall from the official source.
The model loads but responses are extremely slow. Your model may be too large for your RAM. Quit the app, download a smaller or more quantized model, and try again. Also check that no other program is using most of your memory.
The app says it cannot connect or download a model. Verify your internet connection and try again. If you are behind a corporate firewall, the download may be blocked; use a different network or download the model file manually from the official library and import it through the app's local-file option.
You see garbled or repeated text. This often means the model file is corrupted. Delete the model from the app and download it again. If it persists, try a different model.
You want to be sure nothing is sent online. Disconnect from the internet before chatting. If the app still works, it is fully local. You can also use a firewall to block the app's outbound connections, but that may prevent future model downloads.
Frequently Asked Questions
Is it really private?
Yes, when you run a local model and disconnect from the internet, your prompts and responses never leave your computer. The only caveat is that the app itself may store logs locally, which you can delete.
Can I run AI on a phone or tablet?
Not with these desktop apps. Some mobile apps offer small on-device models, but they are limited and not covered here. For sensitive questions, a computer is the practical choice.
Do I need a powerful GPU?
No. Small models run on a CPU, just more slowly. A GPU speeds things up but is optional.
How much RAM do I need for a useful model?
8 GB is the minimum for a small model; 16 GB gives noticeably better results; 32 GB or more lets you run larger models that handle complex questions better.
Can I use the AI without internet forever?
Yes, once the app and model are downloaded. You only need internet to get new models or update the app.
Are local models as accurate as online chatbots?
Generally no. Local models are smaller and may be less reliable, especially for factual questions. Treat their answers as a starting point and verify important details.