Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.
Python amdapple-siliconcudadeepseekexl3exllamav3glminferencellmllm-inferencelocal-llmnvidiaopenai-apiquantizationqwenrocmstrix-halo
ab_inproc: report the per-prompt time to first token, not only the median
YanissAmz66c27acf6f41
diff --git a/tools/ab/ab_inproc.py b/tools/ab/ab_inproc.pyindex 8ba450d..4fbbc25 100755--- a/tools/ab/ab_inproc.py+++ b/tools/ab/ab_inproc.py@@ -109,7 +109,7 @@ def visit(port, model, prompts, users, max_tokens, extra, salt = None):gaps += midchunks += len(ts)return {"md5": md5s, "gap_ms": statistics.median(gaps) * 1000 if gaps else float("nan"), "chunks": chunks, "wall": wall,- "ttft_ms": statistics.median(ttft) * 1000}+ "ttft_ms": statistics.median(ttft) * 1000, "ttft_all_ms": [round(x * 1000) for x in ttft]}def main():@@ -146,7 +146,7 @@ def main():v = visit(args.port, model, prompts, args.users, args.max_tokens, extra, salt)v.update(arm=a, n=n)visits.append(v)- print(f"visit {n} arm {a} gap {v['gap_ms']:.2f} ms ttft {v['ttft_ms']:.0f} ms md5 {','.join(v['md5'])} ({time.time() - t0:.0f} s)", flush=True)+ print(f"visit {n} arm {a} gap {v['gap_ms']:.2f} ms ttft {v['ttft_ms']:.0f} ms ttft per prompt {'/'.join(str(x) for x in v['ttft_all_ms'])} ms md5 {','.join(v['md5'])} ({time.time() - t0:.0f} s)", flush=True)http(args.port, "/admin/knobs", {k: None for k in arm_values(arms, args.order[0])}) # leave the server on its defaultsprint("\narm visits median-gap-ms ttft-ms agg tok/s md5 stable md5 per prompt")summary = {}