# andyyyy64/whichllm

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/andyyyy64-whichllm).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

6,828 stars · 378 forks · Python · MIT

## Links

- GitHub: https://github.com/Andyyyy64/whichllm
- awesome-repositories: https://awesome-repositories.com/repository/andyyyy64-whichllm.md

## Topics

`localllm`

## Description

whichllm is a command-line tool that detects a machine's GPU, memory, and memory bandwidth, then recommends open large language models that will actually run on it. Candidates are ordered by benchmark quality and estimated generation speed rather than parameter count, so the list reflects what the hardware can handle.

Ranking relies on benchmark data merged onto one scale, with older model generations demoted and weaker matches, such as same-family interpolation or uploader claims, discounted. Models that would generate below a minimum speed have their scores scaled down, so a slightly weaker but responsive model can outrank a stronger, sluggish one. Scoring can also be tailored to a task such as coding, math, or vision. Fit is decided by adding model weights, a per-layer cache read from the model configuration, and runtime buffers. Speed is estimated from memory bandwidth, with a confidence flag on each estimate. For large mixture-of-experts models, the tool can keep attention and shared weights on the GPU and place expert layers in system RAM.

Beyond recommending, the tool can download and open a chat with the top-ranked or a named model, using recommended launch flags when a compatible runtime is installed. It detects models already in a local library and opens them instead of downloading again. A hardware simulation mode evaluates which models would run on a chosen GPU or memory setup without owning it, and can also override misdetected hardware limits.

By default it reads a prebuilt, daily-rebuilt, quality-checked index of models, configs, and benchmark scores for a fast start, with an option to fetch live data instead. Rankings are checked with regression tests against frozen model data across many hardware profiles, and speed estimates are compared with published real-world runs.

## Tags

### Artificial Intelligence & ML

- [GPU Engine Recommenders](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-optimization-and-inference/training-algorithms/deep-learning-optimization/hardware-performance-tuning/model-hardware-tuning-recommenders/gpu-engine-recommenders.md) — Detects a machine's GPU, memory, and bandwidth, then ranks open language models that will run on it by benchmark quality and estimated speed. ([source](https://github.com/andyyyy64/whichllm#readme))
- [Generation Speed Estimators](https://awesome-repositories.com/f/artificial-intelligence-ml/generation-speed-estimators.md) — Estimates tokens per second from memory bandwidth by splitting weight reads between GPU memory and system RAM, flagging confidence in each estimate. ([source](https://github.com/andyyyy64/whichllm#readme))
- [Recency-Weighted Benchmark Merging](https://awesome-repositories.com/f/artificial-intelligence-ml/large-language-models/model-benchmarks/automation-capability-benchmarks/recency-weighted-benchmark-merging.md) — Merges benchmark sources onto one scale, demotes older model generations, and discounts weaker matches such as same-family interpolation or uploader claims. ([source](https://github.com/andyyyy64/whichllm#readme))
- [Memory Fit Checks](https://awesome-repositories.com/f/artificial-intelligence-ml/memory-fit-checks.md) — Adds model weights, a per-layer cache read from the model configuration, and runtime buffers to decide whether a model fits in available memory. ([source](https://github.com/andyyyy64/whichllm#readme))
- [LLM Benchmarking](https://awesome-repositories.com/f/artificial-intelligence-ml/large-language-models/llm-benchmarking.md) — Ranks local language models using recency-weighted benchmark data instead of parameter count, with penalties for models too slow to use.
- [Local Model Launchers](https://awesome-repositories.com/f/artificial-intelligence-ml/local-model-launchers.md) — Download the top-ranked or a named model and open a chat, using recommended launch flags when a compatible runtime is installed. ([source](https://github.com/andyyyy64/whichllm#readme))
- [Local LLM Installers](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-deployment-and-serving/local-and-on-device-inference/local-llm-configurations/local-llm-installers.md) — Fetches a top-ranked or chosen open model, reuses installed ones, and opens a chat with recommended runtime flags from the command line.
- [Expert Offloading to System Memory](https://awesome-repositories.com/f/artificial-intelligence-ml/mixture-of-experts-inference-optimizers/sparse-routing-architectures/shared-expert-neurons/expert-offloading-to-system-memory.md) — Keeps attention and shared weights on the GPU and places expert layers in system RAM so large sparse models run on small cards. ([source](https://github.com/andyyyy64/whichllm#readme))
- [Task-Specific Model Ranking](https://awesome-repositories.com/f/artificial-intelligence-ml/recommendation-engines/recommendation-scoring-and-ranking/task-specific-model-ranking.md) — Scores candidate models on benchmarks specific to a chosen task such as coding, math, or vision instead of one general quality score. ([source](https://github.com/andyyyy64/whichllm#readme))

### Development Tools & Productivity

- [Hardware Simulations](https://awesome-repositories.com/f/development-tools-productivity/automated-environment-provisioning/gpu-environment-provisioning/hardware-simulations.md) — Evaluates which models would run on a chosen GPU or memory setup without owning it, and can override misdetected hardware limits. ([source](https://github.com/andyyyy64/whichllm#readme))

### Testing & Quality Assurance

- [Speed-Adjusted Score Penalties](https://awesome-repositories.com/f/testing-quality-assurance/response-quality-scoring/speed-adjusted-score-penalties.md) — Scales down scores for models that would generate below a minimum speed, so a slightly weaker but responsive model can outrank a stronger, sluggish one. ([source](https://github.com/andyyyy64/whichllm#readme))
