Skip to content

Tyler-Hilbert/pytorch-transformer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About (Written by Tyler)

This project is a "from scratch" PyTorch transformer implementation. It does a great job of demonstrating how the internal modules of a transformer work as the MHA, encoder, decoder and positional encoder are re-implemented.

I found that using nn.Transformer or nn.TransformerEncoder&nn.TransformerDecoder was more practical than this tutorial for getting a basic model working.

pytorch-transformer (Text from Original Author)

Attention is all you need implementation

YouTube video with full step-by-step implementation: https://www.youtube.com/watch?v=ISNdQcPhsts

About

Attention is all you need implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%