You can use trainner.py to train your model and use elmo_embed.py to generate the pre-trained embedding!