Find the optimal LLM for your hardware.

Trending Society Staff··3 min read·2 sources·GitHub
Find the optimal LLM for your hardware.

Key Takeaways

  1. 1The `whichllm` command-line tool revolutionizes local LLM selection, prioritizing actual performance over mere parameter count or VRAM fit.
  2. 2It employs a sophisticated ranking system, aggregating live benchmarks from sources like LiveBench and Open LLM Leaderboard, while factoring in model recency and architectural efficiency.
  3. 3For instance, `whichllm` recommends Qwen3.6-27B on an RTX 4090, outperforming larger 32B models due to superior benchmarks and newer architecture.
  4. 4Beyond ranking, the tool streamlines the entire LLM workflow, offering commands to simulate hardware, plan purchases, run models instantly, and generate Python snippets for chosen LLMs.

The `whichllm` command-line tool finds the best-performing local large language model (LLM) that will run on your specific hardware. Instead of just finding the largest model that fits your VRAM, it uses live benchmark data, recency, and architecture awareness to rank models by actual quality and speed.

Choosing a local LLM often feels like a guessing game based on VRAM capacity and parameter counts. This leads developers to run larger, older, or less efficient models simply because they "fit." The `whichllm` tool, available on GitHub, solves this by providing evidence-based recommendations tailored to your machine. According to the project's documentation, it can show that a newer 27-billion-parameter model outperforms an older 32-billion-parameter one on the same hardware, a distinction most tools would miss.

How Does It Rank Models?

The core of `whichllm` is its sophisticated, multi-factor scoring system that goes far beyond model size. It treats finding an LLM like a research project, not a storage calculation.

The tool automatically detects your hardware—NVIDIA, AMD, Apple Silicon, or CPU-only—and estimates VRAM needs by considering weights, KV cache, and framework overhead. It then ranks compatible models from Hugging Face based on a merged score from multiple sources.

Key ranking factors include:

    • Benchmark Quality: Scores are aggregated from trusted sources like LiveBench, Artificial Analysis, Chatbot Arena ELO, and the Open LLM Leaderboard.
    • Recency-Awareness: The system automatically demotes scores from stale leaderboards, preventing an outdated 2024 model from outranking a superior 2026-generation model.
    • Evidence Grading: Every benchmark score is graded by its source. A direct match gets full confidence, while scores inherited from a base model or self-reported by an uploader are heavily discounted.
    • Speed & Architecture: It models tokens-per-second (t/s) based on memory bandwidth and quantization, ensuring the top pick is not just powerful but usable.

For example, on an RTX 4090 with 24 GB of VRAM, `whichllm` recommends Qwen3.6-27B with a score of 92.8, even though a larger 32B model also fits. The smaller model is ranked higher because of its superior benchmark performance and newer architecture.

What Can You Do with It?

Beyond just providing a ranked list, `whichllm` includes several commands to streamline the entire local LLM workflow from planning to execution.

You can simulate hardware you don't own to plan a purchase with `whichllm --gpu "RTX 5090"`. The `plan` command works in reverse, telling you what hardware you'd need for a specific model like "llama 3 70b". Once you've chosen a model, you can immediately start a conversation using `whichllm run` or get a ready-to-use Python script with `whichllm snippet`. These commands handle the creation of an isolated environment, dependency installation, and model downloading.

This focus on actionable output helps combat the growing problem of "AI slop," where low-quality or hallucinated AI-generated content pollutes datasets and research. By prioritizing verified, benchmarked models, developers can make more informed choices. The issue has become serious enough that platforms like ArXiv are now banning researchers who submit papers with unchecked, LLM-generated content, according to The Verge.

The Trending Society Take

Tools like `whichllm` represent a critical shift in the AI ecosystem from "bigger is better" to "smarter is better." For too long, parameter count has been a vanity metric. This tool gives individual builders and small teams the power to make evidence-based decisions that were previously only possible for large, well-resourced labs with dedicated evaluation teams. It's a move toward democratizing not just access to models, but access to quality.

FAQ

The `whichllm` tool is a command-line utility designed to identify the optimal local large language model (LLM) for your specific hardware. It ranks models based on live benchmark data, recency, and architectural awareness, rather than just VRAM capacity or parameter counts. This tool is available on GitHub.

`whichllm` employs a sophisticated multi-factor scoring system that automatically detects your hardware and estimates VRAM needs. It aggregates benchmark scores from trusted sources like LiveBench and Chatbot Arena ELO, while also considering model recency, grading evidence quality, and modeling tokens-per-second for speed.

Relying solely on VRAM or parameter count often leads to selecting larger, older, or less efficient models that merely 'fit' your hardware. `whichllm` provides evidence-based recommendations, demonstrating that a newer, smaller model can outperform an older, larger one due to superior benchmark performance and architecture, such as recommending a 27-billion-parameter model over a 32-billion-parameter one.

Beyond ranking models, `whichllm` allows users to simulate hardware for planning purchases, determine hardware requirements for specific models, and instantly start conversations with chosen models using `whichllm run`. It can also generate ready-to-use Python scripts, streamlining the entire local LLM workflow from planning to execution.

`whichllm` combats 'AI slop' by prioritizing verified, benchmarked models, enabling developers to make informed choices based on actual performance rather than vanity metrics. This approach helps ensure that the LLMs used produce higher quality, more reliable AI-generated content, shifting the focus from 'bigger is better' to 'smarter is better' in the AI ecosystem.

Related Articles

More insights on trending topics and technology

Newsletter

We read 100+ sources so you don't have to.

One email. Delivered weekly. The AI and tech stories actually worth your time.