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

LayerNormalization failure of TensorRT 8.2.4.2 #3642

Closed
lin-lcx opened this issue Jan 31, 2024 · 6 comments
Closed

LayerNormalization failure of TensorRT 8.2.4.2 #3642

lin-lcx opened this issue Jan 31, 2024 · 6 comments
Assignees
Labels
triaged Issue has been triaged by maintainers

Comments

@lin-lcx
Copy link

lin-lcx commented Jan 31, 2024

Description

Does 8.2.4.2 support LayerNormalization?
With the same onnx model and conversion instructions, I successfully converted on 8.6.1.6, but not on 8.2.4.2. But I have to adapt to the 8.2.4.2 environment

[01/31/2024-10:15:34] [I] [TRT] No importer registered for op: LayerNormalization. Attempting to import as plugin.
[01/31/2024-10:15:34] [I] [TRT] Searching for plugin: LayerNormalization, plugin_version: 1, plugin_namespace: 
[01/31/2024-10:15:34] [E] [TRT] ModelImporter.cpp:773: While parsing node number 16 [LayerNormalization -> "/embeddings/norm/LayerNormalization_output_0"]:
[01/31/2024-10:15:34] [E] [TRT] ModelImporter.cpp:774: --- Begin node ---
[01/31/2024-10:15:34] [E] [TRT] ModelImporter.cpp:775: input: "/embeddings/patch_embeddings/Transpose_output_0"
input: "embeddings.norm.weight"
input: "embeddings.norm.bias"
output: "/embeddings/norm/LayerNormalization_output_0"
name: "/embeddings/norm/LayerNormalization"
op_type: "LayerNormalization"
attribute {
  name: "axis"
  i: -1
  type: INT
}
attribute {
  name: "epsilon"
  f: 1e-05
  type: FLOAT
}

Environment

TensorRT Version:8.2.4.2

NVIDIA GPU:2080ti

NVIDIA Driver Version:

CUDA Version:11.1

CUDNN Version:

@zerollzeng
Copy link
Collaborator

Could you please try latest 9.2/9.3 release? Thanks!

@zerollzeng zerollzeng self-assigned this Feb 1, 2024
@zerollzeng zerollzeng added the triaged Issue has been triaged by maintainers label Feb 1, 2024
@lin-lcx
Copy link
Author

lin-lcx commented Feb 2, 2024

Due to engineering environment restrictions, I must use the 8.2.4.2 environment. I am using trtexec

@zerollzeng
Copy link
Collaborator

IIRC most of the transformer support are added since TRT 8.6. And we won't back port feature back to old release.

@ttyio
Copy link
Collaborator

ttyio commented Mar 5, 2024

closing since no activity for more than 3 weeks, thanks all!

@ttyio ttyio closed this as completed Mar 5, 2024
@ZeppelinSCB
Copy link

I'm facing the same situation where I have to use TRT 8.2, may I know how you solved the problem?

@sushilkhadkaanon
Copy link

Hi @lin-lcx @ZeppelinSCB , How did you guys solve the issue? I have the similar situation, I have to adapt to the TensorRT version 8.4.1,
Did you guys write a custom LayerNormalization plugin, if so Could you help me on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Issue has been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

5 participants