BitNet icon indicating copy to clipboard operation
BitNet copied to clipboard

help cmak

Open ahmedmetwali1 opened this issue 1 year ago • 1 comments

i try many way but i have a problem wen i use

(bitnet-venv) (ai) root@mgtm3na:~/BitNet# python setup_env.py --hf-repo HF1BitLLM/Llama3-8B-1.58-100B-tokens -q i2_s and this is the result INFO:root:Compiling the code using CMake. ERROR:root:Error occurred while running command: Command '['cmake', '--build', 'build', '--config', 'Release']' returned non-zero exit status 2., check details in logs/compile.log

ahmedmetwali1 avatar Dec 24 '24 19:12 ahmedmetwali1

I had faced same issue on my sbc. After checking log I saw that it was conversion issue while compiling cpp file. So I changed the compiler to Clang-18 and it worked. I updated the CMake execution command in setup_env.py file at line 195 from run_command(["cmake", "-B", "build", *COMPILER_EXTRA_ARGS[arch], *OS_EXTRA_ARGS.get(platform.system(), [])], log_step="generate_build_files") to run_command(["cmake", "-B", "build", "-DBITNET_ARM_TL1=ON", "-DCMAKE_C_COMPILER=clang-18", "-DCMAKE_CXX_COMPILER=clang++-18", *COMPILER_EXTRA_ARGS[arch], *OS_EXTRA_ARGS.get(platform.system(), [])], log_step="generate_build_files")

Prem-Swarup avatar Dec 26 '24 06:12 Prem-Swarup