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

Assisted Generation: a new direction toward low-latency text generation, 2023 #675

Open
AkihikoWatanabe opened this issue May 11, 2023 · 2 comments

Comments

@AkihikoWatanabe
Copy link
Owner

https://huggingface.co/blog/assisted-generation

@AkihikoWatanabe
Copy link
Owner Author

AkihikoWatanabe commented May 11, 2023

1 line加えるとtransformerのgenerationが最大3倍程度高速化されるようになったらしい

@AkihikoWatanabe
Copy link
Owner Author

image

assistant modelをロードしgenerateに引数として渡すだけ
image

@AkihikoWatanabe AkihikoWatanabe changed the title Assisted Generation: a new direction toward low-latency text generation Assisted Generation: a new direction toward low-latency text generation, 2023 Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant