Open
Bug 1829957
(webgpu-webgpt)
Opened 2 years ago
Updated 7 months ago
[meta] Ensure that WebGPT works
Categories
(Core :: Graphics: WebGPU, task, P3)
Core
Graphics: WebGPU
Tracking
()
NEW
People
(Reporter: ErichDonGubler, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: meta)
WebGPT is a popular project that uses large language models to deliver an experience similar to OpenAI's ChatGPT, but running the model client-side using WebGPU, instead of on a server. Our WebGPU implementation doesn't successfully run it yet, but we'd really like it to. This bug captures the remaining work identified as dependencies for making that happen.
WebGPT has its source hosted on GitHub, but for convenience, they've hosted a demo here: https://www.kmeans.org/
| Reporter | ||
Updated•2 years ago
|
Alias: webgpu-v1-webgpt
| Reporter | ||
Updated•2 years ago
|
Depends on: webgpu-type-conversion
| Reporter | ||
Updated•2 years ago
|
Type: defect → task
| Reporter | ||
Comment 1•2 years ago
|
||
In order to actually test WebGPU in these pages, you have to:
- Click one of the
Load Shakespeare ModelorLoad GPT2 modelbuttons. Observe that controls below are now enabled. - Open the JS console (i.e., via
Ctrl + Shift + I). - Click
Generate Text(the prompt doesn't matter yet). Observe that a multitude of WebGPU shader compilation errors are raised.
| Reporter | ||
Updated•2 years ago
|
Severity: -- → S3
Priority: -- → P3
| Reporter | ||
Updated•2 years ago
|
| Reporter | ||
Updated•2 years ago
|
Alias: webgpu-v1-webgpt → webgpu-webgpt
Updated•1 year ago
|
Blocks: webgpu-triage
Updated•1 year ago
|
No longer blocks: webgpu-triage
Comment 2•8 months ago
|
||
Current compilation error:
Shader validation error: Entry point main at Compute is invalid
┌─ :46:43
│
46 │ threadVariance = threadVariance + pow(input_array[row * N + i] - row_mean, 2);
│ ^^^ naga::Expression [70]
│
= Expression [70] is invalid
= Argument [1] to Pow as expression [69] has an invalid type.
Updated•8 months ago
|
See Also: → https://github.com/gfx-rs/wgpu/issues/6443
| Reporter | ||
Updated•7 months ago
|
| Reporter | ||
Comment 3•7 months ago
|
||
I can run the demo now without shader compilation errors, but now I notice a couple of problems:
- The visual area below text entry only is ever a small black rectangle. 😐
- The application OOMs fairly quickly after clicking
Generate Text. Yikes!
You need to log in
before you can comment on or make changes to this bug.
Description
•