Hi
I am unable to build the project
(bitnet-cpp) PS C:\Users\anuthakur\Documents\msbitnet\BitNet> python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s
Traceback (most recent call last):
File "C:\Users\anuthakur\Documents\msbitnet\BitNet\setup_env.py", line 232, in
main()
File "C:\Users\anuthakur\Documents\msbitnet\BitNet\setup_env.py", line 209, in main
compile()
File "C:\Users\anuthakur\Documents\msbitnet\BitNet\setup_env.py", line 193, in compile
cmake_exists = subprocess.run(["cmake", "--version"], capture_output=True)
File "C:\Users\anuthakur\AppData\Local\anaconda3\envs\bitnet-cpp\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\anuthakur\AppData\Local\anaconda3\envs\bitnet-cpp\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\anuthakur\AppData\Local\anaconda3\envs\bitnet-cpp\lib\subprocess.py", line 1436, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
(bitnet-cpp) PS C:\Users\anuthakur\Documents\msbitnet\BitNet>
I also encountered the same problem and I solved it by the following method. You should compile it as stated in https://github.com/microsoft/BitNet/issues/73#issuecomment-2430369340
Before running python setup_env.py in "3. Build the project", you need to run the following code for compilation first.
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake .. --build build --parallel 4