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.
Browsers are sandboxed away from user storage. You can change this by changing settings, command line arguments, build flags, etc. But can’t really expect people to do this just to use your website.
Show HN: WebGPU enables local LLM in the browser – demo site with AI chat
41–50 of 60 posts
Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat
#42Warning: it has a llama 3.1 7b model and is around 4 gb. It needs either a GPU or a Macand works only on chrome
Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat
#43Does 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
#44I asked "Why is the sky blue?" and got back a response of "coppia RR TalentDevExpressincer+'.//////////////////////////////////////////////////////////////////////// cha ولا.AutoSizesaving proleงคicate Like"/> infos эти za cornerback economical (%]\ enumligne.execRELEASEPropagation_station Bucks проHEME seas GASPOST[Unit(suffix Gloves" (and so on, for a few more paragraphs). Am I missing something?
Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat
#45Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat
#46Earlier quoted context omitted.
Browsers are sandboxed away from user storage. You can change this by changing settings, command line arguments, build flags, etc. But can’t really expect people to do this just to use your website.
You can open a file for performant access in all major browsers. It's the same API used for uploading files ( ), but you can also just load them into memory and do stuff.
Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat
#47Earlier quoted context omitted.
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
#48I asked "Why is the sky blue?" and got back a response of "coppia RR TalentDevExpressincer+'.//////////////////////////////////////////////////////////////////////// cha ولا.AutoSizesaving proleงคicate Like"/> infos эти za cornerback economical (%]\ enumligne.execRELEASEPropagation_station Bucks проHEME seas GASPOST[Unit(suffix Gloves" (and so on, for a few more paragraphs). Am I missing something?
Realistic expectations.
Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat
#49I asked "Why is the sky blue?" and got back a response of "coppia RR TalentDevExpressincer+'.//////////////////////////////////////////////////////////////////////// cha ولا.AutoSizesaving proleงคicate Like"/> infos эти za cornerback economical (%]\ enumligne.execRELEASEPropagation_station Bucks проHEME seas GASPOST[Unit(suffix Gloves" (and so on, for a few more paragraphs). Am I missing something?
> Am I missing something? Realistic expectations.
Re: Show HN: WebGPU enables local LLM in the browser – demo site with AI chat
#50Fun 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…