microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.95k stars 6.34k forks source link

Latest VCPKG Triton install, fails Xformers dependencies. #41382

Open Xorba001 opened 2 days ago

Xorba001 commented 2 days ago

Library name

AttributeError: module 'triton' has no attribute 'language'

New version number

Xformers 0.0.28.post1, torch2.4.1 with cuda121

Other information that may be useful (release notes, etc...)

Installing Triton for Xformers, as such. Now, as Xformers finds triton, it doesn't bypass it's usage anymore, but fails onto an attribute language missing ! All my Xformers projects are now failing to load. 😣🙄 373959645-450bd28d-3ad9-413e-ab68-66c1adebde11

python -m xformers.info output Traceback (most recent call last): File "", line 189, in _run_module_as_main File "", line 112, in _get_module_details File "E:\Python312\Lib\site-packages\xformers__init.py", line 12, in from .checkpoint import ( # noqa: E402, F401 File "E:\Python312\Lib\site-packages\xformers\checkpoint.py", line 475, in class SelectiveCheckpointWrapper(ActivationWrapper): File "E:\Python312\Lib\site-packages\xformers\checkpoint.py", line 491, in SelectiveCheckpointWrapper @torch.compiler.disable ^^^^^^^^^^^^^^^^^^^^^^ File "E:\Python312\Lib\site-packages\torch\compiler__init__.py", line 152, in disable import torch._dynamo File "E:\Python312\Lib\site-packages\torch_dynamo\init__.py", line 2, in from . import convert_frame, eval_frame, resume_execution File "E:\Python312\Lib\site-packages\torch_dynamo\convert_frame.py", line 48, in from . import config, exc, trace_rules File "E:\Python312\Lib\site-packages\torch_dynamo\exc.py", line 12, in from .utils import counters File "E:\Python312\Lib\site-packages\torch_dynamo\utils.py", line 1066, in common_constant_types.add(triton.language.dtype) ^^^^^^^^^^^^^^^ AttributeError: module 'triton' has no attribute 'language'

dg0yt commented 2 days ago

This issue doesn't seem to be related to vcpkg.