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
6a2620ad
Commit
6a2620ad
authored
Jul 03, 2023
by
haileyschoelkopf
Browse files
remove output_base_path
parent
93b7a418
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
lm_eval/evaluator.py
lm_eval/evaluator.py
+0
-7
main.py
main.py
+0
-2
No files found.
lm_eval/evaluator.py
View file @
6a2620ad
...
@@ -45,7 +45,6 @@ def simple_evaluate(
...
@@ -45,7 +45,6 @@ def simple_evaluate(
check_integrity
=
False
,
check_integrity
=
False
,
decontamination_ngrams_path
=
None
,
decontamination_ngrams_path
=
None
,
write_out
=
False
,
write_out
=
False
,
output_base_path
=
None
,
):
):
"""Instantiate and evaluate a model on a list of tasks.
"""Instantiate and evaluate a model on a list of tasks.
...
@@ -74,8 +73,6 @@ def simple_evaluate(
...
@@ -74,8 +73,6 @@ def simple_evaluate(
Whether to run the relevant part of the test suite for the tasks
Whether to run the relevant part of the test suite for the tasks
:param write_out: bool
:param write_out: bool
If True, write details about prompts and logits to json for all tasks
If True, write details about prompts and logits to json for all tasks
:param output_base_path: str, optional
Directory to which detailed eval info will be written. Defaults to present working dir.
:return
:return
Dictionary of results
Dictionary of results
"""
"""
...
@@ -121,7 +118,6 @@ def simple_evaluate(
...
@@ -121,7 +118,6 @@ def simple_evaluate(
bootstrap_iters
=
bootstrap_iters
,
bootstrap_iters
=
bootstrap_iters
,
decontamination_ngrams_path
=
decontamination_ngrams_path
,
decontamination_ngrams_path
=
decontamination_ngrams_path
,
write_out
=
write_out
,
write_out
=
write_out
,
output_base_path
=
output_base_path
,
)
)
if
lm
.
rank
==
0
:
if
lm
.
rank
==
0
:
...
@@ -158,7 +154,6 @@ def evaluate(
...
@@ -158,7 +154,6 @@ def evaluate(
bootstrap_iters
=
100000
,
bootstrap_iters
=
100000
,
decontamination_ngrams_path
=
None
,
decontamination_ngrams_path
=
None
,
write_out
=
False
,
write_out
=
False
,
output_base_path
=
None
,
):
):
"""Instantiate and evaluate a model on a list of tasks.
"""Instantiate and evaluate a model on a list of tasks.
...
@@ -174,8 +169,6 @@ def evaluate(
...
@@ -174,8 +169,6 @@ def evaluate(
Number of iterations for bootstrap statistics
Number of iterations for bootstrap statistics
:param write_out: bool
:param write_out: bool
If True, write all prompts, logits and metrics to json for offline analysis
If True, write all prompts, logits and metrics to json for offline analysis
:param output_base_path: str, optional
Directory to which detailed eval info will be written. Defaults to present working dir
:return
:return
Dictionary of results
Dictionary of results
"""
"""
...
...
main.py
View file @
6a2620ad
...
@@ -43,7 +43,6 @@ def parse_args():
...
@@ -43,7 +43,6 @@ def parse_args():
parser
.
add_argument
(
"--decontamination_ngrams_path"
,
default
=
None
)
parser
.
add_argument
(
"--decontamination_ngrams_path"
,
default
=
None
)
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
(
"--output_base_path"
,
type
=
str
,
default
=
None
)
return
parser
.
parse_args
()
return
parser
.
parse_args
()
...
@@ -90,7 +89,6 @@ def main():
...
@@ -90,7 +89,6 @@ def main():
decontamination_ngrams_path
=
args
.
decontamination_ngrams_path
,
decontamination_ngrams_path
=
args
.
decontamination_ngrams_path
,
check_integrity
=
args
.
check_integrity
,
check_integrity
=
args
.
check_integrity
,
write_out
=
args
.
write_out
,
write_out
=
args
.
write_out
,
output_base_path
=
args
.
output_base_path
,
)
)
if
results
is
not
None
:
if
results
is
not
None
:
...
...
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