#107 · Primary category: Deep Learning Frameworks

BitNet

artificial-intelligence deep-neural-networks deeplearning gpt4 machine-learning multimodal multimodal-deep-learning

Implementation of "BitNet: Scaling 1-bit Transformers for Large Language Models" in pytorch

Project last updated:08/28/26

GitHub Stars

1.9K

Forks

172

Contributors

10

License

MIT

Why we included this project

BitNet pushes model quantization about as far as it can go by storing weights at roughly 1-bit precision instead of full-precision floats. This repo is a PyTorch port of that design: a BitLinear layer you can drop into a standard transformer wherever you'd normally use nn.Linear, plus example scripts, a multi-grouped-query attention variant, and a full BitNetTransformer class ready to instantiate. The README is upfront about the catch: a model has to be trained or fine-tuned from scratch for these layers to help, so you can't just retrofit an already-trained checkpoint. If you want to see how low-bit language models behave in practice, this is a solid place to start. Just expect rough edges, since parts of the codebase are still being reworked.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category