- load_weights: run the strict missing-parameter check only for unquantized models; vLLM's loader checks quantized ones and knows the params a checkpoint cannot carry (online-FP8 weight_scale). BF16 output unchanged. - tests: variant launcher, greedy and quality comparisons, BetterBench table + ITL 1% low recompute, Discord notify helper. - NOTES: round 2 (eager vs default vs FULL_DECODE_ONLY, default kept) and round 3 (FP8 W8A16: +49% decode, +35% @8, answers unchanged); llama-swap snippet now FP8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
884 B
Python
16 lines
884 B
Python
#!/usr/bin/env python3
|
|
"""Recompute BetterBench's combined 'ITL 1% low' (t/s) for runs where BetterBench dropped it
|
|
because one stream update carried >1 token (it then shows 'update p99' instead). Uses
|
|
BetterBench's own functions (metrics.itl_to_rate_samples + summarize(rate_like=True)) per
|
|
category, weighted with the run's config weights, ignoring only the 'batched' flag.
|
|
.venv-bench/bin/python tests/itl_low.py results.json ...
|
|
"""
|
|
import json, sys
|
|
from betterbench.metrics import itl_to_rate_samples, summarize
|
|
for f in sys.argv[1:]:
|
|
d = json.load(open(f)); w = d["config"]["weights"]
|
|
per = {c: summarize(itl_to_rate_samples([g for r in runs if r["ok"] for g in r["update_gaps_ms"]]),
|
|
rate_like=True).low_1pct for c, runs in d["single_stream"].items()}
|
|
comb = sum(w[c] * per[c] for c in w) / sum(w.values())
|
|
print(f"{comb:.1f}\t{f}")
|