Imagine being able to draft emails, summarize notes and explore code with an AI assistant even when your internet connection is down. You do not need a data center to try this. A small language model can run on an ordinary computer, provided its memory requirements and the software's hardware support are understood.
This guide explains how to run AI locally on Windows 11 using Ollama or LM Studio, how to choose a model, and how to estimate the memory required before downloading gigabytes of data. The goal is a working offline language model, not an offline copy of a commercial cloud chatbot.
Quick answer: install a local inference application, download a compatible model and any required runtime while connected, then select the local model and verify that it can generate a new response after disconnecting. A small quantized model is a sensible starting point. A dedicated GPU can improve performance, but CPU-only inference is possible on supported systems.
Editorial note: This AI-assisted guide was checked against the linked documentation on November 28, 2026. The diagrams and calculations are illustrative; no local model benchmark or Windows installation test was performed.
1. What does running AI locally actually mean?
A language model stores learned numerical parameters, often called weights. A local inference engine loads those parameters and produces tokens on your device. The application is the interface; the model is the underlying computational component. You can change one without necessarily changing the other.
Cloud AI sends requests to remote infrastructure. Local AI shifts the computation to your own computer. It does not automatically become more intelligent, more accurate or perfectly private. The model cannot retrieve fresh web information without a connected tool, and a local application may still offer online features. Keep those distinctions in mind before using confidential documents.

2. Check your hardware before downloading a model
Open Task Manager with Ctrl+Shift+Esc and select Performance. Record the installed and available system memory, CPU model, and dedicated GPU memory if present. Integrated graphics typically share system memory; do not count their shared memory a second time as dedicated VRAM. Also check free disk space, because model downloads, temporary files and runtime installations can occupy several gigabytes.
For LM Studio, the official requirements recommend 16 GB of RAM and 4 GB of dedicated VRAM on Windows; x64 systems require AVX2 support. Check the requirements for your specific architecture. Ollama's Windows documentation lists OS and GPU driver requirements and notes that the base installation needs at least 4 GB of storage before model files. These are application requirements, not guarantees that any particular model will fit.
| Installed hardware | Conservative starting point | What to watch |
|---|---|---|
| 8 GB RAM, no dedicated GPU | 1–2B quantized model, if runtime supports it | OS headroom and paging |
| 16 GB RAM, no dedicated GPU | 3B quantized model; explore 7B only if memory permits | CPU speed and context size |
| 16–32 GB RAM, 8 GB dedicated VRAM | 3–7B quantized model | Available VRAM, cache and other GPU apps |
| 32 GB+ RAM, 16 GB+ dedicated VRAM | 7–14B quantized model | Actual architecture and runtime allocations |
These are editorial starting suggestions, not measured performance results. A larger model is not automatically better for every task. Start with a model small enough to leave room for Windows and the inference engine.

3. Free AI RAM and VRAM calculator: estimate before you install
Model files are not the entire memory budget. There are three major components: weight storage, the attention key/value cache (KV cache), and runtime allocations such as compute buffers. Quantization reduces weight precision and usually memory consumption, but the cache can use a different precision.
Estimate model weights, KV cache and runtime memory before downloading.
Open Free Calculator ↗Local browser calculation • No API or personal data required.
Our calculator uses a transparent approximation for dense transformer inference. Weight memory in GiB is parameter count × effective bits per weight ÷ 8 ÷ 2^30. Enter a known model file size in GiB when available as an alternative proxy, remembering that runtime layout may differ. KV cache in GiB is 2 × layers × KV heads × head dimension × context tokens × bytes per cache element × concurrent sequences ÷ 2^30. The factor of two accounts for keys and values. Add a user-adjustable runtime reserve. These equations describe a simplified full-attention cache; architectures with sliding windows, hybrid layers, cache compression or special attention designs can differ substantially.
For example, a hypothetical dense 7B model at 4.5 effective bits per weight requires approximately 3.67 GiB of weights. With 32 layers, eight KV heads, head size 128, FP16 cache and 4,096 tokens, the cache is 0.50 GiB for one sequence. With a 1 GiB runtime reserve, the estimate is 5.17 GiB. At 16,384 tokens, the same cache rises to 2.00 GiB, bringing the estimate to 6.67 GiB. This is an arithmetic example, not a benchmark or a claim about a named model.
Check the architecture in the model card or configuration; do not confuse query heads with KV heads. Compare the resulting estimate against available RAM or available dedicated VRAM separately. Partial GPU offloading may help, but adding both pools together does not guarantee a model can be loaded. See the Hugging Face cache documentation for the reasons cache strategies affect memory and latency.

