-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
upgrade to PTL 1.7 #4672
upgrade to PTL 1.7 #4672
Conversation
c8b6c8f
to
4622525
Compare
@@ -848,6 +848,7 @@ def forward( | |||
# Output. [sq, b, h] | |||
# ================= | |||
|
|||
# print(context_layer.device) |
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.
Can you remove this print statement?
@@ -1469,3 +1473,33 @@ def on_train_batch_end(self, outputs, batch: Any, batch_idx: int, unused: int = | |||
if batch_idx == self._nsys_profile_end_step and get_rank() in self._nsys_profile_ranks: | |||
logging.info("====== End nsys profiling ======") | |||
torch.cuda.cudart().cudaProfilerStop() | |||
|
|||
def cuda(self, device=None): |
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.
Just adding a note that we need to remove this as soon as PTL 7.2 is out with the fix.
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.
LGTM. Thanks!
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
…lback now Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: ericharper <complex451@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
c307642
to
cf81127
Compare
Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com>
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.
Re-approving.
* upgrade to PTL 1.7 Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * min version Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * replace progressbar_refresh_rate with enable progressbar, this is callback now Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * progressbar Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * replace removed PTL 1.7 args, fix cpu tests, remove p-tune older script Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * revert ssl test fixes Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * override trainer property and fix numba grad check Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * NLPDDPlugin -> NLPDDPStrategy Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * style fix Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * set max_steps default as -1 Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix maxsteps in notebooks Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * update trainer config Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix speech2label jenkins Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix speech2text jenkins Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * DDPPlugin -> DDPStrategy Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * remove provided strategy keys from trainer config nlp Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * check other examples Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * override LightningModule .cuda call to maintain pytorch default behavior Signed-off-by: ericharper <complex451@gmail.com> * revert gpt eval jenkins test Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * overwrite cuda class to PTL Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * review feedback Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * remove checkpoint callback from main config Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * patch fix for intentslot classification test Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * style fix Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> Signed-off-by: ericharper <complex451@gmail.com> Co-authored-by: ericharper <complex451@gmail.com>
* upgrade to PTL 1.7 Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * min version Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * replace progressbar_refresh_rate with enable progressbar, this is callback now Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * progressbar Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * replace removed PTL 1.7 args, fix cpu tests, remove p-tune older script Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * revert ssl test fixes Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * override trainer property and fix numba grad check Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * NLPDDPlugin -> NLPDDPStrategy Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * style fix Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * set max_steps default as -1 Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix maxsteps in notebooks Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * update trainer config Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix speech2label jenkins Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix speech2text jenkins Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * DDPPlugin -> DDPStrategy Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * remove provided strategy keys from trainer config nlp Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * check other examples Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * override LightningModule .cuda call to maintain pytorch default behavior Signed-off-by: ericharper <complex451@gmail.com> * revert gpt eval jenkins test Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * overwrite cuda class to PTL Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * review feedback Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * remove checkpoint callback from main config Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * patch fix for intentslot classification test Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * style fix Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> Signed-off-by: ericharper <complex451@gmail.com> Co-authored-by: ericharper <complex451@gmail.com> Signed-off-by: Anas Abou Allaban <aabouallaban@pm.me>
* upgrade to PTL 1.7 Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * min version Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * replace progressbar_refresh_rate with enable progressbar, this is callback now Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * progressbar Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * replace removed PTL 1.7 args, fix cpu tests, remove p-tune older script Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * revert ssl test fixes Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * override trainer property and fix numba grad check Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * NLPDDPlugin -> NLPDDPStrategy Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * style fix Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * set max_steps default as -1 Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix maxsteps in notebooks Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * update trainer config Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix speech2label jenkins Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * fix speech2text jenkins Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * DDPPlugin -> DDPStrategy Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * remove provided strategy keys from trainer config nlp Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * check other examples Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * override LightningModule .cuda call to maintain pytorch default behavior Signed-off-by: ericharper <complex451@gmail.com> * revert gpt eval jenkins test Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * overwrite cuda class to PTL Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * review feedback Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * remove checkpoint callback from main config Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * patch fix for intentslot classification test Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> * style fix Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> Signed-off-by: nithinraok <nithinrao.koluguri@gmail.com> Signed-off-by: ericharper <complex451@gmail.com> Co-authored-by: ericharper <complex451@gmail.com> Signed-off-by: Hainan Xu <hainanx@nvidia.com>
Signed-off-by: nithinraok nithinrao.koluguri@gmail.com
What does this PR do?
Upgrade PTL version to 1.7.2
Collection: All
Changelog
TODO:
.cuda()
called without specifying index Lightning-AI/pytorch-lightning#14128 was released as part of 1.7.2Before your PR is "Ready for review"
Pre checks:
PR Type: