Bootgpt Fits a Character-Level Language Model Into a 512-Byte Boot Sector Plus 23 Sectors of Weights
A.I. / news
Bootgpt Fits a Character-Level Language Model Into a 512-Byte Boot Sector Plus 23 Sectors of Weights
The MIT-licensed Show HN project writes fake Linux boot logs on a 386-class machine with no operating system. A rival project runs a Llama 2 model in 1,189 bytes.

A GitHub project called bootgpt boots a PC straight into a small neural network that writes fake Linux boot logs. Its author, kerlenton, published it under the MIT licence, and it was posted to Hacker News as a Show HN.
The README describes it as "A neural network that boots your PC." The boot sector is 512 bytes of hand-written assembly. The model is an 11.5 KB int8 file stored in the 23 sectors that follow.

What runs at boot
The boot sector loads the weights through BIOS interrupt 13h and prints through interrupt 10h. It then runs inference in 16-bit real mode. The README says there is "no OS, no C runtime, nothing."
The architecture is character embeddings, one hidden layer and a softmax output. The example output uses 8 characters of context. Weights are int8 with power-of-two scales. The README gives no parameter count.
The README says it runs on a 386. It can be tried in QEMU or written to a USB stick with dd and booted on a BIOS machine. Any keypress reboots it.
Training data and output quality
A script called corpus_gen.py generates about 3 MB of fake Linux dmesg logs, and the model learns to continue them. The author describes the result this way: "The machine wakes up and dreams a Linux boot log: timestamps, PCI bars, ACPI events for hardware that never existed."
The sample output in the README is rough, with garbled text and invented hardware. The README says the Python simulation and the boot sector output match "char for char." It gives no timing figures.
| Project | Code size | Model | Notes |
|---|---|---|---|
| bootgpt | 512-byte boot sector | 11.5 KB int8, 23 sectors | One hidden layer, 8-character context |
| sectorllm | 1,189 bytes | stories260K, 260K parameters | 5 layers, 8 attention heads |
The transformer comparison
The README compares bootgpt with other boot-sector projects, including sectorllm. That project's README, by the user rdmsr, calls it "The world's smallest llama2 inference engine" and says it "fits in 1189 bytes of x86 real mode assembly."
Sectorllm runs stories260K, a children's-story model with 260K parameters, 5 layers, 8 attention heads and a 512-token vocabulary. It switches the CPU into unreal mode so the KV cache fits. Its README says the model architecture and prompt are hardcoded, sampling is greedy argmax only, and the code is golfed so performance and precision are not optimal. It shows no licence.
The two projects make different trade-offs. Bootgpt keeps the code to one sector and uses a far simpler network. Sectorllm needs more than one sector for a full transformer pass.
What it is and is not
Bootgpt is trained for one task and is not a general text generator, per its README. It is a demonstration of how little code inference needs, not a usable model.
For other open-source projects that spread on GitHub, see Lightpanda 1.0 and claude-mem. The README names the corpus generator and the QEMU route, so anyone can try the 11.5 KB model for themselves.
Sources
More in A.I.
- 01Nanbeige4.3-33B Ships Under Apache-2.0 With a 524,288-Token Window and Self-Reported WinsNanbeige Team's 33B model is built as a teacher for smaller agents. Its own table has Qwen3.8-27B ahead on SWE-Bench Pro and GDPval.
- 02GPT-5.6 Sol Launched a Factorio Rocket on Peaceful Mode, With Hauling Done by HandBlogger Ryan Madden's single run took 13.5 in-game hours. The agent carried supplies between areas because it never linked some production lines.
- 03Mistral Large 4 Weights Are on Hugging Face, and the Card Disagrees With the Launch PostThe 1-trillion-parameter model is ungated under a custom licence, but its active-parameter count and two benchmark scores differ from Mistral's October 6 announcement.
- 04Anthropic Confirms Claude Code Rule Against Recreating Existing Games, as Reverse-Engineering Complaints Pile UpA two-sentence prompt change on Opus 5.5 is blamed for refusals on developers' own projects. Anthropic says original games should keep working.