{"by":"andreinwald","descendants":54,"id":44767775,"kids":[44767991,44769160,44768720,44768597,44770929,44769190,44768551,44770987,44769113,44769817,44771968,44770914,44785499,44777982,44768683,44767913,44773503,44768343,44782647,44767776,44795301,44769328],"score":145,"text":"Browser LLM demo working on JavaScript and WebGPU.\nWebGPU is already supported in Chrome, Safari, Firefox, iOS (v26) and Android.<p>Demo, similar to ChatGPT <a href=\"https:&#x2F;&#x2F;andreinwald.github.io&#x2F;browser-llm&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;andreinwald.github.io&#x2F;browser-llm&#x2F;</a><p>Code <a href=\"https:&#x2F;&#x2F;github.com&#x2F;andreinwald&#x2F;browser-llm\">https:&#x2F;&#x2F;github.com&#x2F;andreinwald&#x2F;browser-llm</a><p>- No need to use your OPENAI_API_KEY - its local model that runs on your device<p>- No network requests to any API<p>- No need to install any program<p>- No need to download files on your device (model is cached in browser)<p>- Site will ask before downloading large files (llm model) to browser cache<p>- Hosted on Github Pages from this repo - secure, because you see what you are running","time":1754143752,"title":"Show HN: WebGPU enables local LLM in the browser – demo site with AI chat","type":"story","url":"https://andreinwald.github.io/browser-llm/"}