Repository navigation
Use switchify-prediction v0.2.2 for faster word generation - #1034
Merged
Merged
Conversation
Pins the published v0.2.2 worker archives and their per-file hashes, and moves both Rust libraries and the converter to the release commit. The workers batch the beam search and stop once the ranked words are settled, returning the same words 3-5x faster for the same context, and generation sees the sentence as typed. Protocol, model and tokenizer are unchanged. The companion CLI inside each archive is left unpinned, so it is never extracted or shipped. Closes #1033 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #1033 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #1033
Stacked on #1030 (base
claude/1029-learn-from-typing). Retarget it tomainonce #1030 merges, and don't delete that branch before then.This uses the published switchify-prediction v0.2.2, so the AI suggestion words (slots 4–6) arrive 3–5× faster. For the same context they are the same words. The worker protocol (2), model and tokenizer are unchanged.
Changes
scripts/prediction-neural.json:.sha256.revision(the converter and worker provenance) andlibrary_revisionare nowb873c88(v0.2.2).unpackonly extracts pinned files, so it is never extracted or shipped. The file count per target is the same as v0.2.1.src-tauri/Cargo.toml: both libraries are pinned tob873c88, which already includes the learning changes from Learn from typing to personalise word prediction #1030.scripts/check-packaged-prediction.mjs: expects workerBUILD.jsonversion0.2.2.neural-prediction.mdandsix-predictions.mddescribe v0.2.2.Measurements (from switchify-prediction #26)
Validation
npm run lintandnpm test(295) pass.cargo fmt --check,cargo clippy --all-targets -D warningsandcargo test(758) pass.quantize.rs) andmodel-bundle.jsonare byte-identical between v0.2.1 and v0.2.2, so the pinned model hash still holds.BUILD.jsonreports commitb873c88, version 0.2.2 and protocol 2.npm run prediction-model. On this Windows development machine, real-time scanning blocks the staging-directory rename for freshly written worker executables (EPERM), so it can't complete here. CI runs the full fetch, verification, conversion and packaged checks on Windows and macOS runners.🤖 Generated with Claude Code