Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch.compile(sync_float8_amax_and_scale_history) not working with triton latest main #681

Open
goldhuang opened this issue Nov 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@goldhuang
Copy link

[rank0]:   File "/opt/venv/lib/python3.10/site-packages/lightning_fabric/wrappers.py", line 411, in _capture
[rank0]:     return compile_fn(*args, **kwargs)
[rank0]:   File "/opt/venv/lib/python3.10/site-packages/torch/__init__.py", line 2448, in compile
[rank0]:     return torch._dynamo.optimize(
[rank0]:   File "/opt/venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 716, in optimize
[rank0]:     return _optimize(rebuild_ctx, *args, **kwargs)
[rank0]:   File "/opt/venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 790, in _optimize
[rank0]:     compiler_config=backend.get_compiler_config()
[rank0]:   File "/opt/venv/lib/python3.10/site-packages/torch/__init__.py", line 2238, in get_compiler_config
[rank0]:     from torch._inductor.compile_fx import get_patched_config_dict
[rank0]:   File "/opt/venv/lib/python3.10/site-packages/torch/_inductor/compile_fx.py", line 49, in <module>
[rank0]:     from torch._inductor.debug import save_args_for_compile_fx_inner
[rank0]:   File "/opt/venv/lib/python3.10/site-packages/torch/_inductor/debug.py", line 26, in <module>
[rank0]:     from . import config, ir  # noqa: F811, this is needed
[rank0]:   File "/opt/venv/lib/python3.10/site-packages/torch/_inductor/ir.py", line 77, in <module>
[rank0]:     from .runtime.hints import ReductionHint
[rank0]:   File "/opt/venv/lib/python3.10/site-packages/torch/_inductor/runtime/hints.py", line 36, in <module>
[rank0]:     attr_desc_fields = {f.name for f in fields(AttrsDescriptor)}
[rank0]:   File "/usr/lib/python3.10/dataclasses.py", line 1198, in fields
[rank0]:     raise TypeError('must be called with a dataclass type or instance') from None
[rank0]: TypeError: must be called with a dataclass type or instance
@tianyu-l
Copy link
Contributor

tianyu-l commented Nov 19, 2024

cc: @weifengpy @vkuzo @drisspg

@tianyu-l tianyu-l added the bug Something isn't working label Nov 19, 2024
@NouamaneTazi
Copy link

Do we know which torch version should we use to make compile work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants