Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating text from the model #16

Open
anshuman1992 opened this issue May 31, 2019 · 1 comment
Open

Generating text from the model #16

anshuman1992 opened this issue May 31, 2019 · 1 comment

Comments

@anshuman1992
Copy link

anshuman1992 commented May 31, 2019

Hello,

The generation example in the readme seems impressive. Is there a script for sampling from the model? I have been trying to generate text from transfromer XL model but the output is nowhere near your example. Any help would be appreciated @yaroslavvb . Thanks.

@yaroslavvb
Copy link

There's generate script in https://github.com/cybertronai/transformer-xl/blob/dev/generate.py , and checkpoint is here

Use it like this

python generate.py --work_dir=<directory with checkpoint> --temperature=.8 --length=400 --context='you context'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants