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
646dec9e
Commit
646dec9e
authored
Jul 08, 2025
by
Baber
Browse files
nit
parent
40885c1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
lm_eval/api/model.py
lm_eval/api/model.py
+3
-6
No files found.
lm_eval/api/model.py
View file @
646dec9e
...
...
@@ -3,7 +3,6 @@ import hashlib
import
json
import
logging
import
os
from
typing
import
TYPE_CHECKING
,
Optional
,
Type
,
TypeVar
,
Union
from
typing
import
TYPE_CHECKING
,
Any
,
Iterable
,
Optional
,
Type
,
TypeVar
,
Union
from
tqdm
import
tqdm
...
...
@@ -17,10 +16,6 @@ if TYPE_CHECKING:
from
lm_eval.api.instance
import
Instance
if
TYPE_CHECKING
:
from
lm_eval.api.instance
import
Instance
eval_logger
=
logging
.
getLogger
(
__name__
)
T
=
TypeVar
(
"T"
,
bound
=
"LM"
)
...
...
@@ -432,7 +427,9 @@ class TemplateLM(LM):
pass
@
abc
.
abstractmethod
def
generate_until
(
self
,
requests
:
list
[
Instance
],
disable_tqdm
:
bool
=
False
)
->
list
[
str
]:
def
generate_until
(
self
,
requests
:
list
[
Instance
],
disable_tqdm
:
bool
=
False
)
->
list
[
str
]:
"""Generate until a stopping sequence.
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