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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user