Skip to main content
Local Inference & ServingLightweight

llamafile

Mozilla-Ocho / llamafile

Package llama.cpp and model weights into a single executable that runs on macOS, Windows, Linux and BSD without Python.

26.7k stars 1685 forks C++ Language NOASSERTION License Last push 2026-11-09

Why choose it

  • One file to distribute; no Python environment.
  • Runs across desktop operating systems.
  • Good for offline demos and air-gapped machines.

Not for

You need multi-user serving or GPU scaling.
Your model is too large for the target machine.

Minimum setup

  1. Download a small llamafile and run it locally.
  2. Open the built-in web UI and send one prompt.
  3. Check memory and startup time on the oldest machine you support.

Dependencies and cost

Check runtime, model weights and external service dependencies in the README.

License and usage boundaries

Code is NOASSERTION; model weights, training data and generated content may have separate terms — check each before commercial use.

Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

Alternatives and neighbors

  • llama.cpp — Local-first,A C/C++ inference engine that runs on CPUs, Apple Silicon and consumer GPUs, with a wide range of quantisation formats.
  • Ollama — Start here,Pull and run local models with one command, with a built-in model library and an OpenAI-compatible API.
  • MLC LLM — Local-first,A TVM-based compiler and deployment engine that compiles LLMs to CUDA, ROCm, Metal, Vulkan and WebGPU backends.

Next steps

  • Open GitHub and read the README, LICENSE, latest release and issues first.
  • Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • Run a small sample first, then decide on production; never start with production data.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.