[Frontend] Tune reference cache limits and registered MOSS voice requests (#7883)

Signed-off-by: Canlin Guo <canlinguosdu@gmail.com>
This commit is contained in:
Canlin Guo authored and GitHub committed 2026-09-29 04:10:17 +00:00
1 parent 1c1fdf719c
commit 235c430326
22 files changed
+752 -70

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""API-process speech cache budgets, independent of stage engine caches."""
from pydantic import ConfigDict, Field
from vllm.config.utils import config
@config(config=ConfigDict(strict=True, extra="forbid", frozen=True))
class SpeechCacheConfig:
"""LRU limits, not preallocated memory. Zero disables the respective cache."""
resolve_max_bytes: int = Field(default=4 * 1024**3, ge=0)
resolve_max_entries: int = Field(default=2048, ge=0)
speaker_max_bytes: int = Field(default=512 * 1024**2, ge=0)