Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: #226

Closed
2 tasks done
bihailantian655 opened this issue Oct 16, 2023 · 6 comments
Closed
2 tasks done

[Bug]: #226

bihailantian655 opened this issue Oct 16, 2023 · 6 comments

Comments

@bihailantian655
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Have you read FAQ on README?

  • I have updated WebUI and this extension to the latest version

What happened?

Send to miniPaint
错误
RuntimeError: CUDA error: invalid configuration argument CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

Steps to reproduce the problem

default settings

What should have happened?

default settings

Commit where the problem happens

webui: 1.6

What browsers do you use to access the UI ?

No response

Command Line Arguments

Send to miniPaint
错误
RuntimeError: CUDA error: invalid configuration argument CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Console logs

Traceback (most recent call last):
  File "K:\sd-webui-aki-v4.4\python\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "K:\sd-webui-aki-v4.4\python\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "K:\sd-webui-aki-v4.4\python\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "K:\sd-webui-aki-v4.4\python\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "K:\sd-webui-aki-v4.4\python\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "K:\sd-webui-aki-v4.4\python\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "K:\sd-webui-aki-v4.4\python\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "K:\sd-webui-aki-v4.4\modules\call_queue.py", line 94, in f
    mem_stats = {k: -(v//-(1024*1024)) for k, v in shared.mem_mon.stop().items()}
  File "K:\sd-webui-aki-v4.4\modules\memmon.py", line 92, in stop
    return self.read()
  File "K:\sd-webui-aki-v4.4\modules\memmon.py", line 77, in read
    free, total = self.cuda_mem_get_info()
  File "K:\sd-webui-aki-v4.4\modules\memmon.py", line 34, in cuda_mem_get_info
    return torch.cuda.mem_get_info(index)
  File "K:\sd-webui-aki-v4.4\python\lib\site-packages\torch\cuda\memory.py", line 618, in mem_get_info
    return torch.cuda.cudart().cudaMemGetInfo(device)
RuntimeError: CUDA error: device-side assert triggered
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Additional information

bb

@bihailantian655
Copy link
Author

总帧数 设为 0

@continue-revolution
Copy link
Owner

continue-revolution commented Oct 16, 2023

#204

This seems like not something because of xformers, but I have no idea why.

@continue-revolution
Copy link
Owner

Please search for TORCH_USE_CUDA_DSA and see if one of those solutions work for you, especially #101 (comment)

@bihailantian655
Copy link
Author

大佬你是中国人么

@bihailantian655
Copy link
Author

秋叶 设置 cross attention sdp ,可行

@continue-revolution
Copy link
Owner

那就是xformers的问题,看样子基本上cuda的毛病都是因为xformers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants