Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ jobs:
run: |
# tests/native_v4/test_serve.py needs the serving stack (httpx, fastapi)
PYTHONPATH=src python -m pytest -q tests/test_devices.py tests/native_v4 \
tests/test_continuous_backlog.py tests/test_solo_openai.py \
--ignore=tests/native_v4/test_serve.py $(ls -d tests/swap 2>/dev/null)
20 changes: 20 additions & 0 deletions bench/harness_furiosa_llm.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 128, "concurrency": 1, "requests": 2, "errors": 0, "ttft_ms": 26.28, "ttft_p90_ms": 30.08, "tpot_ms": 17.41, "tpot_p90_ms": 17.42, "itl_p99_ms": 21.67, "tokens_s": 56.9, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 128, "power_w": 81.0, "util_pct": 82.1, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 128, "concurrency": 2, "requests": 4, "errors": 0, "ttft_ms": 41.47, "ttft_p90_ms": 57.91, "tpot_ms": 17.52, "tpot_p90_ms": 17.67, "itl_p99_ms": 21.89, "tokens_s": 110.92, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 128, "power_w": 111.8, "util_pct": 82.9, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 128, "concurrency": 4, "requests": 8, "errors": 0, "ttft_ms": 78.63, "ttft_p90_ms": 80.09, "tpot_ms": 18.65, "tpot_p90_ms": 19.19, "itl_p99_ms": 25.94, "tokens_s": 203.81, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 128, "power_w": 129.0, "util_pct": 62.7, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 128, "concurrency": 8, "requests": 16, "errors": 0, "ttft_ms": 123.7, "ttft_p90_ms": 126.12, "tpot_ms": 19.41, "tpot_p90_ms": 19.78, "itl_p99_ms": 26.03, "tokens_s": 382.1, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 128, "power_w": 128.0, "util_pct": 77.9, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 128, "concurrency": 16, "requests": 32, "errors": 0, "ttft_ms": 155.39, "ttft_p90_ms": 249.19, "tpot_ms": 21.73, "tpot_p90_ms": 23.04, "itl_p99_ms": 99.88, "tokens_s": 651.38, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 128, "power_w": 137.7, "util_pct": 64.6, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 512, "concurrency": 1, "requests": 2, "errors": 0, "ttft_ms": 51.64, "ttft_p90_ms": 53.66, "tpot_ms": 17.71, "tpot_p90_ms": 18.12, "itl_p99_ms": 22.41, "tokens_s": 54.82, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 512, "power_w": 138.0, "util_pct": 80.4, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 512, "concurrency": 2, "requests": 4, "errors": 0, "ttft_ms": 95.28, "ttft_p90_ms": 140.45, "tpot_ms": 19.11, "tpot_p90_ms": 19.7, "itl_p99_ms": 24.77, "tokens_s": 97.64, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 512, "power_w": 129.8, "util_pct": 80.8, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 512, "concurrency": 4, "requests": 8, "errors": 0, "ttft_ms": 178.91, "ttft_p90_ms": 234.72, "tpot_ms": 19.34, "tpot_p90_ms": 21.03, "itl_p99_ms": 85.02, "tokens_s": 180.56, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 512, "power_w": 134.2, "util_pct": 81.5, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 512, "concurrency": 8, "requests": 16, "errors": 0, "ttft_ms": 278.32, "ttft_p90_ms": 417.48, "tpot_ms": 21.45, "tpot_p90_ms": 23.8, "itl_p99_ms": 95.64, "tokens_s": 307.11, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 512, "power_w": 142.8, "util_pct": 82.9, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 512, "concurrency": 16, "requests": 32, "errors": 0, "ttft_ms": 453.9, "ttft_p90_ms": 781.89, "tpot_ms": 26.54, "tpot_p90_ms": 30.24, "itl_p99_ms": 98.2, "tokens_s": 460.29, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 512, "power_w": 167.6, "util_pct": 80.5, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 1024, "concurrency": 1, "requests": 2, "errors": 0, "ttft_ms": 98.47, "ttft_p90_ms": 99.06, "tpot_ms": 17.89, "tpot_p90_ms": 18.11, "itl_p99_ms": 23.02, "tokens_s": 52.18, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 1024, "power_w": 156.2, "util_pct": 86.8, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 1024, "concurrency": 2, "requests": 4, "errors": 0, "ttft_ms": 156.13, "ttft_p90_ms": 224.34, "tpot_ms": 19.21, "tpot_p90_ms": 20.12, "itl_p99_ms": 32.2, "tokens_s": 92.01, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 1024, "power_w": 147.8, "util_pct": 83.6, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 1024, "concurrency": 4, "requests": 8, "errors": 0, "ttft_ms": 329.27, "ttft_p90_ms": 427.72, "tpot_ms": 21.13, "tpot_p90_ms": 23.75, "itl_p99_ms": 89.39, "tokens_s": 151.23, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 1024, "power_w": 160.7, "util_pct": 82.8, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 1024, "concurrency": 8, "requests": 16, "errors": 0, "ttft_ms": 502.43, "ttft_p90_ms": 782.69, "tpot_ms": 24.71, "tpot_p90_ms": 28.65, "itl_p99_ms": 96.28, "tokens_s": 239.78, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 1024, "power_w": 169.1, "util_pct": 82.5, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 1024, "concurrency": 16, "requests": 32, "errors": 0, "ttft_ms": 911.76, "ttft_p90_ms": 1564.39, "tpot_ms": 32.9, "tpot_p90_ms": 40.55, "itl_p99_ms": 99.54, "tokens_s": 321.68, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 1024, "power_w": 195.2, "util_pct": 80.0, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 2048, "concurrency": 1, "requests": 2, "errors": 0, "ttft_ms": 208.06, "ttft_p90_ms": 209.18, "tpot_ms": 18.09, "tpot_p90_ms": 18.19, "itl_p99_ms": 23.06, "tokens_s": 47.42, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 2048, "power_w": 164.6, "util_pct": 81.2, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 2048, "concurrency": 2, "requests": 4, "errors": 0, "ttft_ms": 317.96, "ttft_p90_ms": 435.93, "tpot_ms": 20.41, "tpot_p90_ms": 21.82, "itl_p99_ms": 88.57, "tokens_s": 78.01, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 2048, "power_w": 156.3, "util_pct": 86.1, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 2048, "concurrency": 4, "requests": 8, "errors": 0, "ttft_ms": 574.42, "ttft_p90_ms": 869.04, "tpot_ms": 23.7, "tpot_p90_ms": 28.15, "itl_p99_ms": 102.24, "tokens_s": 120.77, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 2048, "power_w": 169.0, "util_pct": 84.6, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 2048, "concurrency": 8, "requests": 16, "errors": 0, "ttft_ms": 1009.94, "ttft_p90_ms": 1635.55, "tpot_ms": 30.33, "tpot_p90_ms": 38.61, "itl_p99_ms": 105.95, "tokens_s": 166.61, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 2048, "power_w": 190.7, "util_pct": 87.9, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
{"engine": "furiosa-llm", "max_tokens": 64, "tag": "", "started": "2026-10-22T09:07:17", "P": 2048, "concurrency": 16, "requests": 32, "errors": 0, "ttft_ms": 1858.49, "ttft_p90_ms": 3274.1, "tpot_ms": 45.21, "tpot_p90_ms": 61.66, "itl_p99_ms": 110.72, "tokens_s": 201.17, "out_tokens": 64.0, "stream_events": 64.0, "prompt_tokens": 2048, "power_w": 216.4, "util_pct": 86.3, "first_error": null, "config": "furiosa-llm 2026.3, llama8b-pfbatch artifact, 1 card (TP=8)"}
53 changes: 53 additions & 0 deletions bench/harness_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/usr/bin/env python3
"""Gap table from two bench/vendor_sweep.py runs: reference vs candidate.

python3 bench/harness_report.py bench/harness_furiosa_llm.jsonl bench/harness_rngd_pd.jsonl

Ratios are candidate / reference. The issue #14 target is tok/s >= 0.90 and
TTFT, TPOT <= 1.10 for P <= 1024 and concurrency <= 16; rows that meet all
three are marked "ok".
"""
import json
import sys


