MHN

Show HN: I trained a 125M model to autocomplete piano on-device

598 points by simedw·102 days ago·simedw.com·Show in HN

I trained a 125M-parameter transformer to autocomplete piano performances in real time (~108 notes/sec on an iPhone 15).

The idea is basically GitHub Copilot or Tabnine, except instead of prompting it with code, you prompt it by playing a few notes on a MIDI piano. The model then continues what you played, entirely on-device.

The app is free if anyone wants to try it. Happy to answer questions about the model, training, Core ML, or the many things that didn't work.

Add a comment on Hacker News →
1 of 117 comments
  1. Any way to share the actual model? I don't have an iPhone to run the app on.