Skip to content

Commit ffc3331

Browse files
committed
Correct test location
Signed-off-by: Seiji Eicher <seiji@anyscale.com>
1 parent 6a242c3 commit ffc3331

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/metrics/test_ray_metrics.py renamed to tests/v1/metrics/test_ray_metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def test_engine_log_metrics_ray(
2929
dtype: str,
3030
max_tokens: int,
3131
) -> None:
32+
""" Simple smoke test, verifying this can be used without exceptions.
33+
Need to start a Ray cluster in order to verify outputs."""
3234

3335
@ray.remote(num_gpus=1)
3436
class EngineTestActor:

vllm/v1/metrics/ray_wrappers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import time
33
from typing import Optional, Union
44

5-
import prometheus_client
6-
75
from vllm.config import VllmConfig
86
from vllm.v1.metrics.loggers import PrometheusStatLogger
97
from vllm.v1.spec_decode.metrics import SpecDecodingProm
@@ -102,7 +100,7 @@ class RaySpecDecodingProm(SpecDecodingProm):
102100
util.metrics library.
103101
"""
104102

105-
_counter_cls = prometheus_client.Counter
103+
_counter_cls = RayCounterWrapper
106104

107105

108106
class RayPrometheusStatLogger(PrometheusStatLogger):

0 commit comments

Comments
 (0)