Skip to content

Instantly share code, notes, and snippets.

@thesanjeetc
Created July 14, 2021 21:52
Show Gist options
  • Save thesanjeetc/a8dce45a01be8290c3cf1b3844edbd9d to your computer and use it in GitHub Desktop.
Save thesanjeetc/a8dce45a01be8290c3cf1b3844edbd9d to your computer and use it in GitHub Desktop.
gen_file = 'gpt2_gentext_{:%Y%m%d_%H%M%S}.txt'.format(datetime.utcnow())
gpt2.generate_to_file(sess,
destination_path=gen_file,
length=500,
temperature=0.7,
nsamples=100,
batch_size=20
)
files.download(gen_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment