ridgerchu/matmulfreellm

Implementation for MatMul-free LM.

View on GitHub ↗Jump to charts ↓

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on September 22nd, 2026
Created on April 23rd, 2024
Open Issues & Pull Requests: 25 (+0)
GitHub issues: Enabled
Number of forks: 203
Total Stargazers: 3,093 (+0)
Total Subscribers: 50 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 21.6 hours
Mean response time: 6.1 days
90th percentile: 47.2 days
Tracked items: 9

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 8
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 599 days
Stale 30+ days: 8
Stale 90+ days: 8

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

MatMul-Free LM is an implementation of a matrix-multiplication-free language model architecture designed to reduce computational overhead in transformer-based models.

The project addresses the computational cost of matrix multiplication operations in large language models by replacing them with more efficient alternatives. The approach uses ternary weights in certain layers and implements linear attention mechanisms, building on flash-linear-attention foundations. The architecture demonstrates steeper scaling efficiency compared to standard transformers, suggesting it can leverage additional compute more effectively to improve performance.

The tool suits researchers and practitioners interested in efficient language model inference and training. Pre-trained models are available at multiple scales, from 370M to 2.7B parameters, all compatible with the Hugging Face Transformers library, making integration straightforward for existing workflows. The implementation requires PyTorch 2.0 or later, Triton 2.2 or later, and einops, with text generation supported through standard Hugging Face APIs.

Development includes a reproducible archival release tied to a peer-reviewed publication, with explicit citation guidance provided. The codebase maintains compatibility with the Hugging Face ecosystem, enabling users to initialize models through standard AutoModel interfaces. The project is released under the Apache License 2.0.