forked from EleutherAI/lm-evaluation-harness
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate registry registration for tasks (#116)
* Automate registry creation Rather than manually build the registry, this iterates overall subtasks of Task to build it. This makes registry entries less manual and error prone, and removes redundant code. This is not complete. There are two main issues: 1. Registry manipulation functions (with names like `create_tasks`) should be removed. 2. For older English tasks with multiple versions, tasks aren't added to the registry properly. Neither of these are complicated, they will be added in further commits. * Leave legacy registry code alone This restores the manual creation of the registry for non-Japanese tasks. While it's possible to register them automatically, the mapping of the module or class name to the task name varies considerably, so it would require a lot of special casing to get it right. --------- Co-authored-by: Paul O'Leary McCann <[email protected]>
- Loading branch information
1 parent
e68527f
commit effdbea
Showing
3 changed files
with
38 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.