Commit 971695be authored by Baber's avatar Baber
Browse files

nit

parent 646dec9e
...@@ -171,13 +171,14 @@ class TaskConfig(dict): ...@@ -171,13 +171,14 @@ class TaskConfig(dict):
should_decontaminate: bool = False should_decontaminate: bool = False
doc_to_decontamination_query: Optional[str] = None doc_to_decontamination_query: Optional[str] = None
gen_prefix: Optional[str] = None gen_prefix: Optional[str] = None
metadata: Optional[dict] = ( metadata: Optional[dict] = field(
None # by default, not used in the code. allows for users to pass arbitrary info to tasks default_factory=dict
) ) # by default, not used in the code. allows for users to pass arbitrary info to tasks
_metric_list: list[MetricConfig] = None _metric_list: list[MetricConfig] = None
_filter_list: list[FilterConfig] = None _filter_list: list[FilterConfig] = None
ds_cfg: DatasetConfig = None ds_cfg: DatasetConfig = field(init=False)
fewshot_cfg: FewshotConfig = None fewshot_cfg: FewshotConfig = field(init=False)
def __post_init__(self) -> None: def __post_init__(self) -> None:
### ---setup generation kwargs--- ### ### ---setup generation kwargs--- ###
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment