Nodes/ComfyUI Neural Network Toolkit NNT /NNT Define Vanilla Attention
ComfyUI Node

NNT Define Vanilla Attention

A ComfyUI node in NNT Neural Network Toolkit/Transformers with 7 inputs and 1 output.

By inventorado·Created 2 years ago·Updated 2 years ago· 69
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)

NameTypeDefaultDescription
embed_dimINT51264–2048
attention_typeCOMBOscaled_dot_product5 options: dot_product, additive, scaled_dot_product, relative, local
dropoutFLOAT0.10–0.9
use_biasCOMBOTrue2 options: True, False
add_zero_attnCOMBOFalse2 options: True, False
batch_firstCOMBOTrue2 options: True, False
LAYER_STACKoptLIST

Outputs (1)

NameTypeDescription
LISTLIST