{"by":"abi","descendants":139,"id":40252569,"kids":[40257168,40254601,40258866,40258004,40253752,40253844,40254302,40253432,40254170,40257590,40256774,40257178,40253926,40255925,40261481,40257102,40255260,40253816,40274247,40253934,40253756,40256285,40254700,40255063,40255802,40261953,40256640,40258374,40254636,40259362,40256665,40253749,40257438,40257204,40255875,40256841,40275778,40254687,40255187,40259637,40256839,40256837],"score":547,"text":"I spent the last few days building out a nicer ChatGPT-like interface to use Mistral 7B and Llama 3 fully within a browser (no deps and installs).<p>I’ve used the WebLLM project by MLC AI for a while to interact with LLMs in the browser when handling sensitive data but I found their UI quite lacking for serious use so I built a much better interface around WebLLM.<p>I’ve been using it as a therapist and coach. And it’s wonderful knowing that my personal information never leaves my local computer.<p>Should work on Desktop with Chrome or Edge. Other browsers are adding WebGPU support as well - see the Github for details on how you can get it to work on other browsers.<p>Note: after you send the first message, the model will be downloaded to your browser cache. That can take a while depending on the model and your internet connection. But on subsequent page loads, the model should be loaded from the IndexedDB cache so it should be much faster.<p>The project is open source (Apache 2.0) on Github. If you like it, I’d love contributions, particularly around making the first load faster.<p>Github: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;abi&#x2F;secret-llama\">https:&#x2F;&#x2F;github.com&#x2F;abi&#x2F;secret-llama</a>\nDemo: <a href=\"https:&#x2F;&#x2F;secretllama.com\" rel=\"nofollow\">https:&#x2F;&#x2F;secretllama.com</a>","time":1714771606,"title":"Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU","type":"story","url":"https://github.com/abi/secret-llama"}