Skip to content

Commit

Permalink
add trainer.sanity_check
Browse files Browse the repository at this point in the history
  • Loading branch information
sichu2023 committed Oct 15, 2024
1 parent eaabb31 commit c8a7d1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sub-packages/bionemo-llm/src/bionemo/llm/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ def on_megatron_reduce_microbatches_end(
- forward_out: dict of tensors with the following keys:
- token_logits: [b s vocab]
"""
if step.trainer.sanity_checking: # skip sanity check
return

if step.trainer.training and not self.log_train:
return

Expand Down

0 comments on commit c8a7d1a

Please sign in to comment.