pbloem/former

Using the trained model

Closed this issue · 1 comments

How do I use the trained model to generate text?

The script currently doesn't allow saving and loading. See https://pytorch.org/tutorials/beginner/saving_loading_models.html for instructions on how to add this.

These lines are responsible for generating some text from the model. You can adapt those as necessary. Text generation happens in batches so you may need to stare at the code for a bit to see how it works.