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

Method _split_generators

test/general/lm_eval/datasets/quac/quac.py:80–97  ·  view source on GitHub ↗
(self, dl_manager)

Source from the content-addressed store, hash-verified

78 )
79
80 def _split_generators(self, dl_manager):
81 urls = {"train": _URLS["train"], "validation": _URLS["validation"]}
82 data_dir = dl_manager.download_and_extract(urls)
83 return [
84 datasets.SplitGenerator(
85 name=datasets.Split.TRAIN,
86 # These kwargs will be passed to _generate_examples
87 gen_kwargs={
88 "filepath": data_dir["train"],
89 "split": "train",
90 },
91 ),
92 datasets.SplitGenerator(
93 name=datasets.Split.VALIDATION,
94 # These kwargs will be passed to _generate_examples
95 gen_kwargs={"filepath": data_dir["validation"], "split": "validation"},
96 ),
97 ]
98
99 # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
100 def _generate_examples(self, filepath, split):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected