
Rwkv Architecture
RWKV is a hybrid architecture that trains like a Transformer (parallel) but runs like an RNN (sequential), giving you O(n) complexity instead of O(n²). The big win is constant memory per token during inference, no KV cache bloat, which means you can actually handle 100K+ token contexts without exploding your VRAM. It's a Linux Foundation project already running in production at Microsoft (Windows, Office) and NVIDIA NeMo. If you're hitting memory walls with long context or building streaming apps, this is worth trying. The 14B models are available now, and RWKV-7 just dropped in March 2025. Performance is comparable to Transformers but inference gets dramatically cheaper as sequences grow.
- skills.sh installs
- 1K
- GitHub stars
- 14.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add orchestra-research/ai-research-skills --skill rwkv-architecture --agent claude-codeInstalls into .claude/skills of the current project.
Files
RWKV - Receptance Weighted Key Value
Quick start
RWKV (RwaKuv) combines Transformer parallelization (training) with RNN efficiency (inference).
Installation:
# Install PyTorch
pip install torch --upgrade --extra-index-url https://download.pytorch.org/whl/cu121
# Install dependencies
pip install pytorch-lightning==1.9.5 deepspeed wandb ninja --upgrade
# Install RWKV
pip install rwkv
Basic usage (GPT mode + RNN mode):
import os
from rwkv.model import RWKV
os.environ["RWKV_JIT_ON"] = '1'
os.environ["RWKV_CUDA_ON"] = '1' # Use CUDA kernel for speed
# Load model
model = RWKV(
model='/path/to/RWKV-4-Pile-1B5-20220903-8040',
strategy='cuda fp16'
)
# GPT mode (parallel processing)
out, state = model.forward([187, 510, 1563, 310, 247], None)
print(out.detach().cpu().numpy()) # Logits
# RNN mode (sequential processing, same result)
out, state = model.forward([187, 510], None) # First 2 tokens
out, state = model.forward([1563], state) # Next token
out, state = model.forward([310, 247], state) # Last tokens
print(out.detach().cpu().numpy()) # Same logits as above!
Common workflows
Sponsors
Details
- Repository
- github.com/orchestra-research/ai-research-skills
- Categories
- Code Review & Quality, AI & Agent Building, Data Science & ML, Automation & Workflows, Office & Documents
- First seen
- Jun 3, 2026
More from orchestra-research/ai-research-skills
All 95- Skypilot Multi Cloud Orchestration1K
- Autogpt Agents1K
- Blip 2 Vision Language1K
- Constitutional Ai1K
- Langsmith Observability1K
- Nemo Evaluator Sdk1K
- Llava1K
- Phoenix Observability1K
- Lambda Labs Gpu Cloud1K
- Ml Training Recipes996
- Presenting Conference Talks993
- Systems Paper Writing990
- Experiment Tracking Swanlab961
- Fine Tuning Openvla Oft926
- Fine Tuning Serving Openpi925
- Evaluating Cosmos Policy921
- Evolving Ai Agents897
- Ml Paper Writing2.5K
- Brainstorming Research Ideas1.3K
- Academic Plotting1.3K
- Creative Thinking For Research1.3K
- Mlflow1.1K
- Serving Llms Vllm1.1K
- Faiss1.1K