Bare Metal Qwen

https://github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os

Comments

yunwei37Nov 29, 2026, 4:18 AM
we are also building similar bare metal os for inference/training, and with gpu support:

https://github.com/yunwei37/modelos

It can get much faster in cold starts, mutiple model, short request and small models (still optimizing)

No cuda, no linux, no process & filesystem & userspace

swatcoderNov 26, 2026, 12:01 AM
It looks like this is one subproject in a larger exercise and the top-level README presents the benchmarks that peg this against a pure-assembly Linux ELF (also in this repo) and llama.cpp:

https://github.com/alesha-pro/llm.asm/blob/main/README.md

george_maxNov 26, 2026, 2:30 AM
For smaller models on scarce compute, this could be useful for optimizing speed. But for frontier models, the additional layer -- that is, Linux or other management tools to host it -- is incredibly minimal in terms of resource allocation relative to the resources used by the frontier model.

Apart from this, I really don't think there is a benefit or use case. Maybe an ASIC instead of a GPU would be more beneficial to LLMs in terms of efficiency.

sandworm101Nov 26, 2026, 9:54 AM
Lack of an underlying OS significantly reduces the potential attack surface. That is a big win for a long-term deployment of a connected system. It also means much greater predictability and reliability over time. No silly OS fonts update should ever brick such a device.
o_-_oNov 26, 2026, 2:30 PM
Please release a "OS.ASM" without AI :-) "A standalone bootable x86-64 operating system that runs directly on hardware or KVM with no Linux, no Windows, no C, no Rust, and no libc." Maybe have some basic tools like ssh/curl built in. This will be much more useful to everyone.
andaiNov 26, 2026, 3:57 PM
Is it okay if your AI-free OS is also built by AI?
o_-_oNov 26, 2026, 7:28 PM
Only OS/Soft that created by real humans.
throw1234567891Nov 27, 2026, 11:27 AM
So not even code generators?
Revanche1367Nov 26, 2026, 2:45 AM
I was just ruminating as a sort of joke on HN a couple of days ago that LLMs could in the near future be the “OS” in a sense, directly running on metal and launch other programs, perhaps even generate them from scratch on the fly. People weren’t very appreciative it seemed, but nice to see others have been going farther ahead with a similar thought process.
NitpickLawyerNov 26, 2026, 6:46 AM
> LLMs could in the near future be the “OS” in a sense

If you want to see how much against this notion people were, go back to karpathy's same take in 2023. Today it's much closer than it was and as evident in the comments below, people have done bits and pieces of this already.

It has become evident that LLMs can serve as an input layer at least. Understand intent, and work with "tools" to facilitate that. What will be interesting to watch is how several concepts will further merge, and lines blurred between APIs, ABIs, runtimes, frameworks and libraries. There's a future where these all become "combined" somehow into software on demand, based on an intent. I want a document processor that tabulates data in this format and outputs visualisations in this other format for each event that looks like this, coming from this data source.

altmanaltmanNov 26, 2026, 4:37 PM
So basically for mainstream users: your laptop is not windows, its copilot. That seems hellish, more than current windows
clatesNov 26, 2026, 4:45 PM
You should largely ignore what it means for mainstream users, as they will eat whatever slop is served to them by their megacorp de jure.

If your average joe gets Copilot with integrated subliminal advertising; but I get to get _actual_ jarvis with frontier intelligence, 3d modeling and printing, robotics, etc.

I'll take that in a heartbeat.

altmanaltmanNov 26, 2026, 5:21 PM
Like what are we talking about here? I'm not sure what you mean by _actual_ javris; it's like saying the _actual_ daredevil. It is a comic book character.

And it will be a hellish experience for everyone, including the average Joes, because using something like even Windows is 10x better UX than having a chatbot be your laptop.

alpaca128Nov 26, 2026, 1:21 PM
I hope this never becomes the default. Nothing on a computer system annoys me as much as software actively working against me by trying to help based on broken heuristics.

It would be nice if it could, say, automatically filter items on a website or do repetitive things that are just a bit too dynamic for a macro/script. It better not do that without asking or with popups resembling what Clippy did on Windows, though I'm not getting my hopes up.

baooooooooooooNov 26, 2026, 4:53 AM
I saw this talk from a group working on an implementation akin to this. the demo is neat, generating appropriate cards and widget-ish apps specific to the task at hand.

I think aspects of it a will likely win out, but some software is likely to remain more static - I suspect there are applications for both. https://m.youtube.com/watch?v=ps-VCoIo_FQ&ra=m

grondiluNov 26, 2026, 8:05 AM
To me it's quite an amazing coincidence that I stumble upon this concept just a few minutes after learning about skeuomorphism.

It is indeed very true that the way we designed operating system was very much articulated around the fact that computers were not capable of understanding human language, let alone translate it directly into machine code.

