lms icon indicating copy to clipboard operation
lms copied to clipboard

[Feature Request] Support for bitnet.cpp and BitNet models

Open dgallitelli opened this issue 1 year ago • 25 comments

bitnet.cpp is the official inference framework for 1-bit LLMs (e.g., BitNet b1.58). It offers a suite of optimized kernels, that support fast and lossless inference of 1.58-bit models on CPU (with NPU and GPU support coming next).

It would be awesome for LMS to support bitnet.cpp and therefore BitNet models, for on-device evaluation.

dgallitelli avatar Oct 18 '24 10:10 dgallitelli

Are there any updates on this features, I saw that in llama.cpp, BitNet is supported ggml-org/llama.cpp#7931. I tried to load microsoft/bitnet-b1.58-2B-4T-gguf, but I didn't succeed.

yiranlus avatar Apr 16 '25 18:04 yiranlus

With https://arxiv.org/abs/2504.12285 released I am curious to try that out on my home lab. LM Studio would be great for this

AmazingTurtle avatar Apr 17 '25 13:04 AmazingTurtle

I am getting:

🥲 Failed to load the model

Failed to load model

error loading model: llama_model_loader: failed to load model from .lmstudio/models/microsoft/bitnet-b1.58-2B-4T-gguf/ggml-model-i2_s.gguf

szkocot avatar Apr 18 '25 21:04 szkocot

+1

borisalmonacid avatar Apr 19 '25 21:04 borisalmonacid

any update?

tbfungeek avatar Apr 23 '25 08:04 tbfungeek

I'm having same issues, any update yet?! trying to run microsoft/bitnet-b1.58-2B-4T on LM Studio v0.3.14 on Win10pro

jfeather78 avatar Apr 23 '25 12:04 jfeather78

Eu tbm estou com esse problema no LM Studio. I also have this problem in LM Studio.

jpversiani avatar Apr 23 '25 21:04 jpversiani

Same issue for me. I wish that there were actually error messages with codes so that some sort of troubleshooting could be done.

jimster480 avatar Apr 24 '25 22:04 jimster480

same issue

nagoz avatar Apr 29 '25 11:04 nagoz

🥲 Failed to load the model

Failed to load model

error loading model: llama_model_loader: failed to load model from .lmstudio\models\microsoft\bitnet-b1.58-2B-4T-gguf\ggml-model-i2_s.gguf

ymg2006 avatar Apr 29 '25 20:04 ymg2006

Guys, can you please add BitNet support?

goooroooX avatar Apr 30 '25 12:04 goooroooX

+1, having the same issue

aashish-khub avatar Apr 30 '25 17:04 aashish-khub

+1

ugurbost avatar May 01 '25 04:05 ugurbost

+1

Bazilla31 avatar May 02 '25 09:05 Bazilla31

+1, totally the same issue

pandaexc7 avatar May 05 '25 09:05 pandaexc7

+1, somone explain to me how this would get added. as a runtime? or they're just waiting for transformer library to merge some code to support bitnet models.

haouarihk avatar May 06 '25 22:05 haouarihk

bitnet.cpp is very much needed... just like CPU/CUDA llama.cpp.

B1.54 models not loading/working at all. Pls add the same to LMSTUDIO. Thanks in advance.

varungl1969 avatar May 08 '25 14:05 varungl1969

yo regular devs do NOT make me to VIBE code this

fritol avatar May 12 '25 14:05 fritol

+1

OIOST avatar May 16 '25 15:05 OIOST

Friendly reminder: use the :thumbsup: reaction on the original post instead of posting bump comments, which can clutter up the discussion

atirut-w avatar May 17 '25 04:05 atirut-w

how about this issue now? thanks

godsylar avatar May 19 '25 08:05 godsylar

still same issue

nikhilcb avatar Jul 05 '25 20:07 nikhilcb

When will this be added

edi724 avatar Jul 30 '25 17:07 edi724

After a century this issue will be open, developers don't even look at this issue. @ryan-the-crayon @rugvedS07 @yagil @will-lms @sergeichestakov @neilmehta24 @mattjcly @jlguenego @mayfer @YorkieDev @CinnamonRolls1, please react and answer if this is planned or will not be implemented.

ymg2006 avatar Oct 17 '25 19:10 ymg2006

I agree, we need confirmation if this is planned, being worked on, or not planned at all.

Mostlime12195 avatar Oct 25 '25 11:10 Mostlime12195