Developer Replaces Linux With a 24 KB Assembly OS for AI Inference

Text-mode VGA console showing Qwen3 running on the assembly kernel

Software developer Alexey Fateev presented a specialized operating system on November 25, 2026, that starts directly into a Qwen3-0.6B language-model session without a Linux guest kernel. The project, llm.asm, implements its inference runtime and operating-system code in x86-64 assembly. Fateev reports up to 54% higher CPU decoding throughput than llama.cpp running under Linux on the same AMD EPYC 7642 machine.

Original November 25 announcement by @superalesha. Open on X.

What actually fits inside 24 KB?

According to the MIT-licensed project repository, the default stripped executable occupies 24,252 bytes, approximately 23.68 KiB. It contains the specialized kernel and inference code, not the complete model. Qwen3’s quantized weights and associated data occupy another 613.66 MiB in a separate file. The project also allocates memory for cached attention state and temporary computation.

The kernel initializes processor execution, creates memory mappings and starts additional cores through the local Advanced Programmable Interrupt Controller. It provides basic VGA console, PS/2 keyboard and serial interfaces for interactive chat. Reported kernel initialization takes 74–94 milliseconds; loading an ISO and starting a virtual machine can take considerably longer.

How the performance compares with Linux

The repository describes a CPU-only benchmark with a 34-token prompt and 64 generated tokens, using the Q8_0 model on AMD EPYC 7642. The published comparison uses three-run averages, with different model-file layouts for the two runtimes. The standalone kernel runs inside a QEMU/KVM guest for the EPYC comparison.

Threads / vCPUsLinux llama.cpp (tok/s)Assembly OS (tok/s)Increase
116.6323.6742.3%
451.0878.8954.4%
880.79118.0846.2%
16103.03134.9431.0%
Source: llm.asm repository, November 25–26, 2026. Developer-reported decode throughput, not independently reproduced. Increases calculated relative to llama.cpp.

Four threads produced the largest relative gain among the four configurations shown. At 16 threads, throughput reached 134.94 tokens per second, about 31% ahead of the corresponding llama.cpp result. The assembly inference program also runs under Linux and already outperforms the selected llama.cpp baseline by approximately 18–36% across the tested thread counts. Removing Linux therefore cannot account for the entire observed difference.

Developer screenshot of a diskless Proxmox guest running Qwen3
Diskless Proxmox demonstration on Intel Xeon hardware. Source: Alexey Fateev, llm.asm repository. Featured cover separately shows the QEMU/KVM console.

Why a specialized kernel can be faster

The optimized runtime combines integer vector operations, compact weight scales, predictable memory access and parallel attention. Its memory mappings use 2 MiB pages, reducing potential translation overhead relative to 4 KiB mappings. Fateev attributes an additional performance gain to the standalone configuration. Separating the effects would require matching numerical kernels, page sizes, processor affinity, memory layout and virtualization conditions.

The project reports matching 64 greedy output tokens against a PyTorch FP32 reference, with cosine similarity of 0.99965 for the optimized inference implementation. A short correctness test does not establish accuracy across all prompts or models.

A dedicated AI appliance, not a general-purpose Linux replacement

As PC Watch reports, the kernel lacks ordinary disk drivers and runs from memory. Its minimal design is useful for exploring inference appliances, but it does not supply the broad networking, application isolation, device support or service management expected from a general-purpose operating system. A diskless guest also still relies on its hypervisor host.

Related coverage includes AMD local AI acceleration, memory-integrated microcontrollers, alternative parallel processors and configurable RISC-V processors. The open-source experiment demonstrates how far a workload-specific software stack can be reduced, while leaving broader performance and security questions for independent testing.

We volunteer daily to ensure the credibility of the information on this platform is Verifiably True. If you would like to support to help further secure the integrity of our research initiative, please scan the QR code below.

BitcoinVersus.Tech donation QR code
Support independent research.

3 responses to “Developer Replaces Linux With a 24 KB Assembly OS for AI Inference”

  1. […] BitcoinVersus.Tech reporting examines LocalDot’s locally controlled smart speaker, a specialized assembly AI runtime, alternative Linux software architectures and software-defined audio using MacBook […]

    Like

  2. […] Related coverage examines Sonos natural-language control, locally controlled smart speakers, low-power wireless AI processors and specialized inference software. […]

    Like

  3. […] can be tested against deterministic acceptance criteria. Our earlier coverage of local AI agents, AI inference infrastructure, AI-assisted circuit design and industrial machine vision illustrates the diversity of applications […]

    Like

Leave a Reply