Skip to content

Commit

Permalink
[misc] fix dist logger (#5782)
Browse files Browse the repository at this point in the history
  • Loading branch information
ver217 authored Jun 5, 2024
1 parent c46e097 commit b9d646f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colossalai/nn/optimizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
CAME: DistributedCAME,
Adafactor: DistributedAdaFactor,
}
_logger = get_dist_logger()


def cast_to_distributed(optim):
if optim.__class__ in optim2DistOptim:
_logger = get_dist_logger()
_logger.info(f"Converting optimizer {optim.__class__.__name__} to its distributed version.", ranks=[0])

if isinstance(optim, GaLoreAdamW8bit):
Expand Down

0 comments on commit b9d646f

Please sign in to comment.