Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help cmak #146

Open
ahmedmetwali1 opened this issue Dec 24, 2024 · 1 comment
Open

help cmak #146

ahmedmetwali1 opened this issue Dec 24, 2024 · 1 comment

Comments

@ahmedmetwali1
Copy link

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

@Prem-Swarup
Copy link

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants