Bare Metal Qwen

(github.com)

186 points | by miohtama 16 hours ago ago

41 comments

  • swatcoder 14 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

  • george_max 12 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 4 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.

  • metropolis_pt2 10 minutes ago

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

  • Revanche1367 12 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.

    • NitpickLawyer 7 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 an hour 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.

    • daniel_iversen 11 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 8 hours ago

        Internet connected? Get a t-deck plus.

    • pizzafeelsright 9 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.

    • baoooooooooooo 9 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

      • grondilu 6 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.

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

    • kevmo314 11 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 9 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.

        • toyg 6 hours ago

          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 4 hours ago

            Let the naive get bitten first...

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

    • xerxes249 5 hours ago

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

    • yieldcrv 6 hours ago

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

      that's the term this discussion is consolidating around

    • seductiveputer 9 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.

  • hankbond 14 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?

    • jxf 12 hours ago

      The harness doesn't have to be in the same place as the model. That's how almost everyone is running harnesses.

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

  • bhouston 11 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.

  • electroglyph 6 hours ago

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

  • anentropic 5 hours ago

    LLM-OS is the future! :)

  • galaxyLogic 9 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 4 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.

  • DeathArrow 6 hours ago

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

  • mohamedkoubaa 12 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 11 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.
  • keyle 14 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.

  • cobychapple 8 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.

  • moezd 6 hours ago

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

  • thebeardisred 14 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 13 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.

  • pixl97 14 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.