Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Dec 3, 2024
1 parent 0274639 commit 756d7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_optimizer/optimizer/muon.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def __init__(
adamw_params = self.get_parameters(adamw_params) if adamw_params is not None else []
params.extend(adamw_params)

self.world_size: int = os.environ.get('WORLD_SIZE', 1)
self.rank: int = os.environ.get('RANK', 0)
self.world_size: int = int(os.environ.get('WORLD_SIZE', 1))
self.rank: int = int(os.environ.get('RANK', 0))

defaults: DEFAULTS = {
'lr': lr,
Expand Down

0 comments on commit 756d7ea

Please sign in to comment.