Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
2669a0d7
Unverified
Commit
2669a0d7
authored
Jun 04, 2025
by
Seiji Eicher
Committed by
GitHub
Jun 04, 2025
Browse files
Fix ValueError: Missing value for tag key(s): model_name,engine. (#19113)
Signed-off-by:
Seiji Eicher
<
seiji@anyscale.com
>
parent
8e972d9c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
tests/v1/metrics/test_ray_metrics.py
tests/v1/metrics/test_ray_metrics.py
+4
-1
vllm/v1/metrics/ray_wrappers.py
vllm/v1/metrics/ray_wrappers.py
+10
-0
No files found.
tests/v1/metrics/test_ray_metrics.py
View file @
2669a0d7
...
...
@@ -47,12 +47,15 @@ def test_engine_log_metrics_ray(
engine_args
,
stat_loggers
=
[
RayPrometheusStatLogger
])
for
i
,
prompt
in
enumerate
(
example_prompts
):
engine
.
generate
(
results
=
engine
.
generate
(
request_id
=
f
"request-id-
{
i
}
"
,
prompt
=
prompt
,
sampling_params
=
SamplingParams
(
max_tokens
=
max_tokens
),
)
async
for
_
in
results
:
pass
# Create the actor and call the async method
actor
=
EngineTestActor
.
remote
()
# type: ignore[attr-defined]
ray
.
get
(
actor
.
run
.
remote
())
vllm/v1/metrics/ray_wrappers.py
View file @
2669a0d7
...
...
@@ -31,6 +31,16 @@ class RayPrometheusMetric:
self
.
metric
.
set_default_tags
(
labelskwargs
)
if
labels
:
if
len
(
labels
)
!=
len
(
self
.
metric
.
_tag_keys
):
raise
ValueError
(
"Number of labels must match the number of tag keys. "
f
"Expected
{
len
(
self
.
metric
.
_tag_keys
)
}
, got
{
len
(
labels
)
}
"
)
self
.
metric
.
set_default_tags
(
dict
(
zip
(
self
.
metric
.
_tag_keys
,
labels
)))
return
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