module 'torch' has no attribute 'dml'

2.5k Views Asked by At

I want to run Stable Diffusion on my PC with an integrated AMD graphics card (Vega 11 in Ryzen 5 2400G). The webui-user.bat command line arguments contain

"--autolaunch --precision full --no-half --skip-torch-cuda-test --opt-sub-quad-attention --lowvram --lowram --disable-nan-check --backend directml".

What should I do?

Used the instruction from link , but it didn't help. When running

`AttributeError: module 'torch' has no attribute 'dml'

1

There are 1 best solutions below

0
Elia Dugato On

I fixed it by deleting the venv folder and running with --use-directml in the args.