Skip to content
Merged
Changes from 1 commit
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 src/twinkle/utils/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def gather_object(object: Any, device_mesh: DeviceMesh, process_group=None):
output_objects = [object]
group_size = 1
if dist.is_available() and dist.is_initialized():
if Platform.device_prefix() == 'npu':
if Platform.device_prefix() == 'npu' and 'fsdp' not in device_mesh.mesh_dim_names:
Comment thread
0hujun marked this conversation as resolved.
Outdated
# On NPU, letting Python object collectives use the default HCCL
# group previously hung in 8-card metric collection at
# ``dist.all_gather_object(...)``. Reuse Megatron's dedicated Gloo
Expand Down