DefaultCPUAllocator: not enough memory: you tried to allocate 4200595456 bytes

报错:DefaultCPUAllocator: not enough memory: you tried to allocate 4200595456 bytes

程序加载到 text_encoder(文本编码器) 阶段,需要一次性申请约 4.2GB CPU 内存,你的物理内存容量不足,直接分配失败。


本机物理内存不够,虚拟内存只能缓解页面文件报错,但无法解决大张量瞬时内存分配失败。

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