DoesntMatter22Nov 26, 2026, 7:00 AM
This was great. I don't know that I want to use anything like that but maybe I would. Certainly it's going to get much better over time. Already it's affordable if it was in monthly payments I'd guess.
daniel_iversenNov 26, 2026, 3:05 AM
100% I'd love to have a "phone" with just a blank AI speech interface and optionally a text one for when you're in public, and some cached icons of your last activities etc. Would be awesome. I hope someone will create an Android/AOSP type of launcher app to make that happen, so we can try to see what the future will feel like.
tehlikeNov 26, 2026, 6:34 AM
Internet connected? Get a t-deck plus.
pizzafeelsrightNov 26, 2026, 4:52 AM
I recently built an OS that generates the UI based upon directions from LLM.

I suspect ~$10⁷ would be enough for it to be market ready.

VulpineQuantaNov 26, 2026, 4:55 AM
Totally don't believe you
pizzafeelsrightNov 26, 2026, 3:57 PM
I don't have the time to dedicate to it but was attempting to validate the idea.

Give it a few years. The entire computer UI will be redefined. I know a few working on it now.

andaiNov 26, 2026, 4:03 PM
Microsoft demo'd this a few months ago:

VibeOS - fully hallucinated OS

"Anything I search for, I'm going to find, and it will just be created for me on the fly."

https://youtu.be/zh6fMtL_cSM

kevmo314Nov 26, 2026, 3:01 AM
I don't think this is even a joke. I could see a world where the entire OS is frontended with only a chat UI.
pizzafeelsrightNov 26, 2026, 4:46 AM
Some of us have been doing this for the last year.

I have replaced almost my entire workflow with harnesses. I don't open Word or Excel any more.

By next year Outlook is gone entirely.

kevmo314Nov 27, 2026, 1:24 AM
Yeah this is what I’ve been doing too but there is a difference between choosing to not open the apps and not being able to open the apps. The latter is coming.
toygNov 26, 2026, 8:23 AM
I'd be a bit scared of letting an LLM manage my business contacts. It's already too easy to accidentally send invites to people who should not be there...
coldteaNov 26, 2026, 9:52 AM
Let the naive get bitten first...
DoesntMatter22Nov 26, 2026, 7:01 AM
I could see this for some things but for a lot of things IDK. I make music and don't want (pardon the pun) musical interfaces.
xerxes249Nov 26, 2026, 9:01 AM
Microsoft presented this on Microsoft Build: https://www.youtube.com/watch?v=z3pV6FHvcgM
yieldcrvNov 26, 2026, 7:50 AM
there are other recent HN threads about unikernels that are not a joke

that's the term this discussion is consolidating around

seductiveputerNov 26, 2026, 4:49 AM
Yes yes, we all watched Dexter's Lab, we all want a seductively voiced computer to be our work assistant. Unfortunately it is still a bit far off. Attempts at it with browsers where pages are generated on the fly from multiple search results were making some imaginative (as in hallucinating) pages.
ameliusNov 26, 2026, 4:15 PM
What I want is an AI that I plug into an USB port and talk to over tty.
akazantsevNov 27, 2026, 10:44 AM
`linux ... 3` (boots without a GUI) and launching llama.cpp is essentially the same, but yes, not plug and play experience.
hankbondNov 26, 2026, 12:10 AM
Pretty cool as a concept, reminds me of the self-booting disks from back in the day. Is there much use of a model this small without a harness and stuff to interact with tho?
jxfNov 26, 2026, 2:20 AM
The harness doesn't have to be in the same place as the model. That's how almost everyone is running harnesses.
qingcharlesNov 26, 2026, 6:55 AM
Right, this setup is perfect. You just send in your prompts and get your output, same as you do with any regular llama.cpp setup. All the harness etc is on your desktop. This essentially is just a Token Appliance. I think it's a great idea to remove almost all the OS bits that aren't needed.
madduciNov 26, 2026, 4:53 PM
> 134.9 tok/s decode on QEMU KVM (AMD EPYC 7642, 16 vCPUs; 23.7 tok/s at 1 vCPU, 118.1 tok/s at 8 vCPUs, 136.6 tok/s peak) and 55.4 tok/s live on a 0 GB disk Proxmox VE VM (Intel Xeon E5-2670 v3, 12 cores).

Do I miss anything or the performance isn't that great for a 0.6 B model?

mohamedkoubaaNov 26, 2026, 2:32 AM
Is llama.cpp really that optimized? Seems like a lot of projects are using it as a metric and claiming to have beat it.
FarmadupeNov 26, 2026, 3:30 AM
There's a few reasons why everyone is "beating" llama.cpp at the moment:

