--- torch/utils/_triton.py.orig 2026-05-13 17:40:45 UTC +++ torch/utils/_triton.py @@ -8,9 +8,10 @@ def has_triton_package() -> bool: def has_triton_package() -> bool: try: import triton # noqa: F401 + import triton.language # noqa: F401 # Verify it's a real install, not a namespace pkg return True - except ImportError: + except (ImportError, AttributeError): return False