运行Ollama报错
Error: Post "http://127.0.0.1:11434/api/chat": read tcp 127.0.0.1:4292->127.0.0.1:11434: wsarecv: An existing connection was forcibly closed by the remote host.
查看log文件
server.log
CUDA error: out of memory
退出守护进程和命令行窗口
修改或者增加系统环境变量
CUDA_VISIBLE_DEVICES
注意:需要给这个变量赋值为一个空格,否则无法点击确定按钮
再次进入命令行窗口,运行成功
ollama run gemma:2b
查看log文件
server.log
Unable to init GPU: no CUDA-capable device is detected"