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
40c1e05c
"app/vscode:/vscode.git/clone" did not exist on "e51dead6363e941b480f5bf1270254db7e175083"
Commit
40c1e05c
authored
Feb 24, 2022
by
Leo Gao
Browse files
add flag
parent
606b98f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
main.py
main.py
+3
-1
No files found.
main.py
View file @
40c1e05c
...
@@ -20,6 +20,7 @@ def parse_args():
...
@@ -20,6 +20,7 @@ def parse_args():
parser
.
add_argument
(
'--limit'
,
type
=
int
,
default
=
None
)
parser
.
add_argument
(
'--limit'
,
type
=
int
,
default
=
None
)
parser
.
add_argument
(
'--no_cache'
,
action
=
"store_true"
)
parser
.
add_argument
(
'--no_cache'
,
action
=
"store_true"
)
parser
.
add_argument
(
'--description_dict_path'
,
default
=
None
)
parser
.
add_argument
(
'--description_dict_path'
,
default
=
None
)
parser
.
add_argument
(
'--check_integrity'
,
action
=
"store_true"
)
return
parser
.
parse_args
()
return
parser
.
parse_args
()
...
@@ -49,7 +50,8 @@ def main():
...
@@ -49,7 +50,8 @@ def main():
device
=
args
.
device
,
device
=
args
.
device
,
no_cache
=
args
.
no_cache
,
no_cache
=
args
.
no_cache
,
limit
=
args
.
limit
,
limit
=
args
.
limit
,
description_dict
=
description_dict
description_dict
=
description_dict
,
check_integrity
=
args
.
check_integrity
)
)
dumped
=
json
.
dumps
(
results
,
indent
=
2
)
dumped
=
json
.
dumps
(
results
,
indent
=
2
)
...
...
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