Skip to content

RNN-Transformer hybrid with linear-time inference and constant memory per token, no KV cache.

CCM score
51 of 100
skills.sh installs
1.1K
GitHub stars
14.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers RWKV architecture for parallel GPT-style training and sequential RNN-style inference, with models up to 14B parameters
  • Includes streaming text generation, infinite-context processing, fine-tuning with DeepSpeed, and RWKV-vs-Transformer memory comparisons
  • Enforces explicit state passing between forward calls, since dropping the state silently discards prior context
  • Designed for long-context and memory-constrained deployments where Transformer KV caches become impractical

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill rwkv-architecture -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/orchestra-research/ai-research-skills
Category
AI Agents & LLM Apps
First seen
Jun 3, 2026

Questions

What is rwkv-architecture?

rwkv-architecture is an agent skill listed on Claude Marketplaces in the AI Agents & LLM Apps category. The listing describes rwkv-architecture like this: RNN+Transformer hybrid with O(n) inference.

How do I install rwkv-architecture?

Run npx -y skills add orchestra-research/ai-research-skills --skill rwkv-architecture -y in a project to install rwkv-architecture. After that, the agent can use rwkv-architecture in that project.

Which category is rwkv-architecture in?

rwkv-architecture is in the AI Agents & LLM Apps category on Claude Marketplaces. Other listings in that category next to rwkv-architecture include microsoft-foundry, azure-ai and google-agents-cli-adk-code.

Where is the source code of rwkv-architecture?

The source code of rwkv-architecture is on GitHub at https://github.com/orchestra-research/ai-research-skills. The orchestra-research account on GitHub publishes rwkv-architecture.

More from orchestra-research/ai-research-skills

All 92

Similar to Rwkv Architecture

More AI Agents & LLM Apps