CopilotCoding / GSM
PublicGSM — Geometric State Machine. A new type of AI architecture. No attention. No KV cache. No quadratic scaling. Just a fixed point in R^4096 being continuously deformed by a learned algebra of transformations. Trains fast, runs faster, sounds like Bach.
GSM (Geometric State Machine) is an AI system that learns to compose music by understanding patterns in existing MIDI files. Unlike traditional music AI that stores every note it has seen (which requires more memory for longer pieces), GSM works like a geometric sculptor—each note it learns reshapes a single, fixed point in a high-dimensional space. This means it can generate music of any length using the same amount of memory and compute. The project includes tools to process your music collection, train the AI to learn your preferred style, and generate new compositions. It was demonstrated training on 228 Bach pieces, producing convincing baroque piano music after about an hour on a consumer graphics card.
How It Works
Maybe you've been composing for years, or you just love a particular artist's style and want to explore what an AI can create in that spirit.
The system converts your MIDI files into a format the AI can understand and learn from, organizing everything so it's ready for training.
You train the model on your collection, and it discovers the underlying structure—what makes a melody feel right, how harmonies flow, the essence of the style.
Visualize loss curves, speed, and memory usage to understand how learning is going
Run benchmarks to see how quickly the AI can generate music, proving it works efficiently
You provide a starting melody or let it begin fresh, set how creative or conservative you want the output to be, and watch as it generates original music in your chosen style.
The AI produces MIDI files you can open in any music software, listen to in your browser, or share with others—authentic compositions inspired by what it learned.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.