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

Method _split_generators

test/general/lm_eval/datasets/pile/pile.py:99–116  ·  view source on GitHub ↗
(self, dl_manager)

Source from the content-addressed store, hash-verified

97 )
98
99 def _split_generators(self, dl_manager):
100 urls = {"validation": _URLS["validation"], "test": _URLS["test"]}
101 data_dir = dl_manager.download_and_extract(urls)
102 return [
103 datasets.SplitGenerator(
104 name=datasets.Split.TEST,
105 # These kwargs will be passed to _generate_examples
106 gen_kwargs={"filepath": data_dir["test"], "split": "test"},
107 ),
108 datasets.SplitGenerator(
109 name=datasets.Split.VALIDATION,
110 # These kwargs will be passed to _generate_examples
111 gen_kwargs={
112 "filepath": data_dir["validation"],
113 "split": "validation",
114 },
115 ),
116 ]
117
118 # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
119 def _generate_examples(self, filepath, split):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected