Overview of embLayerNormPlugin
mainThe embLayerNormPlugin is a TensorRT plugin designed to perform two primary tasks in a single operation:
- Embedding Lookup and Normalization: It embeds an input sequence by performing token embedding lookup, segment embedding lookup, adding positional embeddings, and finally applying layer normalization.
- Mask Preprocessing: Depending on the version, it can preprocess input masks used to identify valid tokens in padded sequences.
Versioning Recommendations
- Deprecated: Versions 1-3 (using
IPluginV2DynamicExt) are deprecated and will be removed. - Recommended: Versions 4-6 (using
IPluginV3) should be used for new implementations.
Hardware Requirements
- This plugin requires GPUs with compute capability >= 7.0.