Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I reuse the last state of RWKV-v6? #275

Open
ddddewang0425 opened this issue Dec 11, 2024 · 2 comments
Open

How can I reuse the last state of RWKV-v6? #275

ddddewang0425 opened this issue Dec 11, 2024 · 2 comments

Comments

@ddddewang0425
Copy link

ddddewang0425 commented Dec 11, 2024

Hello. I want to reuse the last state of RWKV-v6 in order to input something again after first inference.
But, I think, Because wkv6_cuda.cu doesn't returns state information, I have to change many things of your code.
Is it right or there is something easy way to reuse the last state of RWKV-v6?
I mean how can I make RWKV returns last hidden state? for v6.

@BlinkDL
Copy link
Owner

BlinkDL commented Dec 12, 2024

@ddddewang0425
Copy link
Author

Very Very thank you~!!!
I really appreciate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants