Live data from Hacker News

Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

github.com

31–40 of 150 posts

Re: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

#31
post #29

On Firefox Nightly on my Steam Deck it "cannot find WebGPU in the environment".

Last I checked ff explicitly does not support webgpu, webhid, webusb, etc.

Apparently nightly is supposed to support it: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Exp...

Re: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

#32

IMO eventually users should be able to advertise what embedding models they have so we don't redundantly redownload.

That's not possible with current web tech, is it?

Different webapps can't share common dependencies stored in localstorage afaik.

Re: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

#33

IMO eventually users should be able to advertise what embedding models they have so we don't redundantly redownload.

That's not possible with current web tech, is it? Different webapps can't share common dependencies stored in localstorage afaik.

This need wasn’t super prevalent in the pre LLM days. It’s rare to have a multi-GB blob that should be commonly used across sites.

Re: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

#35
post #33

Earlier quoted context omitted.

That's not possible with current web tech, is it? Different webapps can't share common dependencies stored in localstorage afaik.

This need wasn’t super prevalent in the pre LLM days. It’s rare to have a multi-GB blob that should be commonly used across sites.

Well, it should be possible to just drag and drop a file/folder

Re: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

#37
This is very cool, it's something I wish existed since Llama came out, having to install Ollama + Cuda to get locally working LLM didn't felt right to me when there's all what's needed in the browser. Llamafile solves the first half of the problem, but you still need to install Cuda/ROCm for it to work with GPU acceleration. WebGPU is the way to go if we want to put AI on consumer hardware and break the oligopoly, I just wished it became more broadly available (on Linux, no browser supports it yet)

Re: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

#38
post #13

This is awesome. I have been using ChatGPT4 for almost a year and haven't really experimented with locally running LLMs because I assumed that the processing time would take too long per token. This demo has shown me that my RTX 2080 running Llama 3 can compete with ChatGPT4 for a lot of my prompts. This has sparked a curiosity in me to play with more LLms locally, thank you!

My pixel 6 was able to run tinyllama and answer questions with alarming accuracy. I'm honestly blown away.

This is amazing. Thanks both for sharing your stories. Made my day.

Re: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

#39
post #33

Earlier quoted context omitted.

That's not possible with current web tech, is it? Different webapps can't share common dependencies stored in localstorage afaik.

This need wasn’t super prevalent in the pre LLM days. It’s rare to have a multi-GB blob that should be commonly used across sites.

Who knows. Maybe the browser would be a more prevalent gaming platform if it could be assumed that loading a multi gigabyte game engine is no big deal, because everyone had one already cached.

A lot of unity games could easily be web games, but aren't because of many roadblocks. I believe this is one of them.

Re: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU

#40
post #34

Tried this in Chrome under Windows, it does work but does not seem to use the RTX4060, only the integrated Iris Xe. Is this a bug or intentional?

I think neither. You need to configure windows to use the RTX with Chrome. Maybe something like in windows graphics settings, setting Chrome to “High performance”. A quick web search for "force Chrome to use dedicated GPU" should give you all the steps you need.
Post reply on HN