[Iluvatar] Fix cuda graph error for tp > 1 in ernie models (#7126)

This commit is contained in:
yzwu
2026-04-01 19:13:34 +08:00
committed by GitHub
parent fdfc908e2f
commit ceaf5df350
5 changed files with 75 additions and 11 deletions
@@ -49,7 +49,7 @@ class DefaultModelLoaderV1(BaseModelLoader):
def clean_memory_fragments(self) -> None:
"""clean_memory_fragments"""
if current_platform.is_cuda() or current_platform.is_maca():
if current_platform.is_cuda() or current_platform.is_maca() or current_platform.is_iluvatar():
paddle.device.empty_cache()
paddle.device.synchronize()