intel / xFasterTransformer

Apache License 2.0
374 stars 65 forks source link

Can't find the libmklml_intel.so #47

Closed oldmikeyang closed 11 months ago

oldmikeyang commented 11 months ago

The following is the error (cpu-xfaster) llm@SPR-ARC:~/xFasterTransformer/build$ python -d -m xfastertransformer.example.web_demo Traceback (most recent call last): File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/runpy.py", line 110, in _get_module_details import(pkg_name) File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/site-packages/xfastertransformer/init.py", line 4, in torch.classes.load_library(os.path.dirname(os.path.abspath(file)) + "/libxfastertransformer_pt.so") File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/site-packages/torch/_classes.py", line 51, in load_library torch.ops.load_library(path) File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/site-packages/torch/_ops.py", line 643, in load_library ctypes.CDLL(path) File "/home/llm/miniconda3/envs/cpu-xfaster/lib/python3.10/ctypes/init.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: **libmklml_intel.so: cannot open shared object file: No such file or directory**

The following is the oneDNN from Intel oneAPI 23.03, there is no file name is libmklml_intel.so (cpu-xfaster) llm@SPR-ARC:/opt/intel/oneapi$ find . -name '*_intel.so' ./mkl/2023.2.0/lib/ia32/libmkl_intel.so

Duyi-Wang commented 11 months ago

This dependency has been removed and will be released in the next version. For version 1.0.0, please set mklml manually:

Duyi-Wang commented 11 months ago

fixed by https://github.com/intel/xFasterTransformer/pull/42