Skip to content

Commit

Permalink
Apply isort and black reformatting
Browse files Browse the repository at this point in the history
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
  • Loading branch information
akoumpa committed Sep 23, 2024
1 parent a9ff192 commit 9c81095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nemo/collections/llm/gpt/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ def configure_model(self) -> None:
if not hasattr(self, "module"):
if self.config.enable_cuda_graph:
assert HAVE_TE, "Transformer Engine is required for cudagraphs."
assert getattr(self.config,
'use_te_rng_tracker', False
), "Transformer engine's RNG tracker is required for cudagraphs, it can be "\
assert getattr(self.config, 'use_te_rng_tracker', False), (
"Transformer engine's RNG tracker is required for cudagraphs, it can be "
"enabled with use_te_rng_tracker=True'."
)

self.module = self.config.configure_model(self.tokenizer)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from importlib.metadata import version
from typing import Any, Callable, Optional

import torch
import packaging
import torch

from nemo.collections.nlp.modules.common.megatron.utils import ApexGuardDefaults
from nemo.collections.nlp.parts import utils_funcs
Expand Down

0 comments on commit 9c81095

Please sign in to comment.