ComfyUI Node
NNT Define Positional Encoding
A ComfyUI node in NNT Neural Network Toolkit/Transformers with 7 inputs and 1 output.
NNT Define Positional Encoding
- LAYER_STACK
- LIST
◄d_model512►
◄max_seq_length512►
◄dropout0.1►
◄encoding_typesinusoidal►
◄learnableFalse►
◄normalizeTrue►
CategoryNNT Neural Network Toolkit/Transformers
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| d_model | INT | 51264–2048 | — |
| max_seq_length | INT | 51216–2048 | — |
| dropout | FLOAT | 0.10–0.9 | — |
| encoding_type | COMBO | sinusoidal | 4 options: sinusoidal, learned, rotary, alibi |
| learnable | COMBO | False | 2 options: True, False |
| normalize | COMBO | True | 2 options: True, False |
| LAYER_STACKopt | LIST | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |