Skip to content

Commit

Permalink
Update Lightning import (#2549)
Browse files Browse the repository at this point in the history
* update import

Signed-off-by: Maanu Grover <[email protected]>

* run formatting

---------

Signed-off-by: Maanu Grover <[email protected]>
  • Loading branch information
maanug-nv authored Dec 9, 2024
1 parent 2d11f2e commit 0b99443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lm_eval/models/nemo_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ def __init__(
**kwargs,
):
try:
from lightning.pytorch.trainer.trainer import Trainer
from nemo.collections.nlp.modules.common.text_generation_utils import (
generate,
)
from nemo.collections.nlp.parts.nlp_overrides import NLPDDPStrategy
from pytorch_lightning.trainer.trainer import Trainer

self.generate = generate
except ModuleNotFoundError as exception:
Expand Down

0 comments on commit 0b99443

Please sign in to comment.