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
b8faaa93
Unverified
Commit
b8faaa93
authored
Oct 05, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Oct 05, 2023
Browse files
Merge pull request #900 from EleutherAI/fix-wildcards
[Refactor] Fix wildcards
parents
7f2a9cbd
09d935ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lm_eval/__main__.py
lm_eval/__main__.py
+2
-3
No files found.
lm_eval/__main__.py
View file @
b8faaa93
...
@@ -14,6 +14,7 @@ from lm_eval.tasks import include_task_folder
...
@@ -14,6 +14,7 @@ from lm_eval.tasks import include_task_folder
from
typing
import
Union
from
typing
import
Union
def
parse_eval_args
()
->
argparse
.
Namespace
:
def
parse_eval_args
()
->
argparse
.
Namespace
:
parser
=
argparse
.
ArgumentParser
(
formatter_class
=
argparse
.
RawTextHelpFormatter
)
parser
=
argparse
.
ArgumentParser
(
formatter_class
=
argparse
.
RawTextHelpFormatter
)
parser
.
add_argument
(
"--model"
,
required
=
True
,
help
=
"Name of model e.g. `hf`"
)
parser
.
add_argument
(
"--model"
,
required
=
True
,
help
=
"Name of model e.g. `hf`"
)
...
@@ -136,8 +137,6 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
...
@@ -136,8 +137,6 @@ def cli_evaluate(args: Union[argparse.Namespace, None] = None) -> None:
if
os
.
path
.
isfile
(
task
):
if
os
.
path
.
isfile
(
task
):
config
=
utils
.
load_yaml_config
(
task
)
config
=
utils
.
load_yaml_config
(
task
)
task_names
.
append
(
config
)
task_names
.
append
(
config
)
else
:
task_missing
.
append
(
task
)
if
task_missing
!=
[]:
if
task_missing
!=
[]:
missing
=
", "
.
join
(
task_missing
)
missing
=
", "
.
join
(
task_missing
)
...
...
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