# I trained a 125M model to autocomplete piano on-device

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…

- **Page:** https://magpie.gallery/i/i-trained-a-125m-model-to-autocomplete-piano-on-de-gfdy
- **Type:** Link to an idea elsewhere
- **Category:** Creative & design
- **Runs on:** ios
- **Tags:** piano, midi, autocomplete, on-device, transformer

## Source

Web · simedw: I trained a 125M model to autocomplete piano on-device

- **Original:** https://news.ycombinator.com/item?id=49373456

> 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. https://simedw.com/2026/08/20/midi-autocomplete/

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