def load(path):
rows = {}
with open(path) as f:
for line in f:
r = json.loads(line)
if "concurrency" in r:
rows[(r["P"], r["concurrency"])] = r
return rows


def main():
ref, cand = load(sys.argv[1]), load(sys.argv[2])
rname = next(iter(ref.values()))["engine"]
cname = next(iter(cand.values()))["engine"]
print(f"| P | conc | TTFT ms {rname} / {cname} | x | TPOT ms {rname} / {cname} | x "
f"| tok/s {rname} / {cname} | x | W {rname} / {cname} | target |")
print("|--:|--:|--:|--:|--:|--:|--:|--:|--:|:-:|")
for key in sorted(set(ref) | set(cand)):
r, c = ref.get(key, {}), cand.get(key, {})

def pair(k, n=1):
f = lambda v: f"{v:.{n}f}" if isinstance(v, (int, float)) else "-"
return f"{f(r.get(k))} / {f(c.get(k))}"

def ratio(k):
a, b = r.get(k), c.get(k)
return b / a if a and b else None
rt, rp, rs = ratio("ttft_ms"), ratio("tpot_ms"), ratio("tokens_s")
fx = lambda v: f"{v:.2f}" if v is not None else "-"
ok = (rt is not None and rp is not None and rs is not None
and rt <= 1.10 and rp <= 1.10 and rs >= 0.90)
tgt = "ok" if ok else ("n/a" if key[0] > 1024 else "miss")
if c.get("errors"):
tgt += f" ({c['errors']} err)"
print(f"| {key[0]} | {key[1]} | {pair('ttft_ms')} | {fx(rt)} | {pair('tpot_ms', 2)} | "
f"{fx(rp)} | {pair('tokens_s')} | {fx(rs)} | {pair('power_w', 0)} | {tgt} |")


if __name__ == "__main__":
main()
Loading
Loading