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

ImportError: /lib64/libc.so.6: version `GLIBC_2.32' not found

Open devpramod opened this issue 1 year ago • 4 comments

Following instructions from https://github.com/intel-analytics/BigDL/tree/main/python/llm/example/GPU/LLM-Finetuning/QLoRA/simple-example to set up exaple

Facing the following error:

import linear_q4_0 ImportError: /lib64/libc.so.6: version GLIBC_2.32' not found`

devpramod avatar Mar 24 '24 18:03 devpramod

upgrade the GLIC version

Fred-cell avatar Mar 25 '24 00:03 Fred-cell

GLIBC_2.32' not found`

Hi @devpramod This error is caused by glibc out of date. In most cases, it's due to OS out of date.

But don't upgrade glibc because it's OS and kernel-related. It may cause your system.

Please try docker container https://github.com/intel-analytics/BigDL/tree/main/docker/llm/finetune/qlora/xpu/docker. Or install glibc in conda.

qiyuangong avatar Mar 25 '24 01:03 qiyuangong

Thanks @qiyuangong Is it possible to install glibc through conda only?

devpramod avatar Mar 25 '24 15:03 devpramod

Thanks @qiyuangong Is it possible to install glibc through conda only?

Yes. It's possible but still risky (it may also crash your conda env or application). Please use the docker solution. It's much safer.

You can use this command to check your glibc version.

strings /lib64/libc.so.6 | grep GLIBC

qiyuangong avatar Mar 26 '24 00:03 qiyuangong