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

Force model chats starting with "Hi!" to use BST-style context #4004

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

EricMichaelSmith
Copy link
Contributor

Patch description
A recent refactor caused model chat to throw an error when starting a conversation with "Hi!" (args.blueprint.conversation_start_mode == 'hi') and using personas: in that case, the code to pull the context would try to look for a parlai.tasks.hi module, which doesn't exist. This PR adds logic to state that, if we are starting our conversation with "Hi!", we want to use BST-style context.

Testing steps
CI checks on the model chat task

Copy link
Contributor

@jxmsML jxmsML left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix.

@EricMichaelSmith EricMichaelSmith merged commit f9feae5 into main Sep 13, 2021
@EricMichaelSmith EricMichaelSmith deleted the model-chat-hi-mode-context branch September 13, 2021 13:30
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