ipex-llm icon indicating copy to clipboard operation
ipex-llm copied to clipboard

Failing to run ipex-llm ollama on Intel Arc A770

Open dan9070 opened this issue 9 months ago • 2 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.

dan9070 avatar May 12 '24 06:05 dan9070

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.

Jrizzos avatar May 12 '24 11:05 Jrizzos

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.

rnwang04 avatar May 12 '24 13:05 rnwang04

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

tardigrade34 avatar May 12 '24 14:05 tardigrade34

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.

dan9070 avatar May 12 '24 15:05 dan9070

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

rnwang04 avatar May 13 '24 11:05 rnwang04

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

tardigrade34 avatar May 13 '24 15:05 tardigrade34

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 ?

rnwang04 avatar May 14 '24 01:05 rnwang04

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

czfdlut avatar May 14 '24 08:05 czfdlut

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

czfdlut avatar May 14 '24 08:05 czfdlut

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 : )

rnwang04 avatar May 14 '24 09:05 rnwang04

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!

tardigrade34 avatar May 14 '24 14:05 tardigrade34

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

rnwang04 avatar May 15 '24 02:05 rnwang04