Skip to content
Open
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
4 changes: 4 additions & 0 deletions torchtitan/distributed/tensor_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ def maybe_enable_async_tp(
raise RuntimeError(
"Async TP requires 'model' in --compile.components and --compile.enable"
)

group_name = tp_mesh.get_group().group_name
from torch.distributed._symmetric_memory import enable_symm_mem_for_group
enable_symm_mem_for_group(group_name)

torch._inductor.config._micro_pipeline_tp = True

Expand Down
Loading