Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the plug-in code implemented in cubin such as FlashAttention support the orin platform? #4301

Open
lzymmm123 opened this issue Dec 26, 2024 · 2 comments

Comments

@lzymmm123
Copy link

I see that the x86 platform trtexec reads the fMHA plugin, but the trtexec running on orin does not have the plugin。

ON x86 Tensorrt 8.5.2.2
Image

ON orin Tensorrt 8.5.2.2

Image

@shiyu-ren
Copy link

I also want to use attn plugin in orin platform. But in trt 8.5.2.2, attn plugins include multiHeadCrossAttentionPlugin and multiHeadFlashAttentionPlugin don't support orin which is compute capability 8.7. I would like to ask if there is a way to modify it to use the plugins on Orin, or only add plugin manually to make flash attention work?

@lix19937
Copy link

lix19937 commented Dec 28, 2024

@lzymmm123 Because orin gpu SM is 87, not in
{#if defined(ENABLE_SM75) || defined(ENABLE_SM80) || defined(ENABLE_SM86) || defined(ENABLE_SM89)}

@shiyu-ren This plugin (multiHeadCrossAttentionPlugin and multiHeadFlashAttentionPlugin trt 8.5) only supports GPUs with compute capability 8.0, 8.6 and 8.9. If you want to run on orin sm87, you should write the cuda kernel by yourself.
https://github.com/NVIDIA/TensorRT/tree/release/8.5/plugin/multiHeadFlashAttentionPlugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants