Skip to content

Implementation of transformer with pytorch on translation, classification, generation.

Notifications You must be signed in to change notification settings

hololee/transformer_pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transformer_pytorch

Implementation of tramsformer(Attention Is All You Need, 2017) with pytorch on translation, classification, generation.

transformer structure

Training

Training transformer for translation.

Dataset

  • Multi30K(English-Deutsch)
    • train: 29000
    • valid: 1014
    • test: 1000

Train

$ python train.py

Experiments

max BLEU: 0.358628 (at 28 epoch)

[test sample]
target:Ein Junge steht auf <unk> Weise bei einem geselligen Anlass herum ., 
output:Ein Junge steht mitten in der Mitte eines <unk> .

Next

  • Add example for clasification task.
  • Add example for generation task.

About

Implementation of transformer with pytorch on translation, classification, generation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published