Understand the whichllm data pipeline and caching
mainThe tool follows a specific data pipeline:
- Model fetching: Pulls text-generation and GGUF-filtered models from HuggingFace. Vision models are included when using
--profile visionorany. - Benchmark sources: Merges live data (LiveBench, Artificial Analysis, Aider) with frozen tiers (Open LLM Leaderboard v2, Chatbot Arena ELO).
- Benchmark evidence: Uses five resolution levels:
direct(exact match),variant(suffix-stripped),base_model,line_interp(size-aware interpolation), andself_reported(heavily discounted).
Cache Locations:
- Default:
~/.cache/whichllm/ - If
$XDG_CACHE_HOMEis set to an absolute path:$XDG_CACHE_HOME/whichllm/
Cache TTL:
models.json: 6 hoursbenchmark.json: 24 hours