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

Does it supprts batch inference? #16

Open
SkyAndCloud opened this issue May 23, 2024 · 1 comment
Open

Does it supprts batch inference? #16

SkyAndCloud opened this issue May 23, 2024 · 1 comment

Comments

@SkyAndCloud
Copy link

Hi guys, thank you for this excellent work!
It seems that this code does not consider the attention_mask during chunkllama inference. Does this code support batch inference?

@ChenxinAn-fdu
Copy link
Contributor

Yes! We use flash_attn_func for better efficiency and simplicity. Changing to flash_attn_varlen_func should not be difficult. If you encounter any difficulties, please feel free to leave a comment.

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