This is full Transformer model base Pytorch.
- Model Architecture
- Encoder and Decoder Stacks
- Encoder
- Decoder
- Attention
- Applications of Attention in our Model
- Position-wise Feed-Forward Networks
- Embeddings and Softmax
- Positional Encoding
- Full Model
- Encoder and Decoder Stacks
- Training
- Batches and Masking
- Training Loop
- Training Data and Batching
- Hardware and Schedule
- Optimizer
- Regularization
- Label Smoothing
python MakeModel.py