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
811252b8
Unverified
Commit
811252b8
authored
Jun 13, 2023
by
Poedator
Committed by
GitHub
Jun 13, 2023
Browse files
Update evaluator.py - extra .model added
fixed the reference to the inner model
parent
69ed600d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/evaluator.py
lm_eval/evaluator.py
+2
-2
No files found.
lm_eval/evaluator.py
View file @
811252b8
...
...
@@ -77,7 +77,7 @@ def simple_evaluate(
lm
=
lm_eval
.
base
.
CachingLM
(
lm
,
"lm_cache/"
+
(
model
if
isinstance
(
model
,
str
)
else
model
.
config
.
_name_or_path
)
+
(
model
if
isinstance
(
model
,
str
)
else
model
.
model
.
config
.
_name_or_path
)
+
"_"
+
model_args
.
replace
(
"="
,
"-"
).
replace
(
","
,
"_"
).
replace
(
"/"
,
"-"
)
+
".db"
,
...
...
@@ -102,7 +102,7 @@ def simple_evaluate(
# add info about the model and few shot config
results
[
"config"
]
=
{
"model"
:
(
model
if
isinstance
(
model
,
str
)
else
model
.
config
.
_name_or_path
),
"model"
:
(
model
if
isinstance
(
model
,
str
)
else
model
.
model
.
config
.
_name_or_path
),
"model_args"
:
model_args
,
"num_fewshot"
:
num_fewshot
,
"batch_size"
:
batch_size
,
...
...
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