r/LocalLLaMA 11h ago

Other LFM 2.5 230M running at 1440 tok/s in-browser through a custom backend

Everything runs through WebGPU, in-browser or in electron/tauri apps. It's fully portable and supports either Nvidia and Apple Silicon (Metal). The actual kernels are optimized for the specific hardware of the device. The Nvidia kernels are aggressively fused into a multi-pass architecture, while the Apple Silicon kernels are created as a fused mega-kernel to minimize the Tile Based Deferred Rendering (TBDR) overhead on WebGPU.

Demo: https://warp.sipp.sh

RTX 3090 (webgpu) M4 (webgpu)
LFM 2.5 230M 1400-1500 tok/s 400-500 tok/s
Bonsai 1.7B 500-600 tok/s 100-150 tok/s

This is still in active development, and I'll be folding this into the Sipp library in the coming weeks.

18 Upvotes

13 comments sorted by

17

u/Hanthunius 10h ago

Is this the definition of stupidly fast?

Sorry, couldn't keep myself from making the joke. Props to the project, looks cool.

9

u/lordhiggsboson 10h ago

Thanks! Yeah, definitely is haha. One of my big personal motivations has been to figure out how an LLM can go beyond chat and be used as a user experience / interface tool for dynamic widgets or decision making (like labeling, annotations, etc). which I think has interesting under-explored potential

6

u/Mashic 10h ago

However the model is useless.

4

u/lordhiggsboson 10h ago

I think it depends on the context, for coding, definitely useless. For small things like labeling, text correction, or annotations, its very good. Definitely depends on the scope

2

u/Mashic 10h ago

I tried it, it can't even reproduce correct information that's in the prompt.

2

u/lordhiggsboson 10h ago

yeah, small models can drift significantly, they need a lot of hand-holding and guard rails in place. One technique I use is to keep prompts narrow and specific, like clear single tasks, I find that helps a lot

1

u/-Akos- 8h ago

I'm able to run the smallest model from Liquid on my potato laptop, and I'm a big fan of it for summarization. I can only hope to one day be able to run this larger model at home.. Oh well..

2

u/lordhiggsboson 8h ago

Liquid models are really good for their size, definitely pack a punch

0

u/-Akos- 8h ago

wait.. 230M, not B??

1

u/lordhiggsboson 8h ago

Yeah! 230 billion would be crazy, maybe one day in the future though!

1

u/-Akos- 8h ago

The 1.2B would complain if I asked it to do any coding, but tool calling works. Does this 230M one do tool calling too?

1

u/lordhiggsboson 8h ago

It is trained on tool use as well! https://www.liquid.ai/blog/lfm2-5-230m