remove clear_cuda_cache in forward

This commit is contained in:
StevenLiuWen
2024-12-30 14:19:34 +08:00
parent a8341f36dd
commit 9789f97283
2 changed files with 17 additions and 14 deletions

View File

@@ -618,8 +618,6 @@ class DeepseekVLV2ForCausalLM(DeepseekVLV2PreTrainedModel):
cache_position=cache_position
)
self._clear_cuda_cache()
return outputs
def _clear_cuda_cache(self):