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
6c93185c
"vscode:/vscode.git/clone" did not exist on "bab8f3dd0ddf18ed0e28f77de57f0e55c7097aff"
Unverified
Commit
6c93185c
authored
Nov 23, 2020
by
Stella Biderman
Committed by
GitHub
Nov 23, 2020
Browse files
Merge branch 'master' into dev
parents
37fab200
fb5aaf51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
main.py
main.py
+1
-2
No files found.
main.py
View file @
6c93185c
...
@@ -19,7 +19,6 @@ def parse_args():
...
@@ -19,7 +19,6 @@ def parse_args():
parser
.
add_argument
(
'--limit'
,
default
=
None
)
parser
.
add_argument
(
'--limit'
,
default
=
None
)
return
parser
.
parse_args
()
return
parser
.
parse_args
()
def
main
():
def
main
():
args
=
parse_args
()
args
=
parse_args
()
random
.
seed
(
args
.
seed
)
random
.
seed
(
args
.
seed
)
...
@@ -36,7 +35,7 @@ def main():
...
@@ -36,7 +35,7 @@ def main():
if
not
task
.
has_validation_docs
():
if
not
task
.
has_validation_docs
():
continue
continue
result
=
task
.
evaluate
(
result
=
task
.
evaluate
(
docs
=
itertools
.
isslice
(
task
.
validation_docs
(),
stop
=
args
.
limit
),
docs
=
itertools
.
isslice
(
task
.
validation_docs
(),
0
,
args
.
limit
),
lm
=
lm
,
lm
=
lm
,
provide_description
=
args
.
provide_description
,
provide_description
=
args
.
provide_description
,
num_fewshot
=
args
.
num_fewshot
,
num_fewshot
=
args
.
num_fewshot
,
...
...
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