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
4d40c5d7
"profiler/README.md" did not exist on "5d37d7bff4e631c3b94112c31a52f209ca39dfe2"
Commit
4d40c5d7
authored
Oct 16, 2025
by
Baber
Browse files
fix type
parent
7e5f909b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lm_eval/models/vllm_causallms.py
lm_eval/models/vllm_causallms.py
+3
-1
No files found.
lm_eval/models/vllm_causallms.py
View file @
4d40c5d7
...
@@ -4,6 +4,7 @@ import copy
...
@@ -4,6 +4,7 @@ import copy
import
gc
import
gc
import
logging
import
logging
import
os
import
os
from
collections.abc
import
Sequence
from
importlib.metadata
import
version
from
importlib.metadata
import
version
from
importlib.util
import
find_spec
from
importlib.util
import
find_spec
from
multiprocessing
import
Process
,
Queue
from
multiprocessing
import
Process
,
Queue
...
@@ -351,7 +352,8 @@ class VLLM(TemplateLM):
...
@@ -351,7 +352,8 @@ class VLLM(TemplateLM):
)
)
# handle chat template
# handle chat template
if
bos_already_added
(
if
bos_already_added
(
string
[
0
]
if
isinstance
(
string
,
list
)
else
string
,
self
.
tokenizer
.
bos_token
string
[
0
]
if
isinstance
(
string
,
Sequence
)
else
string
,
self
.
tokenizer
.
bos_token
,
):
):
add_special_kwargs
=
{
"add_special_tokens"
:
False
}
add_special_kwargs
=
{
"add_special_tokens"
:
False
}
...
...
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