LLMs and SLMs Everywhere
summary
Shows how WebAssembly compiles native code into a .wasm module (example: C compiled with emcc) so inference runs in the browser, and demonstrates porting llama.cpp into a web build via an npm package to run models client side. Claims a tiny 20 MB model runs fully offline in-browser, larger SLMs are a few hundred MB, LLMs remain hundreds of GB, and browser inference here is about one to two tokens per second while preserving privacy and cutting server GPU costs.
AI-written summary · about
