Complete transformer model (Encoder + Decoder + Interconections)
45 次查看(过去 30 天)
显示 更早的评论
Hello
I am wondering if there is already a Matlab keyboard warrior that has coded (on Matlab) a full transformer model:
- Inputs: Input Embedding + Positional Encoding
- Encoder: Multihead Attention + Add & Normalisation + Feedforward + Add & Normatisation
- Outputs: Output Embedding + Positional Encoding
- Decoder: Masked Multihead Attention + Add & Normalisation + Multihead Attention + Add & Normalisation + Feedforward + Add & Normatisation
- Final: Linear and Softmax.
Including all the interconnections between them.
Thank you
Will
0 个评论
回答(1 个)
Yash Sharma
2024-8-5
Hi Will,
You can take a look at the following file exchange submission.
Transformers Models:- https://www.mathworks.com/matlabcentral/fileexchange/107375-transformer-models
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!