1from rwkvstic.load import RWKV
2
3# Load the model (supports full path, relative path, and remote paths)
4
5model = RWKV(
6 "https://huggingface.co/Hazzzardous/rwkv-fastquant/resolve/main/R14B-8K-FastQuant-rwkvstic-2-0-4.rwkv"
7)
8
9model.loadContext(newctx=f"Q: who is Jim Butcher?\n\nA:")
10output = model.forward(number=100)["output"]
11
12print(output)
13
14# Q: who is Jim Butcher?
15# A: Jim Butcher is a very popular American author of fantasy novels. He’s known for the Dresden Files series of novels.<|endoftext|>