Skip to content
LATEST
Technology

bootgpt fits neural-net inference into 510-byte boot sector

The GitHub project loads an 11.5 KB int8 model from 23 sectors and prints synthetic Linux boot messages without an operating system.

bootgpt fits neural-net inference into 510-byte boot sector

bootgpt, a GitHub project posted to Hacker News on Oct. 31, runs a neural-network inference engine inside a 510-byte master boot record, according to its repository README.

The experiment pairs that runtime with an 11.5 KB int8 model loaded from 23 later disk sectors, showing a size-coding trade-off versus sectorllm’s about 1.2 KB assembly runtime for a five-layer Llama2 transformer.

The master boot record is the first 512-byte sector a BIOS-based PC reads when it starts. In bootgpt, the README said the boot sector contains code only, while strings, model weights and the vocabulary table sit outside it.

The README describes the project as “A neural network that boots your PC.” It said the code runs in 16-bit real mode on a 386, without an operating system or C runtime, and prints fabricated Linux boot messages for hardware that does not exist.

The model is narrow by design. The README said corpus_gen.py creates 3 MB of fake dmesg, the kernel log format used by Linux, and train.py trains a character-level network with embeddings, one hidden layer and a softmax output layer. It then quantizes the parameters to int8, meaning 8-bit integer values, so the boot code can use integer multiplication and one integer division operation.

The repository said train.py simulates the same integer arithmetic used by the assembly implementation, including its sampler, so Python and QEMU output can be compared character by character. QEMU is an emulator used to run and inspect the boot image without physical hardware.

The project sits in a boot-sector demo tradition that includes chess, a small operating system, a BASIC interpreter and a C compiler inside 512 bytes, according to the README. bootgpt takes a narrower approach than sectorllm: it keeps the inference engine within the boot sector but uses a small one-hidden-layer network trained only to generate boot-log text.

The materials do not include benchmark results, independent verification or claims of general-purpose language ability. GitHub showed 26 stars, 0 forks and 3 commits for the repository on Oct. 31.

Source: GitHub repository README and Hacker News listing, Oct. 31, 2026

More stories

Latest news