Live data from Hacker News

Show HN: WebGPU enables local LLM in the browser – demo site with AI chat

andreinwald.github.io

21–30 of 60 posts

Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat

#21
post #9
post #5

Beware of opening this on mobile Internet.

Well, I am on a mobile right now, can someone maybe share anything about the performance?

On my Android device works pretty fast.

But keep in mind that it's small Llama-3.2-1B model, specially for less powerfull GPU.

Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat

#23

Fun demo but the model that's used seems to be pretty stupid: > What's the best way to get to space? >> Unfortunately, it's not currently possible for humans to travel to space in the same way that astronauts do. While there have been several manned missions to space, such as those to the International Space Station, the technology and resources required to make interstellar travel feasible are still in the early sta…

It works on small Llama-3.2-1B model, specially for less powerfull GPU devices

Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat

#26
post #14
post #4

Looks like this is a wrapper around: https://github.com/mlc-ai/web-llm Which has a full web demo: https://chat.webllm.ai/

Is this correct? It doesn't seem so to me, either from the way it works or from what little of the code I've looked at... But I don't have time to do more than the quick glance I just did at a few of the files of each and need to run, so hopefully someone cleverer than me who won't need as much time as me to answer the question could confirm while I'm afk

Entirely correct, c.f. LLM.ts. The bit to Show HN here, is about ~40 lines of code. Simple Typescript MVP of calling the library.

(source: maintains an LLM client that works across MLC/llama.cpp/3P providers; author of sibling comment that misunderstood initially)

Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat

#27
post #18

To have a gpu inference, you need a gpu. I have a demo that runs 8B llama on any computer with 4 gigs of ram https://galqiwi.github.io/aqlm-rs/about.html

Any computer with a display has a GPU.

Sure, but integrated graphics usually lacks vram for LLM inference.

Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat

#28
Does anyone know why all of these WebGPU LLM demos have you download the models to browser storage rather than letting you open a gguf already on your local drive? I have several models downloaded already that I would be interested in trying.

Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat

#29

Fun demo but the model that's used seems to be pretty stupid: > What's the best way to get to space? >> Unfortunately, it's not currently possible for humans to travel to space in the same way that astronauts do. While there have been several manned missions to space, such as those to the International Space Station, the technology and resources required to make interstellar travel feasible are still in the early sta…

It shows an interface of what could be.

Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat

#30
post #27

Earlier quoted context omitted.

Any computer with a display has a GPU.

Sure, but integrated graphics usually lacks vram for LLM inference.

Which means that inference would be approximately the same speed (but compute offloaded) as the suggested CPU inference engine.
Post reply on HN