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.51k stars 220 forks source link

The operation failed for an operation-specific reason #48

Open TechGeekUnited opened 11 months ago

TechGeekUnited commented 11 months ago

I get the error "Generate error, OperationError: The operation failed for an operation-specific reason" when trying to use the demo of both this (WEBSD) and WebLLM i have a computer with a 12th Gen. Intel(R) Core(TM) i7-12700F CPU, 2X 8GB DDR4 Memory, 1X SSD, 2X HDD, And a NVIDIA GEForce RTX 3060, It is running Windows 10 ( Edition Windows 10 Home Version 22H2 Installed on ‎7/‎15/‎2023 OS build 19045.3208 Experience Windows Feature Experience Pack 1000.19041.1000.0 ) Running Google Chrome Version 115.0.5790.110 (Official Build) (64-bit)

Attached it a screenshot of WEBSD after it gave the error and froze. Screenshot 2023-08-03 215302

TechGeekUnited commented 11 months ago

Note: I just tried and WebSD works with canary but my screen goes black and then WEBLLM Fails still GPU connection lost worker.360c8a9c.js:1 Uncaught (in promise) DOMException: Device is lost Promise.then (async) deviceCopyFromGPU @ index.js:1199 (anonymous) @ index.js:1145 (anonymous) @ index.js:2965 TVMWasmPackedCFunc @ index.js:505 $func1830 @ 00acde3e:0x10ecb0 $func1927 @ 00acde3e:0x117cc4 $func1666 @ 00acde3e:0x107796 $_ZN3tvm7runtime7NDArray10CopyFromToEPK8DLTensorPS2_Pv @ 00acde3e:0xd2768 $TVMArrayCopyFromTo @ 00acde3e:0x10cf7d copyFrom @ index.js:1675 updateLogitsOnCPU @ llm_chat.ts:296 (anonymous) @ llm_chat.ts:306 (anonymous) @ tslib.es6.mjs:121 AC @ tslib.es6.mjs:117 sampleTokenFromLogits @ worker.360c8a9c.js:45 (anonymous) @ llm_chat.ts:184 (anonymous) @ tslib.es6.mjs:121 AC @ tslib.es6.mjs:117 prefillStep @ worker.360c8a9c.js:45 (anonymous) @ chat_module.ts:206 (anonymous) @ tslib.es6.mjs:121 AC @ tslib.es6.mjs:117 prefill @ worker.360c8a9c.js:45 (anonymous) @ chat_module.ts:148 (anonymous) @ tslib.es6.mjs:121 AC @ tslib.es6.mjs:117 generate @ worker.360c8a9c.js:45 (anonymous) @ web_worker.ts:125 (anonymous) @ tslib.es6.mjs:121 AC @ tslib.es6.mjs:117 (anonymous) @ web_worker.ts:112 (anonymous) @ web_worker.ts:82 (anonymous) @ tslib.es6.mjs:121 AC @ tslib.es6.mjs:117 handleTask @ worker.360c8a9c.js:45 onmessage @ web_worker.ts:112 self.onmessage @ worker.ts:7 /#chat-demo:1 GPU connection lost simple_chat.ts:240 undefined