🤖 AI Hot

Whichllm Picks the Best Local LLM for Your Hardware

A
Alex Chen

Most people pick a local LLM by googling “best local LLM 2026” and downloading whatever Reddit says. whichllm replaces that with a five-second terminal command that checks your actual hardware and ranks models by real benchmark scores. Not vibes, not VRAM size alone, and definitely not Hacker News comment threads.

I’ve been running local models since the llama.cpp days when getting 2 tokens per second was considered usable. The tooling has improved dramatically. whichllm is the first one I’d actually point a non-tinkerer toward.

It’s a Python package (pip install whichllm or brew install whichllm). You run whichllm in a terminal and it auto-detects your GPU, CPU, and RAM, then queries HuggingFace for available models, cross-references them against merged benchmark scores from LiveBench, Artificial Analysis, Aider, and Chatbot Arena, filters to what fits, and prints a ranked list. That’s it. No configuration file. No model browser. No “pick your quantization level” wizard.

Here’s what it looks like on an RTX 4090:

$ whichllm --gpu "RTX 4090"

#1  Qwen/Qwen3.6-27B     27.8B  Q5_K_M   score 92.8    27 t/s
#2  Qwen/Qwen3-32B       32.0B  Q4_K_M   score 83.0    31 t/s
#3  Qwen/Qwen3-30B-A3B   30.0B  Q5_K_M   score 82.7   102 t/s

The 32B model technically fits your card. whichllm ranks the 27B above it anyway because it scores higher on real benchmarks and is a newer generation. A naive “what fits?” tool would hand you the bigger model and call it a day. That 9.8-point gap is the entire value proposition in one example.

What makes this different from every other “which model” tool

The local LLM ecosystem has a persistent problem: people conflate model size with model quality. Bigger isn’t always better. A 27B Qwen 3.6 will smoke a 70B Llama 2 on most benchmarks. But unless you track model releases and benchmark updates, you’d never know that.

whichllm’s ranking system addresses four specific failure modes that plague other recommendation tools:

Size-as-proxy ranking. Most tools (and most Reddit comments) recommend “the biggest model that fits.” whichllm uses merged benchmark scores from multiple evaluation sources, weighted by recency and confidence. A 2024 model can’t outrank a current-generation one on an outdated score. The benchmark snapshot date is printed under every ranking.

Stale leaderboard scores. whichllm tracks when each benchmark was run per model and demotes scores along a model’s lineage. If model X hasn’t been re-benchmarked since its release in 2024, its score gets discounted relative to a 2026 model with fresh evaluations. The README explicitly calls this out: “a stale recommendation is self-evident instead of silently trusted.”

Fabricated uploader claims. Every score is tagged as direct, variant, base, interpolated, or self-reported. Self-reported scores from model uploaders get heavily discounted. Cross-family score inheritance, where a small fork claims its much larger base model’s scores, is rejected outright. This alone would eliminate about 30% of the inflated claims on the HuggingFace leaderboard.

Architecture-naive VRAM estimates. Most VRAM calculators use parameters * bytes_per_param and call it done. whichllm models GQA KV cache overhead, per-quantization efficiency curves, activation memory, backend overhead (llama.cpp vs vLLM vs MLX), MoE active-vs-total parameter splits, and unified-memory vs discrete-PCIe partial-offload behavior. On Apple Silicon, it knows you have more usable memory because the GPU can access system RAM directly. On a discrete NVIDIA card, it accounts for the PCIe bandwidth bottleneck when offloading layers.

The engineering here is careful in a way that tooling in this space usually isn’t. Someone thought about what actually produces the right recommendation instead of what produces the most impressive-looking feature list.

The workflow is genuinely fast

You can run it without installing anything:

uvx whichllm@latest

Auto-detects hardware, queries HuggingFace, prints rankings. Under 10 seconds on my machine. If you use it regularly, install it:

pip install whichllm
# or
brew install andyyyy64/whichllm/whichllm

Then whichllm is just a command. No Docker container. No model weights to pre-download. No YAML config.

Other useful modes:

# Simulate a GPU before you buy it
whichllm --gpu "RTX 5090"

