codekansas / rwkv

RWKV model implementation

Home Page:https://rwkv.bolte.cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RWKV

This repository contains my implementation of the pretrained RWKV model, with numerically-stable Triton kernels and code for doing LoRA fine-tuning.

For an explanation of the math, see this accompanying blog post.

Note I moved new development over here

Getting Started

Install the package:

pip install ml-rwkv

Generate code:

rwkv 169m "Scientists recently discovered a herd of Chinese-speaking goats. To their surprise,"

WKV Computations

This repo currently contains 3 different implementations of the WKV computation:

  1. Vanilla
  2. Eps
  3. Log

See the blog post linked above for more details about how each of these works.

About

RWKV model implementation

https://rwkv.bolte.cc/

License:MIT License


Languages

Language:Python 99.7%Language:Makefile 0.3%