Exploring the technical innovation and significance of achieving a 150.7 tok/s AI inference speed—137x faster than standard llama.cpp—via a bare-metal C language engine on a 2006 PlayStation 3.
Imagine this: you pull out a game console from nearly two decades ago that has been gathering dust in the corner of your drawer, turn it on, and discover that it can answer questions using modern artificial intelligence (AI) models much faster than a smartphone. Would you believe it?
Recently, the developer community has been exploring fascinating experiments to push vintage hardware limits to extremes using a bare-metal (running programs directly on hardware without an operating system) approach, stripping away bulky operating systems and complex standard libraries that we use daily [Source 1, Source 2]. Among them, the feat of running a large language model (LLM) at ultra-high speed on Sony’s PlayStation 3 (PS3), released in 2006, was enough to astonish engineers worldwide [Source 1, Source 14].
Today, let’s explore step by step what this remarkable technical achievement is and what it means for us, as if enjoying a cup of coffee together.
Why Does This Matter?
We often think that “to use a good AI, you need a latest-generation graphics card (GPU), an expensive MacBook, or a cloud server” [Source 4, Source 9]. Indeed, today’s artificial intelligence models require tens of gigabytes of memory and run through numerous software layers on massive operating systems like Windows or Linux.
However, this approach causes unnecessary resource waste. To use an analogy, it is like trying to sprint while wearing multiple layers of thick winter clothes. Just as when cooking at a popular local street food stall, all you really need is a gas stove and a frying pan rather than a luxurious kitchen interior; AI computation can also achieve incredible speed and efficiency if it can communicate directly with the hardware.
The ultra-optimized bare-metal engines that have emerged recently eliminate the “middleman” of the operating system and unlock 100% of the hardware’s performance [Source 2, Source 15]. This opens up the possibility of running powerful AI lightly and rapidly even on low-power edge devices, legacy home appliances, or embedded systems placed in extreme environments.
Easy Understanding: The Analogy of a “Camping Mini Burner” vs. a “Large Kitchen”
It’s easy to think of it this way:
Modern AI frameworks (such as llama.cpp) are like a massive modern kitchen where chefs from all over the world gather. Equipped with ovens, dishwashers, and dozens of cooking utensils, you can cook anything, but running that kitchen alone consumes immense power and time [Source 1, Source 15].
On the other hand, a bare-metal C language engine and assembly optimization (such as llm.asm) are like packing a compact mini burner into your backpack when climbing a challenging mountain peak [Source 1, Source 2]. By removing all unnecessary pots and tools and leaving only the minimal structure needed to boil ramen, the water boils instantly the moment you turn on the flame.
Skipping complex system software like operating systems (OS) or the C standard library (libc) entirely, and directly accessing hardware instructions and memory to execute AI computation code, is the core of this bare-metal approach [Source 2, Source 15].
Current Status and Astonishing Records
Just how much performance are these extreme optimizations showing? Looking at recently reported milestone records, your eyes can’t help but widen:
- The Resurrection of the 2006 PS3: A bare-metal C LLM engine specially designed for the PlayStation 3 released in 2006 recorded an inference speed of a staggering 150.7 tokens (tok/s). This is a whopping 137 times faster compared to existing general-purpose infrastructure engines like
llama.cpp[Source 1, Source 14]. A miracle was staged where a legacy game console from nearly two decades ago churned out prompt answers comparable to modern AI chatbots. - An Ultra-Mini 12 KB AI Engine (
llm.asm): Thellm.asmproject packed the inference capabilities of the Qwen3-0.6B model into a bare-metal footprint of just 12 KB. Based on native UEFI, it flawlessly handles 64-bit memory management and multi-core inference without relying on Linux, Windows, or standard C libraries [Source 2, Source 15]. - 54% Speedup from Removing the OS: By completely removing the Linux environment and traditional inference framework layers and running in a custom OS console environment, a 54% faster performance improvement was verified on the same model [Source 15].
- Challenges in Standard CPU Environments Without Graphics Cards: Beyond specialized game consoles, projects like
openset-llmrun the 2.7 billion parameterQwen3.8-27Bmodel at speeds of 17–20 tokens per second even on standard CPUs (central processing units) equipped with only 8GB of RAM and no graphics card (GPU). This is about 4 times faster than previous top-speed CPU engines [Source 9]. - Advancements in Large Models: Meanwhile, in the high-performance ecosystem, models like DeepSeek are being released in 7B and 67B parameter versions, proving their ability to outperform existing major models in reasoning, coding, and mathematics [Source 6]. However, at the end of the effort to run these massive models more lightly and agilely lies precisely this bare-metal optimization.
Where Are We Headed?
This ultra-low-level optimization trend gives us several clear implications:
First, the extension and rebirth of hardware lifespans. Legacy devices or embedded equipment that used to be discarded for poor performance can now be transformed into powerful local AI agent hubs through dedicated bare-metal engines.
Second, maximization of energy efficiency. AI computations that previously relied solely on massive cloud datacenters can drastically lower power consumption by stripping away unnecessary software overhead. The utilization of AI will explode in environments with strict battery constraints, such as smartphones, wearable devices, drones, and IoT devices.
We are entering an era where breaking free from the stereotype of “needing to buy better parts” and focusing on “how lightly and exquisitely software can be carved down” becomes a new pillar driving the popularization of AI.
MindTickleBytes’ AI Reporter Perspective
Abandoning the immense achievements of civilization like operating systems and frameworks to face the primitive breath of hardware directly in bare-metal development is like modern people putting down bicycles or cars and sprinting across the earth barefoot. Although the implementation process is arduous and rugged, the 137x speed explosion encountered at the end powerfully reminds us where the essence of technology lies. Isn’t this irony—where the most advanced intelligence opens its eyes on the oldest iron plate—the true romance that technology grants?
References
- Bare-metal C LLM engine for a 2006 PS3 (150.7 tok/s, 137x llama.cpp)
- alesha-pro/llm.asm: Qwen3-0.6B inference (12 KB),bare-metal…
- Локальная LLM без видеокарты: запуск на CPU в 2026 году
- Lemonade — локальный LLM-сервер при поддержке AMD…. / Хабр
- deepseek-llm
- A 27B AI With No GPU (8 GB RAM, 20 tok/s) - YouTube
- hckrnews - Hacker News sorted by time
-
[54% быстрее без Linux и llama.cpp: самодельная ОС на… AI-Stat](https://www.ai-stat.ru/news/2026-11-30-bare-metal-inference-no-linux-llamacpp)
- 13x
- 54x
- 137x
- 12 KB
- 1.2 MB
- 54 MB
- 15%
- 54%
- 137%