Skip to content

[Feature]: Enhance AllToAll performance #13360

Description

@taylor-yb-lee

🚀 The feature, motivation and pitch

(Part of the optimization effort for DeepSeek-R1 #12784)

In AutoDeploy backend for DeepSeek-R1 model, mla kernel (SwapsMmaAb, 1 CTA kernel) is 2x slower than that is used for PT(KeepsMmaAb, 2 CTA kernel).
But we cannot use 2CTA kernel in AutoDeploy, because

However, here the AllToAll performance in AutoDeploy is extremely slow.
So we need to have a performant AllToAll as PT.

How to reproduce:
working branch : https://github.com/nv-auto-deploy/TensorRT-LLM/tree/taylor/deepgemm_eran_mla

Add and change examples/auto_deploy/model_registry/configs/deepseek-r1.yaml as below:

max_num_tokens: 8192
detect_sharding:
   enable_attention_dp: true

Rum cmd:

bench-sweep --model deepseek-ai/DeepSeek-R1-0528 --config-path deepseek-r1.yaml--server-type trtllm-autodeploy --isl 1000 --osl 1000 --concurrencies 256 --world-size 8

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.

Metadata

Metadata

Labels

AutoDeploy<NV> AutoDeploy Backendfeature requestNew feature or request. This includes new model, dtype, functionality support

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions