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
5e2f0ffe
Commit
5e2f0ffe
authored
Jul 17, 2023
by
lintangsutawika
Browse files
printing all the configs are made optional with --show_config
parent
3001569b
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 @
5e2f0ffe
...
@@ -46,6 +46,7 @@ def parse_args():
...
@@ -46,6 +46,7 @@ def parse_args():
parser
.
add_argument
(
"--check_integrity"
,
action
=
"store_true"
)
parser
.
add_argument
(
"--check_integrity"
,
action
=
"store_true"
)
parser
.
add_argument
(
"--write_out"
,
action
=
"store_true"
,
default
=
False
)
parser
.
add_argument
(
"--write_out"
,
action
=
"store_true"
,
default
=
False
)
parser
.
add_argument
(
"--log_samples"
,
action
=
"store_true"
,
default
=
True
)
parser
.
add_argument
(
"--log_samples"
,
action
=
"store_true"
,
default
=
True
)
parser
.
add_argument
(
"--show_config"
,
action
=
"store_true"
,
default
=
False
)
return
parser
.
parse_args
()
return
parser
.
parse_args
()
...
@@ -103,7 +104,8 @@ def main():
...
@@ -103,7 +104,8 @@ def main():
if
args
.
log_samples
:
if
args
.
log_samples
:
samples
=
results
.
pop
(
"samples"
)
samples
=
results
.
pop
(
"samples"
)
dumped
=
json
.
dumps
(
results
,
indent
=
2
,
default
=
lambda
o
:
str
(
o
))
dumped
=
json
.
dumps
(
results
,
indent
=
2
,
default
=
lambda
o
:
str
(
o
))
print
(
dumped
)
if
args
.
show_config
:
print
(
dumped
)
batch_sizes
=
","
.
join
(
map
(
str
,
results
[
"config"
][
"batch_sizes"
]))
batch_sizes
=
","
.
join
(
map
(
str
,
results
[
"config"
][
"batch_sizes"
]))
...
...
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