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

Earlier comments
manlobster1 reply#
Looks like all the heavy lifting is being done by webllm [0]. What we have here is basically one of the demos from that.

[0] https://webllm.mlc.ai/.

BoorishBears#
> 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.
wg04 replies#
How do people use something like this as coach or therapist? This is genuine question.

Side note, impressive project. Future of AI is offline mostly with few APIs in the cloud maybe.

kushie#
it's great at offering alternative perspectives
cal85#
Genuine answer: you say “Be a coach/therapist” followed by whatever you’d say to a coach/therapist.
pseudosavant1 reply#
I tried using Claude and ChatGPT like this: I would just write a free form journal entry. The feedback it gave was typically very useful and made journaling more rewarding.
KennyBlanken1 reply#
Given user data is folded back into the models, there is a snowball's chance in hell that I would input stuff I'd talk to a therapist about.

When are people going to realize that their interactions with AIs are likely being analyzed/characterized, and that at some point, that analysis will be monetized?

abi#
Use secret llama in a incognito window. Turn off the Internet and close the window when done.
intended#
Ever had a day where your bandwidth was constrained and you just knew something was wrong with a situation, but your brain lacked the juice or dexterity to connect/articulate the issue?

If I have the presence of mind, I offload the work here. At the same time I have a strong understanding of how coaching works, as does my brain.
I suspect that with all things LLM, some amount of proficiency is needed to truly get the prompts to work.
The simplest option is to ask it to be a coach for you. This is going to be hit and miss.
The better version is to specify the kind of coaching you want, or provide a rough outline of the issues on your mind and then ask for what kind of coach or therapist would make sense.
I use either of these for example - 1) over designed - https://chat.openai.com/g/g-KD6jm0l4c-thought-council 2) base ver - https://chat.openai.com/g/g-Cdq3drl87-two-guides
Sadly OpenAI doesnt let you share active chats anymore, so it’s going to need a plus subscription.

nojvek3 replies#
Yasssssss! Thank you.

This is the future. I am predicting Apple will make progress on groq like chipsets built in to their newer devices for hyper fast inference.
LLMs leave a lot to be desired but since they are trained on all publicly available human knowledge they know something no about everything.
My life has been better since I’ve been able to ask all sorts of adhoc questions about “is this healthy? Why healthy?” And it gives me pointers where to look into.

mcculley1 reply#
They are not “trained on all publicly available human knowledge”. Go look at the training data sets used. Most human knowledge that has been digitized is not publicly available (e.g., Google Books). These models are not able to get to data sets behind paywalls (e.g., scientific journals).

It will be a huge step forward for humanity when we can run algorithms across all human knowledge. We are far from that.

neurostimulant1 reply#
There is a rumor that OpenAI might've used libgen in their training data.
mcculley2 replies#
Someone will. The potential gains are too high to ignore it.

Continue this thread — 2 replies

zitterbewegung#
I actually think Apple has been putting neural engines in everything and might be training something like Llama3 for a very long time. Their conversational Siri is probably being neglected on purpose to replace it . They have released papers on faster inference and released their own models. I think their new Siri will largely use on device inference but with a very different LLM.

Even llama.cpp is performant already on macOS.

maxboone1 reply#
Groq is not general purpose enough, you'd be stuck with a specific model on your chip.
tome#
And just in case it's not clear: I'm saying Groq can be used for arbitrary AI inference workloads, and we aim to be the fastest for all of them. We're not tuned to any specific model.
andrewfromx1 reply#
i asked it "what happens if you are bit by a radio active spider?" and it told me all about radiation poisoning. Then I asked a follow up question: "would you become spiderman?" and it told me it was unable to become anything but an AI assistant. I also asked if time machines are real and how to build one. It said yes and told me! (Duh, you use a flux capacitor, basic physics.)
abi#
Try to switch models to something other than tinyllama (default only because it’s the fastest to load). Mistral and Llama 3 are great.

Load more comments