from . import superglue from . import glue from . import arc from . import race from . import webqs from . import anli from . import wsc273 from . import winogrande from . import quac from . import hellaswag from . import openbookqa from . import squad from . import naturalqs from . import sat from . import arithmetic from . import lambada from . import piqa TASK_REGISTRY = { # GLUE "cola": glue.CoLA, "mnli": glue.MNLI, "mnli_mismatched": glue.MNLIMismatched, "mrpc": glue.MRPC, "rte": glue.RTE, "qnli": glue.QNLI, "qqp": glue.QQP, #"stsb": glue.STSB, # not implemented yet "sst": glue.SST, "wnli": glue.WNLI, # SuperGLUE "boolq": superglue.BoolQ, "cb": superglue.CommitmentBank, "copa": superglue.Copa, "multirc": superglue.MultiRC, "record": superglue.ReCoRD, "wic": superglue.WordsInContext, "wsc": superglue.SGWinogradSchemaChallenge, # Order by benchmark/genre? "lambada": lambada.LAMBADA, "piqa": piqa.PiQA, # "arc_easy": arc.ARCEasy, # not implemented yet # "arc_challenge": arc.ARCChallenge, # not implemented yet # "quac": quac.QuAC, # not implemented yet # "hellaswag": hellaswag.HellaSwag, # not implemented yet # "openbookqa": openbookqa.OpenBookQA, # not implemented yet # "sat": sat.SATAnalogies, # not implemented yet # "squad": squad.SQuAD, # not implemented yet # "race": race.RACE, # not implemented yet # "naturalqs": naturalqs.NaturalQs, # not implemented yet # "webqs": webqs.WebQs, # not implemented yet # "wsc273": wsc273.WinogradSchemaChallenge273, # not implemented yet # "winogrande": winogrande.Winogrande, # not implemented yet # "anli_r1": anli.ANLIRound1, # not implemented yet # "anli_r2": anli.ANLIRound2, # not implemented yet # "anli_r3": anli.ANLIRound3, # not implemented yet # arithmetic "arithmetic_2da": arithmetic.Arithmetic2DPlus, "arithmetic_2ds": arithmetic.Arithmetic2DMinus, "arithmetic_3da": arithmetic.Arithmetic3DPlus, "arithmetic_3ds": arithmetic.Arithmetic3DMinus, "arithmetic_4da": arithmetic.Arithmetic4DPlus, "arithmetic_4ds": arithmetic.Arithmetic4DMinus, "arithmetic_5da": arithmetic.Arithmetic5DPlus, "arithmetic_5ds": arithmetic.Arithmetic5DMinus, "arithmetic_2dm": arithmetic.Arithmetic2DMultiplication, "arithmetic_1dc": arithmetic.Arithmetic1DComposite, } ALL_TASKS = sorted(list(TASK_REGISTRY)) def get_task(task_name): return TASK_REGISTRY[task_name] def get_task_dict(task_name_list): return { task_name: get_task(task_name)() for task_name in task_name_list }