Find the best local LLM that runs on your hardware by ranking HuggingFace models based on benchmarks and system specs.
whichllm is an open-source command-line tool created by Andyyyy64. It solves the problem of selecting an optimal large language model (LLM) for local use by automatically detecting a user's hardware (GPU, CPU, RAM). The tool then queries HuggingFace and ranks models based on a combination of performance benchmarks, VRAM fit, and recency, ensuring users get evidence-based recommendations instead of just the largest model that fits their machine.
whichllm is a Python CLI tool installed via pip, brew, or uv. A user runs commands like whichllm or whichllm --gpu "RTX 4090" in their terminal. The tool fetches live model data from the HuggingFace API, analyzes it against the user's hardware profile, and outputs a ranked list of models in a terminal table or as JSON. It considers VRAM, speed, and benchmark scores to make its recommendation. The project is free and open-source.
This tool is ideal for developers and AI researchers who want to run LLMs locally and need to identify the highest-performing model that will run efficiently on their specific hardware configuration.
The reported speed (tokens/second) is an estimation for planning purposes and not a live benchmark of your actual hardware performance.