You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"\n{'='*60}\nERROR: AMD ROCm detected but aiter is not installed.\naiter is REQUIRED for LightX2V to work on AMD GPUs.\n\nPlease install aiter:\n{AITER_INSTALL_CMD}\n{'='*60}\n"
98
90
)
91
+
raiseImportError(f"aiter is required for AMD ROCm support. Please install: pip install git+{AITER_REPO}@{AITER_COMMIT}")
99
92
100
93
101
94
@PLATFORM_DEVICE_REGISTER("amd_rocm")
@@ -113,24 +106,24 @@ class AmdRocmDevice:
113
106
definit_device_env():
114
107
"""
115
108
Initialize AMD ROCm optimizations.
116
-
109
+
117
110
This is called from lightx2v_platform.set_ai_device when platform is amd_rocm.
118
111
1. Disable cudnn for faster VAE convolution
119
112
2. Inject aiter as sgl_kernel compatibility layer (REQUIRED on AMD)
logger.warning(f"aiter not found on AMD ROCm platform. For optimal performance, please install aiter:\n{AITER_INSTALL_CMD}")
44
41
else:
45
42
logger.debug("aiter not found (only available on AMD ROCm platform)")
46
43
@@ -61,22 +58,18 @@ class AiterAttnWeight(AttnWeightTemplate):
61
58
62
59
def__init__(self):
63
60
self.config= {}
64
-
61
+
65
62
# Check platform first
66
63
ifnotIS_AMD_ROCM:
67
64
raiseRuntimeError(
68
65
"aiter_attn is only available on AMD ROCm platform.\n"
69
66
"Current platform is not AMD ROCm (torch.version.hip is not set).\n"
70
67
"For NVIDIA GPUs, please use 'flash_attn2' or 'flash_attn3' instead."
71
68
)
72
-
69
+
73
70
# Check aiter availability
74
71
ifnotAITER_AVAILABLE:
75
-
raiseImportError(
76
-
f"aiter is not installed on AMD ROCm platform.\n"
77
-
f"Import error: {AITER_IMPORT_ERROR}\n"
78
-
f"Please install aiter for optimal performance:\n{AITER_INSTALL_CMD}"
79
-
)
72
+
raiseImportError(f"aiter is not installed on AMD ROCm platform.\nImport error: {AITER_IMPORT_ERROR}\nPlease install aiter for optimal performance:\n{AITER_INSTALL_CMD}")
0 commit comments