Build fails when using TL2
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 40.3k
- Forks
- 3.7k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
Build fails when using TL2
Steps to reproduce:
python setup_env.py -md models/BitNet-b1.58-2B-4T -q tl2
Error:
NFO:hf-to-gguf:Loading model: BitNet-b1.58-2B-4T
Traceback (most recent call last):
File "utils/convert-hf-to-gguf-bitnet.py", line 1168, in
main()
File "utils/convert-hf-to-gguf-bitnet.py", line 1146, in main
model_class = Model.from_model_architecture(hparams["architectures"][0])
File "utils/convert-hf-to-gguf-bitnet.py", line 240, in from_model_architecture
raise NotImplementedError(f'Architecture {arch!r} not supported!') from None
NotImplementedError: Architecture 'BitNetForCausalLM' not supported!
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 utils/convert-hf-to-gguf-bitnet.py, especially Model.from_model_architecture, and reproduce the failure with python setup_env.py -md models/BitNet-b1.58-2B-4T -q tl2. The work is done when the BitNetForCausalLM architecture is handled without the reported NotImplementedError and the TL2 setup completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100