[Bugfix] Fix inconsistent handling of cache reset (#33481)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-01-31 20:23:41 -08:00
committed by GitHub
parent d6416fdde9
commit 79b6ec6aab
7 changed files with 35 additions and 11 deletions
+4
View File
@@ -717,6 +717,10 @@ class GPUModelRunner(
self.effective_drafter_max_model_len = self.max_model_len
def reset_mm_cache(self) -> None:
"""
Clear the multi-modal cache that was used during profiling,
but no longer needed during inference.
"""
if self.mm_budget:
self.mm_budget.reset_cache()