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
80fe11d8
Commit
80fe11d8
authored
May 20, 2023
by
Benjamin Fattori
Browse files
keep local changes
parent
c23dd0fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
lm_eval/evaluator.py
lm_eval/evaluator.py
+0
-20
No files found.
lm_eval/evaluator.py
View file @
80fe11d8
...
...
@@ -6,13 +6,8 @@ import lm_eval.api.metrics
import
lm_eval.models
import
lm_eval.tasks
import
lm_eval.api
<<<<<<<
HEAD
from
lm_eval.utils
import
positional_deprecated
,
run_task_tests
,
make_table
,
create_iterator
import
torch
=======
from
lm_eval.utils
import
positional_deprecated
,
run_task_tests
,
make_table
,
get_git_commit_hash
>>>>>>>
upstream
/
big
-
refactor
@
positional_deprecated
def
simple_evaluate
(
...
...
@@ -84,7 +79,6 @@ def simple_evaluate(
decontamination_ngrams_path
=
decontamination_ngrams_path
,
)
<<<<<<<
HEAD
if
lm
.
rank
==
0
:
# add info about the model and few shot config
results
[
"config"
]
=
{
...
...
@@ -101,20 +95,6 @@ def simple_evaluate(
return
results
else
:
return
None
=======
# add info about the model and few shot config
results
[
"config"
]
=
{
"model"
:
model
,
"model_args"
:
model_args
,
"num_fewshot"
:
num_fewshot
,
"batch_size"
:
batch_size
,
"device"
:
device
,
"no_cache"
:
no_cache
,
"limit"
:
limit
,
"bootstrap_iters"
:
bootstrap_iters
,
}
results
[
"git_hash"
]
=
get_git_commit_hash
()
>>>>>>>
upstream
/
big
-
refactor
...
...
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