You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: TL1 , when building the project on MacOS , M1 device. #99
When I execute the command : python setup_env.py --hf-repo HF1BitLLM/Llama3-8B-1.58-100B-tokens -q i2_s
I got the message:
INFO:root:Compiling the code using CMake.
INFO:root:Downloading model HF1BitLLM/Llama3-8B-1.58-100B-tokens from HuggingFace to models/Llama3-8B-1.58-100B-tokens...
INFO:root:Converting HF model to GGUF format...
ERROR:root:Error occurred while running command: Command '['/opt/homebrew/anaconda3/envs/bitnet-cpp/bin/python3', 'utils/convert-hf-to-gguf-bitnet.py', 'models/Llama3-8B-1.58-100B-tokens', '--outtype', 'f32']' returned non-zero exit status 1., check details in logs/convert_to_f32_gguf.log
then I execute the command directly : python utils/convert-hf-to-gguf-bitnet.py models/Llama3-8B-1.58-100B-tokens --outtype f32
I got a AttributeError:
Traceback (most recent call last):
File "/Users/doggingdog/workplace/py_workplace/BitNet/utils/convert-hf-to-gguf-bitnet.py", line 1083, in <module>
"tl1" : gguf.GGMLQuantizationType.TL1,
File "/opt/homebrew/anaconda3/envs/bitnet-cpp/lib/python3.9/enum.py", line 429, in __getattr__
raise AttributeError(name) from None
AttributeError: TL1
Did I miss something ? Has anybody try Bitnet on Mac and got the same problem ?
It looks like gguf-py package is not installed correctly, please use the pip list command to check the gguf-py version, and check the contents of logs/install_gguf.log. To fix the problem, you can manually install gguf-py with python -m pip install 3rdparty/llama.cpp/gguf-py
It looks like gguf-py package is not installed correctly, please use the pip list command to check the gguf-py version, and check the contents of logs/install_gguf.log. To fix the problem, you can manually install gguf-py with python -m pip install 3rdparty/llama.cpp/gguf-py
Activity
potassiummmm commentedon Nov 1, 2024
It looks like gguf-py package is not installed correctly, please use the
pip listcommand to check the gguf-py version, and check the contents oflogs/install_gguf.log. To fix the problem, you can manually install gguf-py withpython -m pip install 3rdparty/llama.cpp/gguf-pyDoggingDog commentedon Nov 3, 2024
I tried it. guff-py successfully built:
But the exception occur again:
is the guff version incompatible with project?
srsng commentedon Nov 4, 2024
same problem.
L4-1024 commentedon Dec 3, 2024
#25
this solved problem
srsng commentedon Dec 4, 2024
run this command at a new dir of BitNet may help
it will help you clone and init the 3rdparty module (llama.cpp).
DoggingDog commentedon Dec 4, 2024
It works ! thx