Add platform method to enable custom collective ops registration (#34760)

Signed-off-by: Naina Kuruballi Mahesh <nainakm@meta.com>
This commit is contained in:
nkm-meta
2026-03-05 00:50:32 +00:00
committed by GitHub
parent 2ed4722e26
commit 792cbd64ca
4 changed files with 22 additions and 3 deletions
+9
View File
@@ -654,6 +654,15 @@ class Platform:
"""
return False
@classmethod
def use_custom_op_collectives(cls) -> bool:
"""
Whether this platform should use torch.ops.vllm.* custom ops for collectives.
Returns False by default - platforms must explicitly opt-in.
"""
return False
@classmethod
def use_sync_weight_loader(cls) -> bool:
"""