Deploying responsive generative models directly to client hardware requires careful representations rather than simply scaling parameters. A developer trained a 125 million parameter transformer to autocomplete piano performances locally on mobile hardware, achieving throughput of 108 notes per second on an iPhone 15.
The primary engineering challenge was not raw model capacity, but sequence tokenization. Standard audio formats require massive compute, whereas MIDI provides structured event streams. Translating multi-track performance data into a concise, discrete event vocabulary allowed a small architecture to capture harmonic timing without overwhelming the attention window.
Data hygiene and post-training delivered the largest qualitative leaps. Pruning non-piano artifacts and applying Direct Preference Optimization transformed chaotic continuations into musically coherent phrases. Small models paired with clean domain representations can outshine heavy general-purpose architectures in latency-critical edge applications.
Tailoring tokenization to domain physics beats brute-forcing model scale every single time.













