llmfit Guide: Which Local LLM Fits Your Hardware?
llmfit answers the question that should come before every local-model download: what will run well on this machine? The free terminal tool detects your RAM, CPU, GPU and VRAM, then ranks hundreds of models by memory fit, estimated speed, quality and usable context. It also selects the highest-quality quantization it expects to fit.
That can save a 20 GB download and a wasted afternoon. It cannot prove that a model is accurate enough, licensed for your product or fast under production load. Use llmfit to make a shortlist, then benchmark the shortlist with your runtime and workload.
Planning a private or self-hosted AI product and need a defensible model, hardware and runtime decision?
Scope an AI Architecture Reviewllmfit in 60 seconds
| Question | Answer | Buyer implication |
|---|---|---|
| What is it? | An interactive TUI and CLI for local-LLM hardware sizing | It narrows model and quantization choices before download. |
| What does it inspect? | Available RAM, CPU cores, GPU, VRAM and acceleration backend | Recommendations are calculated for the detected machine, not a generic memory tier. |
| What does it score? | Fit, estimated speed, quality and context | The largest model is not automatically ranked first. |
| Which systems are supported? | Full Linux and Apple Silicon support, plus Windows and Intel macOS with narrower GPU detection | Check detection with llmfit system before trusting the table. |
| Which runtimes connect? | Ollama, llama.cpp, MLX, Docker Model Runner and LM Studio | You can move from recommendation to download or local runtime without a separate catalog. |
| Does it understand MoE? | Yes, it distinguishes total and active parameters and models expert offloading | Mixtral and DeepSeek-style models are not treated as ordinary dense models. |
| Is it free? | Yes, the llmfit code is published under the MIT license | Individual model licenses still need separate review. |
| Is the score a guarantee? | No, it is a hardware-aware estimate | Benchmark real prompts, context, concurrency and cold starts before production. |
Install and get a recommendation before downloading a model
The lowest-friction macOS or Linux install is Homebrew. Windows users can install through Scoop. If you already use uv, uvx runs llmfit without a persistent install.
# macOS or Linux
brew install llmfit
# Windows
scoop install llmfit
# Run once through uv
uvx llmfitLaunching llmfit opens the interactive terminal interface. For a fast, reproducible buying workflow, the CLI commands are more useful:
# Confirm what llmfit detected
llmfit system
# Return five coding recommendations as JSON
llmfit recommend --json --use-case coding --limit 5
# Inspect assumptions for one candidate
llmfit info "MODEL NAME"
# Estimate hardware for a specific model and 8K context
llmfit plan "MODEL NAME" --context 8192 --jsonThe official CLI and automation reference also exposes hardware overrides, context caps and a local REST API. That makes the tool useful for scripts and node scheduling, not just one-off desktop selection.
How llmfit decides what fits
llmfit first identifies the acceleration backend, such as CUDA, Metal, ROCm, SYCL or CPU. It then evaluates every catalog entry against available memory and a quantization hierarchy from Q8_0 down to Q2_K. The tool tries to keep the highest-quality quantization that fits. If full context does not fit, it can retry with a shorter context.
| Score | What it represents | What it misses |
|---|---|---|
| Quality | Model size, family reputation, quantization penalty and use-case alignment | Your domain accuracy, language, safety and tool-calling tests |
| Speed | Estimated tokens per second from memory bandwidth, model size and run mode | Prompt processing, batching, thermal limits and runtime-specific kernels |
| Fit | How efficiently the model uses available memory, with headroom preferred | Other processes, display memory and production concurrency |
| Context | Advertised context against the target for the selected use case | Quality degradation at long context and the value of your retrieved context |
The combined score changes by use case. Coding can favor a smaller specialist over a larger general model, while reasoning gives quality more weight and chat gives speed more weight. This is more useful than sorting by parameter count, but it is still a heuristic. Your acceptance set remains the final judge.
Why MoE support matters, and what it does not mean
Mixture-of-Experts models publish a large total parameter count but activate only part of the network for each token. A dense-only calculator can therefore produce a misleading compute estimate. llmfit reads MoE metadata, accounts for active parameters and models a path where active experts use VRAM while inactive experts are offloaded.
Do not interpret that as “only active parameters need memory.” The full weight set still has to exist somewhere in the serving path, usually system RAM, storage or both. Expert switching, CPU offload and PCIe traffic also affect speed. llmfit's published scoring documentation is a better starting point than dense parameter arithmetic, but a real runtime benchmark remains mandatory.
Quantization: the best fit is not always the best product
Quantization reduces memory by storing model weights at lower precision. llmfit walks down its supported quality hierarchy until a configuration fits. That is exactly what you want for exploration. For production, add two boundaries:
- Set the real context cap. A model that fits at 4K context may spill into RAM at 32K because the KV cache grows with context and concurrency.
- Set a quality floor. A Q2 model that loads is not automatically good enough for code generation, multilingual support or structured output.
Use llmfit plan with the context you intend to serve. Then compare at least two adjacent quantizations on a frozen evaluation set. If the higher-quality option barely misses the machine, the correct decision may be different hardware or an API, not more compression.
Where hardware detection is strong and where to verify it
| Platform | Detection path | Verification note |
|---|---|---|
| Linux with NVIDIA | nvidia-smi, including multiple GPUs | Verify per-card VRAM and the intended tensor or layer split. |
| Linux with AMD | rocm-smi | VRAM can be unknown on some setups, so use an override if needed. |
| Apple Silicon | system_profiler, unified memory treated as the shared pool | Reserve memory for macOS and other applications. |
| Intel Arc | sysfs for discrete cards, lspci for integrated graphics | Integrated memory is shared, so available RAM matters. |
| Windows | RAM and CPU, plus NVIDIA through nvidia-smi | Run llmfit doctor when GPU details look wrong. |
| Android or Termux | CPU and RAM only in most cases | Mobile GPU autodetection is not currently supported. |
The official platform matrix documents manual --memory, --ram and --cpu-cores overrides. An override changes the recommendation calculation. It does not add runtime support that the operating system or inference engine lacks.
Five checks between a green fit and a production decision
- Confirm the detected machine. Save
llmfit system --jsonwith the decision record. Fix missing or shared-memory values before comparing models. - Filter by the real job. Use coding, reasoning, chat, multimodal or embedding filters. Do not let a general score choose a specialist workload.
- Freeze context and concurrency. Model the input size and simultaneous requests you expect, not a one-user demo.
- Benchmark the actual runtime. Measure tokens per second, time to first token, prompt processing, memory high-water mark and failure behavior. llmfit can benchmark a served model and save local results.
- Review the whole deployment. Check model license, data handling, observability, upgrades, fallback, security and total cost.
A model can fit perfectly and still be the wrong commercial choice. Compare the engineering and idle-capacity cost with API spend using our local models versus APIs break-even framework. If you want a concrete consumer-hardware example, the Colibri GLM 5.2 hardware review shows how model size, memory bandwidth and workload change the answer.
When llmfit is enough, and when you need engineering work
| Decision | Use llmfit for | Add engineering for |
|---|---|---|
| Personal local assistant | Shortlisting a model and quantization | A quick quality and speed test on your documents |
| Buying a workstation | Hardware simulation and upgrade deltas | Measured benchmarks on comparable hardware and total system cost |
| Internal team pilot | Candidate ranking and repeatable JSON output | Access control, data boundaries, evaluation and usage monitoring |
| Customer-facing product | Early capacity assumptions | Load testing, autoscaling, fallback, safety, licensing and on-call ownership |
| GPU cluster scheduling | Node-level fit API and filtering | Topology-aware placement, heterogeneous GPU tests and failure recovery |
The clean commercial path is staged. Use llmfit to eliminate obviously bad candidates. Spend benchmark time only on the top two or three. Move to self-hosting only when measured quality, latency, risk and total cost beat the managed alternative.
Limits you should write into the decision record
- Speed is estimated from memory bandwidth, model size and efficiency factors. Runtime kernels and workload shape can move the result.
- The catalog is embedded in the binary. Upgrade llmfit to receive model database updates.
- Use-case quality relies on curated family benchmarks and fallbacks, not your private evaluation set.
- Aggregated multi-GPU VRAM does not make different cards, interconnects and memory bandwidth identical.
- A model's ability to load says nothing about its license, prompt safety, domain accuracy or operational readiness.
These are not reasons to skip llmfit. They are the boundary that makes the tool useful. It is a fast pre-download filter and planning aid, not a substitute for inference engineering.
Sources and claim boundaries
Installation, commands, supported runtimes, privacy behavior and the MIT license come from the llmfit repository. Hardware detection, quantization, MoE handling, scoring and speed formulas come from the project's how-it-works documentation. Platform limits come from the platform support reference. The workflow for measuring tokens per second and time to first token comes from the benchmarking guide. Facts were checked on 27 July 2026. Wavect did not independently benchmark llmfit's estimates for this article.
Frequently Asked Questions
What is llmfit?
llmfit is a free terminal tool that detects RAM, CPU, GPU and VRAM and ranks hundreds of local LLMs by memory fit, estimated speed, quality and context. It includes an interactive TUI, CLI output, JSON recommendations and a local REST API.
How do I find which LLM can run on my computer?
Install llmfit, run llmfit system to verify hardware detection, then run llmfit recommend --json --use-case coding --limit 5 or replace coding with your use case. Inspect the top candidates with llmfit info before downloading one.
Does llmfit support Apple Silicon and NVIDIA GPUs?
Yes. Apple Silicon uses unified-memory detection through system_profiler and Metal assumptions. NVIDIA GPUs use nvidia-smi, including multi-GPU detection. Linux has the broadest support. Windows GPU detection currently focuses on NVIDIA.
Does llmfit calculate MoE models correctly?
llmfit detects Mixture-of-Experts metadata and distinguishes total from active parameters. It models active experts in VRAM and inactive experts offloaded to RAM. This is more useful than treating MoE as dense, but you should still benchmark memory traffic and runtime speed.
Does a Perfect fit guarantee that the model will be fast?
No. Perfect means the model meets llmfit's recommended GPU-memory target. Speed remains an estimate based on bandwidth and efficiency factors. Context length, batching, offload, kernels and concurrent users can change measured throughput.
Is llmfit free and private?
The llmfit software is free and MIT-licensed. Its documentation says it does not transfer information unless you request a networked feature such as downloads, provider queries or the community leaderboard. Models have their own licenses and data risks.
Should a company use llmfit before buying AI hardware?
Yes, as an early sizing filter. Simulate the proposed RAM, VRAM and CPU, shortlist models, then validate the purchase with measured benchmarks, realistic context and concurrency, model licensing, power, redundancy and operating cost.
Final thoughts
Run llmfit before downloading weights or choosing a GPU. It turns hardware facts into a defensible shortlist and makes quantization, MoE and context constraints visible early.
Then stop treating the score as the decision. Serve the top candidates, run your real evaluation set, measure the complete latency and memory curve, and price the operating model. The winning model is not the largest one that loads. It is the smallest reliable system that meets your product's quality, latency, privacy and cost targets.
Need to turn a local-model shortlist into a production architecture, benchmark plan and build-versus-API decision?
Plan the Local AI Pilot