Views
No views yet
tokenizer.json, generated
from the canonical RWKV World byte vocabulary during conversion.chat_template.jinja supports system, multi-turn, thinking, and
strict model-generated tool-call prompts.inference/ bundle
provides PyTorch fallback and TileLang acceleration without changing the
standard model root.| Field | Value |
|---|---|
| Repository | RWKV/RWKV7-13.3B-20260805 |
| Architecture class | Rwkv7ForCausalLM |
| Public size label | 13.3B |
| Source parameters | 13,270,298,624 |
| Serialized parameters | 13,270,298,624 |
| Synthesized compatibility tensors | 0 |
| Layers | 61 |
| Hidden / FFN size | 4096 / 16384 |
| Heads / head size | 64 / 64 |
| Vocabulary | 65536 |
| Training context | 16384 tokens |
| Weight dtype | bfloat16 |
| Numerical conversion | source dtype preserved |
| Metadata profile | g1i |
| Metadata provenance | locked-profile |
| Source checkpoint | BlinkDL/rwkv7-g1/rwkv7-g1i-13.3b-20260805-ctx16384.pth |
| Source SHA-256 | 5d97772ba04a81bdaeba90e1d6d306c70560bf4f784522be61cdcade69e30562 |
rwkv7 auto-class registration requires Transformers 5.15 or a current
source checkout until that release is available.1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "RWKV/RWKV7-13.3B-20260805"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16)attention_mask for padded batches.1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "RWKV/RWKV7-13.3B-20260805"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 dtype=torch.bfloat16,
9).to("cuda")
10
11messages = [{"role": "user", "content": "Explain why RWKV uses constant state."}]
12input_ids = tokenizer.apply_chat_template(
13 messages,
14 tokenize=True,
15 add_generation_prompt=True,
16 thinking=False,
17 return_tensors="pt",
18).to(model.device)
19
20output = model.generate(
21 input_ids,
22 max_new_tokens=256,
23 do_sample=True,
24 temperature=1.0,
25 top_p=0.5,
26 eos_token_id=0,
27 pad_token_id=0,
28)
29print(tokenizer.decode(output[0, input_ids.shape[1]:], skip_special_tokens=True))thinking=True for the RWKV thinking prefix. The intentional generation
prefixes are Assistant: <think></think and Assistant: <think; do not append a
closing > to them. Reference stops are token ID 0 and \n\nUser:.RWKV7-G1x-templates.txt.inference/requirements.txt, then run the bundled
interactive chat:python inference/generate.py --model RWKV/RWKV7-13.3B-20260805 --backend auto --interactive1python inference/generate.py \
2 --model RWKV/RWKV7-13.3B-20260805 \
3 --backend auto \
4 --input-file prompts.txt--backend auto uses validated exact optimized boundaries and otherwise falls
back to PyTorch. Full explicit TileLang execution can change floating-point
operation order and requires checkpoint-, dtype-, shape-, and device-specific
parity validation.tokenizer.json.
Textual vocab.json and rwkv_vocab_v20230424.txt files are intentionally omitted
because they would duplicate the tokenizer used by Transformers.auto configurations fall back to pure PyTorch.apache-2.0. The exported inference bundle is licensed separately under Apache-2.0. See NOTICE and the source checkpoint link above for
provenance.1@misc{peng2025250314456,
2 title = {RWKV-7 "Goose" with Expressive Dynamic State Evolution},
3 author = {Bo Peng and Ruichong Zhang and Daniel Goldstein and Eric Alcaide and Xingjian Du and Haowen Hou and Jiaju Lin and Jiaxing Liu and Janna Lu and William Merrill and Guangyu Song and Kaifeng Tan and Saiteja Utpala and Nathan Wilce and Johan S. Wind and Tianyi Wu and Daniel Wuttke and Christian Zhou-Zheng},
4 year = {2025},
5 eprint = {2503.14456v2},
6 archivePrefix = {arXiv},
7 primaryClass = {cs.CL},
8 url = {https://arxiv.org/abs/2503.14456v2},
9}