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

Remove metrics from model chat #3686

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Conversation

EricMichaelSmith
Copy link
Contributor

Patch description
The clen, ctrunc, and ctrunclen Metrics are being returned by the .act() method of the model agent; remove them from the act before passing the act back to the World, because they are not JSON-serializable.

Testing steps
python parlai/crowdsourcing/tasks/model_chat/run.py, CI checks

@EricMichaelSmith EricMichaelSmith merged commit c9acadd into master Jun 3, 2021
@EricMichaelSmith EricMichaelSmith deleted the model-chat-metrics-fix branch June 3, 2021 21:09
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