Skip to content

[Bug]: AttributeError: module 'torch._C' has no attribute '_CudaDeviceProperties' #628

@Xwhite4111

Description

@Xwhite4111

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

It had recently started giving me a connection error. I updated it with the "git pull" command. Then I started experiencing this problem. Normally, it was having trouble running it because my graphics card was bad. But it finally worked. GPU: AMD Radeon 570 VRAM: 4 GB, CPU: AMD Ryzen 5 2600 Six-Core Processor, RAM: 16 GB. Operating System: Windows 11. I used a translator, not my native language.

Steps to reproduce the problem

Webui-user.bat

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--opt-split-attention-v1 --lowvram --disable-nan-check --use-directml --precision full --no-half

call webui.bat

What should have happened?

I don't even understand what you're asking. What does it mean? It should work.

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo-2025-08-23-20-24.json

Console logs

venv "F:\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.10.1-amd-42-g7536a140
Commit hash: 7536a1407bbac58d89cd41a39044a37d373fb543
F:\stable-diffusion-webui-directml\venv\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
  warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
F:\stable-diffusion-webui-directml\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
  rank_zero_deprecation(
Launching Web UI with arguments: --opt-split-attention-v1 --lowvram --disable-nan-check --use-directml --precision full --no-half
ONNX failed to initialize: module 'torch._C' has no attribute '_CudaDeviceProperties'
Traceback (most recent call last):
  File "F:\stable-diffusion-webui-directml\launch.py", line 48, in <module>
    main()
  File "F:\stable-diffusion-webui-directml\launch.py", line 44, in main
    start()
  File "F:\stable-diffusion-webui-directml\modules\launch_utils.py", line 714, in start
    import webui
  File "F:\stable-diffusion-webui-directml\webui.py", line 13, in <module>
    initialize.imports()
  File "F:\stable-diffusion-webui-directml\modules\initialize.py", line 39, in imports
    from modules import processing, gradio_extensons, ui  # noqa: F401
  File "F:\stable-diffusion-webui-directml\modules\processing.py", line 18, in <module>
    import modules.sd_hijack
  File "F:\stable-diffusion-webui-directml\modules\sd_hijack.py", line 5, in <module>
    from modules import devices, sd_hijack_optimizations, shared, script_callbacks, errors, sd_unet, patches
  File "F:\stable-diffusion-webui-directml\modules\sd_hijack_optimizations.py", line 13, in <module>
    from modules import shared, errors, devices, sub_quadratic_attention, rocm_triton_windows
  File "F:\stable-diffusion-webui-directml\modules\rocm_triton_windows.py", line 38, in <module>
    class DeviceProperties:
  File "F:\stable-diffusion-webui-directml\modules\rocm_triton_windows.py", line 43, in DeviceProperties
    internal: torch._C._CudaDeviceProperties
AttributeError: module 'torch._C' has no attribute '_CudaDeviceProperties'
Press any key to continue . . .

Additional information

My entire system and graphics card are up to date. It was working fine on the previous version until recently. First, I started experiencing connection issues. This issue also occurred after I updated. Now it won't start at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdirectmlDirectML related or specific issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions