Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def compute_language_model_loss(self, labels: Tensor, logits: Tensor) -> Tensor:
is_cg_capturable = (
hasattr(self.config, 'cuda_graph_scope')
and self.config.cuda_graph_scope
and 'full_iteration' in self.config.cuda_graph_scope
and (self.config.cuda_graph_scope is not None and 'full_iteration' in self.config.cuda_graph_scope)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is redundant with L141, which will check if None or if the list is empty

)
if is_cg_capturable and not is_te_min_version("2.7.0"):
from megatron.core.utils import get_te_version
Expand Down