- llama.cpp is a general purpose inference engine designed to have acceptable performance on any hardware. You can now prompt an LLM to "write an inference engine from scratch for qwen3-0.6b that gets 90% of the theoretical performance of the GPU in this computer" and get a faster inference engine in less than an hour.

- A lot of the people who prompt their way to a faster engine cheat without realizing it. The two main ways are

    1) Delete some of the model (there was a recent spate of people on reddit claiming ever faster performance with qwen3.8-flash-next using a technique called expert pruning that is basically deleting part of the model and hoping that you still get usable results)

    2) Quantize the model more. For token generation, quantizing a model results in a speedup directly proportional to how much you quantized it.
Both expert pruning and overquantization lobomotize a model and neither technique survives contact with reality.
zhengzefengNov 26, 2026, 11:32 AM
[dead]
bhoustonNov 26, 2026, 3:09 AM
If this works well, I could imagine this is how LLMs would be served in the data center. just need a network stack and some type of isolation? I guess the isolation requires a hypervisor or OS of some sort and then we may be back into the same issue that we need an OS.
dolmenNov 27, 2026, 5:01 AM
What about an UEFI exe for Steam Deck that boots an inference server (OpenAI API) over USB or network?
electroglyphNov 26, 2026, 8:10 AM
this is hilarious, i jokingly proposed this a week ago or so in the LocalLLM discord and here it is
DeathArrowNov 26, 2026, 7:52 AM
This bare metal setup means running it on the CPU it seems.
galaxyLogicNov 26, 2026, 5:26 AM
What about the agents? Where would they run? An LLM by itself is just a chat-box, right? It doesn't DO anything but answer your questions.
coldteaNov 26, 2026, 9:54 AM
>What about the agents? Where would they run? An LLM by itself is just a chat-box, right? It doesn't DO anything but answer your questions.

On your non-unikernel laptop. Or on some container on it. Or on some other server.

galaxyLogicNov 27, 2026, 12:41 AM
Of course. I was just thinking if it is good to run LLM on raw metal, wouldn't it be also good to (be able to) run agents similarly?

That would truly be an "AI Box". Think of Robots.

Or maybe it would be too dangerous already.

metropolis_pt2Nov 26, 2026, 2:05 PM
Imagine burning this on a CD-R and sending it 25 years back in time.
rossyNov 26, 2026, 3:01 PM
So they can wait 12 years for AVX2 to be invented?
TheRealPomaxNov 26, 2026, 4:52 PM
They can just ask the AI to invent it for them, problem solved.
octoberfranklinNov 26, 2026, 4:12 PM
The recipient would ask it to reverse engineer itself.
anentropicNov 26, 2026, 9:26 AM
LLM-OS is the future! :)
octoberfranklinNov 26, 2026, 1:21 AM
Hrm, raw asm no libc/syscall dependencies... that means it can run in SMM ("ring negative 2"), and inject its binary into a hypervisor.

So now you can strap an LLM into your Blue Pill exploit https://en.wikipedia.org/wiki/Blue_Pill_%28software%29

Let's just hope this thing doesn't develop the urge to self-propagate.

keyleNov 26, 2026, 12:38 AM
This feels like the equivalent of putting a brain in a jar like in Futurama. A lot of work but not much real world use for this unfortunately.
cobychappleNov 26, 2026, 6:17 AM
I suspect I'd enjoy watching an llmOS experience a kernel panic while simultaneously trying to explain to itself wtf it's experiencing.
thebeardisredNov 26, 2026, 12:42 AM
Well, I guess one way to remove an attack vector is just to not have syscalls.

edit: ...but also now I need to see which mode this is running in processor wise.

octoberfranklinNov 26, 2026, 1:21 AM
Dude this thing is the attack vector: https://news.ycombinator.com/item?id=50650170
npfriesNov 26, 2026, 3:23 AM
Isn’t that more of a function of where the harness is running, not where the inference is happening?
moezdNov 26, 2026, 8:07 AM
So does this mean I can reverse engineer my toaster and run small language models on it properly?
froh42Nov 26, 2026, 5:41 PM
WHY?
pixl97Nov 26, 2026, 12:12 AM
Excellent, now make it self prompt to search for security flaws and spread itself to more instances and we'll have a big'ole mess on our hands.
satoselaNov 26, 2026, 4:03 PM
[dead]
iizinanNov 26, 2026, 1:30 AM
[flagged]
mr_big_bowlsNov 27, 2026, 8:28 PM
[dead]
martialwave8Nov 26, 2026, 10:28 AM
[dead]
drix10Nov 26, 2026, 3:07 AM
[dead]
xiaoliangliangNov 26, 2026, 3:19 AM
[dead]
minchaozhuNov 26, 2026, 1:32 PM
[dead]
3xcellencyNov 26, 2026, 6:02 AM
[dead]