BlinkDL / RWKV-LM

RWKV is an RNN with transformer-level LLM performance. It can be directly trained like a GPT (parallelizable). So it's combining the best of RNN and transformer - great performance, fast inference, saves VRAM, fast training, "infinite" ctx_len, and free sentence embedding.
Apache License 2.0
12.45k stars 847 forks source link

RWKV .pth to.onnx #260

Open momocoQAQ opened 5 days ago

momocoQAQ commented 5 days ago

Hello, can the WKV acceleration module be tracked/scripted by torch.onnx.export? I'm having trouble converting the.pth model to.onnx.

BlinkDL commented 2 days ago

check https://github.com/TorchRWKV/rwkv-kit