microsoft / microsoft/BitNet

FileNotFoundError: [Errno 2] No such file or directory: 'build/bin/llama-cli'

Open
#210 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
40.3k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

MacOS15.3.2 ,Apple M4 Max, can not run, all the logs no error, but when run the commands show the error
python run_inference.py -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "You are a helpful assistant" -cnv
Traceback (most recent call last):
File "/Volumes/OWCPSSD/BitNet/run_inference.py", line 56, in
run_inference()
File "/Volumes/OWCPSSD/BitNet/run_inference.py", line 37, in run_inference
run_command(command)
File "/Volumes/OWCPSSD/BitNet/run_inference.py", line 11, in run_command
subprocess.run(command, shell=shell, check=True)
File "/Users/sunnymusk/miniconda3/envs/bitnet-cpp/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "/Users/sunnymusk/miniconda3/envs/bitnet-cpp/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/sunnymusk/miniconda3/envs/bitnet-cpp/lib/python3.9/subprocess.py", line 1837, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'build/bin/llama-cli'

there are two files in build/bin ,but no llama-cli
ggml-common.h ggml-metal.metal

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading run_inference.py, especially the command assembled before subprocess.run, and inspect the build/bin contents produced on macOS. Reproduce the reported command and determine why the expected llama-cli executable is absent. Done means the documented inference command finds the built executable or reports the actual required path clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.