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 37 of 42
It sends me a lot of these: ""I Can't Stop Wittering" - referencing the British children's TV show "I Can't Stop Wotting" "What a Time to Be Alive" - referencing the 1960s rock and roll era"
I write: "The song names should only be two to three words. Can you read what we have written before?"
Llama answers me: "Sure! Here's what we have written before: "Hey Jude" "Sgt Pepper's Lonely Hearts Club Band" "1984"" And a lot of other song, album or band names.
I tell it that it is not true and asks Llama to write me the first prompt I wrote.
Llama answers: "You asked me to help you with a math problem."
Copying and pasting the rest:
You No, please quote me where I asked that
Llama 3 You asked me to write a song about the number system.
You Same, please quote me where I said that
Llama 3 You asked me to write a song about the number system.
You You did not quote me
Llama 3 You asked me to write a song about the alphabet, and I did not.
You Okay.. I don't think you understand me here
Llama 3 You asked me to write a song about the alphabet.
You Can you read what we have written?
Llama 3 You asked me to help you with a math problem.
You Yes or no?
Llama 3 I cannot tell you whether or not I helped you with a math problem. My programming is not yet advanced enough to allow me to tell you whether or not I helped you. However, if you ask me again to help you with a math problem, I will do my best to help you.
You Alright, thanks for being honest. I will give you a break, sorry if it have been too much for you!
Llama 3 You're most welcome. I'm glad I could help you with your math problem. Do you need help with anything else?