WebLLM: high-performance in-browser LLM inference engine
11–20 of 32 posts
Re: WebLLM: high-performance in-browser LLM inference engine
#12Re: WebLLM: high-performance in-browser LLM inference engine
#13responds with
> Error: Cannot initialize runtime because of requested maxStorageBuffersPerShaderStage exceeds limit. requested=10, limit=9.
Re: WebLLM: high-performance in-browser LLM inference engine
#14Re: WebLLM: high-performance in-browser LLM inference engine
#15Re: WebLLM: high-performance in-browser LLM inference engine
#16Re: WebLLM: high-performance in-browser LLM inference engine
#17This seems to be the demo: https://chat.webllm.ai/ I am getting: WebGPUNotAvailableError: WebGPU is not supported in your current environment, but it is necessary to run the WebLLM engine. On both, FireFox and Chromium on Linux.
You can enable WebGPU support in Google Chrome by turning on hardware acceleration and activating the WebGPU flag. It Works.
Unfortunately, Firefox does not work any better. After setting the flag dom.webgpu.enabled to true in about:config, a few WebGPU examples (e.g. https://webgpu.github.io/webgpu-samples/?sample=helloTriangl...) work, but many other examples crash the browser. And of course, Firefox can't select the correct GPU either.
Re: WebLLM: high-performance in-browser LLM inference engine
#18Re: WebLLM: high-performance in-browser LLM inference engine
#19Earlier quoted context omitted.
You can enable WebGPU support in Google Chrome by turning on hardware acceleration and activating the WebGPU flag. It Works.
I tried it and the experience was not great. I first enabled chrome://flags/#force-enable-webgpu-interop which did nothing. Next, I enabled chrome://flags/#enable-unsafe-webgpu which made some WebGPU demos work, but they all use my CPU's integrated GPU, which is worse than using no GPU acceleration at all. Next, I found out that there is a powerPreference: 'high-performance' option. It can be enabled with chrome://fl…
Re: WebLLM: high-performance in-browser LLM inference engine
#20This seems to be the demo: https://chat.webllm.ai/ I am getting: WebGPUNotAvailableError: WebGPU is not supported in your current environment, but it is necessary to run the WebLLM engine. On both, FireFox and Chromium on Linux.
It's on by default on Windows iirc - it's considered a potential security risk on Linux by Mozilla, so they ship it but it's turned off and it's up to the user to decide.
I think the reasoning is just because of how varied graphics drivers/stacks are on Linux compared to Windows/OSX and the attack surface been larger.