Personal project: a tiny transformer that predicts blood glucose, fine-tuned with LoRA
A developer pretrained a ~31K-parameter encoder-only transformer on synthetic CGM data from a million simulated type 1 diabetics, then adapted it with LoRA to 80 days of personal data. It predicts glucose up to two hours ahead, and the code is open source.
Why it matters
A neat example of simulator pretraining plus LoRA personalization at a very small scale.
What happened
1 min readA developer pretrained a ~31K-parameter encoder-only transformer on synthetic CGM data from a million simulated type 1 diabetics, then adapted it with LoRA to 80 days of personal data. It predicts glucose up to two hours ahead, and the code is open source.
Our analysis
The 'competitive with published models' claim rests on one person and 35 test days, so it doesn't generalize. The author notes it is worse than they are at predicting near-term hypoglycemia. A hobby project, not a medical tool.