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

GPT-2 randomly text generation #119

Open
miladfa7 opened this issue Sep 3, 2020 · 2 comments
Open

GPT-2 randomly text generation #119

miladfa7 opened this issue Sep 3, 2020 · 2 comments

Comments

@miladfa7
Copy link

miladfa7 commented Sep 3, 2020

how to randomly GPT-2 text generate(not prompt) by run_generation.py?

@priya-dwivedi
Copy link
Owner

Sorry. Not sure what you mean by randomly generate without prompting?

@miladfa7
Copy link
Author

miladfa7 commented Sep 4, 2020

it means, it generates text without specifying prompting
Example:

with prompt =' I enjoy'
python run_generation.py --model_type gpt2 --model_name_or_path output --length 300 --prompt "I enjoy"
output:
I enjoy walking with my cute dog, but I'm not sure if I'll ever be able to walk with him again.

without prompt
python run_generation.py --model_type gpt2 --model_name_or_path output --length 300
output: randomly generating text

  1. I enjoy walking with my cute dog, but I'm not sure if I'll ever be able to walk with him again.

  2. I'm not sure if I'll ever be able to walk with him again. I'm not sure if I'll

  3. I've been thinking about this for a while now, and I think it's time for me to take a break

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