Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Self chat from messages in file #3580

Merged
merged 2 commits into from
Apr 14, 2021
Merged

Self chat from messages in file #3580

merged 2 commits into from
Apr 14, 2021

Conversation

spencerp
Copy link
Contributor

Patch description
I found myself wanting to generate responses for long list of initial messages. To do this, I extended the self chat to allow for starting the chats with messages from a supplied file.

Testing steps

λ printf "hello\nhowdy" > ~/tmp/openers.txt
λ parlai self_chat -mf zoo:blender/blender_90M/model --seed-messages-from-file ~/tmp/openers.txt --selfchat-max-turns 2 --num-self-chats 2
15:53:34 | creating task(s): self_chat
[context]: Hi!
[TransformerGenerator_1]: howdy
   [TransformerGenerator_2]: hi , how are you doing today ? i just got back from a long day at the office .
-- end of episode --
15:53:35 | 50.0% complete (1 / 2), 0:00:00 elapsed, 0:00:01 eta
    exs  gpu_mem
      1   .01193
[context]: Hi!
[TransformerGenerator_1]: hello
   [TransformerGenerator_2]: hello , how are you today ? i just got back from a long day at work , so i ' m nervous .
-- end of episode --

Copy link
Contributor

@stephenroller stephenroller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Add a test

Copy link
Contributor

@stephenroller stephenroller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers mate

@spencerp spencerp merged commit cac3675 into master Apr 14, 2021
@spencerp spencerp deleted the self-chat-file-openers branch April 14, 2021 20:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants