How to Run a Local LLM on Windows 11: A Step-by-Step Guide

Install your first model, monitor RAM and GPU use, manage context and understand the privacy limits of local AI.

Running AI locally is no longer limited to laboratories or enterprise computers. With Windows 11, a suitable application, and a model that fits the available memory, you can interact with an LLM directly on your PC without sending every prompt to a cloud service.

This guide uses Ollama as the main route because it is accessible to beginners. It also introduces llama.cpp and Microsoft Foundry Local for readers who want more control or plan to build Windows applications.

The objective is not merely to make a model start. By the end, you should be able to select an appropriate model, monitor memory use, control the context window, remove unnecessary files, and understand whether the CPU, GPU, or NPU is doing the work.

Quick start

To run your first local LLM on Windows 11:

  1. Confirm that the PC has enough RAM and storage.
  2. Install Ollama from its official website.
  3. Open PowerShell or Windows Terminal.
  4. Choose a model that matches the available memory.
  5. Run ollama run model-name.
  6. Wait for the download and enter your first prompt.
  7. Use Task Manager to monitor RAM, CPU, and GPU activity.

An NPU is not required. A local LLM can run on a CPU, a compatible GPU, or a combination of CPU, GPU, and system memory. The main differences are speed, efficiency, and the model size that the computer can handle.

What is a local LLM?

A local LLM is a language model whose main files and computations run on the device itself. Once downloaded, many tasks can be completed without a permanent internet connection.

Potential advantages include:

  • prompts and documents can remain on the computer;
  • there is no per-token cloud charge for local generation;
  • the model can remain available when the connection fails;
  • users can choose among different models and quantizations;
  • developers can connect applications to a local endpoint.

There are limitations. Local models can be slower, occupy many gigabytes, and sometimes provide weaker answers than larger cloud systems. Privacy also depends on the complete configuration: web search, extensions, telemetry, remote models, and external integrations may still transmit data.

Before installing anything

Step 1: check installed and available RAM

Right-click Start, open Task Manager, select Performance, and choose Memory. Record both the total capacity and the amount already in use.

A 16 GB computer does not have all 16 GB available to the model. Windows, the browser, antivirus software, and background applications consume part of it before inference begins.

Step 2: identify the CPU and GPU

In the same Performance section, check the CPU and GPU panels. Note:

  • processor model;
  • integrated or dedicated GPU name;
  • dedicated GPU memory, when present;
  • graphics driver version and date.

A supported dedicated GPU can significantly accelerate generation if it has enough VRAM. Integrated graphics normally shares system RAM. Without compatible acceleration, the model may run mainly on the CPU.

Step 3: check free storage

Open File Explorer, select This PC, and check the free space on the system drive. A single model can occupy from roughly 1 GB to tens of gigabytes. Leave additional space for updates, caches, and normal Windows operation.

Step 4: confirm the Windows version

Press Windows + R, enter winver, and press Enter. Ollama provides a Windows installer for Windows 10 or later. Alternatives can have more specific requirements. Microsoft Foundry Local documentation, for example, should be checked for the current supported Windows build and acceleration requirements before installation.

Choose a model that fits your PC

Your first model should leave headroom. Starting with the largest model that might barely fit often creates a slow and unstable first experience.

Installed RAM Sensible starting model Practical expectation
8 GB Quantized 1B–3B Simple prompts, short context, little multitasking
16 GB Quantized 3B–8B Good entry point for chat, summaries, and local tests
32 GB Quantized 7B–14B Better quality and context; selected larger models at the limit
64 GB Quantized 14B–32B Advanced local use; heavily compressed 70B experiments may be possible
96–128 GB Quantized 32B–70B More headroom for large models, depending on context and hardware

These are guidelines, not guarantees. Consumption changes with architecture, quantization, context length, runtime, and background applications. For a full calculation, see the related NextTechSearch guide, How to Calculate Local LLM RAM Requirements for Your PC.

Main method: install Ollama on Windows 11

Ollama handles three useful tasks: it downloads models, manages installed files, and provides a local interface for conversations and application integrations.

Step 1: download Ollama

  1. Visit the official Ollama website.
  2. Open the Windows download page.
  3. Download the official installer.
  4. Run the downloaded file.
  5. Wait for installation to finish.

Avoid unofficial download pages. A local runtime can access model files, local ports, and computer resources, so it should come from the original source.

Step 2: verify the installation

Open Windows Terminal or PowerShell and run:

ollama --version

If installation succeeded, the terminal will display the installed version. If the command is not recognized, close and reopen the terminal. Restart Windows if the problem continues.

