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

code for a pytorch layer? #91

Open
AngledLuffa opened this issue Jan 19, 2025 · 0 comments
Open

code for a pytorch layer? #91

AngledLuffa opened this issue Jan 19, 2025 · 0 comments

Comments

@AngledLuffa
Copy link

Is there code available, either here or elsewhere, that would implement a pytorch layer for streaming attention w/ sinks independent of the various LLMs that it goes in?

I can imagine turning this into a separate layer:

https://github.com/mit-han-lab/streaming-llm/blob/main/streaming_llm/pos_shift/modify_llama.py

but if that work has already been done somewhere else, that'd be a great time saver

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