Reddit · r/LocalLLaMA· /u/oppoftemp27·· 20 天前精选AI 评分62
llama.cpp 官方 ROCm 预编译版在 AMD 上可能静默回退到 CPU 运行
If you benchmark llama.cpp on AMD with the official ROCm builds, check that you're actually on the GPU
来源与原文
Reddit · r/LocalLLaMA
作者:/u/oppoftemp27
发布时间:(北京时间)
阅读原始来源 · reddit.com ↗完整链接与内容说明
https://www.reddit.com/r/LocalLLaMA/comments/1wzdti3/if_you_benchmark_llamacpp_on_amd_with_the/
本站目前仅有 AI 导读与摘要,未展示原文正文;技术细节、代码和完整结论请查看原始来源。
AI 导读
Reddit 用户 /u/oppoftemp27 发现,在四台 AMD 主机上,llama.cpp 官方 ROCm 预编译版(b11327)从未真正使用 GPU,服务启动正常、/health 显示绿色,实际一直在 CPU 上运行。原因是预编译版的 HIP 后端需要 libamdhip64.so.7 / libhipblas.so.3 / librocblas.so.5,而装有 ROCm 6.3.0 的 Ubuntu 主机只有 .so.6 / .so.2 / .so.4,后端库加载失败后 llama-server 静默改用 CPU,控制台无报错,-ngl 999 也无效。作者建议用同一提示词集在 CPU 版上对比每条耗时,比值约 1.0 说明在跑 CPU,远低于 0.5 说明 GPU 正常工作。
推荐理由
作者给出官方 ROCm 预编译版静默回退 CPU 的具体库版本原因,以及用 CPU 对照跑分检测该问题的可复用方法。
来源:Reddit · r/LocalLLaMA · reddit.com