mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +08:00
[Iluvatar] Fix cuda graph error for tp > 1 in ernie models (#7126)
This commit is contained in:
@@ -43,7 +43,7 @@ class DefaultModelLoader(BaseModelLoader):
|
||||
|
||||
def clean_memory_fragments(self, state_dict: dict) -> 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():
|
||||
if state_dict:
|
||||
for k, v in state_dict.items():
|
||||
if isinstance(v, paddle.Tensor):
|
||||
|
||||
Reference in New Issue
Block a user