[Bug] Migrate Reset cache for both v2 and v1 model runner (#42759)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Wentao Ye
2026-06-12 09:38:12 -04:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 4171ae406c
commit fbc3a1907a
2 changed files with 3 additions and 2 deletions
+3
View File
@@ -5391,6 +5391,9 @@ class GPUModelRunner(
weights_not_loaded,
)
self.reset_encoder_cache()
self.reset_mm_cache()
def _get_prompt_logprobs_dict(
self,
hidden_states: torch.Tensor,