test: add template contract checks and refine benchmark docs
This commit is contained in:
committed by
GitHub
parent
b3c7d72364
commit
4f582d4f6e
@@ -44,7 +44,9 @@ class TemplateBenchmarkAdapter(EnvAdapter):
|
||||
seed=seed,
|
||||
limit=limit,
|
||||
)
|
||||
# TODO: initialize benchmark-specific runtime options from kwargs
|
||||
# TODO: initialize runtime options, e.g.
|
||||
# self.max_retries = int(kwargs.get("max_retries", 3))
|
||||
# self.timeout_s = int(kwargs.get("timeout_s", 120))
|
||||
|
||||
def setup(self, cfg: dict) -> None:
|
||||
super().setup(cfg)
|
||||
|
||||
@@ -26,7 +26,8 @@ class TemplateBenchmarkDataLoader(SplitDataLoader):
|
||||
|
||||
Return a list of normalized item dicts.
|
||||
"""
|
||||
# TODO: customize when your raw source format differs.
|
||||
# TODO: parse your raw JSON/JSONL/CSV format and return list[dict]
|
||||
# with deterministic "id" values.
|
||||
return super().load_raw_items(data_path)
|
||||
|
||||
def load_split_items(self, split_path: str) -> list[dict]:
|
||||
@@ -35,5 +36,5 @@ class TemplateBenchmarkDataLoader(SplitDataLoader):
|
||||
|
||||
split_path points to train/, val/, or test/.
|
||||
"""
|
||||
# TODO: customize when each split directory has a custom layout.
|
||||
# TODO: customize when split directories contain non-standard files.
|
||||
return super().load_split_items(split_path)
|
||||
|
||||
Reference in New Issue
Block a user