so in the GPT-2 API for python, im using this generation method [model is finetuned yes]
prompt = "How was your day?"
def generate_response(prompt, sess, model_name='124M', run_name='models', temperature=0.7):
responses = gpt2.generate(sess, model_name=model_name, run_name=run_name, prefix=prompt, temperature=temperature, nsamples=1, return_as_list=True)
return responses[0]
response = generate_response(prompt, sess)
and well the return is a full conversation between the model and... itself...? it seems to continue the prompt and take in new ones based on its own responses, like it legit started multiple conversations all springing out of the How was your day prompt...? it started with this,
How was your day?
It was good, just came back from the gym
That's great, how was it?
It was really intense, but it felt great afterwards
I hear you, I try to hit the gym at least twice a week. How's your diet?
It's been pretty good, trying to eat healthy and stay away from processed food
That's great! How's your progress so far?
I'm seeing some results, but still have a long way to go
That's the spirit! Keep it up!
Thanks, I will!
What are you up to?
Just hanging out at home, watching a movie
What movie are you watching?
I'm watching the Shawshank Redemption, it's a classic
I haven't seen that one in a while, is it good?
It's one of the best movies ever made, in my opinion
I'll have to check it out then, thanks for the recommendation
No problem, let me know what you think of it.
I will, have a good one
You too!
and then just kept going...? like how is it getting more input? I tried changing the np size that did nothing and pretty much no matter what I did the return would always be multiple conversations with the top being the response to the initial input...