Open charlie-captain opened 1 year ago
It seems that openmp library is missing. Please check that if libomp is installed on your macOS. https://github.com/Jittor/jittor#macos-install
It seems that openmp library is missing. Please check that if libomp is installed on your macOS. https://github.com/Jittor/jittor#macos-install
[i 0406 14:10:18.955224 00 compiler.py:955] Jittor(1.3.7.12) src: /Users/charlie/Library/Python/3.9/lib/python/site-packages/jittor
[i 0406 14:10:18.968711 00 compiler.py:956] clang at /usr/bin/clang++(14.0.3)
[i 0406 14:10:18.968768 00 compiler.py:957] cache_path: /Users/charlie/.cache/jittor/jt1.3.7/clang14.0.3/py3.9.6/macOS-13.4-armxff/AppleM1/default
[i 0406 14:10:19.165329 00 __init__.py:227] Total mem: 16.00GB, using 5 procs for compiling.
[i 0406 14:10:19.322852 00 jit_compiler.cc:28] Load cc_path: /usr/bin/clang++
[i 0406 14:10:20.629825 00 compile_extern.py:522] mpicc not found, distribution disabled.
Explicitly passing a `revision` is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Explicitly passing a `revision` is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision.
Explicitly passing a `revision` is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:19<00:00, 2.47s/it]
Traceback (most recent call last):
File "/Users/charlie/dev/JittorLLMs/web_demo.py", line 26, in <module>
model = models.get_model(args)
File "/Users/charlie/dev/JittorLLMs/models/__init__.py", line 42, in get_model
return module.get_model(args)
File "/Users/charlie/dev/JittorLLMs/models/chatglm/__init__.py", line 48, in get_model
return ChatGLMMdoel(args)
File "/Users/charlie/dev/JittorLLMs/models/chatglm/__init__.py", line 26, in __init__
self.model.float32()
File "/Users/charlie/Library/Python/3.9/lib/python/site-packages/torch/nn/modules/module.py", line 1614, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'ChatGLMForConditionalGeneration' object has no attribute 'float32'
OS: Mac ventura 13.4 beta on Mac mini m1 Command: python3 cli_demo.py chatglm