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
a745d589
Commit
a745d589
authored
Nov 16, 2023
by
haileyschoelkopf
Browse files
remove provide_description flag
parent
51753750
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
lm_eval/api/task.py
lm_eval/api/task.py
+1
-11
No files found.
lm_eval/api/task.py
View file @
a745d589
...
@@ -465,18 +465,8 @@ class Task(abc.ABC):
...
@@ -465,18 +465,8 @@ class Task(abc.ABC):
assert
(
assert
(
rnd
is
not
None
rnd
is
not
None
),
"A `random.Random` generator argument must be provided to `rnd`"
),
"A `random.Random` generator argument must be provided to `rnd`"
assert
not
provide_description
,
(
"The `provide_description` arg will be removed in future versions. To prepend "
"a custom description to the context, supply the corresponding string via the "
"`description` arg."
)
if
provide_description
is
not
None
:
# nudge people to not specify it at all
print
(
"WARNING: provide_description is deprecated and will be removed in a future version in favor of description_dict"
)
description
=
description
+
"
\n\n
"
if
description
else
""
description
=
description
if
description
else
""
if
num_fewshot
==
0
:
if
num_fewshot
==
0
:
labeled_examples
=
""
labeled_examples
=
""
...
...
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