用一行命令检测你的硬件适合跑哪个本地大模型。One command to find out which local LLM fits your hardware.
curl -sL https://whichllm.net/detect.py | python3
Windows(PowerShell,无需安装)Windows (PowerShell, no install required)
irm https://whichllm.net/detect.ps1 | iex
If Python is available: curl.exe -sL .../detect.py | python
detect.py 只需要 Python 3.7+(含 3.8~3.13),使用标准库,无需安装任何第三方包。detect.py only needs Python 3.7+ (including 3.8~3.13), uses only the standard library — no third-party packages required.
python --version,看到版本号即成功。Verify: reopen terminal, run python --version.python3 --version 检查是否已安装。Check if installed: python3 --versionbrew install python(需 Homebrew),或访问 python.org/downloads 下载。If not installed: brew install python (requires Homebrew) or download from python.org.python3 --versionVerify: python3 --versionpython3 --version 检查是否已安装(Ubuntu/Debian/Fedora 大多预装)。Check if installed (most distros come with Python 3 pre-installed).sudo apt install python3sudo dnf install python3sudo pacman -S pythonpython3 --versionVerify: python3 --version如果一键脚本检测结果不准(例如 GPU 型号显示不完整),可以用原版 Python CLI:If the one-click script gives inaccurate results (e.g., incomplete GPU name), try the original Python CLI:
# 方式一:pip 安装 / Option 1: pip install
pip install whichllm
whichllm
# 方式二:uvx 零安装运行(更快)/ Option 2: uvx (faster, no install)
uvx whichllm@latest
原版 whichllm 会调用 NVIDIA Management Library (NVML) 或 AMD ROCm / Apple Metal API 做精确硬件检测,结果更准确。The original whichllm uses NVIDIA Management Library (NVML), AMD ROCm, or Apple Metal API for precise hardware detection.
✅ 匹配到: NVIDIA GeForce RTX 4090 (24 GB · nvidia)
📐 通用对话 推荐 Top-3:
1. Qwen3-235B-A22B — 得分: 92.1
2. Llama-4-Maverick — 得分: 89.8
3. Mistral-Small — 得分: 87.3
列表中每个推荐包含模型名和综合得分(0-100 分)。得分越高,在该硬件上的推理效果越好。Each recommendation includes the model name and a composite score (0–100). Higher scores mean better inference performance on your hardware.
whichllm 提供 REST API,可直接用于程序化查询。所有端点返回 JSON。whichllm provides a REST API for programmatic queries. All endpoints return JSON.
https://whichllm.net
分页获取排行榜数据,支持多种筛选和排序。Paginated rankings with filtering and sorting.
# Top-10 通用对话排行榜 / Top-10 general conversation rankings
curl 'https://whichllm.net/api/rankings?page=1&limit=10&profile=general&sort=s&dir=desc'
# 搜索特定 GPU / Search specific GPU
curl 'https://whichllm.net/api/rankings?search=RTX+5090&profile=general'
# 筛选显存范围 / Filter by VRAM range (24-48 GB)
curl 'https://whichllm.net/api/rankings?vram_min=24&vram_max=48&sort=v&dir=desc'
# 每个 GPU 排名第一的模型 / Top-ranked model per GPU
curl 'https://whichllm.net/api/hot'
# 关键指标总览 / Key metrics overview
curl 'https://whichllm.net/api/kpi'
提交硬件信息获取匹配结果和推荐模型。Submit hardware info to get matched results and model recommendations.
curl -X POST 'https://whichllm.net/api/detect' -H 'Content-Type: application/json' -d '{"gpu_name":"RTX 4090","vram_gb":24,"os":"Windows"}'
# 对比两张显卡 / Compare two GPUs
curl 'https://whichllm.net/api/compare?gpu1=RTX+5090&gpu2=RTX+4090&profile=general'
# 查找 VRAM 相近的 GPU / Find similar VRAM GPUs
curl 'https://whichllm.net/api/similar?gpu=rtx-4090&margin=8'
# 指定 GPU 能跑的模型 / Models a specific GPU can run
curl 'https://whichllm.net/api/models?gpu=RTX+4090&limit=5'
# 指定模型的详细信息 / Model details
curl 'https://whichllm.net/api/models/Llama-3-70B'
# 反向查询:指定模型哪些 GPU 能跑 / Reverse lookup: which GPUs can run a model
curl 'https://whichllm.net/api/reverse?model=Qwen&limit=5'
curl -X POST 'https://whichllm.net/api/batch' -H 'Content-Type: application/json' -d '{"gpus":["RTX 5090","RTX 4090","M4 Max"],"profile":"general","limit":3}'
# CSV 格式导出 / Export as CSV
curl 'https://whichllm.net/api/export?format=csv&limit=100'
# 仅导出特定字段 / Export specific fields
curl 'https://whichllm.net/api/export?format=json&fields=gpu,model_id,score&limit=10'
访问 /api/docs 获取全部 39 个端点的结构化文档(JSON 格式,AI 可直接解析)。Visit /api/docs for full 39-endpoint structured documentation (JSON, AI-parsable).
也支持 OpenAPI 3.0 标准格式:/api/openapi.jsonOpenAPI 3.0 standard format also available: /api/openapi.json
你可以让 AI 助手直接调用 whichllm API 来获取实时数据。例如:AI assistants can call whichllm APIs directly for real-time data. For example:
curl https://whichllm.net/api/models?gpu=RTX+5090&profile=general"
AI 助手会自动调用 API 并解读结果。也可使用 /llms.txt(AI 发现标准文件)让 AI 自动发现所有 API 端点。The AI assistant will call the API and interpret results automatically. Use /llms.txt (AI discovery standard) for automatic endpoint discovery.
pip install whichllm && whichllm 做精确检测。Your GPU model may not be in the database, or the name is incomplete. Try searching on the web or run pip install whichllm && whichllm for precise detection.irm https://whichllm.net/detect.ps1 | iex