Skip to content

Commit ff9a497

Browse files
Fix comment/warning about precedence of custom over default tasks
1 parent ad1ce89 commit ff9a497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lighteval/tasks/registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ def task_registry(self):
148148
intersection = set(default_tasks_registry.keys()).intersection(set(custom_tasks_registry.keys()))
149149
if len(intersection) > 0:
150150
logger.warning(
151-
f"Following tasks ({intersection}) exists both in the default and custom tasks. Will use the default ones on conflict."
151+
f"Following tasks ({intersection}) exists both in the default and custom tasks. Will use the custom ones on conflict."
152152
)
153153

154-
# Defaults tasks should overwrite custom tasks
154+
# Custom tasks overwrite defaults tasks
155155
return {**default_tasks_registry, **custom_tasks_registry}
156156

157157
@property

0 commit comments

Comments
 (0)