blinkdl/rwkv-lm

RWKV (pronounced RwaKuv) is an RNN with great LLM performance, which can also be directly trained like a GPT transformer (parallelizable). We are at RWKV-7...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 27 minutes ago
Added to GitGenius on September 4th, 2026
Created on August 8th, 2021
Open Issues & Pull Requests: 156 (+0)
GitHub issues: Enabled
Number of forks: 1,021
Total Stargazers: 14,698 (-1)
Total Subscribers: 137 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 47.2 hours
Mean response time: 19.2 days
90th percentile: 38.8 days
Tracked items: 72

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 1% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 66
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 529 days
Stale 30+ days: 64
Stale 90+ days: 61

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

No issue events were indexed in the last 7 days.

Detailed Description

RWKV is a language model architecture that combines RNN efficiency with transformer-level performance through a linear-attention mechanism.

The project addresses the computational constraints of standard transformer models by implementing an RNN-based architecture that maintains transformer-quality results while eliminating key-value cache requirements. RWKV achieves linear time complexity and constant space usage by replacing traditional attention with a learned linear attention mechanism. The architecture remains parallelizable during training like a transformer, enabling efficient supervised fine-tuning, while inference operates with fixed memory footprint regardless of context length. The current iteration, RWKV-7, implements an attention-free design that performs in-context learning through gradient descent applied to the RNN state at each token.

Developers should consider RWKV for applications where inference efficiency and memory constraints are critical concerns. The architecture suits scenarios requiring long context windows, high-throughput batch inference, or deployment on resource-limited hardware including mobile and edge devices. The project provides reference implementations for training on modest hardware, with a default configuration requiring only a single GPU with limited VRAM. Pre-trained weights are available through standard model repositories, and the ecosystem includes optimized inference libraries for both desktop and mobile platforms. RWKV differs from standard transformers by eliminating the quadratic scaling of attention computation and memory usage, making it particularly valuable for applications that would otherwise require aggressive context truncation or expensive inference optimization techniques.

The project maintains active development with reference implementations and optimized CUDA kernels regularly updated. Training throughput benchmarks are documented with specific hardware configurations and memory utilization metrics. The codebase includes evaluation frameworks for standard benchmarks and provides multiple inference optimization paths through dedicated libraries. Community engagement occurs through documented channels including Discord and social media, with explicit invitations for developers to seek guidance on migrating existing attention-based models to the RWKV architecture.