Lurker News
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.

Comments (117) 65 threads

Earlier comments
arkmm1 reply#
Very cool! Can you say a little bit about the size of the DPO training examples and how long training took?
simedw#
For DPO I only had around 700 preference examples, so not much data at all. That took about 12 minutes to train on a single GPU.

Pretraining was obviously a a lot slower, the 125M model took roughly half a day.

abidlabs#
Are the weights of the model available?
agentdash007#
Omg! That's a great project. Will try doing it with some different instrument
nl#
This would be great to be able to use via Web Midi. That size LLM will run well in a browser.

Load more comments