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

【BUG】about batch generation #135

Open
irasin opened this issue Jun 1, 2023 · 1 comment
Open

【BUG】about batch generation #135

irasin opened this issue Jun 1, 2023 · 1 comment

Comments

@irasin
Copy link

irasin commented Jun 1, 2023

I wonder can rwkv support batch generation if we feed multiple question at the same time

@irasin
Copy link
Author

irasin commented Jun 1, 2023

of course it can,

here is a batch generation demo using huggingface rwkv-raven-7b model

image

but the the shifted tensor as below need to be unsqueezed for seq_len dimension.

image

@irasin irasin changed the title question about batch generation 【BUG】about batch generation Jun 1, 2023
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

1 participant