bench_neuron: one untimed request a cell (context-bucket graphs compile lazily)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
whn09 2026-10-23 21:16:45 +08:00
parent 50483a06df
commit 32e08d78cd

View File

@ -122,6 +122,8 @@ def main(dp_size: int, dp_rank: int) -> None:
_run_one(llm, _random_prompt(lens[0], 10_000 + w + 7919 * dp_rank, vocab) if busy else None, params)
results = []
for length in lens:
# One untimed request a cell: a cell's first request pays for its own context bucket's lazy compile.
_run_one(llm, _random_prompt(length, 20_000 + length + 7919 * dp_rank, vocab) if busy else None, params)
cell = []
for r in range(args.repeats):
got = _run_one(llm, _random_prompt(length, 1000 * length + r + 7919 * dp_rank, vocab) if busy else None, params)