Show HN: I trained a 125M model to autocomplete piano on-device
- AI
- Music
- Mobile
- Developer Tools
The post showed a piano autocomplete system that takes live MIDI input, feeds it into a 125M parameter transformer, and generates a continuation on an iPhone 15 at roughly 108 notes per second. The author framed it as a music version of Copilot, with the model running entirely on-device through Core ML, trained on a few hundred thousand MIDI files totaling about 300 million note events. Follow-up answers filled in some of the engineering details. Pretraining the 125M model took about half a day, preference tuning used only about 700 DPO examples and finished in minutes on a single GPU, and the biggest speed gain came from switching to compound note events, which cut the number of autoregressive passes per note by about 5x.
If you build creative AI tools, the opportunity here is not full replacement but tight, low-latency co-creation inside existing workflows. The technical lesson is just as important: representation choices and product integration may matter more than scaling the model when you need real-time usefulness on consumer hardware.
-
simedw.com
- Discuss on HN