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

building for target webgpu results in "ValueError: At least one GPU backend is expected to be enabled" #28

Open
Abdull opened this issue May 6, 2023 · 2 comments

Comments

@Abdull
Copy link

Abdull commented May 6, 2023

Using version https://github.com/mlc-ai/web-stable-diffusion/tree/ce0c2fbd0fffd7ee39e7be9da34052a8809d98db

environment: Ubuntu 22 LTS server without graphics card.

Executing

python3 build.py --target webgpu

causes the following error:

Traceback (most recent call last):
  File "build.py", line 153, in <module>
    torch_dev_key = utils.detect_available_torch_device()
  File "web_stable_diffusion/utils.py", line 14, in detect_available_torch_device
    raise ValueError("At least one GPU backend is expected to be enabled")
ValueError: At least one GPU backend is expected to be enabled

See

raise ValueError("At least one GPU backend is expected to be enabled")
.

Is it possible to enable a GPU backend in torch even if the building system environment does not provide that GPU backend?

@ford442
Copy link

ford442 commented May 12, 2023

I am using that step by changing build.py:153 to simply say "cuda" - the only other option being 'Metal' for MacOS.
Perhaps you are mixing using the commands to assign tvm target etc in the colab cells - then on the Terminal CLI - there is no torch-dev-key variable defined.

EDIT: i am still unable to finish the build though..

@TigerVersusT
Copy link

you should choose gpu supported wheel at that page, the default link links to a cpu version of wheel

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

3 participants