Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
b296ff8f
Unverified
Commit
b296ff8f
authored
Jul 05, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Jul 05, 2023
Browse files
Merge pull request #650 from EleutherAI/lintangsutawika-patch-1
Update __init__.py
parents
4f0a7e57
797f47c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+4
-1
No files found.
lm_eval/tasks/__init__.py
View file @
b296ff8f
...
...
@@ -14,7 +14,10 @@ from lm_eval.api.registry import (
def
get_task_name_from_config
(
task_config
):
return
"{dataset_path}_{dataset_name}"
.
format
(
**
task_config
)
if
"dataset_name"
in
task_config
:
return
"{dataset_path}_{dataset_name}"
.
format
(
**
task_config
)
else
:
return
"{dataset_path}"
.
format
(
**
task_config
)
def
include_task_folder
(
task_dir
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment