WIP: Add chat example#77
Conversation
|
hey, try doing double newline instead of single newline between dialogue entries. this is our fault, owing to the way we processed html while producing our dataset. regarding your questions:
|
|
Thanks for the tips, it's working much better now! |
|
Were you able to get chat like results using the original interactive_conditional_samples.py? Because I tried feeding 117M a dataset where the next line contained the reply of the previous line but the model didn't quite talk like a chatbot but was instead finishing my sentence rather than replying to it. |
|
@Nerdimite37 i did get "chatlike" behavior. You should prompt each line with something like "Alice: " or "Bob: " so that GPT-2 "understands" there a multiple parties interacting. I don't know if this makes sense to you, but it kind of worked. Check out how I did it here: |
I'm experimenting with the 117M model, trying to build a simple interactive chat example.

Results are acceptable:
However, I have a feeling my code has an error because when I try generating text with the other scripts (
src/generate_unconditional_samples.pyandsrc/interactive_conditional_samples.py), the output quality seems subjectively better. The approach I've taken is to keep the model in memory, and pass the whole conversation at each point, to generate the bot's reply.To try out the code on this branch, run:
Some open questions in case anyone (OpenAI team or community) wants to chime in:
temperature,top_k?)