mlc-ai / web-stable-diffusion

Bringing stable diffusion models to web browsers. Everything runs inside the browser with no server support.
https://mlc.ai/web-stable-diffusion
Apache License 2.0
3.57k stars 226 forks source link

Demo site generation error: Required limit #11

Open mindgitrwx opened 1 year ago

mindgitrwx commented 1 year ago

screenshot 2023-03-17 at 5 30 24 PM

Find an error initializing the WebGPU device OperationError: Required limit (1073741824) is greater than the supported limit (268435456). - While validating maxBufferSize - While validating required limits

How to get around this error?

ahmartello commented 1 year ago

The same happens to me. Same values and everything.

MasterJH5574 commented 1 year ago

Hello @mindgitrwx and @ahmartello, thanks for the feedback. This issue is essentially because running the model needs to allocate larger buffers for intermediate values. At this moment we are running the FP32 model, and the largest buffer to allocate is 1GB.

We are now developing the support for lower-precision models, and we hope this issue can be resolved in the future with the development going on. For another thing, would you like to share your environment (e.g., the OS version and the Chrome version) to us so that we can try to reproduce and see if there is any quick workaround? It is also the first time we are reported with this issue, and we may need more information to improve our work.

Lay2000 commented 1 year ago

@mindgitrwx @ahmartello I also meets the same problem on Edge, Chrome, and Safari on my Windows PC and MacBook. But the demo works well on Chrome Canary, which could be downloaded here: https://www.google.com/chrome/canary/. Hope it helps

mindgitrwx commented 1 year ago

@Lay2000 It works well. Thanks!

gedw99 commented 1 year ago

I think i hit the same bug on mac ?

env:

MAC OS: 11.7.5 (20G1225)
CHROME CANARY BROWSER: Version 114.0.5705.0 (Official Build) canary (x86_64)

error:


/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --enable-dawn-features=disable_robustness
[13839:34823:0410/100612.308539:ERROR:trust_store_mac.cc(844)] Error parsing certificate:
ERROR: Failed parsing extensions

2023-04-10 10:09:24.583 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Client requested name ".AppleSDGothicNeoI-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2023-04-10 10:09:24.592 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2023-04-10 10:09:24.640 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Client requested name ".PingFangSC-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2023-04-10 10:09:24.684 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Client requested name ".PingFangSC-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2023-04-10 10:09:24.687 Google Chrome Helper (Renderer)[14025:114346] CoreText note: Client requested name ".PingFangSC-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
Error in cpuinfo: sysctlbyname("hw.packages") failed: Operation not permitted
Error in cpuinfo: sysctlbyname("hw.cacheconfig") failed: Operation not permitted
[0410/101459.563107:ERROR:directory_reader_posix.cc(42)] opendir /Users/apple/Library/Application Support/Google/Chrome Canary/Crashpad/attachments/fc4117ee-bd9a-49b8-ae50-074a50093647: No such file or directory (2)
[13839:259:0410/101459.711382:ERROR:gpu_process_host.cc(952)] GPU process exited unexpectedly: exit_code=512