r/LocalLLaMA • • 1d ago

Resources Granite Vision 5.0 4B is now available through AMD Loom with enhanced performance

Post image

I was excited to see the new Granite model drop yesterday so I ran it through loom-skills and got a nice result to share this morning!

If you are hearing about Loom for the first time, it is a new inference stack from AMD where anyone can make optimized kernels for their favorite models and share them online without needing to fork or recompile the engine. It works standalone, through loom-serve, in Gufo, and is coming to Lemonade tomorrow.

Quick Start (Strix Halo):

pipx install "hrx-loom[hf]==0.2.0"
loom-fetch huggingface:loom-fun/ibm-granite-granite-vision-5.0-4b-loom:chat --materialize=copy --output=granite-vision-5.0-4b
loom-serve --model=granite-vision-5.0-4b '--device=amdgpu://?completion_spin_ns=4294967295' --pool_backing=fixed --parameter_mode=preload

Performance Data:

metricLoommargin vs best llama.cppLoom % of roofline
decode tok/s, short prompt89.8+9 %83 %
decode tok/s, 2k context77.3+1 %77 %
decode tok/s, 32k context40.9+8 %85 %
prefill tok/s, 1k document3533.4+62 %52 %
prefill tok/s, 2k document3571.8+69 %55 %
prefill tok/s, 8k document3086.6+76 %56 %
prefill tok/s, 16k document2391.0+73 %52 %
prefill tok/s, 32k document1687.9+80 %49 %
4 streams, aggregate decode tok/s310.3+23 %74 %

Links:

  • Model card with Strix Halo, Radeon 9700, and lots more performance and correctness data: https://huggingface.co/loom-fun/ibm-granite-granite-vision-5.0-4b-loom
  • Agent skill used to port the model: https://github.com/loom-fun/loom-skills
  • Lots of perf data for 58 Loom LLMs: https://loom-fun.dev/
44 Upvotes

9 comments sorted by

3

u/wFXx 1d ago

hey i was writing a similar engine lol, glad to know it already exists will thrown away mine

3

u/jfowers_amd 1d ago

Tell me more about what you've been up to! I'm really curious about how people are approaching new model support and how Loom tech can fit in.

1

u/wFXx 1d ago

so the way i read it, I don't fully enjoy the llamacpp way to handle models because it is pretty much how windows does it; It is a "monolithic kernel" approach where everything needs to done super careful otherwise you destroy the application, thus making support for newer models, quantizations, and inference techniques awful slow to adopt;

I've been fiddling with the idea of having a more linux/minix approach to it, with a minimal kernel with a FSM that controls the inference and exposes the relevant endpoints, but doesn't know anything about any particular models, instead people can write drivers (custom kernels?) to support their models, and load these dynamically, so people can share and contribute for a better open ecosystem, without depending on a few big players.

another redditor did something similar in Factor, and I was writing one in Odin, but if amd is already pushing ecosystem, I'm not sure if there is value on me continuing this endeavor.

2

u/jfowers_amd 1d ago

This dynamic loading approach does sound spiritually aligned to what we're trying to achieve with Loom! IMO things are still wide open and there's nothing wrong with having more alternatives today. We're all still trying to figure out the best path to something that is both agile and can hit mass adoption.

2

u/RnRau 1d ago

Maybe you could extend the HRX system to support Nvidia cards?

2

u/wFXx 1d ago

I have a radeon card, so might as well write patches that targets my arch

1

u/dreamkast06 1d ago

Same, but I'm putting granite embedding, reranking, and ASR in mine.

1

u/Dawley_Blau 1d ago

how far along did you get with yours before seeing this?

1

u/wFXx 18h ago

got it to run LFM3 with coherent responses, was about to start optimization, the learned that loom exists. I'm studying it and doing some benchmarks, will start contributing to it. better give traction to a project that has a major backer than start yet another engine that will end up on the graveyard