Skip to content

ashtraysoap/transformer-lm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transformer language model for text generation

Code is heavily based on OpenAI's gpt-2 code samples and their original transformer language model

The initial codebase lacks code for training and the latter is oriented towards finetuning the model for supervised tasks. This repository aims to provide an implementation allowing straightforward text generation from the model.

Requirements

  • numpy
  • tensorflow>=1.12.0

Training

python3 train.py path/to/text/corpus

Sampling

python3 sample.py path/to/model/checkpoint path/to/vocab path/to/hyperparams

About

transformer language model based on OpenAI's GPTs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published