Add platform method to enable custom collective ops registration (#34760)
Signed-off-by: Naina Kuruballi Mahesh <nainakm@meta.com>
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user