I'm making LLMs work on small and old devices

(github.com)

82 points | by mrashad74 2 hours ago

10 comments

  • Farmadupe2 22 minutes ago
    For the last five months or so, opus and fable have both been able to do this task as a soneshot prompt. An inference engine is almost pure compute and to a first approximation the only operation your hardware needs to support to do llm inference is multiplication [the rest of an inference engine is "some trig"].

    So to get any model working on $OLD_HARDWARE, the hardest part of the task is now sourcing the hardware itself and giving the agent ssh access -- a modern agent will be able to source a compiler, write the implementation, optimize it, test in qemu (or any other simulator) and push it onto the device.

    Example prompt: "write an inference engine for qwen3 0.6b in pure assembly that runs on this device. Write a script to attach the weights to the resulting binary. Prefix is supplied as a stream of u32 token IDs on stdin. The engine streams u32 token IDs on stdout."

  • yjftsjthsd-h 31 minutes ago
    It's technically sweet regardless, so don't take this as even a little bit of negative pushback, but I am curious what the utility of these small models is? Are they smart enough to be useful on practical tasks? What are people doing with them?
    • gonzalohm 20 minutes ago
      Not op but my opinion is that It doesn't matter if it's not currently useful. I think it's important that the community focuses on this line of research because big companies will not. It's in their best interest to make LLMs resource hungry
    • sebazzz 23 minutes ago
      Also curious on this. They are too dumb to use with tools and if you ask it how to bake a pancake you only get rubbish.
    • gabucino 17 minutes ago
      [dead]
  • jedbrooke 1 hour ago
    in a similar vein, somebody got tinystories LLM running on the nintendo wii, including gpu acceleration [0].

    0: https://github.com/brysontang/iiama2.c

    • mrashad74 4 minutes ago
      this looks very interesting, it can't run a real (read : working on some real tasks) LLM, yet, but it's actually very interesting device.
  • mrashad74 2 hours ago
    Recently I started this open source project at my AI company, where I'm trying to make LLMs working

    Now Reached 16B models running on iPad Air 1st gen and xiaomi tv box, both have less than 1GB of usable memory, and reached some decent speeds given the hardware.

    I'm open sourcing the effort done, kernels developed and results for everyone to re-produce and push more, also the modified models are on hugging face : https://huggingface.co/hyperionaidev

    I want a more challenging device, what do you think?

    • shujito 1 hour ago
      perhaps the pi 1st/2nd gen?

      I'd thought of the ESP32 devices but their RAM is too small

      • gabucino 40 minutes ago
        Pi 1 is too easy. My PicoLM [fork] already runs on it.

        It also runs on MS-DOS 80386 2MB RAM, so...

        And iPhone 1. And Digital UNIX.

    • fredley 1 hour ago
      > a more challenging device

      A Playdate

      • Isamu 6 minutes ago
        Aw man I would love to be able to use the crank to back up the agent dialogue, maybe make it branch forward in a different direction. Make the dialogue into a game

        https://play.date/

    • post-it 1 hour ago
      > I want a more challenging device, what do you think?

      One of those vapes with a screen on it.

  • hasperdi 16 minutes ago
    What can these small models do? Are they just for novelty?
  • dava96 1 hour ago
    This is really cool man. I like this on going trend of resurrecting old tech with AI and this is yet another avenue to explore.

    I'd be interested in seeing some older flag ship mobile devices

    • mrashad74 1 hour ago
      I have a few phones and tablets laying around, will try to play with..
  • mkanephl 36 minutes ago
    ESP P4 or ESP S31?
    • mrashad74 5 minutes ago
      challenge accepted, I have one lying around, will see.
  • ForHackernews 1 hour ago
    This is great. I've recently been playing with repurposing some old thin clients as homelab Linux machines

    Not my site, but same idea: https://www.parkytowers.me.uk/thin/

    All this old/obsolete gear is plenty capable when used with the right software.

    • dava96 1 hour ago
      Out of interest, what have you been doing with them?
      • ForHackernews 26 minutes ago
        Running a pihole, a WeeWx weather station, a NAS backup server, a wireguard VPN, Zot container registry.
  • bigfamilyparent 5 minutes ago
    [flagged]
  • gabucino 1 hour ago
    [dead]