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
09e1de93
Commit
09e1de93
authored
Dec 16, 2021
by
Jonathan Tow
Browse files
Fix assertion error message
parent
e3ddcfc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lm_eval/base.py
lm_eval/base.py
+4
-4
No files found.
lm_eval/base.py
View file @
09e1de93
...
...
@@ -452,7 +452,7 @@ class Task(abc.ABC):
def
fewshot_description
(
self
):
import
warnings
warnings
.
warn
(
"`fewshot_description` will be removed in futures versions. Pass "
\
"`fewshot_description` will be removed in futures versions. Pass "
"any custom descriptions to the `evaluate` function instead."
,
DeprecationWarning
)
return
""
...
...
@@ -539,9 +539,9 @@ class PerplexityTask(Task, abc.ABC):
def
fewshot_context
(
self
,
doc
,
num_fewshot
,
provide_description
,
rnd
,
description
=
None
):
assert
num_fewshot
==
0
assert
not
provide_description
,
(
"The `provide_description` arg will be removed in future versions. To pr
ovide
"
"custom description
s on a per-task basis
, supply the
`descripti
on
_
di
ct`
"
"
arg with your task-to-
description
diction
ar
y
."
"The `provide_description` arg will be removed in future versions. To pr
epend
"
"
a
custom description
to the context
, supply the
corresp
ondi
ng string via the
"
"
`
description
`
ar
g
."
)
return
""
...
...
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