Skip to content

Commit

Permalink
add deprecation warning for old preemption callback
Browse files Browse the repository at this point in the history
Signed-off-by: Ananth Subramaniam <[email protected]>
  • Loading branch information
ananthsub committed Nov 21, 2024
1 parent 8ab46ff commit 8f7b01c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nemo/utils/callbacks/preemption.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
from lightning.pytorch.callbacks import Callback

from nemo.utils import logging
from nemo.utils.decorators import deprecated


@deprecated(explanation="nemo.utils.callbacks.preemption.PreemptionCallback is deprecated in favor of nemo.lightning.pytorch.callbacks.preemption.PreemptionCallback")
class PreemptionCallback(Callback):
"""
PreemptionCallback class creates a callback that checks for preemption during training at the end of every step.
Expand Down

0 comments on commit 8f7b01c

Please sign in to comment.