[1/N] Optimize All Reduce - Benchmark different AR operations (#13797)

Co-authored-by: luoyuan.luo <luoyuan.luo@antgroup.com>
This commit is contained in:
Yuan Luo
2026-01-26 22:44:13 +08:00
committed by GitHub
parent 6c0f9b4824
commit 7bb41989fa
2 changed files with 353 additions and 2 deletions

View File

@@ -325,12 +325,12 @@ class CustomAllreduce:
# little performance improvement over NCCL.
if not _is_hip:
if self.world_size == 2 or self.full_nvlink:
return inp_size < self.max_size
return inp_size <= self.max_size
return False
if _is_hip:
if self.full_nvlink:
return inp_size < self.max_size
return inp_size <= self.max_size
return False
return False