Skip to content

Sequence-to-sequence models implementation using PyTorch framework.

License

Notifications You must be signed in to change notification settings

LinjianLi/Seq2Seq-PyTorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seq2Seq-PyTorch

Sequence-to-sequence models implementation using PyTorch framework.

Note: I reuse many source codes written by others. This repository is just for my daily practice, instead of any commercial use.

Install

Clone the project, go into the project directory, and execute

python setup.py install

or

pip install ./

or simply copy the source code.

pip install ./ is recommended, because you can activate a virtual environment first and then install the package in that environment without affecting others.

Usage

Install or copy seq2seq folder to the project directory as a package before using. See example

Some Features

To Do

  • Fix trainer. When saving training checkpoint, trainer does not save the best epoch model. So, if resume training, the saved best epoch after finishing is not actually the best epoch of the whole training stage, but the best epoch after the checkpoint. (Not sure if trainer should save the best-so-far model at every checkpoint, which will make the checkpoint file large.)
  • (Not sure if it is necessary.) Support regression.
  • Add some utility scripts, such as create_vocab.py, inference.py, and so on.
  • Self-Attention

About

Sequence-to-sequence models implementation using PyTorch framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published