Top
Best
New

Posted by simedw 11 hours ago

Show HN: I trained a 125M model to autocomplete piano on-device(simedw.com)
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.

461 points | 103 commentspage 5
abidlabs 7 hours ago|
Are the weights of the model available?
noman-land 7 hours ago||
This is honestly astonishing and the first "AI music" I've heard that has the potential to sound beautiful. I always thought that MIDI would be a perfect format for this. Glad to see this person make it happen!
jwr 10 hours ago||
> Eventually I used Gemini 3.5 Flash for pairwise evaluation

But, but… wouldn't that be… (gasp) DISTILLATION?

Fun project!

Tostino 7 hours ago|
The horror!
bubblegumcrisis 4 hours ago||
This is disgusting. I'm sorry. All the positive comments. It's like Waymo's posts on HN. Incomprehensible to me.

I guess no one actually wants to learn about harmony, about voicing, and voice leading, spend the hours. No one wants to learn how to actually play an instrument. I guess no one is willing to do the work.

They want to just press some keys and declare that they made what the computer generated.

This is all so depressing for me.

I think in the near future, the world will divide, and all of the people who wish to think and do, will put up a wall separating themselves from the hu-bots that infest the rest of the planet. It's alright I guess. I hope there isn't a slaughter of one side or the other.

jamilton 4 hours ago||
>I guess no one actually wants to learn about harmony, about voicing, and voice leading, spend the hours. No one wants to learn how to actually play an instrument. I guess no one is willing to do the work. They want to just press some keys and declare that they made what the computer generated.

I don't understand that as a takeaway. Even if this worked perfectly, it would not be meaningfully stopping or discouraging anyone from learning music, and no one is claiming that what this models outputs is something the player played. It's a toy that someone made presumably because they like piano.

Ylpertnodi 1 hour ago||
It's only moving air.
aghilmort 9 hours ago||
really incredible work! great use case, impeccable learning strategy, congrats!
amarbirsingh 7 hours ago||
Pretty Impressive!!
micromacrofoot 7 hours ago||
I too am currently learning to play Sonatina in G Major, it's a fun one! the end is surprisingly tricky
mandeepj 8 hours ago||
Gemma 4 E2B was too heavy for your needs?
leilakhanova 1 hour ago|
[flagged]
More comments...