mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3247] [Benchmark] NCM feasibility study: stop/document, no engine change #4525
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4525
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3247
Author: @toel1234
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:benchmark/ncm-feasibility📝 Commits (1)
aa9cb1d[Benchmark] NCM feasibility study: stop/document, no engine change📊 Changes
43 files changed (+5928 additions, -0 deletions)
View changed files
➕
docs/NCM.md(+848 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/README.md(+20 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/standalone-probe.json(+148 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.default.command.json(+33 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.default.stderr(+44 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.default.stdout(+16 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.mtp.command.json(+35 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.mtp.stderr(+42 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.mtp.stdout(+15 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.oracle.ids(+1 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.oracle4.command.json(+37 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.oracle4.stderr(+40 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.oracle4.stdout(+14 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.oracle8.command.json(+37 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.oracle8.stderr(+40 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.oracle8.stdout(+14 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.plain.command.json(+35 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.plain.stderr(+41 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.plain.stdout(+14 -0)➕
docs/benchmarks/ncm-2026-10-19-rtx5070/target/code.prompt.ids(+1 -0)...and 23 more files
📄 Description
Problem and result
NCM (HazyResearch) generates many tokens per pass. The question was whether it could be a faster draft source
for Strata's speculative decoding. Result: not now. No released NCM checkpoint drafts in the target's token IDs,
so no NCM acceptance could be measured. This PR records the study, its numbers and its limits. Strata's
behaviour does not change.
Measured on RTX 5070 (12 GB), Ryzen 9 7900X, Linux, existing engine 0.1.45 binary, checkout
e88ee39d:(prose / code). Perfect 8-token oracle drafts: 38.18 / 30.59. All outputs matched their greedy reference.
the baseline.
Related discussion
none. Research and benchmark report only; no feature, refactor or default change.
Approach
docs/NCM.md: plain summary, source review, measurements, break-even model, validation, decision.docs/benchmarks/ncm-2026-10-19-rtx5070/: raw files (probe JSON, results.json, every engine argument list,stdout/stderr, prompt and oracle IDs, Terminal test log). Local paths rewritten to
$STRATA,$DATA,$OUT.Routing traces (1.1 MB) not included; SHA-256 recorded.
tools/ncm_probe.py: standalone NCM probe and a break-even calculator (no PyTorch needed for the calculator).tools/ncm_target_bench.py: the target pilot driver, with paths as arguments.Validation
Passed:
equal to the greedy reference. Data in
docs/benchmarks/ncm-2026-10-19-rtx5070/target/results.json.tools/ncm_target_bench.pyrebuilds the same ten argument lists as the recorded*.command.jsonand recomputesthe same routing unions from the original traces (checked without running the engine again).
python3 -I tools/ncm_probe.py --break-even --window 4 --baseline-tps 80 --verify-ms 30 --draft-ms 5gives thethreshold in the doc. JSON files parse; all relative links in the new docs resolve.
git diff --exit-code -- src include serve strata_cli strata_control apps requirements.txt requirements-monitor.txtreturned 0.
Failed:
python -m pytest tests/terminal -qone88ee39d(before this change, no Terminal code touched): 834 passed,18 failed, 17 skipped. Log:
docs/benchmarks/ncm-2026-10-19-rtx5070/terminal-tests.log. Not diagnosed here.Not run:
kVerifyMaxT = 8),repeated or interleaved runs, the full benchmark protocol.
Limits
Single short runs on one machine, diagnostic settings (context 4096, KV residency 0, mapped experts), not the saved
production configuration. No speedup is claimed. The oracle rows are an upper bound for an 8-token drafter in this
setup, not a result for NCM.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.