4. Ollama vs LM Studio: choose the workflow
| Task | Ollama | LM Studio |
|---|---|---|
| Getting started | Command line and app | Desktop graphical interface |
| Model selection | Named models and tags | Search/download compatible model files |
| Automation | Local CLI and API | Local server and developer interfaces |
| Offline use | Use a downloaded local model | Download models and runtime first |
Choose Ollama if you want commands that can be repeated or incorporated into scripts. Choose LM Studio if you prefer selecting models and changing settings through a graphical interface. Both have local developer workflows; neither requires you to publish a server to the internet for ordinary personal chat.
Download the original Windows package.
Visit Official Download Page ↗External link • You will leave SoftRyva and visit ollama.com.
5. Run your first offline model with Ollama
- Download and install Ollama from its official Windows page while connected.
- Open PowerShell and check that the command is available.
- Download a small local model, for example qwen2.5:1.5b.
- Start a chat and enter a short, non-sensitive prompt.
ollama --version
ollama pull qwen2.5:1.5b
ollama list
ollama run qwen2.5:1.5b
The model library lists approximate package sizes of 986 MB for the 1.5B variant, 1.9 GB for 3B, and 4.7 GB for 7B. Those are download sizes, not memory guarantees. The variants also have different licensing terms, so read the model card before business or redistribution use.
For a local-only configuration, follow the Ollama FAQ: set the Windows user environment variable OLLAMA_NO_CLOUD to 1, quit Ollama from the system tray and start it again. This disables cloud models and web search. Do not open its server port to the public internet. After downloading everything, disconnect Wi-Fi and Ethernet, then ask a new question that you have not already asked. Reconnect after testing when you need updates.
While a model is loaded, run the following in a second terminal:
ollama ps
The processor column tells you whether the model is loaded on CPU, GPU or a mixture. Do not use this alone to estimate generation speed. To reduce context pressure, select a modest context size in the application or use the documented context setting appropriate to your installed version.

6. Run a local chatbot with LM Studio
Install LM Studio from the official download page. Check that your hardware meets the requirements. Find a compatible small instruction-tuned model, choose a quantized variant and download any required inference runtime. Load the model in the chat interface. Menu labels may vary by release; the getting-started documentation describes the current workflow.
Start with a short context and modest generation length. If memory pressure is high, unload the model and select a smaller one or lower the context setting. GPU offload can improve throughput when the backend and hardware support it. If your system becomes unresponsive, stop the workload and close other applications before trying again.
The offline documentation explains that core chat, local document chat and local server functionality can operate without a connection after the necessary files have been downloaded. Online search, updates and remote integrations are separate features. For sensitive material, check local storage and extension settings as well.

7. A five-minute acceptance test for your own PC
Use this repeatable test instead of relying on a viral benchmark from different hardware. Create a fictional note with three facts: a meeting is on Monday, the room is B12, and the budget is 300 dollars. Ask the local model to extract those facts into a table, rewrite the note in plain language and answer a question whose answer is absent. A useful answer should preserve the facts and admit uncertainty about missing details.
Record model tag, quantization, context, processor allocation and whether the answer was correct. Repeat with the network disconnected. If the application fails offline, confirm that it is using a downloaded model rather than a remote endpoint. Compare response time only on the same prompt and hardware, and keep the settings consistent. This is a personal acceptance check, not a scientific evaluation of model intelligence.
8. Troubleshooting: when local AI is slow or will not load
| Symptom | First action |
|---|---|
| Out of memory | Unload other models, reduce context, choose smaller weights. |
| GPU not used | Check supported GPU, drivers and actual processor allocation. |
| Disk fills up | Review downloaded models and remove only those no longer needed. |
| Slow generation | Check CPU/GPU allocation, paging, thermals and background tasks. |
| Works online only | Verify local model, required runtime and disabled cloud features. |
| Invented facts | Provide relevant source text and verify claims independently. |
Long context is not free. Increasing the number of cached tokens can consume substantial memory, and parallel requests can make pressure worse. The Ollama context guide describes the tradeoff. Reducing the model's weight precision may also affect quality. Change one setting at a time so you know which change helped.

9. Privacy and responsible use
Running inference on your machine can reduce reliance on remote processing, but it is not a complete security policy. Keep model downloads and runtimes updated from trusted sources, avoid unknown plugins, protect locally stored conversations, and follow your organization's rules for confidential information. Do not let an AI agent execute commands or change files automatically without appropriate permissions and review. Local models can hallucinate, misunderstand requests and produce unsafe advice just as cloud models can.
Frequently asked questions
Can I run AI without a graphics card?
Yes, if the model and engine support CPU inference and your RAM is sufficient. Expect performance to depend on CPU, memory bandwidth, model and settings.
Can I run ChatGPT offline?
A local model can provide a similar chat interface, but it is not the same as the hosted ChatGPT service. Use an independently available model compatible with your runtime.
Is 8 GB of RAM enough?
Some small models may fit, but the operating system needs memory too. Check the application requirements and start with a small model rather than assuming a 7B model will run comfortably.
Does downloading a 4 GB model mean I only need 4 GB RAM?
No. Runtime buffers and attention cache also require memory, and the file format may not match its loaded representation.
Can local AI access the latest news?
Not by itself. An offline model has only the information in its weights and the context you provide. Live information requires a connected source.
Conclusion
Start small, measure available memory, choose a trusted local runtime and verify offline operation yourself. The best local AI setup is the one that answers your actual questions reliably on the hardware you already own. Use the calculator as a planning aid, not a promise of compatibility, and scale up only after your first model works.