lopuhin / transformer-lm

Transformer language model (GPT-2) with sentencepiece tokenizer
164 stars 47 forks source link

add text generation (inference) methods and command line tool #9

Closed gooofy closed 5 years ago

gooofy commented 5 years ago

added a command line tool along with python methods for using the torch GPT2 model for text generation