0

Wan2GP: ImportError: DLL load failed while importing flash_attn_2_cuda: The specified module could not…

@atmnzposted Mon, 07 Sep 2026 23:46:38 GMT·1 reply

App: Wan2GP (wan.git)
Repo: https://github.com/pinokiofactory/wan.git
Generated: 2026-09-07T23:39:07.643Z
Pinokio: 8.2.0
Platform: win32 x64
Node: v22.21.1

Summary

System

{
  "pinokio": {
    "version": "8.2.0",
    "node": "v22.21.1",
    "platform": "win32",
    "arch": "x64"
  },
  "hardware": {
    "gpu": "nvidia",
    "gpu_model": "nvidia rtx a2000",
    "ram_gb": 32,
    "vram_gb": 6,
    "gpu_driver": "597.06",
    "gpu_target": "sm_86"
  },
  "os": {
    "platform": "Windows",
    "distro": "Microsoft Windows 10 Pro",
    "release": "10.0.19045",
    "codename": "22H2",
    "kernel": "10.0.19045",
    "arch": "x64",
    "build": "19045",
    "servicepack": "0.0",
    "uefi": true
  },
  "system": {
    "manufacturer": "ASUSTeK COMPUTER INC.",
    "model": "ASUS EXPERTCENTER D700SC_D700SCES",
    "version": "1.0",
    "virtual": false
  },
  "cpu": {
    "manufacturer": "Intel",
    "brand": "Gen Intel® Core™ i7-11700",
    "vendor": "GenuineIntel",
    "family": "6",
    "model": "167",
    "stepping": "1",
    "speed": 2.5,
    "speedMin": 2.5,
    "speedMax": 2.5,
    "cores": 16,
    "physicalCores": 8,
    "processors": 1,
    "performanceCores": 16,
    "efficiencyCores": 0,
    "virtualization": false,
    "cache": {
      "l1d": 393216,
      "l1i": 262144,
      "l2": 4194304,
      "l3": 16777216
    }
  },
  "memory": {
    "total": 34189148160,
    "free": 23433908224,
    "used": 10755239936,
    "active": 10755239936,
    "available": 23433908224,
    "buffers": 0,
    "cached": 0,
    "slab": 0,
    "buffcache": 0,
    "swaptotal": 5100273664,
    "swapused": 0,
    "swapfree": 5100273664
  },
  "gpus": [
    {
      "model": "nvidia rtx a2000"
    }
  ],
  "graphics": {
    "controllers": [
      {
        "vendor": "NVIDIA",
        "model": "NVIDIA RTX A2000",
        "bus": "PCI",
        "vram": 6138,
        "vramDynamic": false,
        "driverVersion": "597.06"
      }
    ],
    "displays": [
      {
        "model": "VX753 SERIES",
        "main": true,
        "builtin": false,
        "connection": "DVI",
        "currentResX": 1920,
        "currentResY": 1080,
        "resolutionX": 1920,
        "resolutionY": 1080,
        "pixelDepth": 32,
        "currentRefreshRate": 60
      }
    ]
  },
  "diagnostics": {
    "platform": "win32",
    "arch": "x64",
    "running": {},
    "home": "C:\\pinokio",
    "vars": {
      "pip": {
        "install": {
          "torch": "pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118"
        }
      }
    },
    "memory": {
      "local": {},
      "global": {},
      "rpc": {
        "C:\\pinokio\\api\\wan.git\\start.js": {
          "method": "shell.run",
          "params": {
            "venv": "venv",
            "env": {
              "SERVER_NAME": "127.0.0.1",
              "SERVER_PORT": 42003
            },
            "path": "app",
            "message": [
              "python wgp.py --multiple-images --advanced {{args.compile ? '--compile' : ''}}"
            ],
            "on": [
              {
                "event": "/http://[0-9.:]+/",
                "done": true
              }
            ]
          }
        }
      },
      "input": {
        "C:\\pinokio\\api\\wan.git\\start.js": {}
      },
      "args": {
        "C:\\pinokio\\api\\wan.git\\start.js": {}
      }
    },
    "procs": {},
    "gpu": "nvidia",
    "gpus": [
      {
        "name": "nvidia",
        "model": "nvidia rtx a2000",
        "driver": "597.06"
      }
    ],
    "gpu_model": "nvidia rtx a2000",
    "gpu_driver": "597.06",
    "gpu_target": "sm_86",
    "ram": 32,
    "vram": 6,
    "version": "8.2.0",
    "audio": [
      {
        "id": "HDAUDIO\\FUNC_01&VEN_10DE&DEV_009F&SUBSYS_1028151D&REV_1001\\5&AEB0ACD&0&0001",
        "name": "NVIDIA High Definition Audio",
        "manufacturer": "NVIDIA",
        "revision": null,
        "driver": null,
        "default": null,
        "channel": null,
        "type": "Sound Driver",
        "in": null,
        "out": null,
        "status": "enabled"
      },
      {
        "id": "HDAUDIO\\FUNC_01&VEN_10EC&DEV_0897&SUBSYS_10432440&REV_1004\\4&20A48AB0&0&0001",
        "name": "Realtek High Definition Audio",
        "manufacturer": "Realtek",
        "revision": null,
        "driver": null,
        "default": null,
        "channel": null,
        "type": "Sound Driver",
        "in": null,
        "out": null,
        "status": "enabled"
      }
    ],
    "graphics": {
      "controllers": [
        {
          "vendor": "NVIDIA",
          "model": "NVIDIA RTX A2000",
          "bus": "PCI",
          "vram": 6138,
          "vramDynamic": false,
          "subDeviceId": "0x151D1028",
          "driverVersion": "597.06",
          "name": "NVIDIA RTX A2000",
          "pciBus": "00000000:01:00.0",
          "fanSpeed": 55,
          "memoryTotal": 6138,
          "memoryUsed": 451,
          "memoryFree": 5540,
          "temperatureGpu": 55,
          "powerDraw": 25.75,
          "powerLimit": 70,
          "clockCore": 1200,
          "clockMemory": 6001
        }
      ],
      "displays": [
        {
          "vendor": "VSC",
          "model": "VX753 SERIES",
          "serial": "SG81100054",
          "productionYear": 2011,
          "displayId": "display\\vsc7228\\5&19fd8f9d&0&uid4357_0",
          "deviceName": "\\\\.\\DISPLAY1",
          "main": true,
          "builtin": false,
          "connection": "DVI",
          "resolutionX": 1920,
          "resolutionY": 1080,
          "sizeX": 60,
          "sizeY": 34,
          "pixelDepth": 32,
          "currentResX": 1920,
          "currentResY": 1080,
          "positionX": 0,
          "positionY": 0,
          "currentRefreshRate": 60
        }
      ]
    },
    "osInfo": {
      "platform": "Windows",
      "distro": "Microsoft Windows 10 Pro",
      "release": "10.0.19045",
      "codename": "22H2",
      "kernel": "10.0.19045",
      "arch": "x64",
      "hostname": "ASUS-DESKTOP",
      "fqdn": "ASUS-DESKTOP",
      "codepage": "437",
      "logofile": "windows",
      "serial": "00355-62966-53376-AAOEM",
      "build": "19045",
      "servicepack": "0.0",
      "uefi": true,
      "hypervisor": false,
      "remoteSession": false
    },
    "mem": {
      "total": 34189148160,
      "free": 23433908224,
      "used": 10755239936,
      "active": 10755239936,
      "available": 23433908224,
      "buffers": 0,
      "cached": 0,
      "slab": 0,
      "buffcache": 0,
      "reclaimable": 0,
      "swaptotal": 5100273664,
      "swapused": 0,
      "swapfree": 5100273664,
      "writeback": null,
      "dirty": null
    },
    "shell": "CMD",
    "system": {
      "manufacturer": "ASUSTeK COMPUTER INC.",
      "model": "ASUS EXPERTCENTER D700SC_D700SCES",
      "version": "1.0",
      "serial": "N7PFCG01776530F",
      "uuid": "a9d22a3e-b129-3942-afd4-0d0f51e6c24e",
      "sku": "",
      "virtual": false
    },
    "cpu": {
      "manufacturer": "Intel",
      "brand": "Gen Intel® Core™ i7-11700",
      "vendor": "GenuineIntel",
      "family": "6",
      "model": "167",
      "stepping": "1",
      "revision": "",
      "voltage": "",
      "speed": 2.5,
      "speedMin": 2.5,
      "speedMax": 2.5,
      "governor": "",
      "cores": 16,
      "physicalCores": 8,
      "performanceCores": 16,
      "efficiencyCores": 0,
      "processors": 1,
      "socket": "LGA1200",
      "flags": "de pse tsc msr mce sep mtrr mca cmov psn clfsh ds acpi mmx fxsr sse sse2 ss htt tm ia64 pbe",
      "virtualization": false,
      "cache": {
        "l1d": 393216,
        "l1i": 262144,
        "l2": 4194304,
        "l3": 16777216
      }
    }
  }
}

Logs

logs/api/start.js/1788824139143

Source: api / start.js
Lines: 74 total, last 74 included

[api shell.run]
Microsoft Windows [Version 10.0.19045.7663]
(c) Microsoft Corporation. All rights reserved.

C:\pinokio\api\wan.git\app>conda_hook & conda deactivate & conda deactivate & conda deactivate & conda activate b
ase & C:\pinokio\api\wan.git\app\venv\Scripts\activate C:\pinokio\api\wan.git\app\venv && python wgp.py --multipl
e-images --advanced
Traceback (most recent call last):
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\diffusers\utils\import_utils.py", line 1016, in _get_mo
dule
    return importlib.import_module("." + module_name, self.__name__)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\mcgli\AppData\Roaming\uv\python\cpython-3.11-windows-x86_64-none\Lib\importlib\__init__.py", lin
e 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\diffusers\models\transformers\__init__.py", line 20, in
 <module>
    from .transformer_bria import BriaTransformer2DModel
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\diffusers\models\transformers\transformer_bria.py", lin
e 14, in <module>
    from ..attention_dispatch import dispatch_attention_fn
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\diffusers\models\attention_dispatch.py", line 70, in <m
odule>
    from flash_attn import flash_attn_func, flash_attn_varlen_func
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\flash_attn\__init__.py", line 3, in <module>
    from flash_attn.flash_attn_interface import (
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\flash_attn\flash_attn_interface.py", line 15, in <modul
e>
    import flash_attn_2_cuda as flash_attn_gpu
ImportError: DLL load failed while importing flash_attn_2_cuda: The specified module could not be found.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\pinokio\api\wan.git\app\wgp.py", line 38, in <module>
    from mmgp import offload, safetensors2, profile_type , quant_router
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\mmgp\offload.py", line 75, in <module>        
    from .quant_router import (
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\mmgp\quant_router.py", line 7, in <module>
    from optimum.quanto import QModuleMixin, register_qmodule
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\optimum\quanto\__init__.py", line 19, in <module>      
    from .models import *
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\optimum\quanto\models\__init__.py", line 34, in <module
>
    from .diffusers_models import *
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\optimum\quanto\models\diffusers_models.py", line 30, in
 <module>
    from diffusers import PixArtTransformer2DModel
  File "<frozen importlib._bootstrap>", line 1229, in _handle_fromlist
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\diffusers\utils\import_utils.py", line 1007, in __getat
tr__
    value = getattr(module, name)
            ^^^^^^^^^^^^^^^^^^^^^
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\diffusers\utils\import_utils.py", line 1006, in __getat
tr__
    module = self._get_module(self._class_to_module[name])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\pinokio\api\wan.git\app\venv\Lib\site-packages\diffusers\utils\import_utils.py", line 1018, in _get_mo
dule
    raise RuntimeError(
RuntimeError: Failed to import diffusers.models.transformers.pixart_transformer_2d because of the following error
 (look up to see its traceback):
DLL load failed while importing flash_attn_2_cuda: The specified module could not be found.
Replies (1)
Up to 10 files, 25MB each. Images are optimized; GIFs -> MP4; videos 720p (max 120s).
Wan2GP: ImportError: DLL load failed while importing flash_attn_2_cuda: The specified module could not… · Pinokio