-
Notifications
You must be signed in to change notification settings - Fork 31.7k
[llama 4] dynamic rope decorator #37365
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
Conversation
|
Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the |
| Hybrid Cache class to be used with `torch.compile` for Gemma2 models that alternate between a local sliding window attention | ||
| and global attention in every other layer. Under the hood, Hybrid Cache leverages ["SlidingWindowCache"] for sliding window attention | ||
| and ["StaticCache"] for global attention. For more information, see the documentation of each subcomponeent cache class. | ||
| Hybrid Cache class to be used with `torch.compile` for models that alternate between a local sliding window |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(the two classes had the same docstring)
ArthurZucker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
l4 + dynamic rope decorator
l4 + dynamic rope decorator
What does this PR do?
Same as #37249, but applied to Llama 4
Also updates the docstrings of the Hybrid Caches.