Step 3: select the first model

In Ollama's official model library, check:

  • parameter count;
  • download size and available variants;
  • licence and usage conditions;
  • supported languages and intended purpose;
  • available context length;
  • whether the option is local or cloud-based.

On a PC with 16 GB of RAM, begin with a quantized 3B–8B model. If you only want to validate the installation, choose a smaller model for a faster download and more Windows headroom.

Step 4: download and start it

Use the exact model name displayed in the official library:

ollama run model-name

A generic example would look like:

ollama run model:3b

During the first run, Ollama downloads the necessary files. The time required depends on the connection and model size. When the download is complete, an input area appears in the terminal.

Always verify the exact model page before copying a command. Tags may identify completely different sizes, quantizations, or releases.

Step 5: perform a useful first test

Begin with short, verifiable prompts:

  • “Explain RAM in five bullet points.”
  • “Summarize this paragraph without adding facts.”
  • “Create a table comparing CPU, GPU, and NPU.”
  • “Answer in English and clearly state when you do not know.”

Evaluate four points:

  1. time to the first token;
  2. generation speed;
  3. response quality and coherence;
  4. memory and processor consumption.

Step 6: end the session

Use the exit command shown by the interface or press Ctrl + D. In many terminals, Ctrl + C interrupts the current generation.

Ending the conversation does not delete the model. Its files remain on the computer for the next session.

Check whether the CPU or GPU is being used

While the model generates a response, open Task Manager and select Performance. Observe the CPU, Memory, and GPU panels. If needed, change one GPU graph to a compute engine and check both dedicated and shared GPU memory.

Ollama can also show active models:

ollama ps

The output may help indicate whether the model is loaded on the CPU, GPU, or across both resources. Exact reporting depends on the hardware, drivers, and runtime version.

Low activity on the default GPU graph does not necessarily indicate a failure. Task Manager may be showing the 3D engine rather than the engine used for compute, and only part of the model may have been offloaded to the GPU.

List, download, and remove models

List installed models:

ollama list

Download a model without immediately opening a chat:

ollama pull model-name

Remove a model you no longer need:

ollama rm model-name

Confirm the name carefully before removal. Deleting a model frees its storage, but you will need to download it again if you want to reuse it.

Control the context window

The context window is the amount of information a model can consider during a session. A larger context does not automatically produce better answers. It increases memory use and may reduce speed.

The maximum advertised by a model describes a supported capability, not necessarily the best setting for every PC. For a first test:

  • use the default value;
  • avoid pasting very long documents;
  • monitor RAM consumption;
  • increase context only for a real need;
  • start a fresh conversation when old information is no longer useful.

On a 16 GB PC, an 8B model may work well with a moderate context and become unstable with a much larger one. The model file remains the same, but its KV cache grows with the tokens processed.

A practical 16 GB test plan

This sequence works well for an ordinary business laptop with 16 GB of RAM and integrated graphics:

  1. Restart the PC to create a predictable baseline.
  2. Close games, video editors, and unnecessary browser tabs.
  3. Open Task Manager and record existing memory use.
  4. Install Ollama from the official page.
  5. Choose a quantized 3B model.
  6. Ask three short questions.
  7. Repeat one question with a 7B or 8B model.
  8. Compare speed, quality, and memory consumption.
  9. Keep only the model that offers the best balance for your needs.

This comparison is more useful than immediately loading the largest available model. A smaller model may respond faster, while a larger one may follow complex instructions better. The right choice depends on the task.

Common problems and fixes

“Ollama is not recognized as a command”

  • Close and reopen the terminal.
  • Confirm that installation completed.
  • Restart the computer.
  • Run the official installer again if necessary.

The download does not finish

  • Check the internet connection.
  • Confirm that sufficient storage is available.
  • Try again later if the service is temporarily unavailable.
  • Do not shut down the PC during the download.

The model closes or reports an out-of-memory error

  • Select a smaller or more heavily quantized variant.
  • Reduce the context window.
  • Close the browser and other demanding applications.
  • Restart the runtime.
  • Check available memory, not only installed memory.

Responses are too slow

  • Try a model with fewer parameters.
  • Check GPU support and update its drivers.
  • Use dual-channel RAM where the hardware permits it.
  • Avoid an unnecessarily long context.
  • Remember that more RAM improves capacity, not automatically tokens per second.

The GPU appears idle

  • Verify that the runtime supports the GPU model and manufacturer.
  • Install the latest appropriate driver from the manufacturer.
  • Inspect different GPU engines in Task Manager.
  • Check whether the model fits in VRAM.
  • Accept that some systems will run mainly on the CPU.

The laptop becomes hot or loses battery quickly

Local inference can keep the CPU, GPU, and memory under sustained load. Connect the charger for longer tests, keep air vents clear, avoid using the laptop on fabric, and choose a smaller model for prolonged use. Stop the workload if temperatures or system behaviour become abnormal.

Privacy: local does not automatically mean isolated

A downloaded model can process prompts without sending them to an external provider, but the complete configuration still matters. Before using confidential documents:

  • confirm that the selected model is local rather than a cloud option;
  • check whether the interface has web search or telemetry enabled;
  • inspect extensions and external integrations;
  • do not expose a local server to the internet without proper authentication;
  • keep Windows, the runtime, and drivers updated;
  • read the tool's licence and privacy policy.

localhost normally refers to the same computer, but network configuration can change the service's reach. Developers who make a local API available across a network must secure the port and understand origin, firewall, and authentication settings.

Alternative 1: llama.cpp

llama.cpp suits users who want direct control over GGUF files, context settings, GPU layers, and runtime parameters. Its official documentation includes installation routes for Windows, including winget where available:

winget install llama.cpp

The project includes command-line tools and a local server. A generic Windows command is:

llama-server.exe -m path\model.gguf -c 2048

This route is flexible, but the user must obtain the correct GGUF file and understand more execution options. It is a logical next step after learning the basics; compiling source code is not required for every installation, although acceleration support varies by package and hardware.

Alternative 2: Microsoft Foundry Local

Foundry Local is part of Microsoft's tooling for running models on-device and integrating them into applications. It is particularly relevant to developers using a CLI, SDK, local API, or Windows application project.

Check the current Microsoft documentation for supported Windows versions and hardware before installation. The CLI installation command is:

winget install Microsoft.FoundryLocal

After reopening the terminal, verify it with:

foundry --version

Foundry Local is not mandatory for everyone. Ollama is more direct for a reader who simply wants a first local conversation; Microsoft's ecosystem may be more relevant for Windows application development.

Compare the three routes

Method Best for Main advantage What to watch
Ollama Beginners and quick integrations Simple installation and model management Choose a genuinely local model of the right size
llama.cpp Technical users Detailed control over GGUF, context, and acceleration More settings and greater risk of misconfiguration
Foundry Local Windows development Integration with Microsoft tools and applications Version, GPU, and SDK requirements

There is no universally best tool. Ollama lowers the initial complexity, llama.cpp offers control, and Foundry Local brings local inference closer to Windows application development.

Final checklist

Conclusion

Running an LLM on Windows 11 is now approachable: install a runtime, select a compatible model, and start a session. The most important decision happens before the first command—choosing a model that respects the limits of the machine's memory and hardware.

For most users with 16 GB of RAM, a quantized 3B–8B model is a sensible start. A 32 GB system offers more freedom with medium models, while 64 GB or more opens the door to larger workloads. Context length, quantization, and background applications still influence every result.

An NPU is not essential. It may accelerate compatible workloads and improve efficiency, but CPU and GPU execution remain valid. The practical goal is to find the right balance among quality, speed, memory, and privacy—not simply to select the largest parameter count.

After completing this guide, a useful next step is to compare the same model on CPU and GPU, measure tokens per second, and observe how different quantizations affect speed and output quality. Start small, test gradually, and understand the performance of your current computer before buying new hardware.

NTS View

Local AI is turning the personal computer into an inference platform rather than merely a terminal for remote services. That shift gives users more autonomy, but it also transfers decisions once made by cloud providers: which model to use, how much memory to allocate, what quantization is acceptable, and which external connections should be permitted.

That is precisely where Practical Guides have value. It is not enough to describe a PC as “AI-ready.” Readers need to see what it can run, how performance can be measured, and where the real limits are.

NTS Verification

This article separates official instructions from editorial recommendations. Commands, interfaces, and requirements can change, so they should be checked again against primary documentation immediately before publication.

Primary documentation supports the following points:

  • Ollama provides an official Windows installer and documentation for local model use.
  • llama.cpp supports GGUF model execution and includes command-line and local-server tools.
  • Microsoft documents Foundry Local for on-device model execution and Windows application integration.
  • GPU and NPU compatibility depends on the hardware, driver, model, runtime, and execution provider.

Primary sources for publication

  • Ollama Docs — Windows, Quickstart, FAQ, and hardware support
  • ggml-org/llama.cpp — official installation documentation and server README
  • Microsoft Learn — Get started with Foundry Local
  • Microsoft Learn — What is Windows ML?