Skip to content

Commit

Permalink
fix cpu local mehs
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Nov 20, 2024
1 parent 84bf9b3 commit f0245f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zeroband/diloco.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from zeroband.utils.logging import get_logger
from torch.distributed._tensor.api import DTensor
from functools import lru_cache
from torch.distributed.device_mesh import init_device_mesh


class DilocoConfig(BaseConfig):
Expand Down Expand Up @@ -67,6 +68,7 @@ def __init__(
# just force compilation

self.pccl_communicator = pccl_communicator
self.cpu_local_mesh = init_device_mesh("cpu", mesh_shape=(self.local_pg.size(),))

self._logger = get_logger()
self.world_info = get_world_info()
Expand Down

0 comments on commit f0245f1

Please sign in to comment.