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

Make TensorCoreTiledLayout import more robust #1912

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

andrewor14
Copy link
Contributor

Summary: Fixes #1908. Previous attempts (#1886) to fix this issue still break in local settings, so it's more robust and simpler to just try catch the import error.

Test Plan:

from torchtune.training.quantization import *

Copy link

pytorch-bot bot commented Oct 28, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/1912

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 9984016 with merge base d3039da (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 28, 2024
@andrewor14
Copy link
Contributor Author

@joecummings @ebsmothers @jainapurva Can you please take a look?

@@ -16,14 +16,3 @@
)

torchao_version = torchao.__version__
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can remove this too

Copy link
Contributor

@ebsmothers ebsmothers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! Once CI is green I think this should be good to merge

Summary: Fixes pytorch#1908.
Previous attempts (pytorch#1886)
to fix this issue still break in local settings, so it's more
robust and simpler to just try catch the import error.

Test Plan:
```
from torchtune.training.quantization import *
```
@joecummings joecummings merged commit d0c6460 into pytorch:main Oct 28, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImportError: cannot import name 'TensorCoreTiledLayoutType'
4 participants