WIP: Add chat example #77
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.py
andsrc/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
?)