BitNet icon indicating copy to clipboard operation
BitNet copied to clipboard

pthread_attr_setaffinity_np: symbol not found

Open zhaoxuejun1234 opened this issue 10 months ago • 1 comments

Image Traceback (most recent call last): When I tried python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s, Got the above problem. Could you please give some advice. File "/home/workspace/BitNet/utils/convert-hf-to-gguf-bitnet.py", line 20, in import torch File "/usr/local/lib/python3.12/site-packages/torch/init.py", line 236, in _load_global_deps() File "/usr/local/lib/python3.12/site-packages/torch/init.py", line 195, in _load_global_deps raise err File "/usr/local/lib/python3.12/site-packages/torch/init.py", line 176, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/usr/local/lib/python3.12/ctypes/init.py", line 379, in init self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: Error relocating /usr/local/lib/python3.12/site-packages/torch/lib/libgomp-a34b3233.so.1: pthread_attr_setaffinity_np: symbol not found

My envs packages are as follows: Package Version


certifi 2025.1.31 charset-normalizer 3.4.1 filelock 3.18.0 fsspec 2025.3.2 gguf 0.10.0 huggingface-hub 0.30.2 idna 3.10 Jinja2 3.1.6 MarkupSafe 3.0.2 mpmath 1.3.0 networkx 3.4.2 numpy 1.26.4 packaging 24.2 pip 25.0.1 protobuf 4.25.6 PyYAML 6.0.2 regex 2024.11.6 requests 2.32.3 safetensors 0.5.3 sentencepiece 0.2.0 sympy 1.13.3 tokenizers 0.21.1 torch 2.2.2+cpu tqdm 4.67.1 transformers 4.51.3 typing_extensions 4.13.2 urllib3 2.4.0

zhaoxuejun1234 avatar Apr 18 '25 09:04 zhaoxuejun1234

we recommend using this model directly. not converting https://huggingface.co/microsoft/bitnet-b1.58-2B-4T-gguf

sd983527 avatar Apr 24 '25 08:04 sd983527