model-architecture-rwkv
RNN+Transformer hybrid with O(n) inference. Linear time, infinite context, no KV cache. Train like GPT (parallel), infer like RNN (sequential). Linux Foundation AI project. Production at Windows, Office, NeMo. RWKV-7 (March 2025). Models up to 14B parameters.
Target: Learning & research. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- RWKV - Receptance Weighted Key Value
- Quick start
- Common workflows
- Workflow 1: Text generation (streaming)
- Workflow 2: Long context processing (infinite context)
- Workflow 3: Fine-tuning RWKV
- Workflow 4: RWKV vs Transformer comparison
- When to use vs alternatives
RWKV (RwaKuv) combines Transformer parallelization (training) with RNN efficiency (inference). Installation: Basic usage (GPT mode + RNN mode): Efficient token-by-token generation: Key advantage: Constant memory per token (no growing KV cache) Process million-token sequences: Standard fine-tuning workflow: Memory comparison (1M token sequence): Speed comparison (inference): Use RWKV when: Need very long context (100K+ tokens) Want constant memory usage Building streaming applications Need RNN efficiency with Transformer performance Memory-constrained deployment Key advantages: Linear time: O(n) vs O(n²) for Transformers No KV cache: Constant memory per token Infinite context: No fixed window limit Parallelizable training: Like GPT Sequential inference: Like RNN Use alternatives instead: Transformers: Need absolute best performance, have compute Mamba: Want state-space models RetNet: Need retention mechanism Hyena: Want convolution-based approach Issue: Out of memory during training Use gradient checkpointing and DeepSpeed: Issue: Slow inference Enable CUDA kernel: Issue: Model not loading Check model path and strategy: Issue: State management in RNN mode Always pass state between f
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- davila7/claude-code-templates
- Source file
- cli-tool/components/skills/ai-research/model-architecture-rwkv/SKILL.md
- Fixed revision
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:43.241Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.