You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They offer little configurability and instead use preconfigured logic.
Suggestion:
Make dist ops more atomic, e.g., torch.ops.auto_deploy.trtllm_all_reduce should call trt-llm's all-reduce and nothing else. There can be an equivalent torch.ops.auto_deploy.torch_all_reduce that is only calling torch's all_reduce under the hood.
Dispatching can be done on the transform level where the right ops can be inserted
Alternatives
No response
Additional context
No response
Before submitting a new issue...
Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
They all check is_trtllm_op_available and call the torch/trtllm op accordingly:
if trtllm_dist.is_trtllm_op_available():
return trtllm_dist.trtllm_allgather(tensor, dim=dim, sizes=sizes)
tl = [torch.zeros_like(tensor) for _ in range(dist.get_world_size())]
dist.all_gather(tl, tensor)
these ops are used in patterns: _allreduce_residual_rmsnorm_pattern, _allreduce_residual_rmsnorm_pattern2
and in replace functions: _allreduce_residual_rmsnorm_repl,
the transforms that insert them are:
_shard_parameter_node(), _insert_sharded_moe(), _insert_sharded_mxfp4_mlp_ep(). BMMShardingInfo._apply, FuseAllreduceResidualRMSNorm
Activity
MrGeva commentedon Nov 17, 2025
Analyzed current code
Currently these custom ops call distributed ops:
They all check is_trtllm_op_available and call the torch/trtllm op accordingly:
these ops are used in patterns: _allreduce_residual_rmsnorm_pattern, _allreduce_residual_rmsnorm_pattern2
and in replace functions: _allreduce_residual_rmsnorm_repl,
the transforms that insert them are:
_shard_parameter_node(), _insert_sharded_moe(), _insert_sharded_mxfp4_mlp_ep(). BMMShardingInfo._apply, FuseAllreduceResidualRMSNorm
[#9198][feat] Refactor dist ops in AutoDeploy (#9301)
[NVIDIA#9198][feat] Refactor dist ops in AutoDeploy (NVIDIA#9301)
[TRTLLM-7963][feat] Cold L2 cache when doing autotune benchmarking. (N…
[NVIDIA#9198][feat] Refactor dist ops in AutoDeploy (NVIDIA#9301)