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
d57e3d65
Unverified
Commit
d57e3d65
authored
Jun 03, 2025
by
Younes B
Committed by
GitHub
Jun 03, 2025
Browse files
fix: fix vllm issue with DP>1 (#3025)
parent
3f792954
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lm_eval/models/vllm_causallms.py
lm_eval/models/vllm_causallms.py
+11
-3
No files found.
lm_eval/models/vllm_causallms.py
View file @
d57e3d65
...
@@ -216,9 +216,17 @@ class VLLM(TemplateLM):
...
@@ -216,9 +216,17 @@ class VLLM(TemplateLM):
}
}
if
parse_version
(
version
(
"vllm"
))
>=
parse_version
(
"0.9.0"
):
if
parse_version
(
version
(
"vllm"
))
>=
parse_version
(
"0.9.0"
):
kwargs_resolve_hf_chat_template
[
"model_config"
]
=
(
if
self
.
data_parallel_size
<=
1
:
self
.
model
.
llm_engine
.
model_config
kwargs_resolve_hf_chat_template
[
"model_config"
]
=
(
)
self
.
model
.
llm_engine
.
model_config
)
else
:
from
vllm.engine.arg_utils
import
EngineArgs
engine_args
=
EngineArgs
(
**
self
.
model_args
)
model_config
=
engine_args
.
create_model_config
()
kwargs_resolve_hf_chat_template
[
"model_config"
]
=
model_config
# https://github.com/vllm-project/vllm/pull/18259
# https://github.com/vllm-project/vllm/pull/18259
if
(
if
(
...
...
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