# Compare upgrade candidates side by side
whichllm upgrade "RTX 4090" "RTX 5090" "H100"

# Reverse lookup: what GPU do I need for this model?
whichllm plan "llama 3 70b"

# One-command chat with auto-selected best model
whichllm run "qwen 2.5 1.5b gguf"

# Print copy-paste Python snippet
whichllm snippet "qwen 7b"

# JSON output for scripts
whichllm --top 1 --json

The run command is especially useful. It auto-picks the best GGUF variant for the model name you give it, creates an isolated environment via uv, installs dependencies, downloads the model, and starts an interactive chat. No manual GGUF hunting on HuggingFace, no figuring out which quantization file to download among the 30 variants.

The snippet command prints a ready-to-run Python script using llama-cpp-python with the correct repo_id, filename, and n_gpu_layers already filled in. Copy, paste, run. It works for GGUF, AWQ, GPTQ, and FP16/BF16 models.

Current top picks (snapshot: June 2026)

These track live HuggingFace data, so your results will differ. This is a point-in-time snapshot to give you a sense of the output quality:

HardwareVRAMTop pickQuantScoreSpeed
RTX 509032 GBQwen3.6-27BQ6_K94.7~40 t/s
RTX 4090 / 309024 GBQwen3.6-27BQ5_K_M92.8~27 t/s
RTX 40608 GBQwen3-14BQ3_K_M71.0~22 t/s
Apple M3 Max36 GBQwen3.6-27BQ5_K_M89.4~9 t/s
CPU only—gpt-oss-20b (MoE)Q4_K_M45.2~6 t/s

Apple Silicon gets the same model as the RTX 4090 at about a third of the speed, which tracks with the memory bandwidth difference. The M3 Max has ~400 GB/s bandwidth versus the 4090’s ~1 TB/s. The recommendation is honest about what you’re giving up.

CPU-only users get a MoE model because sparse activation means more effective parameters per byte of RAM bandwidth. Smart detail.

How it compares to the alternatives

There are about six major ways to run local LLMs right now. Each has a different philosophy about how much the user should have to configure.

ToolApproachAuto hardware detectionBenchmark-based rankingInstall complexity
whichllmCLI recommender + runnerYesYes (merged multi-source)pip install
OllamaModel manager + serverNone (manual)Nocurl | sh
LM StudioGUI model browserPartial (shows VRAM)No (download count only)Download .dmg/.exe
llama.cppInference engineNone (manual flags)NoBuild from source
vLLMProduction serverNone (YAML config)Nopip install + config
GPT4AllDesktop chat appPartial (GPU toggle)NoDownload installer

Ollama is the most popular option. It’s dead simple: ollama run llama3 downloads and runs the model. The problem is that there’s no guidance on which model to pick. ollama list shows what’s available. ollama pull gets whatever you ask for. But there’s no benchmark integration, no hardware-aware recommendation, no way to know if there’s a better model you’re missing. Ollama is great at running models. It’s bad at helping you choose them.

LM Studio has a nice GUI with a model browser that shows download counts and file sizes. You can see which models are popular and which quantization levels fit your VRAM. But popularity isn’t quality, and the browser doesn’t integrate benchmark scores. You’re still guessing whether the 8B model with 50K downloads is actually better than the 7B model with 10K downloads.

llama.cpp is the engine underneath most of these tools. You can do anything with it if you know the right flags. But you have to know the right flags. -ngl 99, -c 4096, -t 8, --mlock, pick the right GGUF file from a list of 30. It’s not a recommendation tool. It’s an inference engine.

whichllm doesn’t replace any of these. It sits upstream. You figure out what to run with whichllm, then run it with whatever tool you prefer. Or use whichllm run as a one-stop shop if you just want to try a model quickly.

The biggest gap in the existing ecosystem is exactly what whichllm fills: evidence-based model selection. Every other tool either expects you to already know what you want, or gives you a popularity-based list that hasn’t been filtered for quality. whichllm is the only one that says “here’s what actually performs best on your specific hardware, and here’s the evidence.”

Who should use whichllm

Developers setting up local AI for the first time who don’t want to spend two hours reading Reddit threads and HuggingFace model cards. You get a ranked recommendation in under 10 seconds.

