- quant/gptq_baked/: llm-compressor GPTQ W4A16 body (sequential pipeline, verified equal to the plain forward), B65-style GPTQ INT4 lm_head bake with a small damp/act-order/clipping grid, INT8 per-row embedding, assembly into one compressed-tensors checkpoint (1.155 GB vs 3.46 GB BF16) - plugin: pass quant_config to the token embedding so vLLM's compressed-tensors INT8 embedding path is used; BF16/FP8 greedy output unchanged - tests: INT8 embedding kernel check, quant method dump, head timing, round-6 driver - NOTES: round 6 results (PPL +8.1%, decode 217 t/s = FP8 pc +14%, head bake gives no measurable decode gain on this stack), llama-swap snippet (not applied) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
1.3 KiB
Bash
Executable File
23 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Render BetterBench results.json files and pull the headline metrics into one markdown table.
|
|
# tests/bb_table.sh LABEL=path/results.json ...
|
|
# Columns follow BetterBench's own report: combined decode / ITL 1% low / TTFT p50, concurrency
|
|
# level-8 aggregate, prefill median at target depth 32000. Bandwidth = 3.47 GB x decode t/s.
|
|
cd "$(dirname "$0")/.."
|
|
echo "| variant | decode t/s | eff. bandwidth | ITL 1% low t/s | TTFT p50 ms | aggregate @8 t/s | prefill @32k t/s |"
|
|
echo "|---|--:|--:|--:|--:|--:|--:|"
|
|
for arg in "$@"; do
|
|
label=${arg%%=*}; f=${arg#*=}
|
|
BETTERBENCH_HOME=$PWD/.betterbench ${BB:-$( [ -x .venv-bench/bin/betterbench ] && echo .venv-bench/bin/betterbench || echo betterbench)} report "$f" 2>/dev/null | python3 -c '
|
|
import re, sys
|
|
t = sys.stdin.read(); label = sys.argv[1]
|
|
m = re.search(r"decode t/s median ≈ \*\*([\d.]+)\*\*, ITL 1%-low ≈ \*\*([\d.]+) t/s\*\*, TTFT p50 ≈ \*\*([\d.]+) ms", t)
|
|
c8 = re.search(r"^\| 8 \| [^|]+\| ([\d.]+) \|", t, re.M)
|
|
p32 = re.search(r"^\| 32000 \|(?:[^|]+\|){3} ([\d.]+) \|", t, re.M)
|
|
na = "—"
|
|
cell = lambda x, i=1: x.group(i) if x else na
|
|
bw = "%.0f GB/s (%.0f%%)" % (3.47 * float(m.group(1)), 3.47 * float(m.group(1)) / 6.08) if m else na
|
|
print(f"| {label} | {cell(m)} | {bw} | {cell(m, 2)} | {cell(m, 3)} | {cell(c8)} | {cell(p32)} |")
|
|
' "$label"
|
|
done
|