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
6282a1be
Commit
6282a1be
authored
Jan 23, 2024
by
lintangsutawika
Browse files
resolved merg conflict
parents
c5d27743
d4546ef8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lm_eval/evaluator.py
lm_eval/evaluator.py
+3
-0
No files found.
lm_eval/evaluator.py
View file @
6282a1be
...
@@ -38,6 +38,7 @@ def simple_evaluate(
...
@@ -38,6 +38,7 @@ def simple_evaluate(
write_out
:
bool
=
False
,
write_out
:
bool
=
False
,
log_samples
:
bool
=
True
,
log_samples
:
bool
=
True
,
gen_kwargs
:
str
=
None
,
gen_kwargs
:
str
=
None
,
weight_by_size
:
bool
=
False
,
):
):
"""Instantiate and evaluate a model on a list of tasks.
"""Instantiate and evaluate a model on a list of tasks.
...
@@ -155,6 +156,7 @@ def simple_evaluate(
...
@@ -155,6 +156,7 @@ def simple_evaluate(
decontamination_ngrams_path
=
decontamination_ngrams_path
,
decontamination_ngrams_path
=
decontamination_ngrams_path
,
write_out
=
write_out
,
write_out
=
write_out
,
log_samples
=
log_samples
,
log_samples
=
log_samples
,
weight_by_size
=
weight_by_size
,
)
)
if
lm
.
rank
==
0
:
if
lm
.
rank
==
0
:
...
@@ -197,6 +199,7 @@ def evaluate(
...
@@ -197,6 +199,7 @@ def evaluate(
decontamination_ngrams_path
=
None
,
decontamination_ngrams_path
=
None
,
write_out
:
bool
=
False
,
write_out
:
bool
=
False
,
log_samples
:
bool
=
True
,
log_samples
:
bool
=
True
,
weight_by_size
:
bool
=
False
,
):
):
"""Instantiate and evaluate a model on a list of tasks.
"""Instantiate and evaluate a model on a list of tasks.
...
...
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