bentrevett/pytorch-seq2seq

Tutorials on implementing a few sequence-to-sequence (seq2seq) models with PyTorch and TorchText.

Jupyter Notebook

5,711

175 commits

updated Jan 20, 2024

See the code

README

PyTorch Seq2Seq

This repo contains tutorials covering understanding and implementing sequence-to-sequence (seq2seq) models using PyTorch, with Python 3.9. Specifically, we'll train models to translate from German to English.

If you find any mistakes or disagree with any of the explanations, please do not hesitate to submit an issue. I welcome any feedback, positive or negative!

Getting Started

Install the required dependencies with: pip install -r requirements.txt --upgrade.

We'll also make use of spaCy to tokenize our data which requires installing both the English and German models with:

python -m spacy download en_core_web_sm
python -m spacy download de_core_news_sm

Tutorials

Legacy Tutorials

Previous versions of these tutorials used features from the torchtext library which are no longer available. These are stored in the legacy directory.

References

Here are some things I looked at while making these tutorials. Some of it may be out of date.

attention
cnn-seq2seq
encoder-decoder
encoder-decoder-model
gru
lstm
neural-machine-translation
pytorch
pytorch-implementation
pytorch-implmention
pytorch-nlp
pytorch-seq2seq
pytorch-tutorial
pytorch-tutorials
rnn
seq2seq
sequence-to-sequence
torchtext
transformer
tutorial

Contributors

bentrevett

168 commits

M-e-r-c-u-r-y

2 commits

azadyasar

1 commits

rakeshchada

1 commits

bentrevett/pytorch-seq2seq

Tutorials on implementing a few sequence-to-sequence (seq2seq) models with PyTorch and TorchText.

Jupyter Notebook

5,711

175 commits

updated Jan 20, 2024

See the code

README

PyTorch Seq2Seq

This repo contains tutorials covering understanding and implementing sequence-to-sequence (seq2seq) models using PyTorch, with Python 3.9. Specifically, we'll train models to translate from German to English.

If you find any mistakes or disagree with any of the explanations, please do not hesitate to submit an issue. I welcome any feedback, positive or negative!

Getting Started

Install the required dependencies with: pip install -r requirements.txt --upgrade.

We'll also make use of spaCy to tokenize our data which requires installing both the English and German models with:

python -m spacy download en_core_web_sm
python -m spacy download de_core_news_sm

Tutorials

Legacy Tutorials

Previous versions of these tutorials used features from the torchtext library which are no longer available. These are stored in the legacy directory.

References

Here are some things I looked at while making these tutorials. Some of it may be out of date.

attention
cnn-seq2seq
encoder-decoder
encoder-decoder-model
gru
lstm
neural-machine-translation
pytorch
pytorch-implementation
pytorch-implmention
pytorch-nlp
pytorch-seq2seq
pytorch-tutorial
pytorch-tutorials
rnn
seq2seq
sequence-to-sequence
torchtext
transformer
tutorial

Contributors

bentrevett

168 commits

M-e-r-c-u-r-y

2 commits

azadyasar

1 commits

rakeshchada

1 commits

Languages

Jupyter Notebook

100.0%