#54 · Primary category: Foundation Models
matmulfreellm
Implementation for MatMul-free LM.
Project last updated:12/02/25
GitHub Stars
3.1K
Forks
201
Contributors
9
License
Apache-2.0
Why we included this project
Anyone poking at efficient LLM architectures will find this repo useful. It implements MatMul-Free LM, a design that removes the matrix multiplications at the heart of standard transformers, replacing most linear layers with ternary weights and gated recurrent attention. That trade is the interesting part: you shed a lot of FLOPs and memory traffic while keeping generative quality close to a conventional model. The repo ships pretrained checkpoints at 370M, 1.3B, and 2.7B that load through the standard Hugging Face AutoModel interfaces, so you can generate text or fine-tune without much setup. Because the code is adapted from flash-linear-attention, anyone who already knows that library can see how ternary quantization.
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
transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
CLIP
CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
MiniCPM-V
A Pocket-Sized MLLM for Ultra-Efficient Image and Video Understanding on Your Phone
generative-models
Generative Models by Stability AI
unilm
Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities