Skip to content

How-ToGPU

How to Run a llamafile on Windows 11: Local AI in a Single File

llamafile from Mozilla.ai packs a local AI model and the software to run it into one file, with nothing to install. Following the official docs, we show how to run one on Windows 11, get round the 4GB executable limit with separate GGUF models, use your graphics card and start the built-in server.

By , Systems & Technical Editor

4 min read

How to Run a llamafile on Windows 11: Local AI in a Single File

llamafile is a free, open-source project from Mozilla.ai that packs a local AI language model and the software to run it into one executable file. There is nothing to install: you download the file, rename it and run it. This guide follows the official llamafile README and documentation, checked on 30 November 2026, when the latest release on GitHub was version 0.10.6.

What llamafile is

According to the README, llamafile combines llama.cpp with Cosmopolitan Libc so that a model and its runtime can be "a single-file executable" that runs locally "on most operating systems and CPU architectures, with no installation". The documentation says that, with llamafile, "no data ever leaves your computer". The project is Apache 2.0-licensed, and its changes to llama.cpp and whisper.cpp are MIT-licensed. It also includes whisperfile, a single-file speech-to-text tool built on whisper.cpp.

The 0.10 series uses a new build system that keeps llamafile closer to current llama.cpp, so it supports newer models. The README warns that it may be missing some features from older versions, which are still available from the GitHub releases page.

What your PC needs

The supported systems page lists Windows 10 or later on AMD64 (x86-64) only. On x86 processors, AVX is required, otherwise llamafile prints an error and refuses to run. That covers Intel Core chips from about 2006 onwards and AMD chips from K8 (about 2003) onwards. Newer instructions such as AVX2, AVX-512 and VNNI are switched on automatically if your CPU has them.

Memory matters more than anything else: the model has to fit in your RAM, or in your graphics card's VRAM if you offload it. Our guide to how much RAM you need for local AI explains the basics.

Step 1: Download a llamafile

The quickstart suggests starting with the small Qwen3.5 0.8B example (file name Qwen3.5-0.8B-Q8_0.llamafile, 1.77GB), because it is the smallest model the team has built a llamafile for and the most likely to work straight away. Larger pre-built llamafiles are listed on the documentation's pre-built llamafiles page and on Mozilla.ai's Hugging Face pages.

Step 2: Rename it to .exe

Windows won't run the file as it is. The quickstart says: "If you're on Windows, rename the file by adding ".exe" on the end." So Qwen3.5-0.8B-Q8_0.llamafile becomes Qwen3.5-0.8B-Q8_0.llamafile.exe. If you can't see file extensions, turn on View > Show > File name extensions in File Explorer first.

Step 3: Run it

Open Terminal or PowerShell in the download folder and run:

.\Qwen3.5-0.8B-Q8_0.llamafile.exe

The quickstart says a chat interface opens in the terminal window, where you can start typing straight away. Type /help to see the commands, or /upload followed by a file path to give the model an image. While it runs, you can also chat in your browser at http://localhost:8080/, using llama.cpp's web UI. Press Ctrl+C to shut it down.

If the process is killed immediately, the troubleshooting page says to check whether CrowdStrike security software is installed and ask for llamafile to be allowed.

The 4GB limit on Windows

This is the most common problem. The README warns: "Only executables under 4GB can run on Windows, so any llamafile above 4GB won't work." Most useful models are bigger than that. The fix is to download the plain llamafile program from the GitHub releases page (rename it to .exe too) and point it at a separate GGUF model file:

.\llamafile.exe -m your-model.gguf

The docs say running the program with -m and a GGUF file is equivalent to running a llamafile with the model built in, and that external weights are "particularly useful for Windows users" because of the 4GB limit. You can also point it at GGUF models you have already downloaded with other apps such as LM Studio.

Each release offers several separate files. llamafile is the one to use for chatting; llamafile-thin is the same program without the pre-built GPU libraries, so it is a smaller download but needs its own GPU libraries to use a graphics card.

Using your graphics card

According to the supported systems page, llamafile has GPU acceleration for NVIDIA (CUDA), AMD (HIP/ROCm) and Vulkan on Windows, and runs on the CPU otherwise. There is no Intel oneAPI backend, but Vulkan covers many other GPUs, including Intel. To offload the model to the GPU, add -ngl 999:

.\llamafile.exe -m your-model.gguf -ngl 999

Some caveats from the docs:

  • The bundled NVIDIA library needs a GPU with compute capability 7.5 or newer.

  • The standard llamafile download bundles the CUDA and Vulkan libraries for Windows, so you only need a suitable graphics driver.

  • ROCm support for AMD cards is described as experimental and isn't bundled: AMD users either use Vulkan or download or build the separate ROCm library, and multi-GPU "may be broken" on Radeon.

  • You can pick Vulkan with --gpu vulkan.

  • The 0.10 series "has not been tested on every GPU and platform yet", so the docs say to treat the AMD and Windows paths in particular as best-effort.

To check the model really is on your graphics card, see how to check VRAM usage on Windows. For background on the GPU backends, read our CUDA vs ROCm vs Vulkan for local AI comparison.

Other ways to run it

The documentation describes three modes:

  • --chat for the terminal chat mode, which has commands for managing context, uploading files and saving the conversation.

  • --cli with -p "your prompt" to get a single answer, and --image for multimodal models.

  • --server to run llama.cpp's HTTP server. Add --host to make it reachable from other machines on your network, and --port to change the default port, 8080.

The server offers an endpoint compatible with the OpenAI API and Anthropic's Messages API, so apps built for those APIs can use your local model instead.

The bottom line

llamafile is one of the simplest ways to try a local AI model on a Windows PC: download one file, add .exe to the name and run it. Start with the small Qwen3.5 0.8B example. For bigger models, run the standalone llamafile.exe with a separate GGUF file to get round the 4GB limit on Windows executables, and add -ngl 999 to use your graphics card, bearing in mind that GPU support on Windows is still best-effort in the 0.10 series. If you want a graphical app with model management, compare it with Ollama in our llamafile vs Ollama guide.

Sources

  1. 01llamafile README (Mozilla.ai, GitHub)
  2. 02llamafile Quickstart (Mozilla.ai docs)
  3. 03llamafile Supported Systems (Mozilla.ai docs)
  4. 04Running a llamafile (Mozilla.ai docs)
  5. 05llamafile Troubleshooting (Mozilla.ai docs)
  6. 06llamafile releases (GitHub)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Add an Exclusion to Microsoft Defender in Windows 11 (Safely)

How-To

How to Add an Exclusion to Microsoft Defender in Windows 11 (Safely)

Microsoft Defender keeps flagging a file you trust? Rather than switching protection off, you can exclude a file, folder, file type or process in Windows Security. Following Microsoft's guidance, we show how to add and remove exclusions, use wildcards safely and what exclusions don't cover.

Marcus Thorne4 min

The Best NVIDIA App Features in 2026: What's Worth Using on a GeForce PC

Best Picks

The Best NVIDIA App Features in 2026: What's Worth Using on a GeForce PC

The NVIDIA App does far more than update drivers. Based on NVIDIA's official pages, we pick the features most worth using on a GeForce PC, from DLSS Override and Smooth Motion to Instant Replay, the performance overlay, RTX HDR and one-click GPU tuning, and explain who each suits.

Hannah Vance4 min