setup_env.py error on MacBook M3 - FileNotFoundError: [Errno 2] No such file or directory: 'models/BitNet-b1.58-2B-4T/config.json'
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 40.3k
- Forks
- 3.7k
- PR merge metrics
- No merged PRs in 30d
Description
Following directions to setup on MacBook Pro M3
python3 setup_env.py -md models/BitNet-b1.58-2B-4T -q tl1 INFO:root:Compiling the code using CMake. INFO:root:Loading model from directory models/BitNet-b1.58-2B-4T. INFO:root:Converting HF model to GGUF format... ERROR:root:Error occurred while running command: Command '['<omitted>/BitNet/.venv/bin/python3', 'utils/convert-hf-to-gguf-bitnet.py', 'models/BitNet-b1.58-2B-4T', '--outtype', 'tl1', '--quant-embd']' returned non-zero exit status 1., check details in logs/convert_to_tl.log
Checked log
#cat logs/convert_to_tl.log INFO:hf-to-gguf:Loading model: BitNet-b1.58-2B-4T Traceback (most recent call last): File ".../BitNet/utils/convert-hf-to-gguf-bitnet.py", line 1165, in <module> main() File ".../BitNet/utils/convert-hf-to-gguf-bitnet.py", line 1140, in main hparams = Model.load_hparams(dir_model) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File ".../BitNet/utils/convert-hf-to-gguf-bitnet.py", line 222, in load_hparams with open(dir_model / "config.json", "r", encoding="utf-8") as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'models/BitNet-b1.58-2B-4T/config.json'
`
ls -l models/BitNet-b1.58-2B-4T
total 2338840
-rw-r--r--@ 1 user staff 8959 Apr 24 21:02 README.md
-rw-r--r--@ 1 user staff 1187801280 Apr 24 21:03 ggml-model-i2_s.gguf
`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup_env.py and utils/convert-hf-to-gguf-bitnet.py, then inspect logs/convert_to_tl.log and the contents expected under models/BitNet-b1.58-2B-4T. Determine why the setup command reaches conversion without config.json, and verify that the documented setup flow completes successfully for the reported model directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100