ComfyUI Node
NNT Define Transformer Encoder Layer
A ComfyUI node in NNT Neural Network Toolkit/Transformers with 8 inputs and 1 output.
NNT Define Transformer Encoder Layer
- LAYER_STACK
- LIST
◄d_model512►
◄nhead8►
◄dim_feedforward2048►
◄dropout0.1►
◄activationrelu►
◄batch_firstTrue►
◄norm_firstFalse►
CategoryNNT Neural Network Toolkit/Transformers
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| d_model | INT | 51264–2048 | — |
| nhead | INT | 81–32 | — |
| dim_feedforward | INT | 2048128–8192 | — |
| dropout | FLOAT | 0.10–0.9 | — |
| activation | COMBO | relu | 4 options: relu, gelu, silu, tanh |
| batch_first | COMBO | True | 2 options: True, False |
| norm_first | COMBO | False | 2 options: True, False |
| LAYER_STACKopt | LIST | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |