Skip to content

Releases

Chime v0.30.0

Choose a tag to compare

@tyrchen tyrchen released this 05 Dec 02:14

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-basin Qwen3-14B-Base distillation with 3.0x {的,地,得} and Top-25 homophone contrast. Unanimous 3/3 benchmark win over beta.3 on Apple Silicon ANE: Holdout-1010 63.37% -> 63.96% (+0.59%), {的,地,得} 52.0% -> 56.0% (+4.0%), tech engineering 56.67% -> 58.33% (+1.66%), v27_stress 77.71% -> 78.06% (+0.35%), and real user typing log 85.50% -> 85.60%.
  • macOS Learned Semantic LoRA Router (LoraRouterHead, 257 KB FP16, < 0.05 ms Metal): Replaces hardcoded classical/colloquial character wordlists (HARD_CLASSICAL_CUES / MODERN_COLLOQUIAL_STOP) in crates/neural/src/mlx_backend.rs with a 3-class [general, classical, developer] embedding-space router operating directly on BI-12L's resident embed_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_text from crates/ffi and replaces 81 lines of duplicated Swift regex in iOS VoiceTextPolisher.swift with a 27-line FFI wrapper.
  • iOS Local Anisotropic 2D Gaussian Touch Model: Upgrades KeyOffsetEMA to 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_feedback on 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

Choose a tag to compare

@tyrchen tyrchen released this 04 Dec 18:19

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 in CompactVocab::encode with 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_symmetry strictly 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@5 94.90%, 3–4 char Acc@1 80.59% → 82.35%).
    • Stage-1 Acc@1: 80.40% → 81.10% (+0.70 pp, Hit@5 94.20%).

Chime v0.29.1 — Data-Driven Typing, Voice RAG Decontamination & iOS Hotword Sync

Choose a tag to compare

@tyrchen tyrchen released this 04 Dec 14:33

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 le protection: keeps neural 它/它们 intact after technical/inanimate nouns and prevents le from 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@1 85.00% → 85.80% (+0.80 pp, Hit@5 94.80%, p50 8.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 s split), 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 when BidirEditTagger deletes comma-wrapped fillers (发一版吧,呃,备用 → 发一版吧,备用).

iOS Sync Upgrade

  • Personal voice hotwords (contextualStrings): exports decontaminated high-information personal entities from ChimeEngine (including Mac ↔ iPhone iCloud synced habits) into Apple's on-device SFSpeechRecognizer and foreground Qwen3-ASR bias prompts.
  • Upgraded VoiceTextPolisher: mirrors Rust's ASCII-adjacent and asymmetric mid-phrase filler cleanup.

Chime v0.29.0

Choose a tag to compare

@tyrchen tyrchen released this 04 Dec 06:34

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-row q–p swipe-up numbers 1–0.
  • Dual-Tier On-Device Offline Voice: Zero-download Apple on-device streaming speech (requiresOnDeviceRecognition = true) + offline VoiceTextPolisher for instant in-WeChat live subtitles, plus optional foreground Metal GPU Qwen3-ASR-0.6B mode (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 MLMultiArray row-stride corruption (strides = [64, 1]) and BOS token ID (<|endoftext|>) in CoreMLMicroReranker.
  • 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

Choose a tag to compare

@tyrchen tyrchen released this 04 Dec 03:18

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.0 Self-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_002 and neg_005 false 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.
  • Verification:
    • Apple-notarized and stapled Chime.app / .pkg / .zip (Developer ID).
    • Full release_gate.py --mode full PASSED 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).

Chime v0.28.3 (Build 56) — Rewrite LoRA v9

Choose a tag to compare

@tyrchen tyrchen released this 03 Dec 23:55

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-Instruct with v34 + v35 + v36 multi-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
  • Release Gate Hardening:
    • Passed MLX_RS_METAL_PATH consistently into release_gate.py::run_l1_cpu_gate.
  • 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).

Chime v0.28.2 — Startup LoRA Auto-Sync, Bit-Exact Rewrite LoRA v8 & 1-Token Selection Intent Gate

Choose a tag to compare

@tyrchen tyrchen released this 03 Dec 20:24

What's New in v0.28.2 (Build 55)

Automatic LoRA Sync on Daemon Startup

  • Eagerly initializes RewriteManager.shared on daemon launch so upgrading Chime automatically downloads and installs the latest Rewrite LoRA overlay without needing to open Settings first.
  • Automatically restarts resident --rewrite-worker and --voice-worker processes 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-4bit weights (max_abs_diff = 0.00000000 vs Apple Silicon Metal mx.dequantize).
  • 1-Token Selection Intent Gate (COMMAND vs INSERT): replaces the 177-line Swift heuristic mirror and routes highlighted-text voice input through the resident Qwen3-1.7B model 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/80 recall, 0/20 FPR), 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%)

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

Choose a tag to compare

@tyrchen tyrchen released this 03 Dec 19:08

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 meridiems 4 p m -> 4 p.m., spaced acronyms a i/a p i/p h d, spoken alphanumeric codes H一百 -> 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 with 0/20 (0.0%) FPR, 20/20 (100%) ITN/multi-sentence gate recall with 0/10 (0.0%) FPR, 15/15 Frozen Golden Voice WAVs, 16/16 EditTagger blood test, and zero selected-text rewrite regression.
  • System-Prompt KV Prefix Cache (-4.2x Gate Latency): Caches the longest shared system-prompt KV prefix in Qwen3-1.7B, cutting Metal 4-bit KEEP gate latency from 96.9 ms to 23.3 ms.
  • Shared Resident Rewrite Worker RPC (~950 MB RAM Saved): --voice-worker delegates self-repair and ITN gating to --rewrite-worker over a 0600 Unix domain socket (< 0.1 ms IPC) instead of loading a second Qwen3-1.7B instance.
  • Pinyin Core Particle Preservation: polish_top_candidate_de_particles now inserts promoted 得/地 at Top-1 instead of overwriting 的 in-place, preserving 的 at Top-2.

Verification

  • Full 5-layer release gate (L0–L3 + L4 online 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

Choose a tag to compare

@tyrchen tyrchen released this 03 Dec 13:39

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 TTFT 79 ms).
  • Pro 1.7B Audio-Encoder-Only Rank-24 LoRA Auto-Sync (Wave 9 · 2.77 MB): Automatically syncs acoustic_enc_r24 into VoiceModelManager, fixing acoustic confusions (e.g. 低信原理 → 第一性原理) while keeping 100% of the frozen golden punctuation distribution (15/15 Golden PASS, Pass-2 p50 = 4 ms).
  • Mac ↔ iPhone iCloud Private Lexicon Sync: Automatic incremental sync of personal habits & phrases via private iCloud Drive plus one-click .chimesync export/import.
  • iOS 8L CoreML ANE Champion (v0.28.0-beta.3 OTA): 8.66 MiB ZIP / 1.28 ms ANE 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 CPU 6.9% (<= 10%); Blind Holdout-1010 Top-1 92.18% (931/1010)
  • L2: Frozen Golden Voice 15/15 PASS (with Wave 9 LoRA live, Pass-2 p50 = 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)

Choose a tag to compare

@tyrchen tyrchen released this 03 Dec 01:00

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.