An unofficial, read-only Hacker News reader. Join the beta →

AMD-specific fork of llama.cpp (opens external site)

438 points by julianlam 1 day ago | devnull.land | 106 comments on HN

View full thread · View on Hacker News

Comment thread (13)

  1. Yeah these cards are great, I have one too. There's the Radeon VII Pro 16GB and the Instinct MI50 with 16 or 32GB. For the latter you need to come up with your own cooling though.

    Unfortunately they lack the right matrix processor to accelerate prefill so time to first token can be slow. And software support is getting bad. ROCm dropped them already so there's only Vulkan

    Ps I don't think this architecture is supported by the port in this link. It seems to be specific to RDNA.

    Replies (6)
    1. alignment and introspection call for standardization, homogenization. science calls for evolution: iteration, exploration, divergence.
      Replies (1)
      1. also biology (and business, and technology, and every other type of replicator)

        (both mutation and standardization, oddly enough)

    2. Checkout the repo - you can get surprisingly good prefill with kernel optimization (not the 3K / s that a 5090 will do but competitive with a modern 9700 XTX or Intel Arc etc)
      Replies (1)
      1. Hm I'll try it thanks! If I can manage to wrap it into a docker.
        Replies (1)
        1. I used to have a dockerized build of an older version - will add one to the repo over the weekend
    3. > ROCm dropped them already...

      I think this kind of thing matters less nowadays. The codebase contains enough information that if you throw these things at AI they can do the backporting. It works well because there's a straightforward feedback loop ("does it work?" and "measure performance of <X> and <Y>").

    4. ROCm supports gfx906 (MI50/Radeon VII) in their nightly builds, just not official stable releases.

      They even support the older gfx900 (MI25/WX9100).

      llama.cpp compiled against ROCm 10.x works well on my 2 MI25s.

      Replies (1)
      1. Ah ok I didn't know. But I heard Vulkan works better anyway in terms of performance.

        Personally I don't really want to mess around with builds, I'm not a software dev. I'd just like to deploy a docker and run the AI for other stuff.

    5. In case you're not aware, you might be interested to know that TheRock builds have picked gfx906 back up, kinda [0]. It's not tehcnically 'supported', but they've done some work to fix the broken bits, and it builds. It's in the list.

      I gave up on my mi60 a year or two ago too (got a strix halo now), so I missed most of this. Was a pleasant surprise to find out they'd decided to do the work to at least kinda bring them back to life.

      [0]:https://github.com/ROCm/TheRock/blob/main/RELEASES.md

    6. I actually have a fun franken-build with a Radeon VII Pro hooked up to a Raspberry Pi 5 and a mini gallium-nitride power supply. It's mostly GPU by volume. I have titled it "The Modern Computer".

      I just ran it for 5 days straight computing embeddings for all of English Wikipedia. But what I really want is to get it running a nice LLM. The card is overclockable thanks to being a gaming card, so the memory bandwidth is now 1.1 TB/s. But the PCIe gen 3x1 interface to the Pi 5 means MoE offloading/streaming is not viable.

      Replies (1)
      1. Yeah if you put it in a full computer you can run Strata on it. There's a proper build for it.

        You can also run qwen 9b of course and keep it in memory. Then the PCIe speed hardly matters.

        Replies (1)
        1. Yeah I’m hoping to cram both a smaller LLM and an embedding model and get it to be a local copy of Wikipedia I can ask questions in natural language.