Skip to content
Closed
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
5 changes: 4 additions & 1 deletion miles/backends/megatron_utils/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
from .replay_utils import register_replay_list_moe
from .update_weight.common import named_params_and_buffers
from .update_weight.update_weight_from_distributed.broadcast import UpdateWeightFromDistributed
from .update_weight.update_weight_from_distributed.p2p import UpdateWeightP2P
from .update_weight.update_weight_from_tensor import UpdateWeightFromTensor

if TYPE_CHECKING:
Expand Down Expand Up @@ -261,6 +260,10 @@ def init(

update_weight_cls = UpdateWeightFromDiskDelta
else:
# Mooncake loads its RDMA shared libraries at import time.
# Other transfer modes must not require a compatible RDMA setup.
from .update_weight.update_weight_from_distributed.p2p import UpdateWeightP2P

update_weight_cls = UpdateWeightP2P
self.weight_updater = update_weight_cls(
self.args,
Expand Down
Loading