Skip to content

tongye98/ytnmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytnmt

Basic neural network framework (Transformer-based) from scratch.

Highlights: Lightweight and highly modular organization structure.

Suitable for beginners in NLP (Natural Language Processing), Machine Translation, Text generation...

Note: The current version only supports trained in a single GPU.

Dependency

Recommend a conda virtual environment.

  • pip install torch > 1.10
  • pip install tqdm

How to use?

train

bash scripts/train.sh

inference or test

bash scripts/test.sh

Acknowledgements

some code we refer to joeynmt codebase.