求助:如何解决 NPU out of memory 报错
收藏回复举报
求助:如何解决 NPU out of memory 报错
t('forum.solved') 已解决
新人帖
发表于2025-07-31 11:06:49
0 查看

报错信息如下:

RuntimeError: NPU out of memory. Tried to allocate 20.00 MiB (NPU 0; 60.96 GiB total capacity; 1.45 GiB already allocated; 1.45 GiB current active; 18.23 MiB free; 48.77 GiB allowed; 1.54 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.

[ERROR] 2025-07-31-10:46:26 (PID:1780885, Device:0, RankID:-1) ERR99999 UNKNOWN application exception

然后查了npu-smi info信息,结果显示:

cke_4363.png

不知道是什么影响的,应该如何操作才能解决该问题呢?

我要发帖子