Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion checkpoint_engine/ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __init__(
Notice that if auto_pg is True, will destroy the process group after update. It is recommended to set auto_pg to True!
mem_fraction: The proportion (as a fraction) of the current free device memory for allocation.
"""
self._rank = rank or int(os.environ["RANK"])
self._rank = rank if rank is not None else int(os.environ["RANK"])
self._world_size = world_size or int(os.environ["WORLD_SIZE"])
self.device_manager = DeviceManager()
self._gpu_count = gpu_count or self.device_manager.device_module.device_count()
Expand Down
Loading