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
b922c2eb
Unverified
Commit
b922c2eb
authored
May 13, 2025
by
Cyrus Leung
Committed by
GitHub
May 13, 2025
Browse files
[Bugfix] Fix entrypoints metrics tests (#18063)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
00b14e0f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
vllm/entrypoints/openai/api_server.py
vllm/entrypoints/openai/api_server.py
+4
-4
vllm/v1/engine/core.py
vllm/v1/engine/core.py
+1
-1
No files found.
vllm/entrypoints/openai/api_server.py
View file @
b922c2eb
...
...
@@ -150,10 +150,6 @@ async def build_async_engine_client(
async
with
build_async_engine_client_from_engine_args
(
engine_args
,
args
.
disable_frontend_multiprocessing
)
as
engine
:
# Don't keep the dummy data in memory
await
engine
.
reset_mm_cache
()
yield
engine
...
...
@@ -189,6 +185,10 @@ async def build_async_engine_client_from_engine_args(
usage_context
=
usage_context
,
disable_log_requests
=
engine_args
.
disable_log_requests
,
disable_log_stats
=
engine_args
.
disable_log_stats
)
# Don't keep the dummy data in memory
await
async_llm
.
reset_mm_cache
()
yield
async_llm
finally
:
if
async_llm
:
...
...
vllm/v1/engine/core.py
View file @
b922c2eb
...
...
@@ -289,7 +289,7 @@ class EngineCore:
def
reset_mm_cache
(
self
):
# NOTE: Since this is mainly for debugging, we don't attempt to
# re-sync the internal caches (P0 processor, P0 mirror, P1 mirror)
if
self
.
scheduler
.
get_num
_unfinished_requests
():
if
self
.
scheduler
.
has
_unfinished_requests
():
logger
.
warning
(
"Resetting the multi-modal cache when requests are "
"in progress may lead to desynced internal caches."
)
...
...
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