llmfit answers the first question everyone asks about local AI: which models will actually run on this machine? It is a free, MIT-licensed command-line tool that detects your CPU, RAM and GPU, then ranks hundreds of open models by how well they fit and how fast they should run. It has nearly 38,000 stars on GitHub and has shipped a new release every week or two since August. This guide explains what it does, how it reaches its numbers (read from its source code and documentation), and how far to trust them.
Quick answer
- What it is: a terminal app (with a web dashboard and JSON API) that scores every model in its catalogue for memory fit, estimated speed, quality and context on your hardware.
- Install:
brew install AlexsJones/llmfit/llmfiton macOS or Linux,scoop install llmfiton Windows, oruvx llmfitto run it without installing. - How it estimates speed: memory bandwidth ÷ model size × 0.55, the same family of formula as the tools on this site, which use 0.65.
- How far to trust it: it labels every number as measured or estimated, and lets you replace estimates with real benchmarks. Treat an “estimated” speed as a ballpark and a “measured” one as evidence.
What llmfit does
Run llmfit with no arguments and it opens an interactive terminal view: your detected hardware at the top, every model below, ranked. It detects NVIDIA GPUs through nvidia-smi (adding VRAM across several cards), AMD through rocm-smi, Intel Arc, and Apple Silicon. On a Mac it reads how much unified memory the GPU may actually use from Metal’s recommendedMaxWorkingSetSize, which the source notes reflects the iogpu.wired_limit_mb setting, so raising that limit (which our Mac VRAM Optimizer helps with) shows up in its results.
For each model it tries quantizations from Q8_0 down to Q2_K and picks the best one that fits. It then gives a fit verdict based on how full the memory pool would be, read from the source code:
| Memory used | llmfit verdict |
|---|---|
| 60% or less | Perfect |
| 60–85% | Good |
| 85–98% | Marginal |
| over 98% | Too Tight |
Runs that spill into system RAM or offload Mixture-of-Experts layers are capped at “Good”, because, in the project’s words, Perfect means it “fits with room to spare and runs on the GPU”.
Other commands worth knowing, all from the README:
llmfit recommend --json # top picks as JSON, for scripts
llmfit info "<model>" # one model: the fit analysis and what the estimate assumes
llmfit bench # measure real tokens/sec against your running Ollama, llama.cpp etc.
llmfit doctor # hardware detection report
How it estimates speed
Generating text is limited by memory bandwidth: each new token means reading the model’s weights once. llmfit’s documentation gives its formula as (bandwidth_GB_s / model_size_GB) × efficiency_factor, with a default efficiency of 0.55, looking up the bandwidth of about 80 GPUs. For Mixture-of-Experts models it uses the active parameters rather than the total, with per-architecture corrections; its own documentation notes that its simpler fallback put gpt-oss-120b about 2.6× too low, which is what those corrections exist to fix.
It deliberately does not guess at prompt processing (how fast it reads a long prompt) unless it knows your GPU’s compute throughput. The documentation explains why: prefill is compute-bound, “so memory bandwidth says nothing useful about it.” That is the right call, and the same reason our tokens-per-second guide treats generation and prompt speed separately.
How accurate is that formula?
The tools on this site use the same idea with a factor of 0.65. Both projects cite the same public measurements, llama.cpp discussion #4167, so we can compare them directly. The table uses that discussion’s LLaMA 7B Q4_0 results (a 3.56GiB model) on Apple Silicon. The measured column is llama.cpp’s; the other two are the two formulas applied to the same inputs.
| Chip | Bandwidth | Measured (tok/s) | llmfit formula, 0.55 | This site’s formula, 0.65 |
|---|---|---|---|---|
| M1 | 68 GB/s | 14.2 | 9.8 (-31%) | 11.6 (-19%) |
| M2 Pro | 200 GB/s | 37.9 | 28.8 (-24%) | 34.0 (-10%) |
| M3 Max | 400 GB/s | 66.3 | 57.6 (-13%) | 68.0 (+3%) |
| M4 Max | 546 GB/s | 83.1 | 78.6 (-5%) | 92.8 (+12%) |
| M2 Ultra | 800 GB/s | 94.3 | 115.1 (+22%) | 136.0 (+44%) |
Neither factor is right everywhere. llmfit’s 0.55 is closer on the fastest chips, where real speed falls short of what bandwidth allows; our 0.65 is closer on mid-range machines; both underestimate the base M1. That is the honest limit of any single-number formula, and it is why llmfit’s next feature matters more than its formula.
Measured numbers beat estimates
Every llmfit result carries a confidence label, so a guess never looks like a measurement:
- measured_local: benchmarked by you on this machine with
llmfit bench. - measured_community: benchmarked by others on matching hardware.
- calibrated: the formula, scaled by a factor derived from runs on this hardware.
- estimated: the formula alone.
Running llmfit bench --share submits your results to the project, and merged results ship in the next release for anyone with the same hardware. On popular machines, that turns the formula into evidence over time. Check which label a number carries before you buy hardware on the strength of it.
Privacy and the web dashboard
The README says the program “will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it”, and lists model downloads, runtime queries and the community leaderboard as the features that do go online. llmfit serve starts a web dashboard and API that binds to 127.0.0.1:8787 by default, which keeps it on your machine. The README’s Docker example publishes the port with -p 8787:8787, which exposes it to your network; use -p 127.0.0.1:8787:8787 unless you mean to, for the same reason we give in our Ollama server guide.
llmfit or a browser calculator?
llmfit is the better choice when you already own the machine: it reads your actual hardware and free memory, and can measure real speed. A browser calculator is better for planning a purchase or checking one model in detail. Our VRAM Calculator breaks memory into weights, KV cache and overhead at any context length, and the hardware matrix scores 75 machines you might buy. Both use estimates, labelled as such; llmfit can go further by measuring.
llmfit’s catalogue also lists some very large new models. For two that need more care than a fit score shows, see our guides to Qwen3.8-Flash-Next and GLM-5.3-Flash.
FAQ
Is llmfit free?
Yes. It is open source under the MIT licence.
Does llmfit download or run models?
It can. It works with runtimes such as Ollama, llama.cpp, MLX, Docker Model Runner and LM Studio, and its benchmark command measures speed against a model you are already serving.
Why does llmfit say a model fits when it runs slowly?
Fit and speed are separate scores. A model can fit in memory and still be slow, especially if it spills into system RAM; check the speed estimate and its confidence label, not just the fit verdict.
Sources
- llmfit: GitHub repository (README, licence, releases) and How llmfit works; fit thresholds, efficiency default and Metal handling read from
llmfit-core/src/fit.rsandhardware.rs - Measurements: llama.cpp discussion #4167
Updated 13 October 2026. Repository details (version v1.1.17, 8 October 2026) and source code checked on that date. BFWR has not run llmfit on its own hardware and does not run benchmarks; the comparison table applies both formulas to llama.cpp’s published measurements.
Work out what your hardware can actually run
Free calculators and directories, sized from real model weights — before you download gigabytes or order a card:

