Question 6
Consider a Transformer model with the following specifications for the decoder part:
- Input dimension (embedding size): 20
- Number of heads in multi-head attention: 2
- head output dimension: 10
- Dimension of feed-forward network: 16
- Number of layers in the decoder: 3
Assume that each decoder layer contains:
- One multi-head attention mechanism for self-attention.
- One multi-head attention mechanism for encoder-decoder attention.
- One feed-forward network.
- No bias terms are included.
Calculate the total number of parameters in the decoder part.