Run Your Own Offline AI Chatbot With Ollama
Install Ollama on Windows, pick a model that fits your GPU, switch off the cloud extras and park the models on another drive.
Train, tunnel, no signal. The cloud chatbot on your laptop shows a spinning circle and gives up. Meanwhile the person across the aisle is happily asking an AI to tidy up their meeting notes, completely offline. Their secret is a language model running on their own hardware, and on Windows the easiest way to get one is Ollama.
Ollama is free, open source and currently at version 0.40.13. It downloads AI models, runs them on your graphics card or processor and gives you a simple chat window. Your prompts stay on your PC. In Ollama's own words: when you run locally, they don't see your prompts or data.
Step 1: Check your PC
Ollama needs Windows 10 22H2 or newer. A graphics card helps a lot, but isn't mandatory:
- NVIDIA cards need driver version 551.61 or newer.
- AMD Radeon cards run through ROCm or Vulkan, depending on the card and driver. Vulkan is on by default and is the fallback for cards like the Radeon RX 6000 series.
- Without a supported GPU, Ollama uses the processor. That works, just slower.
Plan for disk space too. The app itself wants about 4 GB, and models range from a few gigabytes to hundreds. More on choosing the right size in Step 3.
Step 2: Install Ollama
- Download OllamaSetup.exe from the Ollama website and run it.
- Follow the installer. It installs into your user folder and doesn't need administrator rights.
- When it's done, Ollama runs in the background with an icon in the system tray, and the
ollamacommand works in Command Prompt, PowerShell and Terminal.
Want the program itself on another drive? Start the installer from a terminal with a target folder, for example OllamaSetup.exe /DIR="D:\Ollama".
Step 3: Pick a model that fits your hardware
This is where most first attempts go wrong. A model has to fit into memory, ideally into your graphics card's video memory (VRAM). If it doesn't, Ollama splits the work between GPU and CPU, and answers slow down noticeably.
Google's Gemma 4 family is a good example of how the sizes scale in Ollama's library:
gemma4:e2bdownloads at roughly 4.6 GB and up. A sensible start for laptops and older GPUs.gemma4:e4bis the default tag (what you get with plaingemma4), at roughly 6.6 GB and up.gemma4:12bis around 8 GB.gemma4:26bandgemma4:31bneed about 16 to 20 GB and are meant for big GPUs or machines with lots of RAM.
As a rule of thumb, pick a model whose download size is clearly smaller than your VRAM, because the conversation itself needs memory as well. Download it in a terminal:
ollama pull gemma4:e2b
One important detail: tags ending in cloud, such as gemma4:cloud, don't run on your PC at all. They run on Ollama's servers. For an offline chatbot, avoid them.
Step 4: Chat in the Windows app
Open Ollama from the Start menu or the tray icon. The app is refreshingly bare: a text box, a model selector and a send button. Pick your downloaded model from the drop-down next to the input box, type a question and press Enter.
The model selector sits right inside the chat box (official screenshot taken on macOS).
The app can do more than plain chat. Drag a text file or PDF into the window to ask questions about it, and with a model that supports images, you can send pictures too. Prefer the terminal? ollama run gemma4:e2b starts the same model in a text chat, and /bye ends it.
Step 5: Give it a longer memory
By default, a model only keeps a limited part of the conversation in mind. For long documents, open the app's settings and raise Context length. The trade-off: a longer context needs more memory, so a model that fit nicely before may now spill onto the CPU.
More context means more memory use, so raise it step by step.
To see whether your model still runs on the graphics card, type ollama ps in a terminal. The PROCESSOR column shows 100% GPU when everything fits, or a split like 48%/52% CPU/GPU when it doesn't. If you see a split, lower the context length or pick a smaller model.
Step 6: Lock it to local-only
Ollama also offers cloud models and web search. If you want to make sure nothing ever leaves your machine, switch those features off:
- Open your user folder and go into the
.ollamafolder (the full path is%HOMEPATH%\.ollama). - Create or edit the file
server.jsonand add{"disable_ollama_cloud": true}. - Quit Ollama from the tray icon and start it again.
Alternatively, set the user environment variable OLLAMA_NO_CLOUD to 1. Either way, Ollama's log then shows Ollama cloud disabled: true. You'll find the logs in %LOCALAPPDATA%\Ollama, with server.log being the one to check.
Out of the box, the Ollama server also only listens on your own PC (127.0.0.1, port 11434), so other devices on your network can't reach it unless you change that deliberately.
Step 7: Move the models to another drive
Models pile up fast, and by default they live on drive C: in C:\Users\<username>\.ollama\models. To move them:
- Open Settings on Windows 11 (or Control Panel on Windows 10) and search for environment variables.
- Click Edit environment variables for your account.
- Create a new variable named
OLLAMA_MODELSand set it to your new folder, such asD:\OllamaModels. - Click OK to save.
- Quit Ollama from the tray icon and start it again from the Start menu.
Existing models don't move by themselves. Either move the contents of the old models folder to the new location while Ollama is closed, or simply pull them again. And note for later: if you ever uninstall Ollama, models in a custom OLLAMA_MODELS folder stay where they are, so delete them by hand.
Trick: free up memory instantly
A loaded model stays in memory for five minutes after your last message. Before starting a game, run ollama stop gemma4:e2b to unload it right away. ollama ls lists all downloaded models, and ollama rm followed by the model name deletes one you no longer need.
Our verdict
Ollama is the quickest route to a private AI assistant on Windows, and it suits anyone with a reasonably modern GPU who'd rather not send drafts, notes or documents to a cloud service. If you prefer a more visual model browser, LM Studio covers similar ground. The one thing to do today: install Ollama, pull gemma4:e2b, and check with ollama ps that it runs fully on your GPU before trying anything bigger.

