{"by":"lxe","descendants":50,"id":35649496,"kids":[35650823,35651488,35651008,35651459,35650402,35651946,35652477,35650143,35651709,35702206,35651431,35650996,35653465,35649553,35652699,35650072,35649969,35650758,35652389],"score":185,"text":"Using threaded emscripten to speed up the generation and offload the main loop. No SIMD or other optimizations. Might work faster with #enable-experimental-webassembly-features enabled.<p>Tested in x86 Chrome and Firefox, Apple Silicon Safari<p>Run it yourself: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;lxe&#x2F;ggml&#x2F;tree&#x2F;wasm-demo\">https:&#x2F;&#x2F;github.com&#x2F;lxe&#x2F;ggml&#x2F;tree&#x2F;wasm-demo</a><p>Thanks, <a href=\"https:&#x2F;&#x2F;github.com&#x2F;ggerganov&#x2F;ggml\">https:&#x2F;&#x2F;github.com&#x2F;ggerganov&#x2F;ggml</a>,","time":1682047483,"title":"Show HN: WasmGPT – “ChatGPT” in the browser, no WebGPU and no server needed","type":"story","url":"https://lxe.co/wasmgpt/"}