-
Notifications
You must be signed in to change notification settings - Fork 244
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
fix periodic integration test and add helper message on torchdata import failure #353
Conversation
…mport failure [ghstack-poisoned]
…mport failure ghstack-source-id: 1c2355c2d7d05f3118a8864ac996afe552fa3ff6 Pull Request resolved: #353
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
torchtitan/datasets/hf_datasets.py
Outdated
|
||
try: | ||
from torchdata.stateful_dataloader import StatefulDataLoader | ||
except ModuleNotFoundError as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: maybe also include import error here incase user did not install torch data at all? For my case I had tried to install but the version was wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out ModuleNotFoundError
is a subclass of ImportError
, so changing to ImportError
here.
…rchdata import failure" 1. use the same generic torch CI workflow for periodic integration test, as in #325 for cpu/gpu unit tests. 2. `StatefulDataloader` is not in `torchdata` official release yet. Print helper message if user doesn't have a recent nightly installed. [ghstack-poisoned]
…mport failure ghstack-source-id: 4db9ec111c83f7873253f19f0c95a997800e0f6b Pull Request resolved: #353
…mport failure ghstack-source-id: 4db9ec111c83f7873253f19f0c95a997800e0f6b Pull Request resolved: #353
…mport failure ghstack-source-id: 4db9ec111c83f7873253f19f0c95a997800e0f6b Pull Request resolved: #353
…mport failure ghstack-source-id: 4db9ec111c83f7873253f19f0c95a997800e0f6b Pull Request resolved: pytorch#353
…mport failure ghstack-source-id: 4db9ec111c83f7873253f19f0c95a997800e0f6b Pull Request resolved: #353
…mport failure ghstack-source-id: 4db9ec111c83f7873253f19f0c95a997800e0f6b Pull Request resolved: pytorch#353
Stack from ghstack (oldest at bottom):
StatefulDataloader
is not intorchdata
official release yet. Print helper message if user doesn't have a recent nightly installed.