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
f4df3e48
Commit
f4df3e48
authored
Jul 22, 2023
by
Benjamin Fattori
Browse files
batch_size arg accepts str
parent
6a6a0ebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
main.py
main.py
+1
-1
No files found.
main.py
View file @
f4df3e48
...
@@ -31,7 +31,7 @@ def parse_args():
...
@@ -31,7 +31,7 @@ def parse_args():
default
=
0
,
default
=
0
,
help
=
"Number of examples in few-shot context"
,
help
=
"Number of examples in few-shot context"
,
)
)
parser
.
add_argument
(
"--batch_size"
,
type
=
int
,
default
=
1
)
# TODO: only integers
parser
.
add_argument
(
"--batch_size"
,
type
=
str
,
default
=
1
)
parser
.
add_argument
(
parser
.
add_argument
(
"--max_batch_size"
,
"--max_batch_size"
,
type
=
int
,
type
=
int
,
...
...
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