MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / create_task

Function create_task

test/general/lm_eval/tasks/xwinograd.py:41–67  ·  view source on GitHub ↗
(lang)

Source from the content-addressed store, hash-verified

39
40
41def create_task(lang):
42 class XWinograd(Winogrande):
43 DATASET_PATH = "Muennighoff/xwinograd"
44 DATASET_NAME = lang
45
46 def __init__(self):
47 super().__init__()
48
49 def has_training_docs(self):
50 return False
51
52 def has_validation_docs(self):
53 return False
54
55 def has_test_docs(self):
56 return True
57
58 def training_docs(self):
59 pass
60
61 def validation_docs(self):
62 pass
63
64 def test_docs(self):
65 return self.dataset["test"]
66
67 return XWinograd

Callers 1

create_all_tasksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected