jaymody
Re:Revealing example of self-attention, the building block of transfor...
on Saturday April 29, 2023 @11:02PM (#35759366)
I wrote an article that attempts to explain attention in a more intuitive manner, without any PyTorch or other deep learning specific context: https://jaykmody.com/blog/attention-intuition/
Re:Transformers from Scratch
on Wednesday April 26, 2023 @11:34AM (#35715398)
I wrote a minimal implementation in NumPy here (the forward pass code is only 40 lines): https://github.com/jaymody/picoGPT
And also a related blog post: https://news.ycombinator.com/item?id=34726115
Although this is for a decoder-only transformer (aka GPT) and doesnt include the encoder part.