logoalt Hacker News

Bare Metal Qwen

90 points • by miohtama • yesterday at 10:15 PM • 17 comments • view on HN

Comments

Revanche1367 • today at 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.

➕ show 2 replies
george_max • today at 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.

swatcoder • today at 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

bhouston • today at 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.

hankbond • today at 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?

➕ show 1 reply
mohamedkoubaa • today at 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.

xiaoliangliang • today at 3:19 AM

[dead]

molticrystal • today at 4:05 AM

Would be interesting to run models on bare metal with shader assembly on an Nvidia GPU and see how that turns out.

I looked for Nvidia bare metal GPU and what came up was a document describing enterprise servers running Ubuntu. This is what Nvidia means by bare metal, which seems more like somebody in marketing learned bare metal is performant and decided to add that term to everything.

keyle • today at 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.

thebeardisred • today at 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.

➕ show 1 reply
octoberfranklin • today at 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.

pixl97 • today at 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.

drix10 • today at 3:07 AM

[dead]

iizinan • today at 1:30 AM

[flagged]