Bare Metal Qwen

(github.com)

83 points | by miohtama 5 hours ago

13 comments

  • Revanche1367 56 minutes 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.
    • daniel_iversen 36 minutes 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.
    • kevmo314 40 minutes 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.
  • george_max 1 hour 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.

  • bhouston 31 minutes 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.
  • swatcoder 3 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 3 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 1 hour ago
      The harness doesn't have to be in the same place as the model. That's how almost everyone is running harnesses.
  • mohamedkoubaa 1 hour 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 minutes 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.
  • xiaoliangliang 22 minutes ago
    [dead]
  • keyle 3 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 2 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 2 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 3 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.
  • drix10 34 minutes ago
    [dead]
  • iizinan 2 hours ago
    [flagged]