VimeML Chinese v2: A smart Pinyin input model for iPhone and PC
2 min read
The vimeml-zh-v2-20m model by Voltline tackles Pinyin sentence generation, candidate re-ranking for input, and phrase prediction. Its architecture relies on a decoder-only transformer with 20 million parameters, trained on FineWeb2 data and dialogue datasets. Compared to earlier versions, it delivers better conversational quality and supports generating full sentences from abbreviations or complete keys. The tool helps keyboard developers and users typing in Chinese on mobile and desktop devices.
Key features
- Compact size: Only 20M parameters, optimized for Core ML on iOS 18.
- Accuracy: Outperforms the first version on conversational speech and initial-based input benchmarks.
- Fast performance: Low memory requirements (around 75 MB of VRAM on iPhone) and low latency.
- Versatility: A single weight file handles generation, re-ranking, and suggestions.
What you can do
- Keyboard integration: Use it for smart Pinyin input in third-party mobile apps and clients like Vime.
- Desktop search: Apply it for fast phrase completion and candidate re-ranking in Rime on desktop.
- Local deployment: Run the INT8 version directly on your smartphone without sending data to the cloud.
Example
Running inference, verifying hashes, and generating text are handled via the script from the repository:
pip install -r source/requirements.txt
python verify_release.py --hashes
python infer.py --keys woxiangchifan --context 今天中午Read more
DetailsBenchmarks: Top-1 accuracy on the pinyin-zh test is 51.4% (84.4% on full Pinyin).
Hardware requirements: The Core ML package weighs about 23 MB, with memory usage on the iPhone 13 Pro reaching up to 75 MB.
Limitations: Context is limited to 64 tokens, and the model lacks dedicated safety tuning.
Training: Pre-trained on FineWeb2, followed by distillation and colloquial post-training.










Comments