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
b2f6bce8
"vscode:/vscode.git/clone" did not exist on "434a6f9d46aef19d50306adc6e7cba20538db989"
Commit
b2f6bce8
authored
Jan 08, 2022
by
Leo Gao
Browse files
Fix fewshot_context method handling
parent
c3bec45f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lm_eval/utils.py
lm_eval/utils.py
+2
-1
No files found.
lm_eval/utils.py
View file @
b2f6bce8
...
...
@@ -2,6 +2,7 @@ import os
import
re
import
collections
import
functools
import
inspect
class
ExitCodeError
(
Exception
):
...
...
@@ -148,7 +149,7 @@ def positional_deprecated(fn):
"""
@
functools
.
wraps
(
fn
)
def
_wrapper
(
*
args
,
**
kwargs
):
if
len
(
args
)
!=
0
:
if
len
(
args
)
!=
1
if
inspect
.
ismethod
(
fn
)
else
0
:
print
(
f
"WARNING: using
{
fn
.
__name__
}
with positional arguments is "
"deprecated and will be disallowed in a future version of "
"lm-evaluation-harness!"
)
...
...
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