I Deleted Linux (Zero-App OS v2.1 / MiniCPM5-2B)

Operating systems have too many apps. Linux has too many lines of C. So I deleted both, wrote a 113 KB x86-64 NASM kernel from scratch, and trained a 2.5B model to hallucinate playable x86-64 assembly games straight into Ring 3.

No Linux. No Windows. No C. No Rust. No gcc. No filesystem. No preinstalled apps.

You boot a 115,160-byte (113 KB) handwritten x86-64 NASM kernel with 0 GB of disk, map a 2.50 GiB Q8_0 fine-tune of openbmb/MiniCPM5-2B directly into physical RAM over NVDIMM, type flappy bird (or tetris, arkanoid, pong, dino, falling sand), and the model streams raw x86-64 assembly into a built-in Ring-0 micro-assembler and launches it live in a hardware-isolated Ring-3 W^X sandbox.

When a generated app crashes with a real CPU #PF page fault or #UD invalid opcode, Ring 0 traps the exception, pops a red diagnostic HUD, feeds the exact faulting line and CR2 address back to the local 2B model, and applies a 10 to 20 token surgical PATCH in ~0.3s.


Live Screenshots (0 GB Disk, 0 Preinstalled Apps, 0% GPU)

Every frame below was generated on bare-metal CPU by this exact model inside the 113 KB pure NASM kernel:

flappy bird (0-shot, 1,595 tok, 230 instr, 1,074 B) arkanoid (0-shot, 1,243 tok, 177 instr, 755 B)
Flappy Bird generated on bare-metal CPU Arkanoid generated on bare-metal CPU
Ring-0 #PF Hardware Trap HUD 27-Color Emerald Mandelbrot after 10-tok PATCH (~0.3s)
Ring-0 Page Fault diagnostic HUD Emerald Mandelbrot recovered at 60 Hz

What Is Inside This Crime Scene

Everything you need to either boot the OS in 10 seconds or inspect the weights in transformers / llama.cpp:

Path Size What it is
model.safetensors + config.json + tokenizer 4.7 GiB Full merged BF16 MiniCPM5-2B v2.1 fine-tune (SFT + 120-step QEMU GRPO + arcade pass)
zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm 2.50 GiB Packed bare-metal Q8_0 NVDIMM image (2,684,620,800 bytes) for Zero-App OS
gguf/minicpm5-2b-zeroapp-v21-q8_0.gguf 2.50 GiB Standard Q8_0 GGUF for llama.cpp
os/zero-app-os.elf 113 KB The entire OS (115,160 bytes, 19,138 lines of handwritten NASM, 0 lines of C, 0 gcc calls)
os/zero-app-os.iso 11.6 MB Bootable GRUB2 ISO for QEMU KVM or Proxmox

Boot It Yourself in 10 Seconds (Zero Linux Required)

1. Download only the OS + bare-metal weights (~2.5 GiB total)

hf download alesha-pro/I-Deleted-Linux-ZeroApp-2B \
  os/zero-app-os.elf \
  os/zero-app-os.iso \
  zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm \
  --local-dir ./zero-app-os

2. Boot in QEMU KVM (0 GB disk, 0% GPU)

Requires an x86-64 CPU with AVX2 + FMA + F16C (runs fine even on a 2014 Intel Xeon E5-2670 v3):

cd zero-app-os
qemu-system-x86_64 -enable-kvm -cpu host \
  -machine pc,nvdimm=on \
  -smp 16 \
  -m 3G,slots=2,maxmem=8G \
  -vga std \
  -object memory-backend-file,id=zmodel,mem-path=zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm,size=2684620800,readonly=on \
  -device nvdimm,id=nv1,memdev=zmodel,unarmed=on \
  -kernel os/zero-app-os.elf

Prefer booting through GRUB2 instead of -kernel? Swap -kernel os/zero-app-os.elf for -cdrom os/zero-app-os.iso.

3. Boot on Proxmox VE (Diskless VM, 0 GB Storage)

Copy zappm/minicpm5-2b-zeroapp-v21-q8_0.zappm and os/zero-app-os.elf to /var/lib/vz/zero-app-os/ on your Proxmox host, create a VM with 0 GB disk, cpu: host, cores: 16, memory: 3072, vga: std, bios: seabios, and add:

args: -machine type=pc+pve0,nvdimm=on -m 3G,slots=2,maxmem=8G -object memory-backend-file,id=zmodel,mem-path=/var/lib/vz/zero-app-os/minicpm5-2b-zeroapp-v21-q8_0.zappm,size=2684620800,readonly=on -device nvdimm,id=nv1,memdev=zmodel,unarmed=on -kernel /var/lib/vz/zero-app-os/zero-app-os.elf

