Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

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.

Published Read the original
Personal project: a tiny transformer that predicts blood glucose, fine-tuned with LoRA

Why it matters

A neat example of simulator pretraining plus LoRA personalization at a very small scale.

What happened

1 min read

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.

inscraper analysis

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.

More in Research