Show HN: A language model that lives in a boot sector
Repository · https://github.com/kerlenton/bootgpt
First seen by Oriel on .
AI summary
bootgpt is a 16-bit real-mode character language model that boots from an MBR and generates hallucinated Linux boot logs on a 386 without an operating system.
- The 512-byte handwritten-assembly MBR loads an 11.5 KB int8 model from 23 following sectors and executes inference directly through BIOS services.
- The model uses character embeddings, one hidden layer, softmax, eight-character context, power-of-two quantization, and integer arithmetic implemented with imul and idiv.
- Training uses 3 MB of synthetic dmesg logs, with one kernel version and disk per session to make repetitive output appear plausible.
- Python simulates the assembly integer math and LCG sampler, and the generated outputs match the boot-sector implementation character for character.
- Users can build it with NASM, QEMU, Python, and NumPy, then boot the resulting disk image from USB on a BIOS-compatible machine.
#boot sector #language models #x86 assembly #quantization
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 105, latest observation ; +102 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 6, latest observation ; +6 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50315782 | https://github.com/kerlenton/bootgpt Read discussion |