Jai Status Report 11/21

Worked on retraining/improving model based on the flawed input.

Researched and used the album Prof Zajdel suggested “Well I should have learned to play the piano” as reference

Worked on output smoothing to improve the sound quality

Took input from friends and family in order to rate and judge quality

Jai Status Report 11/14

More fine tuning on manual listening tests in order to build a small sample dataset of good/bad sounding songs

Worked on evaluating the inputs where music is malformed/not as accurate so that the output can recognize input and still produce reasonable sounding output. This is something which may or may not be possible. In real life, if the player is a complete novice or is not very good at staying on tempo or other problems etc, then bandmates also will have a hard time playing along since they can’t understand what the guitarist is trying to play

Jai Status Report 11/7

Did manual ear tests for model which helped tune and allowed information for post processing to make the output sound smoother

Synced up demo with the teensy to simulate what output would look like\

Created demo interface for intern demo to display and actually output music easier

Jai Status Report 10/31

Tested generation manually in order to tune the models and see current performance.

Currently waiting on the hardware to test the whole pipeline to determine what needs to be fixed. The manual test is good but not really indicative of how an actual performance would sound like given the latency and jitter matters

On track, hopefully with be able to test using some hardware by next week

Jai Status Report 10/24

Did end to end latency tests on personal laptop

sizefirst accompaniment note, p50 / p95 (ms)with 80 ms sort window, p50 / p95
XS 10M2.3 / 3.532 / 71
S 26M5.1 / 7.136 / 74
M 53M9.7 / 16.241 / 82
L 114M18.5 / 26.350 / 92

Ingesting the chord in one pass instead of token by token is 5x faster with identical outputs. The model is within the 30 ms target without the sort window. The 80 ms sort window is now the latency: only 30 to 46% of chords finish under 30 ms.

Accuracy

sizecleanraw live input40 ms sort80 ms sort
S0.7590.4690.6630.737
M0.7740.4790.6770.748
L0.7770.4880.6870.756

Tested music theory stuff for chord prediction, as that might help improve accuracy. It really only helped when theres short context. Longer context actually teaches the music theory

I added key, diatonic, harmonic-rhythm, loop and stock-progression features. Next-bar chord top-1: with 4 chords of history 0.453 to 0.508 (+5.5); with 8, +1.7; with 32, +0.5 (within noise).

On schedule.

Nextweek figure out the sort window vs latency conflict. Use theory features more to test. Start the pretraining on M

Jai Status Report 10/17

For prediction model statistics

chords of history top-1 top-3 top-5 top-10 next-chord-change top-1
1 0.375 0.634 0.750 0.884 0.328
4 0.453 0.683 0.782 0.896 0.412
8 0.497 0.712 0.801 0.903 0.454
16 0.527 0.732 0.814 0.909 0.484
32 0.558 0.752 0.827 0.914 0.517
64 0.583 0.768 0.838 0.918 0.539
128 0.590 0.773 0.841 0.920 0.542
label classes top-1 repeat-last margin
full 49 0.590 0.289 +0.301
major/minor only 25 0.620 0.320 +0.300
root only 13 0.656 0.362 +0.294

The above chart is about removing complexities from the chosen chord and counting those as the same chord or separating them.

error type share of errors
predicted the previous chord again 33.4%
wrong root, unrelated 23.6%
right root, wrong quality (e.g. 7 vs major) 15.5%
root a whole tone away 10.2%
fifth or fourth away, same quality 9.1%
no-chord involved 5.0%
relative major/minor 3.3%

It is very possible that the 80% goal is unreasonable. In many songs at any given point, a player is strumming the same chord over and over again so it makes sense that this is a prediction error. Additionally adding more training data didnt help after ~60k.

Tested different model sizes for generations

size params nats/note (lower is better) top-1 clean top-5 clean top-1 with +/-30 ms jitter top-1 jitter + 80 ms sort p95 decode, ms/token train hours per epoch
XS 10M 1.665 0.748 0.923 0.490 0.730 0.90 3.6
S 26M 1.592 0.758 0.928 0.499 0.741 1.42 8
M 53M 1.521 0.772 0.934 0.512 0.754 1.85 14
L 114M 1.479 0.778 0.936 0.521 0.762 3.25 25
XL 207M 1.467 0.778 0.935 0.525 0.761 3.94 43
XXL 404M not trained – – – – 10.13 about 90

This metric is given the previous information, how accurate is the generated token given the prediction.

The largest model ran out of memory on the 32gb gpu so I couldnt train it

Behind on training the XXL model but most likely I’ll skip it. It’ll be slower based on the trend, not helping accuracy.

Next week i’ll do pretraining for M or L model. Measure latency on laptop(or just keep it and test on the lab device and try to sample input and output on it.

Do more chord evaluation and latency, including when paired with the predictive model

Jai Status Report 10/3

Some results from what I tested
Transformer overfit test: loss 0.014, confirming the training loop and model heads are correct.

Short training run (25.9M-param model, 6,000 steps, ~200M tokens): next-note top-1 accuracy 67.7% on clean input, 46.1% under timing jitter.

LightGBM next-chord baseline on the full 409,936-song corpus: 50.7% top-1 on next-bar chord, 46.8% on next-chord-change

 

Progress is ahead. Next week I hope to see if 80% goal is actually reasonable given the current scores. If i can get it up to ~65 i’ll keep trying for 80%

Jai 9/26 Status Report

Began training on custom dataset for next note prediction. Using LightGBM as  model. Trained on all instruments in order to teach the model music theory. Will finetune on guitar specifically after base training reaches acceptable level.

Did research and choose the options I will run tests on for different model options. Features are still up to testing and I will change those more than the model options

Small test result

Progress is on schedule. Plan to finish the larger training and analyze results. Will experiment with many different optimizations and features in order to increase accuracy. Should run many different ablations next week to test accuracy and inference latency.

Ran on the AMD GPUs in the 1305 clusters. Some stats

GPU benchmark matmul throughput bf16 122 TFLOP/s, fp32 1.2 TFLOP/s (~100x gap)
Test suite 16 unit tests all pass on-box
Overfit test 1,000 fixed windows, 3,000 steps loss 18.1 → 0.012; guitar/bass/drum head accuracy 99.8%+
Training slice 18,284 songs, 6,000 steps, 197M tokens (~1 epoch of a 5% slice) held-out loss 1.79, next-note top-1 67.5% (clean), 47.6% (±30ms jitter)

Memory / throughput

Peak VRAM: 7.6 GB of 32 GB (24%)
Step time: 224 ms for batch 32 × 1024 tokens
Training throughput: ~146,000 tokens/s
Model size: 25.9M params (6-layer decoder, RoPE + SwiGLU)
bf16 check: every matmul in forward+backward confirmed bf16, zero fp32 fallback

Jai Status Report 9/19

Isolated, grabbed and parsed relevant data and dataset into my custom dataset in order to have data to train the prediction model

Currently researching best prediction models for this kind of word to allow for low latency prediction

Waiting on getting compute in order to actually train anything.