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.