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

Method _split_generators

test/general/lm_eval/datasets/drop/drop.py:120–144  ·  view source on GitHub ↗
(self, dl_manager)

Source from the content-addressed store, hash-verified

118 )
119
120 def _split_generators(self, dl_manager):
121 urls = _URLS[self.config.name]
122 data_dir = dl_manager.download_and_extract(urls)
123 return [
124 datasets.SplitGenerator(
125 name=datasets.Split.TRAIN,
126 # These kwargs will be passed to _generate_examples
127 gen_kwargs={
128 "filepath": os.path.join(
129 data_dir, "drop_dataset", "drop_dataset_train.json"
130 ),
131 "split": "train",
132 },
133 ),
134 datasets.SplitGenerator(
135 name=datasets.Split.VALIDATION,
136 # These kwargs will be passed to _generate_examples
137 gen_kwargs={
138 "filepath": os.path.join(
139 data_dir, "drop_dataset", "drop_dataset_dev.json"
140 ),
141 "split": "validation",
142 },
143 ),
144 ]
145
146 # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
147 def _generate_examples(self, filepath, split):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected