Repository navigation
router: e-detector threshold with run-length meaning; benches at real sizes - #5
Merged
Merged
Conversation
…asure real sizes - CascadeRouter: the Bernoulli LR is an e-value at failure rate p0, so the CUSUM threshold is a mean-run-length bound. Default 20 -> 1000; comments no longer claim alpha. New test checks E[LR] = 1 and the trip point. - bench: adds buildLogitMask on a 32,000-token vocabulary (~0.45 ms/step) next to the 8-token case. - bench_128k.py: adds the NumPy comparator (~14x slower than ctypes) and labels the pure-Python loop as a strawman. Fixes #3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3.
buildLogitMaskis now also measured on a 32,000-token vocabulary: 419–467 µs/step. The 8-token case is 82–88 ns, and that was the old headline.Checked on Zig 0.16.0, M2 Max: 7/7 tests; Node WASM and Python ctypes smoke tests pass. README and llms.txt updated.
🤖 Generated with Claude Code