4. What to type at zero-app>

  • Zero-shot generated games (written in raw x86-64 asm at runtime):
    • flappy bird (20-color animated Flappy Bird, Space to flap)
    • tetris (10-column Tetris, arrow keys)
    • arkanoid (5 neon brick rows, arrow keys)
    • pong (paddle vs AI)
    • dino (runner, Space to jump)
    • falling sand (interactive particle sandbox)
  • Instant Ring-0 hardware self-healing demos (keys 1 to 5):
    • 1 Ocean Waves (#PF null deref -> surgical PATCH -> 60 Hz recovery)
    • 2 Emerald Mandelbrot (#PF framebuffer guard page -> 10-tok PATCH -> 27-color fractal)
    • 3 Cyan Matrix Rain (#UD invalid opcode -> surgical PATCH)
    • 4 Blue Mandelbrot (#DE divide by zero -> surgical PATCH -> 28-color fractal)
    • 5 Canary Crossing (#PF guard page -> surgical PATCH)
  • Press ESC at any time to kill the Ring-3 sandbox and return to zero-app>.

How It Was Trained (4x RTX 3090 + 16 Live QEMU KVM Oracles)

Pure SFT completely collapsed on held-out prompts (0/32 compiled) because the 2B model got trapped unrolling memory loops until hitting the token ceiling.

Running 120 steps of GRPO against 16 live bare-metal QEMU KVM oracles fixed it. Every candidate rollout had to assemble cleanly inside the Ring-0 micro-assembler, survive 60 frames in Ring 3 without faulting, draw multicolor animation, and respond to keyboard/mouse input. A final v2.1 arcade SFT pass on QEMU-verified programs pushed validation surgical PATCH@1 to 90.0% and token accuracy to 93.04%.

Zero-App OS RL and GRPO training metrics

Stage / Metric Result
Held-out 0-shot compile_ok (pure SFT -> GRPO step 90) 0.0% -> 56.2%
Validation closed-loop pass@6 (73 prompts) 0.0% -> 24.7%
Ring-0 surgical PATCH@1 on #DE divide-by-zero and #PF null deref 100.0%
Ring-0 surgical PATCH@1 on #UD invalid opcode and #PF FB guard 87.5%
Average surgical PATCH length 11.8 tokens (~0.3s on bare-metal CPU)
v2.1 validation PATCH@1 (20 held-out arcade faults) 90.0% (18/20)
v2.1 validation token accuracy 93.04% (eval_loss = 0.2427)

Pure Handwritten x86-64 NASM vs GCC -O3

Porting the final 3 C modules (zapp_smp.c, zapp_llm.c, zapp_ai.c) to pure handwritten NASM shrunk the binary by 37.6% (181 KB -> 115,160 bytes), matched C greedy output byte-for-byte, beat GCC -O3 on both prefill and decode, and added an honest bare-metal Longest-Common-Prefix (LCP) KV-Cache.

Pure NASM vs GCC -O3 and Prefix KV-Cache speedup

Benchmark (20T AMD EPYC 7642, Q8_0, 0% GPU) C+ASM (GCC -O3) 100% Pure NASM Delta
Kernel ELF size 181 KB 115,160 B (113 KB) -37.6%
Prefill throughput 248.7 tok/s 277.6 tok/s +11.6%
Decode throughput 34.3 tok/s 37.6 tok/s +9.6%
2,354-token Prefix KV-Cache (cold -> warm) 13,277 ms 93 ms 142.8x faster

Side Effects & Disclaimers

  • No filesystem can be corrupted because there is no disk.
  • No bloatware because there are literally zero apps installed until you ask for one.
  • Strict hardware sandbox: generated apps run in Ring 3 with W^X/NX page tables, framebuffer guard pages, and a bounded instruction budget. Still, please do not run your production database or banking app on a 2B model writing raw x86-64 assembly.
  • Prompting reality check: this is a specialist bare-metal x86-64 micro-assembler model, not a general-purpose chatbot. Stick to short arcade/graphics prompts (flappy bird, tetris, arkanoid, pong, dino, falling sand) or the built-in #PF/#UD self-healing presets (1 to 5). Creative open-ended prompts may either invent something unexpectedly cool or spend 2,600 tokens trying to reinvent Pong.

License & Attribution

Released under Apache 2.0, inheriting the license of openbmb/MiniCPM5-2B.

Downloads last month
1,250
Safetensors
Model size
3B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for alesha-pro/I-Deleted-Linux-ZeroApp-2B

Quantized
(148)
this model
Quantizations
4 models