Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
zigzagcai committed Sep 11, 2024
1 parent 24e391a commit 71aa031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internlm/data/megatron/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def print_rank_0(message):


def code(dtype):
for k in dtypes.keys():
if dtypes[k] == dtype:
for k, v in dtypes.items():
if v == dtype:
return k
raise ValueError(dtype)

Expand Down

0 comments on commit 71aa031

Please sign in to comment.