Conversation
Co-Authored-By: Staging-Devin AI <166158716+staging-devin-ai-integration[bot]@users.noreply.github.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Summary
Prototype the compact lexical hashing idea from https://gpu-lexer.vercel.app as a separate CPU language detector:
The BTQ1 export is 4,752 raw bytes, including scales, biases and header; gpu-lexer's advertised 27.5 KB is a Brotli-compressed browser bundle.
betlang::detectstays on the production model while this experiment measures the accuracy cost.Includes QAT training/export, NumPy inference, an independent Rust example and a manifest-based comparison with the production detector. Training and comparison results will be added after the current run finishes. See
scripts/TINY_STUDENT.mdfor format and commands.Verification
cargo check --all-targets --lockedcargo clippy --locked --all-targets -- -D warningscargo fmt --checkcargo test --all-targets --lockedcargo build --release --example tinyBETLANG_TINY_EXAMPLE=... python scripts/test_tiny_student.py— 5 tests, including Python/Rust feature and logit parity on arbitrary bytes and window boundaries.python -m flake8 scripts/{tiny_student,train_tiny_student,test_tiny_student}.py --select E9,F63,F7,F82Accuracy evaluation is still in progress; this is not a proposal to replace the production model yet.
Link to Devin session: https://dioxus.staging.devinenterprise.com/sessions/5842494daec94db89dea35705547b830
Open in Devin Desktop: https://dioxus.staging.devinenterprise.com/desktop/session/5842494daec94db89dea35705547b830?variant=devin-insiders
Requested by: @ealmloff