People buying hardware specifically for local LLM inference. whichllm --gpu "RTX 5090" versus whichllm --gpu "RTX 4090" gives you a concrete performance delta before you spend money. The whichllm upgrade command compares multiple GPUs side by side.

Tinkerers who stay current. Since whichllm pulls live data from HuggingFace, running it periodically surfaces new models and updated benchmarks without manually tracking releases.

Anyone building tools that need to recommend models. whichllm --json outputs structured data you can pipe into scripts, CI pipelines, or model selection UIs.

Who should NOT use whichllm

People who already have a model they’re happy with. If you’re running Llama 3.3 70B and it does everything you need, whichllm won’t tell you anything you don’t already know. It’s a discovery and selection tool, not a runtime optimizer.

Production serving at scale. whichllm is for local inference on consumer hardware. If you’re serving thousands of requests per second on an H100 cluster, you need vLLM or TensorRT-LLM with a proper serving architecture. whichllm’s VRAM model and speed estimates aren’t designed for that scale.

People who want a GUI. whichllm is a terminal tool. If you want a graphical model browser with one-click downloads and a chat interface, LM Studio or GPT4All is a better fit. Use whichllm to figure out which model to download, then download it in your GUI of choice.

Beginners who want zero friction above all else. Ollama’s curl | sh && ollama run llama3 is still the fastest path from zero to chatting with a model. whichllm adds one extra step, the recommendation, which is valuable if you care about picking the right model but overhead if you just want to see what a local LLM feels like.

Limitations and caveats

The benchmark rankings are only as good as the benchmarks themselves. LiveBench and Chatbot Arena are solid, but they measure specific capabilities (reasoning, coding, instruction following). A model that scores high on these may still be bad at creative writing, roleplay, or domain-specific tasks. The task profile filtering (--task coding, --task vision) helps narrow things down but isn’t a substitute for testing a model on your actual use case.

VRAM estimates are architecture-aware but not perfect. Real-world VRAM usage depends on context length, batch size, and backend implementation details that can change between versions. The estimates are directionally correct (within 5-10%) but not exact to the megabyte.

The live HuggingFace data dependency means recommendations can change without warning. A model that’s #1 today might be #3 tomorrow if a new release drops. This is a feature if you want current recommendations, a bug if you want stability.

Hardware auto-detection on Linux requires the NVIDIA driver or ROCm to be installed. On headless servers without GPU drivers loaded, you’ll need to use --gpu to specify your hardware manually.

The tool is new (May 2026). The benchmark merging methodology, confidence scoring, and VRAM estimation models will evolve as the authors get more real-world feedback. Treat the scores as well-informed estimates, not precision instruments.

A practical example: planning a GPU upgrade

Here’s how I used whichllm to decide between keeping my RTX 3090 and upgrading to a 5090:

$ whichllm upgrade "RTX 3090" "RTX 5090"

RTX 3090 (24 GB):
  #1  Qwen3.6-27B  Q5_K_M  score 91.4   22 t/s

RTX 5090 (32 GB):
  #1  Qwen3.6-27B  Q6_K    score 94.7   40 t/s

The score difference is 3.3 points and the speed nearly doubles. Is that worth $2,000? Not for me, given my use case is mostly code completion and summarization where 22 t/s is already faster than I can read. But if I were doing long-context reasoning tasks where latency matters, or wanted to run a 32B at Q8 instead of Q5, the 5090 would meaningfully change my workflow.

This kind of concrete, quantified comparison didn’t exist before whichllm. You’d either guess based on spec sheets and Reddit anecdotes, or buy the hardware and benchmark it yourself. Now it’s a five-second command.

The bottom line

whichllm solves the “which model do I run?” problem that every other local LLM tool punts to the user. It’s fast, evidence-based, hardware-aware, and scriptable. If you run local models and you’re not sure you’re running the best one for your hardware, install it. If you’re buying hardware for local inference, run it before you spend money.

The fact that a tool this useful ships as a single pip install with no configuration says something about where local AI tooling is headed. We’re past the “congratulations, you compiled llama.cpp” phase. The tools are catching up to the models.

Disclosure: CarCare Guide is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.
A
Alex Chen