Skip to content

Optimize kv cache usage for yoco #4030

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

Closed
wants to merge 1 commit into from

Conversation

ghjeong12
Copy link

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/1114

This diff aims to remove redundant temporary tensors and KV caches when using yoco. This includes changes for allowing optional xk, xv for rope/nope kernels, adding flag for checking to update kv cache or not, etc.

Reviewed By: Aya-ZIbra

Differential Revision: D73570737

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73570737

Copy link

netlify bot commented Apr 26, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 93a6361
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/680fcc9b52c2a200081505a5
😎 Deploy Preview https://deploy-preview-4030--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

ghjeong12 pushed a commit to ghjeong12/FBGEMM-1 that referenced this pull request Apr 28, 2025
Summary:

X-link: facebookresearch/FBGEMM#1114

This diff aims to remove redundant temporary tensors and KV caches when using yoco. This includes changes for allowing optional xk, xv for rope/nope kernels, adding flag for checking to update kv cache or not, etc.

Reviewed By: Aya-ZIbra

Differential Revision: D73570737
ghjeong12 pushed a commit to ghjeong12/FBGEMM-1 that referenced this pull request Apr 28, 2025
Summary:

X-link: facebookresearch/FBGEMM#1114

This diff aims to remove redundant temporary tensors and KV caches when using yoco. This includes changes for allowing optional xk, xv for rope/nope kernels, adding flag for checking to update kv cache or not, etc.

Reviewed By: Aya-ZIbra

Differential Revision: D73570737
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73570737

ghjeong12 pushed a commit to ghjeong12/FBGEMM-1 that referenced this pull request Apr 28, 2025
Summary:
Pull Request resolved: pytorch#4030

X-link: facebookresearch/FBGEMM#1114

This diff aims to remove redundant temporary tensors and KV caches when using yoco. This includes changes for allowing optional xk, xv for rope/nope kernels, adding flag for checking to update kv cache or not, etc.

Reviewed By: Aya-ZIbra

Differential Revision: D73570737
Summary:
Pull Request resolved: pytorch#4030

X-link: facebookresearch/FBGEMM#1114

This diff aims to remove redundant temporary tensors and KV caches when using yoco. This includes changes for allowing optional xk, xv for rope/nope kernels, adding flag for checking to update kv cache or not, etc.

Reviewed By: Aya-ZIbra

Differential Revision: D73570737
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73570737

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 517b73d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants