Skip to content

Commit

Permalink
fix: reverting changes and setting simplest config since harness impl…
Browse files Browse the repository at this point in the history
…ementation is bugged
  • Loading branch information
celiolarcher committed Jul 5, 2024
1 parent e7d1d3f commit 28a67dc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lm_eval/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def _get_task_and_group(self, task_dir: str):
if f.endswith(".yaml"):
yaml_path = os.path.join(root, f)
config = utils.load_yaml_config(yaml_path, mode="simple")
if self._config_is_group(config) and not self._config_is_python_task(config):
if self._config_is_group(config):
# This is a group config
tasks_and_groups[config["group"]] = {
"type": "group",
Expand Down
3 changes: 3 additions & 0 deletions lm_eval/tasks/portuguese_benchmark/assin2/assin2rte.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
group: portuguese_benchmark
task: assin2rte
class: !function task.Assin2RTE
3 changes: 3 additions & 0 deletions lm_eval/tasks/portuguese_benchmark/assin2/assin2sts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
group: portuguese_benchmark
task: assin2sts
class: !function task.Assin2STS
7 changes: 0 additions & 7 deletions lm_eval/tasks/portuguese_benchmark/assin2/default.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions lm_eval/tasks/portuguese_benchmark/faquad/default.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
group:
- portuguese_benchmark
group: portuguese_benchmark
task: faquad
class: !function task.FaQuAD

0 comments on commit 28a67dc

Please sign in to comment.