Only investigate main-test PREFILL for /user_4813494d/openbmb. Do NOT discuss speculative decoding, EAGLE, decode acceleration, or non-prefill topics except to explicitly exclude them. Task: find the exact local benchmark/eval paths that represent the main prefill test, workload shape, commands, metrics, data files, and what is currently known from docs/history. Read relevant repo files under docs/prefill, bench, eval, demo-sala. Return concrete file references, commands, and uncertainties. Do not edit files.
Assistant
I’ll restrict this to prefill-related artifacts and won’t edit anything. I’m first checking the worktree state and locating prefill references under the requested directories.
Assistant
The repo is dirty; I’m not touching it. The broad search was too noisy, so I’m narrowing to prefill docs, benchmark scripts/data, and evaluation launchers that are actually referenced by those docs.
Assistant
The prefill docs point to two separate things: a fast local long-context sample and a larger pure-prefill benchmark script. I’m reading those source files now to verify the actual workload and metrics instead of relying only on the prose.
Assistant
The large benchmark script itself still flushes cache even though the newer workflow note says the 15-chunk line-39 timing should not. I’m checking dataset sizes and the exact record for index 39 so the distinction is clear.
Assistant
For accuracy/eval, the local public evaluator is not a pure prefill benchmark because it allows long outputs. I’m still recording it as an accuracy guard path, while keeping the main prefill timing paths separate.
Assistant
Investigated only prefill-relevant paths. No files edited.
Main Prefill Target
The clearest “main prefill test” is documented in docs/prefill/current.md:
Scenario: long-context prefill
Server shape: --chunked-prefill-size 8192, --dense-as-sparse, --attention-backend minicpm_flashinfer
Fast sample: bench/data/speed_bench_cunlimited.jsonl record index=39
Request shape: max_tokens=1
Expected shape: about 15 chunks
Current known wall: 7.0-7.4s for line 39, from docs/prefill/current.md
Important uncertainty: this script still calls /flush_cache before each trial at line 61, while the newer workflow note says the 15-chunk line-39 bench should not call /flush_cache because it can timeout: docs/prefill/current.md.
Line 39 Fast Sample
Actual local record in bench/data/speed_bench_cunlimited.jsonl:
JSONL line: 39
index: 39
chars: 209,196
prompt_tokens: 124,070
category: 长文本 / deepresearch
request for prefill timing: same prompt, max_tokens=1
Minimal reproduction command:
bash
python3 - <<'PY'
import json, time, requests
path = "/user_4813494d/openbmb/bench/data/speed_bench_cunlimited.jsonl"
row = next(json.loads(l) for l in open(path) if json.loads(l)["index"] == 39)
t0 = time.perf_counter()
r = requests.post(
"http://127.0.0.1:30000/v1/chat/completions",
json={
"model": "minicpm",
"messages": [{"role": "user", "content": row["question"]}],
"max_tokens": 1,
"temperature": 0.0,
},
timeout=600,
)
print(r.status_code, time.perf_counter() - t0, r.json().get("usage", {}))
PY
Speed Bench Data Files
Local speed data:
bench/data/speed_bench_c1.jsonl: 8 rows, prompt tokens min 816, max 136,529
bench/data/speed_bench_c8.jsonl: 24 rows, min 408, max 136,529
bench/data/speed_bench_cunlimited.jsonl: 64 rows, min 25, max 136,529
bench/data_full/ is newer/larger and currently untracked:
bench/data_full/speed_bench_c1.jsonl: 12 rows, max 524,287
bench/data_full/speed_bench_c8.jsonl: 36 rows, max 524,288
bench/data_full/speed_bench_cunlimited.jsonl: 96 rows, max 524,288
bench/mini_bench.sh uses bench/data_full by default and stratified samples to /tmp/mini_*.jsonl, defaulting to S1=0, S8=36, Smax=96.
Command:
bash
bash bench/mini_bench.sh http://127.0.0.1:30000
This is a speed benchmark path using long-input data; it is not as pure-prefill as prefill_bench_smax64.py.
Server Commands
Current prefill-relevant server args are exported in demo-sala/prepare_env.sh:
metrics: ori_accuracy, overall_accuracy, duration, total input/output tokens
Command wrapper:
bash
bash eval/run_public_eval_full.sh
Known From Docs / History
Current docs say the latest true 15-chunk full-chunk profile is line 39 with max_tokens=1: docs/prefill/current.md.
Current hotspots listed there are MLP, GLA, sparse attention extension, stage1 score, and sparse metadata/plan overhead: docs/prefill/current.md.
Historical nsys note records line 39 as 209,196 chars and wall 7.24s: docs/prefill/history.md.
Uncertainty: that history line says ~50K tokens, but the local dataset record now says prompt_tokens=124070. The 15-chunk statement matches 124070 / 8192, so the token count in history looks stale.
Another uncertainty: “final big bench” script flushes cache, while newer workflow says line-39 measurements should use no-flush.