A dev has peeled off the OS to make a small LLM run directly on metal. So with the OS (all that system overhead which takes so much memory and processing cycles!) out of the picture, now we can really see how much of our time is being wasted on system latency for those of us interested in efficiency for local AI inference.
Custom assembly OS boots in 74 ms and beats Linux llama.cpp by 54% on AMD EPYC 7642
And yes, removing kernel does indeed improve the performance for some use cases, see the speedup. asm-llm-os is a pure x86-64 assembly from the ground up OS. Not using Linux, Windows, C, Rust, or any standard library. Boot time is between 74ms – 94ms.
Go straight into 64bit Long Mode. Wakes up all CPU cores with the APIC. Copy model weights directly from RAM physical.
– Qwen3-0.6B (Q8_0): 614 MiB RAM needed. On AMD EPYC 7642, up to 54% faster than native llama.cpp on Linux. (e.g., 134.94 tok/s in 14 threads bare metal vs. 103.03 tok/s in 14 threads Linux).
– The ELF version of this code on Linux is also 18% – 36% faster than llama.cpp Live chat, multi-turn chat with VGA, PS/2 keyboard and serial output. bit-exact across different # of threads. pyTorch FP32 match. Hybrid BIOS/UEFI ISO builder in release.
MIT-licensed for the whole world! – 25 November 2026: source code, ISO builder and proxmox setup guide published Code hosted on Github for easy download So now we know. Custom kernel in assembly can cut boot time and LLM inference latency to the small ones considerably.



134 tok/s on a 2014 server chip is nice but that hardware is basically e-waste. I need to see this on a modern Ryzen to know if the overhead saving is worth the maintenance headache.
The 74ms boot time is actually the most interesting part here. We are so used to waiting for kernel init that we forget how much latency is just bloat.
Be careful with the 54% figure. That peak is only at 4 threads. At 16 threads the gap narrows to 31% because Linux handles thread scheduling better at scale.