Bare Metal Qwen

225 points by miohtama 22 hours ago on hackernews | 55 comments

swatcoder | 20 hours ago

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

hankbond | 20 hours ago

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?
The harness doesn't have to be in the same place as the model. That's how almost everyone is running harnesses.

qingcharles | 13 hours ago

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.

pixl97 | 20 hours ago

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.

keyle | 19 hours ago

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.

thebeardisred | 19 hours ago

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.

octoberfranklin | 19 hours ago

Dude this thing is the attack vector: https://news.ycombinator.com/item?id=50650170

npfries | 17 hours ago

Isn’t that more of a function of where the harness is running, not where the inference is happening?

octoberfranklin | 19 hours ago

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.

george_max | 17 hours ago

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.

sandworm101 | 10 hours ago

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.

mohamedkoubaa | 17 hours ago

Is llama.cpp really that optimized? Seems like a lot of projects are using it as a metric and claiming to have beat it.

Farmadupe | 16 hours ago

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.

Revanche1367 | 17 hours ago

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.

kevmo314 | 17 hours ago

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.

pizzafeelsright | 15 hours ago

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.

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...

coldtea | 10 hours ago

Let the naive get bitten first...

DoesntMatter22 | 13 hours ago

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.

daniel_iversen | 17 hours ago

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.

tehlike | 13 hours ago

Internet connected? Get a t-deck plus.

seductiveputer | 15 hours ago

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.

pizzafeelsright | 15 hours ago

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.

VulpineQuanta | 15 hours ago

Totally don't believe you

pizzafeelsright | 4 hours ago

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.

baoooooooooooo | 15 hours ago

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

DoesntMatter22 | 13 hours ago

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.

grondilu | 12 hours ago

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.

NitpickLawyer | 13 hours ago

> 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.

alpaca128 | 7 hours ago

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.

altmanaltman | 3 hours ago

So basically for mainstream users: your laptop is not windows, its copilot. That seems hellish, more than current windows

clates | 3 hours ago

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.

altmanaltman | 3 hours ago

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.

yieldcrv | 12 hours ago

there are other recent HN threads about unikernels that are not a joke

that's the term this discussion is consolidating around

xerxes249 | 11 hours ago

Microsoft presented this on Microsoft Build: https://www.youtube.com/watch?v=z3pV6FHvcgM

andai | 4 hours ago

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

bhouston | 17 hours ago

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.

galaxyLogic | 15 hours ago

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.

coldtea | 10 hours ago

>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.

cobychapple | 14 hours ago

I suspect I'd enjoy watching an llmOS experience a kernel panic while simultaneously trying to explain to itself wtf it's experiencing.

DeathArrow | 12 hours ago

This bare metal setup means running it on the CPU it seems.

moezd | 12 hours ago

So does this mean I can reverse engineer my toaster and run small language models on it properly?

electroglyph | 12 hours ago

this is hilarious, i jokingly proposed this a week ago or so in the LocalLLM discord and here it is

anentropic | 11 hours ago

LLM-OS is the future! :)

metropolis_pt2 | 6 hours ago

Imagine burning this on a CD-R and sending it 25 years back in time.

rossy | 5 hours ago

So they can wait 12 years for AVX2 to be invented?

TheRealPomax | 3 hours ago

They can just ask the AI to invent it for them, problem solved.

octoberfranklin | 4 hours ago

The recipient would ask it to reverse engineer itself.

o_-_o | 5 hours ago

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.

andai | 4 hours ago

Is it okay if your AI-free OS is also built by AI?
Only OS/Soft that created by real humans.

amelius | 4 hours ago

What I want is an AI that I plug into an USB port and talk to over tty.

madduci | 3 hours ago

> 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?

froh42 | 2 hours ago

WHY?