Downloads · 30 days
0
makiisthebes/transformers_scratch
transformers_scratch is a machine learning model from makiisthebes. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This project consists of code for Transformer Block, Single Head Attention and Multi-head attention and Casual Mask from Scratch.
Downloads · 30 days
0
Access
Public
Updated Apr 14, 2024
Repo size
—
Likes
1
Public
Click a slice to open those files.
.docx71 KB · 64%
From the Hugging Face model README
This project consists of code for Transformer Block, Single Head Attention and Multi-head attention and Casual Mask from Scratch.
To solidify knowledge and for reference, attention block is based on paper "Attention is all you need".



[More Information Needed]
Use the code below to get started with the model.
[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
Objective in this model was to understand Transformers, and the basic self attention module. Self Attention, Multi-Head Attention and Casual Mask and Transformer Block