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
09cd76c7
"library/vscode:/vscode.git/clone" did not exist on "9cefc2619328a390cdf125f185fd31c50896cdbb"
Commit
09cd76c7
authored
Dec 15, 2021
by
Jonathan Tow
Browse files
Fix assertion error string
parent
3fdff22f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lm_eval/base.py
lm_eval/base.py
+3
-3
No files found.
lm_eval/base.py
View file @
09cd76c7
...
...
@@ -459,9 +459,9 @@ class Task(abc.ABC):
def
fewshot_context
(
self
,
doc
,
num_fewshot
,
provide_description
,
rnd
,
description
=
None
):
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
."
)
description
=
description
+
"
\n\n
"
if
description
else
""
...
...
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