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

import guard for TorchAO not working in fbcode #1855

Open
HDCharles opened this issue Oct 16, 2024 · 2 comments
Open

import guard for TorchAO not working in fbcode #1855

HDCharles opened this issue Oct 16, 2024 · 2 comments

Comments

@HDCharles
Copy link

https://github.com/pytorch/torchtune/blob/7d29c21149ace4be9fdc2709a03c0a21ba191010/torchtune/utils/_import_guard.py#L20C1-L29C2

_USE_NEW_TENSOR_CORE_TILED_LAYOUT_API = _is_fbcode() or (
not _is_fbcode()
and (
("dev" not in torchao_version and torchao_version >= "0.6.0")
or (
"dev" in torchao_version
and _nightly_version_ge(torchao_version, "2024-10-10")
)
)

the _is_fbcode() part needs to be removed so this can be updated in fbcode. Its preventing us from landing our diff train.
@HDCharles
Copy link
Author

@ebsmothers can you take a look at this, i'm going to put a PR up to handle BC briefly so we can move forward with our diff train but i don't think this should be gated on fbcode, just torchao version.

HDCharles added a commit to pytorch/ao that referenced this issue Oct 16, 2024
Summary:

trying to land diff train, this is causing issues until torchtune can
correct their version guard, issue: pytorch/torchtune#1855

Test Plan: see CI

Reviewers:

Subscribers:

Tasks:

Tags:
@ebsmothers
Copy link
Contributor

@HDCharles this is the version I had added initially. The current version was added by @jerryzh168 in #1834, maybe the two of you can iron this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants