Views
No views yet
transformers implementationBlinkDL/rwkv-7-world →
RWKV-x070-World-2.9B-v3-20250211-ctx4096.pth, laid out as a transformers directory so the rwkv7
implementation can load it with from_pretrained. All credit for the weights
belongs to BlinkDL / the RWKV project; they are redistributed here under the
Apache-2.0 licence they were released under..pth is bit-identical here (verified tensor by tensor). The only
additions are three all-zero placeholders for layer 0's value-residual LoRA, which
that layer never reads (layer 0 produces v_first rather than mixing towards it).
bfloat16, the dtype the source is stored in. Training context length 4096.auto_map remote code), so stock
transformers is all you need — no fork, no extra package:1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4tokenizer = AutoTokenizer.from_pretrained("RWKV/RWKV7-Goose-World2.8-0.1B-HF", trust_remote_code=True)
5model = AutoModelForCausalLM.from_pretrained("Hakureirm/rwkv7-2.9b-hf", trust_remote_code=True, dtype=torch.bfloat16)
6
7inputs = tokenizer("The Eiffel Tower is located in the city of", return_tensors="pt")
8print(tokenizer.decode(model.generate(**inputs, max_new_tokens=20)[0]))Hakureirm/rwkv7-0.1b-hf
for that matrix and the logit-level comparison). Optional Triton kernels engage only
on CUDA and fall back to the portable path everywhere else."The Eiffel Tower is located in the city of" continues:The Eiffel Tower is located in the city of Paris, France. It was built in 1889 and is named after the engineer
1huggingface-cli download BlinkDL/rwkv-7-world RWKV-x070-World-2.9B-v3-20250211-ctx4096.pth --local-dir .
2python src/transformers/models/rwkv7/convert_rwkv7_checkpoint_to_hf.py \
3 --checkpoint RWKV-x070-World-2.9B-v3-20250211-ctx4096.pth \
4 --flavour native --dtype bfloat16 --output_dir ./rwkv7-2.9b-hf