intel-analytics/ipex-llm

Failing to run ipex-llm ollama on Intel Arc A770

dan9070 opened this issue · 12 comments

2024/05/12 03:51:37 ERROR unable to locate llm runner directory. Set OLLAMA_RUNNERS_DIR to the location of 'ollama_runners'
This is an error I receive every thing upon running the ollama for llm-cpp environment. If this is not properly set and no other version of ollama is installed other than ipex-llm's, this error occurs:
Error: [0] server cpu not listed in available servers map[]

This was with a properly set-up environment, following every instruction in both setting up llama.cpp's symlinks and then ollama's. Everything was properly installed in llm-cpp in miniconda3, and the oneapi environment was activated.

Hello, same here. Tried oneapi through pip and win installer but same results. Llama.cpp tested and runs just fine with SYCL support recognizing my Intel gpu. Ollama on the other hand does not recognize the gpu st all.My host is running win11.

Hi @dan9070 & @Jrizzos ,
we have reproduced this error (Error: [0] server cpu not listed in available servers map[]) on Windows and we are trying to fix it. Once it is done, will update here to let you know.
For now, as a workaround, you can try pip install ipex-llm[cpp]==2.1.0b20240508, this version works on Windows.

I'm having the same problem, looking forward to the Update.

Hi @dan9070 & @Jrizzos , we have reproduced this error (Error: [0] server cpu not listed in available servers map[]) on Windows and we are trying to fix it. Once it is done, will update here to let you know. For now, as a workaround, you can try pip install ipex-llm[cpp]==2.1.0b20240508, this version works on Windows.

This resolved it for me. Thank you.
Another person inside Intel Dev Inisders Discord also got it resolved with this package. I will notify other Intel Arc users with similar issues.

Hi all, this issue has been fixed for ipex-llm[cpp]>=2.1.0b20240513 : )

Hi all, this issue has been fixed for ipex-llm[cpp]>=2.1.0b20240513 : )

2.1.0b20240513 doesn't work for me. Same error again: Error: [0] server cpu not listed in available servers map

2.1.0b20240513 doesn't work for me. Same error again: Error: [0] server cpu not listed in available servers map

Hi @tardigrade34 , I want to make sure if you have deleted the old ollama.exe in your directory and re-called init-ollama.bat with 2.1.0b20240513, there should be an ollama.exe and a dist directory in your current directory:
image

If you have already done this but still encounter problems, could you please provide us with the specific machine model and detailed error log so that we can further locate the problem ?

Error: [0] server cpu not listed in available servers map

Error: [0] server cpu not listed in available servers map

I compile the newest ollama,generate the binary:ollama.exe, app.exe。I start ollama.exe and app.exe,when I run “ollama.exe run qwen:7b”,encounter the above error

Error: [0] server cpu not listed in available servers map
I compile the newest ollama,generate the binary:ollama.exe, app.exe。I start ollama.exe and app.exe,when I run “ollama.exe run qwen:7b”,encounter the above error

Hi @czfdlut , ipex-llm ollma doesn't release app.exe, in my understanding, you compile ollama by yourself, right ?
Maybe you can try with ipex-llm ollama based on this quickstart(https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) if you do want to run ollama on your machine with Intel GPUs. Otherwise, maybe you should raise this issue to ollama public repo : )

2.1.0b20240513 doesn't work for me. Same error again: Error: [0] server cpu not listed in available servers map

Hi @tardigrade34 , I want to make sure if you have deleted the old ollama.exe in your directory and re-called init-ollama.bat with 2.1.0b20240513, there should be an ollama.exe and a dist directory in your current directory: image

If you have already done this but still encounter problems, could you please provide us with the specific machine model and detailed error log so that we can further locate the problem ?

I did what you said and it worked. Thanks a lot!

I will close this issue first, if you meet any other issues, you can reopen it or raise a new issue about it.