Distribute and run LLMs with a single file
open sourceApache-2.0 AND MITself-hostablefree
llamafile packages an open LLM and its runtime into one executable file that runs locally on Linux, macOS, Windows and the BSDs with no installation. It combines llama.cpp with Cosmopolitan Libc, so the same file works across operating systems and CPU architectures, and it can also run any GGUF model as a separate weights file. In server mode it serves a web chat UI and OpenAI-compatible and Anthropic-compatible APIs, and it includes whisperfile for single-file speech-to-text on whisper.cpp. Started as a Mozilla Builders project, it is now maintained by Mozilla.ai.
Problems it solves
- run an open LLM on my laptop without installing Python, CUDA or anything else
- share a local AI model with someone as a single file they can just run
- one executable that runs the same model on Windows, Mac and Linux
- a local OpenAI-compatible API server for an open model
- run a local LLM on an old Linux machine or a BSD box
- transcribe audio offline with a single downloadable file
- ship an offline AI feature that works on most operating systems
- try a small open model in one command with no setup
Features
- model and runtime in one executable file
- runs on Linux, macOS, Windows, FreeBSD, NetBSD and OpenBSD
- runs external GGUF weights
- web chat UI
- OpenAI-compatible and Anthropic-compatible HTTP APIs
- API key authentication
- GPU support
- whisperfile for speech-to-text and translation
- pre-built llamafiles on Hugging Face
Limitations
- Can't run llamafiles larger than 4 GB on Windows: run the llamafile binary with separate GGUF weights instead1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what llamafile does.
- LocalAI Your own AI, on your own hardware
- Ollama Start building with open models, locally or in the cloud
- LM Studio Experiment with LLMs on your computer: chat interface and programmable API
- llama.cpp LLM inference in C/C++
- KoboldCpp Run GGUF AI models locally with a KoboldAI UI. One file, zero install.
- vLLM A high-throughput and memory-efficient inference and serving engine for LLMs
