microsoft / microsoft/BitNet

Build fails when using TL2

Open
#300 0 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.