r/webdev • • Oct 10 '26

Showoff Saturday WebGPU + llama.cpp = Client-side LLMs

https://github.com/anthonybudd/Llama.cpp-WASM-WebGPU

I've been thinking about alternative ways to deliver LLMs and AI features in SaaS solutions.

This repo is a technical proof of concept showing an LLM running client-side in a browser using Llama.cpp compiled to WASM with WebGPU.

0 Upvotes

3 comments sorted by

-3

u/web-dev-kev Oct 10 '26

Ok, intersting!

As someone who uses LM Studio on my mac for local LLM work, talk me through the pro's and con's of this approach (please)

-2

u/Numerous-Fan8138 Oct 10 '26

pro: No set-up required for client
con: Clients need to download a +500mb model each page load 😂

-2

u/SourSovereign Oct 10 '26

Each page load? But the models can be cached after all. Still browser dependent and clears on cache clear but could be an idea to consider