chatglm
[i 0817 14:41:38.013224 00 compiler.py:956] Jittor(1.3.8.5) src: /Users/linjie/anaconda3/envs/llm/lib/python3.8/site-packages/jittor
[i 0817 14:41:38.033011 00 compiler.py:957] clang at /usr/bin/clang++(10.0.0)
[i 0817 14:41:38.033988 00 compiler.py:958] cache_path: /Users/linjie/.cache/jittor/jt1.3.8/clang10.0.0/py3.8.17/macOS-10.13.6-x37/IntelRCoreTMi5xf3/default
[i 0817 14:41:38.446672 00 __init__.py:232] using 4 procs for compiling.
[i 0817 14:41:38.635458 00 jit_compiler.cc:28] Load cc_path: /usr/bin/clang++
Traceback (most recent call last):
File “cli_demo.py”, line 8, in
model = models.get_model(args)
File “/Users/linjie/Desktop/JittorLLMs-main/models/init.py”, line 39, in get_model
globals()f"get_{model_name}"
File “/Users/linjie/Desktop/JittorLLMs-main/models/util.py”, line 61, in get_chatglm
new_path.append(download_fromhub(f"jittorhub://{f}“, tdir=“chat-glm”))
File “/Users/linjie/Desktop/JittorLLMs-main/models/util.py”, line 5, in download_fromhub
import jittor as jt
File “/Users/linjie/anaconda3/envs/llm/lib/python3.8/site-packages/jittor/init.py”, line 25, in
from . import compile_extern
File “/Users/linjie/anaconda3/envs/llm/lib/python3.8/site-packages/jittor/compile_extern.py”, line 592, in
setup_mkl()
File “/Users/linjie/anaconda3/envs/llm/lib/python3.8/site-packages/jittor/compile_extern.py”, line 156, in setup_mkl
mkl_ops = compile_custom_ops(mkl_op_files, extra_flags=extra_flags)
File “/Users/linjie/anaconda3/envs/llm/lib/python3.8/site-packages/jittor_utils/lock.py”, line 59, in inner
ret = func(*args, **kw)
File “/Users/linjie/anaconda3/envs/llm/lib/python3.8/site-packages/jittor/compiler.py”, line 766, in compile_custom_ops
exec(f"import {gen_name}”)
File “”, line 1, in
ImportError: dlopen(/Users/linjie/.cache/jittor/jt1.3.8/clang10.0.0/py3.8.17/macOS-10.13.6-x37/IntelRCoreTMi5xf3/default/custom_ops/gen_ops_mkl_conv_backward_x_mkl_conv_mkl_matmul_mk___hashf8cff4.cpython-38-darwin.so, 10): Library not loaded: @rpath/libdnnl.2.dylib
Referenced from: /Users/linjie/.cache/jittor/jt1.3.8/clang10.0.0/py3.8.17/macOS-10.13.6-x37/IntelRCoreTMi5xf3/default/custom_ops/gen_ops_mkl_conv_backward_x_mkl_conv_mkl_matmul_mk___hashf8cff4.cpython-38-darwin.so
Reason: no suitable image found. Did find:
/Users/linjie/.cache/jittor/mkl/dnnl_mac_2.2.0_cpu_omp_x86_64/lib/libdnnl.2.dylib: cannot load ‘libdnnl.2.dylib’ (load command 0x80000034 is unknown)