khmer-tokenizer-sota (K-Token)
Linguistically aware KCC & RAC BPE tokenizer surgically grafted onto multilingual backbones, delivering 0% broken Khmer Unicode glyphs and cleaner decoding.
Everything I build under Vagabond404 begins with a real obstacle I ran into in Cambodia - whether practicing a 21-bar bamboo xylophone or trying to transcribe Khmer interviews without garbled syllables.
The Spark: In my first year learning Roneat Ek at Fine Arts School, practicing complex tremolo passages alone at home felt nearly impossible - sheet music formats didn't match Khmer numerals, and no software actually sounded like our instrument.
What I Engineered: An interactive 2D Roneat Ek instrument and desktop DAW supporting custom Khmer tremolo notation (like 4#3), Neural Drop Zone audio-to-score AI pitch tracking, open .roneat ZIP project archives, printable white papers, and a Python Plugin API with an AI Plugin Creator companion.
Where It Went: Selected among the Top 5 finalists nationally at Cambodia's 2026 Mi-Nister National Innovation Competition organized by the Ministry of Education, Youth & Sport.
The Problem: Standard Whisper and BPE tokenizers shatter Khmer Unicode consonant stacks into fragmented bytes - inflating sequence lengths, burning compute, and garbling real spoken Khmer.
The Breakthrough: By designing K-Token (surgically grafted KCC & RAC BPE reducing Khmer tokens by 79.2% with 0% broken glyphs) and training open-source Wav2Vec2 and Whisper models across 728 hours of audio (653 shards), Khmer speech recognition dropped to 1.02%–1.18% character error rate while running fast on modest hardware.
Linguistically aware KCC & RAC BPE tokenizer surgically grafted onto multilingual backbones, delivering 0% broken Khmer Unicode glyphs and cleaner decoding.
Compact edge-ready Whisper Small paired with K-Token across 728 hours (22.27% WER), exported to CTranslate2 INT8 so local machines can transcribe Khmer without GPUs.
High-capacity Whisper Large-v3-Turbo backbone trained on 653 shards / 728 hours (27.20% WER) for studio documentaries and broadcast interviews.
Wav2Vec2 / MMS CTC model exported to ONNX INT8 under Apache-2.0 for lightweight inference - downloaded 155+ times by developers building Khmer tools.
Alongside cultural software and speech research, I maintain practical open-source infrastructure and local sites that keep our creative lab running every day.
Why I built it: Running AI tools smoothly on a repurposed laptop motherboard Linux server required zero-cold-start orchestration, SQLite long-term memory, and reliable background task management accessible straight from Telegram.
From coding websites for local Siem Reap communities - including a friend's KIT Computer shop and my Taekwondo club - to designing custom parametric 3D-printed server enclosures in OpenSCAD, software constantly meets physical craft.