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

[TOD][Teachers] Add TOD Teachers + base Parser agent #4233

Merged
merged 7 commits into from
Dec 18, 2021

Conversation

moyapchen
Copy link
Contributor

@moyapchen moyapchen commented Dec 8, 2021

Breaking up #4176 into two diffs in the hope that makes these easier to review.

This focuses on the teachers used to train models. Idea here is straightforward - Implement the Parser first, then use multiple inheritance to define the Teachers.

This diff does 3 things:

  1. Define the base parser Class
  2. Define the Teachers which includes:
    • metrics used in the teacher + its respective test
    • User + System Teacher
    • README
  3. Boilerplate for setting up tests

Helper agents + tests for teachers + agents in next diff in stack.


NOTE: Diff commit history looks a little weird here since I accidentally merged something above into this stack, the reverted it. >.> (I did check this diff before merging and it's fine.)

from parlai.core.params import ParlaiParser
from parlai.core.opt import Opt
from parlai.core.teachers import DialogTeacher
from parlai.utils.distributed import is_distributed, get_rank, num_workers
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ignore these lint failures - they are used in the next change in this stack.

Copy link
Contributor

@skiingpacman skiingpacman left a comment

Choose a reason for hiding this comment

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

Left a few minor comments to take a look at, otherwise looks good.

parlai/core/tod/README.md Outdated Show resolved Hide resolved
parlai/core/tod/teacher_metrics.py Outdated Show resolved Hide resolved
parlai/core/tod/tod_agents.py Show resolved Hide resolved
parlai/core/tod/README.md Outdated Show resolved Hide resolved
parlai/core/tod/tod_agents.py Outdated Show resolved Hide resolved
@moyapchen moyapchen merged commit c0e4aa2 into main Dec 18, 2021
@moyapchen moyapchen deleted the simpler_tod_2a_teachers_only branch December 18, 2021 05:14
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