Skip to content

Implementation of a transformer following the Attention Is All You Need paper

License

Notifications You must be signed in to change notification settings

SergioArnaud/attention-is-all-you-need

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attention is all you need

import torch
from transformer.transformer import Transformer

src = torch.randint(0, 256, (1, 1024))
tgt = torch.randint(0, 256, (1, 1024))

model = Transformer(256,256)
ans = model(src, tgt)

Citations

@misc{vaswani2017attention,
    title   = {Attention Is All You Need},
    author  = {Ashish Vaswani and Noam Shazeer and Niki Parmar and Jakob Uszkoreit and Llion Jones and Aidan N. Gomez and Lukasz Kaiser and Illia Polosukhin},
    year    = {2017},
    eprint  = {1706.03762},
    archivePrefix = {arXiv},
    primaryClass = {cs.CL}
}

About

Implementation of a transformer following the Attention Is All You Need paper

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages