Lurker News
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).

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.
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 23 of 42

koolala2 replies#
On Firefox Nightly on my Steam Deck it "cannot find WebGPU in the environment".
ojosilva2 replies#
So here's a howler to the new Mozilla CEO and FF teams who're looking for ways to save their org:

- release WebGPU support everywhere, also embed llama.cpp or something similar for non GPU users
- add UI for easy model downloading and sharing among sites
- write the LLM browser API that enables easy access and sets the standard
- add security: "this website wants to use local LLM. Allow?"

eyegor#
Hmm but what about another mobile phone OS instead? Or a vpn service? Surely people don't care about browser features.
yokoprime#
There’s also the little issue of firefox not supporting HDR videos which with more and more OLED/miniLED monitors out there is a major drawback. I love FF and i daily drive it, but there are some glaring gaps in the feature set between chromium and ff.
1f60c#
I had the same issue on my iPhone! You can (temporarily) enable WebGPU by going to Settings > Safari > Advanced > Experimental features (I don't know what it's called in English, but it's the bottom one).