Skip to content

Commit 94a3712

Browse files
style: fix lint issues in token_dtype_code fix
- Remove unused pytest import from new unit test - Add missing blank line between top-level functions Signed-off-by: andrewwhitecdw <andrewwhitecdw@users.noreply.github.com>
1 parent 0d20eab commit 94a3712

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/megatron/bridge/training/setup.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ def _get_token_dtype_code(vocab_size: int) -> int:
788788

789789
return 4 if vocab_size <= np.iinfo(np.uint16).max + 1 else 8
790790

791+
791792
def maybe_log_and_save_config(cfg: ConfigContainer) -> None:
792793
"""Save configuration to disk and log non-default values on rank 0.
793794

‎tests/unit_tests/bridge/training/test_setup.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import numpy as np
2-
import pytest
32

43
from megatron.bridge.training.setup import _get_token_dtype_code
54

0 commit comments

Comments
 (0)