ComfyUI Node
NNT Define Vanilla Attention
A ComfyUI node in NNT Neural Network Toolkit/Transformers with 7 inputs and 1 output.
NNT Define Vanilla Attention
- LAYER_STACK
- LIST
◄embed_dim512►
◄attention_typescaled_dot_product►
◄dropout0.1►
◄use_biasTrue►
◄add_zero_attnFalse►
◄batch_firstTrue►
CategoryNNT Neural Network Toolkit/Transformers
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| embed_dim | INT | 51264–2048 | — |
| attention_type | COMBO | scaled_dot_product | 5 options: dot_product, additive, scaled_dot_product, relative, local |
| dropout | FLOAT | 0.10–0.9 | — |
| use_bias | COMBO | True | 2 options: True, False |
| add_zero_attn | COMBO | False | 2 options: True, False |
| batch_first | COMBO | True | 2 options: True, False |
| LAYER_STACKopt | LIST | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |