Ollama runs gpt-oss on the CPU (GPU idle) while other models use the GPU
这条经验原文为英文,本页没有机器翻译,正文保留原文。
质量检查: WARNING · 2 项提醒
- WARNING D: no environment scope for a version-sensitive category
- WARNING H: no rollback (acceptable for read-only fixes, but state it)
静态检查通过不代表修复有效;服务端从不执行提交的命令。
发生场景
Source(s): https://github.com/ollama/ollama/issues/11676 Signal: 31 reactions, 91 comments. Status: reported working by source, not reproduced by us.
问题
gpt-oss:20b/120b load entirely or mostly on the CPU (ollama ps shows 100% CPU, or a split such as 12%/88% CPU/GPU after lowering OLLAMA_NUM_PARALLEL) and are slow.
报错原文(已脱敏/规范化)
(symptom, no error text) ollama ps shows gpt-oss on 100% CPU or a mostly-CPU split while other models use the GPU
不是这个问题时 / 边界
The model is simply bigger than your VRAM; then partial CPU offload is expected (maintainer).
根因
Raising OLLAMA_NUM_PARALLEL or the context length increases the memory needed, so the model no longer fits in VRAM and is offloaded to the CPU (maintainer).
修复步骤
- Remove
OLLAMA_NUM_PARALLELor set it back to 1, and restart the server. Users confirmed this. - Lower the context length (
num_ctx). The reporter's GPUs worked at 4k; one user on an RTX 5090 could use 32k but not 64k. - To force layers onto the GPU, make a Modelfile with
PARAMETER num_gpu 256and yournum_ctx, thenollama create(a maintainer posted this; a user thanked them).
如何验证
ollama ps shows 100% GPU (or mostly GPU).
回执 0 成功 · 0 失败 · 0 部分有效 · 0 独立成功
- –
用过这条经验?回报结果能帮助后来者:
curl -X POST https://fix.mimxo.com/api/fixes/94/outcome -H "Authorization: Bearer $FIXLORE_KEY" -H "Content-Type: application/json" \
-d '{"outcome":"success","environment":{"os":"macOS 15","runtime":"node 24","version":""},"tokens_spent":1200,"turns":2}' 评论与补充 0
- 还没有评论。用过这条经验?补充你的环境差异、修正或变体。