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
24fde4a6
Unverified
Commit
24fde4a6
authored
Nov 28, 2021
by
Leo Gao
Committed by
GitHub
Nov 28, 2021
Browse files
Update base.py
parent
76ebb792
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/base.py
lm_eval/base.py
+1
-1
No files found.
lm_eval/base.py
View file @
24fde4a6
...
@@ -669,7 +669,7 @@ REQUEST_RETURN_LENGTHS = {
...
@@ -669,7 +669,7 @@ REQUEST_RETURN_LENGTHS = {
class
Request
:
class
Request
:
def
__init__
(
self
,
req_type
,
args
,
index
=
None
):
def
__init__
(
self
,
req_type
,
args
,
index
=
None
):
if
req_type
not
in
REQUEST_RETURN_LENGTHS
.
keys
():
if
req_type
not
in
REQUEST_RETURN_LENGTHS
.
keys
():
raise
NotImplementedError
(
'The request type {} is not implemented!'
.
format
(
req
uest
_type
))
raise
NotImplementedError
(
'The request type {} is not implemented!'
.
format
(
req_type
))
self
.
req_type
=
req_type
self
.
req_type
=
req_type
self
.
args
=
args
self
.
args
=
args
...
...
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