You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Live benchmark fetching (hannah/catalog/benchmarks.py): new module fetches real benchmark scores from verified public sources using pure stdlib (urllib.request). Sources: HuggingFace Dataset Leaderboard API for MMLU-Pro (TIGER-Lab/MMLU-Pro) and HLE (cais/hle); HuggingFace Model API card eval_results for HumanEval and MBPP; BFCL (gorilla.cs.berkeley.edu) best-effort. All sources fail silently — partial or empty results are normal on first run.
7-day local cache: scores are written to ~/.cache/hannah/benchmarks.json and reused for 7 days. Zero network calls on a warm cache; stale entries are merged with fresh results on refresh.
Expanded ModelCandidate fields: hf_model_id (HuggingFace repo slug for leaderboard lookup), mmlu_pro, hle, bfcl added alongside the existing humaneval/mbpp. All 9 catalog entries now carry an hf_model_id; MLX variants share their base model's slug. Benchmark score fields remain None in the catalog — populated at runtime from the fetch.
Per-eval per-track scoring weights (_BENCH_WEIGHTS): development track leans on humaneval (×1.5) and bfcl (×0.8); general track leans on mmlu_pro (×1.0) and hle (×0.8); inference track leans on mmlu_pro (×0.8) and hle (×0.6). Replaces the single best_bench scalar from v0.7.0.
Benchmark labels in why string: when scores are available, the recommendation summary appends up to 3 benchmark labels (e.g. humaneval=88%, bfcl=72%).
_enrich_with_benchmarks() method: uses dataclasses.replace() to inject fetched scores into frozen ModelCandidate objects before scoring (same pattern as pull-status enrichment).
recommend(benchmark_scores=) parameter: caller passes the scores dict; registry stays testable with injected fixtures.
15 new tests (44 total): BenchmarkCacheTests (8 tests: cache TTL, normalization, leaderboard ID matching, graceful network failure) + 7 extended BenchmarkScoringTests (weight inspection, field enrichment, end-to-end inject).
Fixed
datetime.utcnow() deprecation: replaced with datetime.now(datetime.UTC) throughout benchmarks.py and tests.