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
d6d49e93
Commit
d6d49e93
authored
Oct 16, 2025
by
Baber
Browse files
nit
parent
987ac3d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lm_eval/models/vllm_causallms.py
lm_eval/models/vllm_causallms.py
+7
-2
No files found.
lm_eval/models/vllm_causallms.py
View file @
d6d49e93
...
...
@@ -283,11 +283,16 @@ class VLLM(TemplateLM):
@
property
def
max_length
(
self
):
return
(
max_l
=
(
8096
if
self
.
_max_length_internal
and
self
.
_max_length_internal
>
8096
if
(
isinstance
(
self
.
_max_length_internal
,
int
)
and
self
.
_max_length_internal
>
8096
)
else
self
.
_max_length
)
assert
isinstance
(
max_l
,
int
)
return
max_l
@
property
def
_max_length_internal
(
self
):
...
...
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