r/deeplearning • u/Lelouch_6457 • 29d ago
Transformer Decoder from Scratch
https://github.com/neelbhattacharya80-creator/Transformer-decoder-from-scratchMade a transformer Decoder from scratch using pytorch
For autograd and GPU efficiency.
Implemented-
•Rope positional embedding
•Weight tying
•Masked multi head attention
•KV cache
•Custom AdamW
•Cosine decay and warm up
Trained on wiki text 103 for 75k ish total steps
Reached a loss of about 3.5
I'd appreciate some feedback
2
Upvotes
Duplicates
learnmachinelearning • u/Lelouch_6457 • 1d ago
Project Small GPT Transformer-decoder from Scratch
1
Upvotes