[Bugfix] Fix import gemm_afp4wfp4 failure on AMD (#26068)

Signed-off-by: zhewenli <zhewenli@meta.com>
This commit is contained in:
Zhewen Li 2025-10-02 22:37:25 -07:00 committed by GitHub
parent 9c5ee91b2a
commit 711f485643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,7 +97,7 @@ try:
dispatch_key=current_platform.dispatch_key,
)
except ImportError:
except (ImportError, AttributeError):
dynamic_mxfp4_quant = gemm_afp4wfp4 = None
__all__ = ["QuarkW4A4MXFP4"]