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

unable to run llama.cpp on 2 A770 cards with x99 platform

Open luningxie opened this issue 8 months ago • 1 comments

when i run llama.cpp portable version on my ubuntu desktop, there is the wrong message "./llama-cli: the 2 line: 33168 illegal instrutions(Segmentation fault ) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(cd "$(dirname "$0")";pwd) $(cd "$(dirname "$0")";pwd)/llama-cli-bin "$@"

my computer config: X99 platform, two way E5-2170 v3 CPUs, 2 A770 video cards, Ubuntu 22.04.05 desktop.

How to reproduce Steps to reproduce the error:

  1. download llama.cpp portable version, and unzip to the current directory.

  2. open the terminal at the directory and run the following command: ./llama-cli -m /llama-cpp-ipex-llm-2.2.0b20250313-ubuntu-xeon/QwQ-32B-Q3_K_L.gguf -p "A conversation between User and Assistant. The user asks a question, and the Assistant solves it. The assistant first thinks about the reasoning process in the mind and then provides the user with the answer. The reasoning process and answer are enclosed within and tags, respectively, i.e., reasoning process here answer here . User: Question:The product of the ages of three teenagers is 4590. How old is the oldest? a. 18 b. 19 c. 15 d. 17 Assistant: " -n 2048 -t 8 -e -ngl 99 --color -c 2500 --temp 0 -no-cnv

3.after running, the screen displays: ggml_sycl_init: GGML_SYCL_FORCE_MMQ: no ggml_sycl_init: SYCL_USE_XMX: yes ggml_sycl_init: found 2 SYCL devices: /llama-cli: the 2 line: 33168 illegal instrutions(Segmentation fault ) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(cd "$(dirname "$0")";pwd) $(cd "$(dirname "$0")";pwd)/llama-cli-bin "$@"

  1. the command stopped and return.

thanks for the help!

luningxie avatar Apr 01 '25 03:04 luningxie

llama-cpp-ipex-llm-2.2.0b20250313-ubuntu-xeon is for SPR,E5 v3 is too old. You can try our nightly llama.cpp https://github.com/intel/ipex-llm/blob/main/docs/mddocs/Quickstart/llama_cpp_quickstart.md or our next portable zip(on the way).

qiuxin2012 avatar Apr 02 '25 02:04 qiuxin2012