r/WebAssembly • u/Numerous-Fan8138 • Oct 05 '26
Llama.WASM + WebGPU = Local LLMs
https://github.com/anthonybudd/Llama.cpp-WASM-WebGPUOver the weekend I built a technical proof of concept showing an LLM running client-side in a browser using Llama.cpp compiled to WASM with WebGPU.
20
Upvotes
2
u/zemlyansky Oct 05 '26
have you checked this: https://github.com/ngxson/wllama
1
u/Sad_Leader4849 29d ago
going from poc to something real, this is roughly the order things bite you: the download (few hundred mb even for small models), threads that need coop/coep headers, firefox being slower on webgpu than cpu (apparently), and every browser wiping the cache whenever it feels like it. nobodywho hit pretty much all of it moving llama.cpp over: https://www.nobodywho.ai/posts/how-do-llms-run-in-the-browser/