Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
support twoshot allreduce mainly from tensorrt llm, so custom allreduce can support larger data size, correctness has been verified, performance result in a100:
test_size = 512, world_size = 2, vllm time = 0.0130ms,custom time = 0.0119ms
test_size = 4096, world_size = 2, vllm time = 0.0113ms,custom time = 0.0136ms
test_size = 32768, world_size = 2, vllm time = 0.0121ms,custom time = 0.0122ms
test_size = 262144, world_size = 2, vllm time = 0.0176ms,custom time = 0.0170ms
test_size = 524288, world_size = 2, vllm time = 0.0223ms,custom time = 0.0228ms
test_size =1048576, world_size = 2, vllm time = 0.0325ms,custom time = 0.0326ms
test_size = 2097152, world_size = 2, vllm time = 0.0553ms,custom time = 0.0543ms
test_size = 512, world_size = 4, vllm time = 0.0135ms,custom time = 0.0119ms
test_size = 4096, world_size = 4, vllm time = 0.0121ms,custom time = 0.0140ms
test_size = 32768, world_size = 4, vllm time = 0.0135ms,custom time = 0.0137ms
test_size = 262144, world_size = 4, vllm time = 0.0239ms,custom time = 0.0206ms
test_size = 524288, world_size = 4, vllm time = 0.0313ms,custom time = 0.0306ms
test_size = 1048576, world_size = 4, vllm time = 0.0471ms,custom time = 0.0455ms
test_size = 512, world_size = 8, vllm time = 0.0140ms,custom time = 0.0137ms
test_size = 4096, world_size = 8, vllm time = 0.0142ms,custom time = 0.0165ms
test_size = 32768, world_size = 8, vllm time = 0.0186ms,custom time = 0.0189ms
test_size = 262144, world_size = 8, vllm time = 0.0300ms,custom time = 0.0287ms
test_size = 524288, world_size = 8, vllm time = 0.0354ms,custom time = 0.0348ms
test_size = 1048576, world_size = 8, vllm time = 0.0531ms,custom time = 0.0515ms
end to end performance will be analyzed in #2511
Modifications
Checklist