lfm3: online FP8 (W8A16) support, graph-mode and FP8 benchmarks
- 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>
This commit is contained in:
1 parent
4e7a7ce903
commit
3b85c03761
29 files changed
+87117
-18
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#!/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}")
|
||||
Reference in new issue
Block a user