Repository navigation
Releases
Releases · tyrchen/chime
Chime v0.30.0
Highlights
Models & Neural Ranking (Apple Silicon Metal / ANE Gate-5 Verified)
- iOS 8L CoreML Micro-SNLM v3 (
H-1a Soup-25, 9.21 MiB ANE 4-bit): Same-basinQwen3-14B-Basedistillation with 3.0x{的,地,得}and Top-25 homophone contrast. Unanimous 3/3 benchmark win overbeta.3on Apple Silicon ANE: Holdout-101063.37% -> 63.96% (+0.59%),{的,地,得}52.0% -> 56.0% (+4.0%), tech engineering56.67% -> 58.33% (+1.66%),v27_stress77.71% -> 78.06% (+0.35%), and real user typing log85.50% -> 85.60%. - macOS Learned Semantic LoRA Router (
LoraRouterHead, 257 KB FP16,< 0.05 msMetal): Replaces hardcoded classical/colloquial character wordlists (HARD_CLASSICAL_CUES/MODERN_COLLOQUIAL_STOP) incrates/neural/src/mlx_backend.rswith a 3-class[general, classical, developer]embedding-space router operating directly onBI-12L's residentembed_tokens(zero extra Transformer forward pass, 15/15 Metal tests passing).
First-Principles Architecture (macOS + iOS)
- Single-Source Rust Voice Hygiene FFI: Exports
chime_voice_polish_textfromcrates/ffiand replaces 81 lines of duplicated Swift regex in iOSVoiceTextPolisher.swiftwith a 27-line FFI wrapper. - iOS Local Anisotropic 2D Gaussian Touch Model: Upgrades
KeyOffsetEMAto track per-key(muX, muY, varX, varY, count)with Empirical Bayes shrinkage and true 2D anisotropic Gaussian NLL for both MAP nearest-key and 2D touch-neighbor decoding. - Voice-Correction Feedback Loop & Lexicon: Wires
record_negative_feedbackon voice corrections and adds missing bilingual tech casing entries (Mac,iCloud,TestFlight,Clade,Kaggle,BPE,Qwen3,Operon).
Chime v0.29.2 — First-Principles Canonical BPE, Contextual LM Trust & Shannon RAG Decontamination
Highlights
A pure first-principles refactor removing 187 net lines of hardcoded wordlists and special-case patches while pushing real-world typing accuracy even higher:
- Canonical BPE merge-rank encoding in
chime-neural: replaces greedy left-to-right longest-match inCompactVocab::encodewith true minimum-ID BPE merge-rank order so Stage-2 scoring matches Qwen3 pretraining subwords (非常好了 → [非常, 好了],挺好的 → [挺, 好的]). Eliminates OOD segmentation collapse without any hardcoded了/乐whitelist. - Contextual Neural LM pronoun resolution: removes the 71-word hardcoded inanimate/tech noun list and restricts
apply_unmarked_pronoun_symmetrystrictly to empty-context or Stage-1-only runs, letting the 64M Neural LM resolve他/她/它across all antecedents (这个架构怎么让 + ta → 它). - Shannon compositional character surprisal for Voice RAG: replaces the 70-character hardcoded function-char table with lexicon single-character unigram entropy, rejecting OOV function fragments (
是要,给它,用的是) purely via information theory while preserving genuine rare entities (瘦金体,幂等,陈晓岚). - Unified per-syllable noisy-channel nasal fallback: replaces per-length magic score thresholds with a single per-syllable log-probability threshold (
-3.05 nats/syl), and removes single-word English casing hacks from the decoder. - Verified real-world benchmark (1,000 real typing commits, cold-start):
- Stage-2 MLX Acc@1:
85.00% → 85.80% (v0.29.1) → 86.10% (v0.29.2)(+1.10 pp, Hit@594.90%, 3–4 char Acc@180.59% → 82.35%). - Stage-1 Acc@1:
80.40% → 81.10%(+0.70 pp, Hit@594.20%).
- Stage-2 MLX Acc@1:
Chime v0.29.1 — Data-Driven Typing, Voice RAG Decontamination & iOS Hotword Sync
Highlights
Typing Engine (macOS & iOS)
- Soft 1-bit nasal-fuzzy OOV rescue (
in↔ing,en↔eng): automatically rescues misspelled OOV compounds (yijinxiazai → 已经下载,shoujingti → 瘦金体,zhenwen → 正文) when fuzzy mode is OFF without adding noise or latency on valid exact words. - Stronger negative-feedback learning: raises the penalty curve for rejected Top-1 candidates so manual corrections stick immediately.
- Non-Pinyin English & dev-casing protection: prevents short non-Pinyin English words (
not,mac,git,app) from being hijacked by Jianpin concatenations. - Inanimate/tech antecedent support & clause-final
leprotection: keeps neural它/它们intact after technical/inanimate nouns and preventslefrom turning into乐on predicate tails. - Verified real-world gain (1,000 real commits): Stage-1 Acc@1
80.40% → 81.10%(+0.70 pp), Stage-2 MLX Acc@185.00% → 85.80%(+0.80 pp, Hit@594.80%, p508.60 ms).
Offline Voice (macOS)
- Voice RAG decontamination: blocks low-count ordinary English words (
Face,Credit,Create) and pure CJK function-word bigrams (是要,给它,用的是) from polluting personal RAG memory. - 1-dropped-syllable entity match & deterministic repair: recovers elided domain terms (
地性原理 → 第一性原理) during Pass 1 → Pass 2 phonetic RAG and Pass 2 finalization. - 36-second global single-pass decode: expands the active rolling window from 22 s to 36 s (
26–34 ssplit), eliminating mid-sentence synthetic periods and cross-segment duplicates on long dictations. - Pass 2 hygiene fixes: strips isolated
呃/嗯glued after ASCII/digits (two呃还有,H1呃A100) and preserves a single clause comma whenBidirEditTaggerdeletes comma-wrapped fillers (发一版吧,呃,备用 → 发一版吧,备用).
iOS Sync Upgrade
- Personal voice hotwords (
contextualStrings): exports decontaminated high-information personal entities fromChimeEngine(including Mac ↔ iPhone iCloud synced habits) into Apple's on-deviceSFSpeechRecognizerand foregroundQwen3-ASRbias prompts. - Upgraded
VoiceTextPolisher: mirrors Rust's ASCII-adjacent and asymmetric mid-phrase filler cleanup.
Chime v0.29.0
Highlights
Strict Manual-Selection WYSIWYG Lock (macOS & iOS)
- Full First-Page Anti-Jitter Freeze: Once the candidate bar has been visible beyond the anti-jitter window (120 ms on macOS, 140 ms on iOS), ALL visible first-page slots (1–5) are frozen in place so late async neural reranks never swap a word underneath your finger or click.
- User Interaction Lock: Picking a partial prefix, paging, expanding the grid, or navigating with arrow/Tab keys immediately locks the candidate bar and cancels in-flight async reranking.
- Exact WYSIWYG Space/Punctuation Commit on iOS: Space, punctuation, and page-2+ candidate taps always commit the exact displayed candidate.
Chime iOS v2 First-Principles Redesign
- Native-Grade 26-Key Feel: All 8 fuzzy Pinyin defaults turned OFF (with automatic v1→v2 migration), Apple-style dynamic hit-target gravity via
validNextKeyMask, 26 pt lock-key hysteresis against lift-off roll drift, and top-rowq–pswipe-up numbers1–0. - Dual-Tier On-Device Offline Voice: Zero-download Apple on-device streaming speech (
requiresOnDeviceRecognition = true) + offlineVoiceTextPolisherfor instant in-WeChat live subtitles, plus optional foreground Metal GPUQwen3-ASR-0.6Bmode (removes slow background CPU inference). - Minimalist Native Keyboard & 2-Tab Consumer App: Removed engineering clutter from candidate bar and host app; adaptive onboarding collapses automatically once enabled.
CoreML ANE & Decoder Accuracy Fixes
- Fixed Apple Silicon CoreML ANE
MLMultiArrayrow-stride corruption (strides = [64, 1]) and BOS token ID (<|endoftext|>) inCoreMLMicroReranker. - Tightened 2D touch neighbor radius and exact-syllable penalty so valid Pinyin is never hijacked by cross-row neighbors.
Chime v0.28.4 (Build 57) — BidirEditTagger v9b
Highlights
- BidirEditTagger v9b (
chime-voice-edit-tagger-v0.28.4.zip, 77.99 MB MLX Q4 BF16, auto-synced via manifest):- Bit-exact warm-start from production
v0.25.0(preserving calibrated Bayes action priors) with Frozen-v0.25.0Self-KL anchoring (anchor_kl=2.5) and English sentence-initial discourse negative hardening (Actually,,No,,Wait,,Sorry,,Well,,Honestly,, etc.). - Real Apple Silicon Metal Gate-5 (paired with Rewrite LoRA v9):
- 100-Case Multilingual Self-Repair E2E: 97/100 (97.0%) vs v0.25.0 95/100 (+2 net gain); 20/20 (100.0%) negative preservation (fixed
neg_002andneg_005false deletions!), EN 30/30 + 7/7 (100.0%), v3_p50 = 2.1 ms. - Grand Total across 250 blind voice-edit/rewrite benchmarks: 244/250 (97.6%) (zero regressions).
- 17/17 Frozen Golden Voice Suite: 17/17 PASS, Pass-2 p50 = 4 ms.
- 13/13 Flight-Recorder Probes: 13/13 PASS.
- 100-Case Multilingual Self-Repair E2E: 97/100 (97.0%) vs v0.25.0 95/100 (+2 net gain); 20/20 (100.0%) negative preservation (fixed
- Bit-exact warm-start from production
- Verification:
- Apple-notarized and stapled
Chime.app/.pkg/.zip(Developer ID). - Full
release_gate.py --mode fullPASSED in 333.3s: L0 (Clippy, Rust tests, iOS matrix, 18/18 Swift XCTests), L1 (E2E contracts, CPU/latency, Holdout-1010 92.18%), L2 (17/17 Golden Voice, Pass-2 p50=4ms), and L3 (macOS 14.0 AIR sandbox & hot-delta preservation).
- Apple-notarized and stapled
Chime v0.28.3 (Build 56) — Rewrite LoRA v9
Highlights
- Rewrite LoRA v9 (
chime-rewrite-lora-qwen3-1.7b-r16-v9.zip, 16.0 MB, auto-synced on daemon startup):- Trained bit-exact against production MLX 4-bit
Qwen3-1.7B-Instructwithv34 + v35 + v36multi-turn follow-up & rule-killer datasets (spoken alnum/versions/files, English typos, bilingual fillers, parallel ZH/Mixed self-repairs, and 2-turn selected-text follow-up rewrites). - Real Apple Silicon Metal Q4 Gate-5: 242/250 (96.8%) vs v8 239/250 (95.6%) (+3 net gain, zero regressions):
- 60-case Selection Intent: 60/60 (100.0%)
- 100-case Multilingual Self-Repair: Gate 80/80 recall / 0/20 FPR, E2E 95/100 (EN 30/30, ZH 29/30 [+1], Mixed 18/20)
- 20-case Cross-Sentence: 19/20 (95.0%) (KeepNeg 8/8)
- 30-case ITN + Multi-Sentence: 29/30 (96.7%) (+1)
- 40-case 4-Action CANCEL + Typo + Full ITN: 39/40 (97.5%) (CANCEL 10/10, EDIT 9/10 [+2], KEEP 20/20)
- 4 Real Flight-Recorder Probes: 4/4 PERFECT
- Trained bit-exact against production MLX 4-bit
- Release Gate Hardening:
- Passed
MLX_RS_METAL_PATHconsistently intorelease_gate.py::run_l1_cpu_gate.
- Passed
- Verification:
- Apple-notarized and stapled
Chime.app/.pkg/.zip(Developer ID). - Passed L0 (Clippy, Rust tests, iOS profiles, 18/18 Swift XCTests), L1 (E2E contracts, CPU 5.0% / 5/5 exact, Holdout-1010 92.18%), L2 (17/17 Golden Voice transcripts), and L3 (macOS 14.0 AIR sandbox & hot-delta preservation).
- Apple-notarized and stapled
Chime v0.28.2 — Startup LoRA Auto-Sync, Bit-Exact Rewrite LoRA v8 & 1-Token Selection Intent Gate
What's New in v0.28.2 (Build 55)
Automatic LoRA Sync on Daemon Startup
- Eagerly initializes
RewriteManager.sharedon daemon launch so upgrading Chime automatically downloads and installs the latestRewrite LoRAoverlay without needing to open Settings first. - Automatically restarts resident
--rewrite-workerand--voice-workerprocesses whenever a new LoRA version lands, ensuring every machine picks up model improvements immediately.
Bit-Exact MLX-4bit Unified Rewrite LoRA v8
- Trained directly on bit-exact unpacked
mlx-community/Qwen3-1.7B-4bitweights (max_abs_diff = 0.00000000vs Apple Silicon Metalmx.dequantize). - 1-Token Selection Intent Gate (
COMMANDvsINSERT): replaces the 177-line Swift heuristic mirror and routes highlighted-text voice input through the residentQwen3-1.7Bmodel first (60/60 = 100.0% on blind bilingual eval at 34.6 ms p50, vs 58.3% for legacy heuristics). - 4-Action Voice Gate (
KEEP/EDIT/REPLACE/CANCEL): adds pure model-layer voice dictation abort (CANCEL 10/10), ASR typo correction (improove -> improve), filenames/versions (Cargo.toml,AGENTS.md,v0.28.2), strict uppercase acronyms (GPU,AI), and ITN (4 p m -> 4 p.m.). - Real Apple Silicon Metal Q4 Benchmarks:
- 60-case blind Selection Intent: 60/60 (100.0%),
p50 = 34.6 ms - 100-case blind Intra-Utterance Self-Repair: 100/100 Gate (
80/80recall,0/20FPR), 95/100 E2E,keep p50 = 23.4 ms - 20-case blind Cross-Sentence Repair: 19/20 (95.0%)
- 30-case blind ITN + Multi-Sentence Preservation: 28/30 (93.3%)
- 40-case blind 4-Action
CANCEL+ Typo + Full ITN: 37/40 (92.5%)
- 60-case blind Selection Intent: 60/60 (100.0%),
Verification
- Apple-signed & notarized universal release artifacts verified via full
release_gate.py --mode full(L0–L3, 18/18 Swift XCTests, Holdout-1010 92.18%, 7.6% typing CPU, 17/17 Golden Voice Suite, macOS 14.0 AIR sandbox).
Chime v0.28.1
Highlights
- DES-372 Unified 1-Token Voice Self-Repair & ITN Gate (
KEEP/EDIT:/REPLACE:,Rewrite LoRA v5):- Single-pass Apple Silicon Metal 4-bit gate handles bilingual (EN / ZH / CN-EN) mid-sentence self-repairs, cross-sentence
[PREV]/[CURR]in-place replacements (19/20), general ASR spoken-to-written ITN (spaced clock meridiems4 p m->4 p.m., spaced acronymsa i/a p i/p h d, spoken alphanumeric codesH一百->H100, English sentence capitalization), and multi-sentence paragraph preservation (fixes prefix drop when repairing a trailing sentence). - Real Apple Silicon Metal 4-bit Gate-5 verification:
78/80 (97.5%)self-repair gate recall with0/20 (0.0%)FPR,20/20 (100%)ITN/multi-sentence gate recall with0/10 (0.0%)FPR,15/15Frozen Golden Voice WAVs,16/16EditTagger blood test, and zero selected-text rewrite regression.
- Single-pass Apple Silicon Metal 4-bit gate handles bilingual (EN / ZH / CN-EN) mid-sentence self-repairs, cross-sentence
- System-Prompt KV Prefix Cache (-4.2x Gate Latency): Caches the longest shared system-prompt KV prefix in
Qwen3-1.7B, cutting Metal 4-bitKEEPgate latency from96.9 msto23.3 ms. - Shared Resident Rewrite Worker RPC (~950 MB RAM Saved):
--voice-workerdelegates self-repair and ITN gating to--rewrite-workerover a0600Unix domain socket (< 0.1 msIPC) instead of loading a secondQwen3-1.7Binstance. - Pinyin Core Particle Preservation:
polish_top_candidate_de_particlesnow inserts promoted得/地at Top-1 instead of overwriting的in-place, preserving的at Top-2.
Verification
- Full 5-layer release gate (
L0–L3+L4online manifest check): Rust pedantic clippy, workspace tests, iOS build matrix, 18 Swift XCTests, Keyboard E2E (6.2% CPU,92.18%Holdout-1010 Top-1), 15/15 Golden Voice WAVs (Pass 2 p50 = 4 ms), and Apple Developer ID Notarization & Gatekeeper verification.
Chime v0.28.0 — Offline Selection Voice Rewrite, Pro Acoustic LoRA & iOS 8L ANE
Highlights
- macOS Offline Selection Voice Rewrite (DES-370): Select any text in any app and speak a rewrite instruction (polish, tighten, translate, change tone) for 100% offline MLX streaming preview and one-click replacement powered by
Qwen3-1.7B+ auto-synced Wave 6 Rank-16 Rewrite LoRA (15.3 MB, hot TTFT79 ms). - Pro 1.7B Audio-Encoder-Only Rank-24 LoRA Auto-Sync (Wave 9 ·
2.77 MB): Automatically syncsacoustic_enc_r24intoVoiceModelManager, fixing acoustic confusions (e.g.低信原理 → 第一性原理) while keeping 100% of the frozen golden punctuation distribution (15/15Golden PASS, Pass-2p50 = 4 ms). - Mac ↔ iPhone iCloud Private Lexicon Sync: Automatic incremental sync of personal habits & phrases via private iCloud Drive plus one-click
.chimesyncexport/import. - iOS 8L CoreML ANE Champion (
v0.28.0-beta.3OTA):8.66 MiBZIP /1.28 msANE with mid-sentence ANE beam guidance,{的,地,得}polish, zero-switch post-commit punctuation bar, and space-swipe Tab continuation (Holdout-1010 63.56%,Holdout-2K 60.35%,Stress-1000 80.72%).
Verification (Apple Silicon 5-Layer Release Gate)
- L0: Rust pedantic clippy + workspace tests + Swift tests PASS
- L1: Human-cadence typing
p50 = 1.87 ms, total CPU6.9%(<= 10%); BlindHoldout-1010Top-192.18%(931/1010) - L2: Frozen Golden Voice
15/15 PASS(with Wave 9 LoRA live, Pass-2p50 = 4 ms) - L3: Signed, Apple-notarized, stapled, Gatekeeper-accepted, macOS 14.0+ AIR compatible, hot-update delta sandbox verified
Chime v0.28.0-beta.1 (iOS Micro ANE Model Pack)
Prerelease asset hosting the optional 5.8 MB 4-bit CoreML ANE micro-SNLM pack (Chime-iOS-4L-Q4) for iOS TestFlight v0.28.0.