Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU (opens in a new tab)github.com
547 pointsI’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.
I’ve been using it as a therapist and coach. And it’s wonderful knowing that my personal information never leaves my local computer.
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.
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.
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.
Github: https://github.com/abi/secret-llama
Demo: https://secretllama.com
Comments (139) 42 threads
Show all comments
Showing thread 3 of 42
Would be interesting if there was a web browser that managed the download/install of models so you could go to a site like this, or any other LLM site/app and it detects whether or not you have models, similar to detecting if you have a webcam or mic for a video call. The user can click "Allow" to allow use of GPU and allow running of models in the background.
When someone pointed out that Chrome has had this functionality for years and the world has not imploded...and has enabled many open source projects and web-based microcontroller IDEs to provide enormous user convenience...the response was a condescending sneer along the lines of "well we actually care about user privacy."
(If Chrome is such a user privacy dumpsterfire, why not implement WebSerial so that people don't have to run Chrome in order to communicate with and program microcontrollers?)
Given they claimed that people's pacemakers and blood glucose monitors would be tampered with if WebSerial were implemented, I'd be shocked if they allowed such low level access to a GPU...
This doesn't seem like a logical comparison. Is there no other way to program microcontrollers outside of Chrome?
Continue this thread — 2 replies
Yes, not everyone is as thrilled about the browser becoming an OS and both of the other players have pretty much declined to implement the standards chrome forced through.
Like yes if you let yourself be tied to proprietary chrome features you will probably be tied to chrome. It’s weird how the HN set embraces the internet explorer/activeX combo of the modern era so openly, to the extent of whining that others don’t implement it/are behind on compatibility - like yes, that’s the point of embrace/extend/extinguish and a quasi-proprietary standard, to provoke exactly your reaction.
I wonder if there is some equivalent to this on the social media of the time, was there some subset of users who really really loved activeX and would only use browsers that supported it? it’s what I need to do my banking, how could I use anything else!?