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

Support cache_position inputs in Hugging Face models #395

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

robertknight
Copy link
Owner

Support the cache_position input that was added to Hugging Face Whisper models as part of a revision of how it handles KV-caching.

This is like position_ids, but there is no batch dimension.

See huggingface/optimum#1971 and huggingface/transformers#31166.

Support the `cache_position` input that was added to Hugging Face Whisper models
as part of a revision of how it handles KV-caching.

This is like `position_ids`, but there is no batch dimension.

See huggingface/optimum#1971 and
huggingface/transformers#31166.
@robertknight robertknight marked this pull request as ready for review October 27, 2024 11:37
@robertknight robertknight merged commit b304688 into main Oct 27, 2024
2 checks passed
@robertknight robertknight deleted the cache-position-input branch October 27, 2024 11:38
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

Successfully merging this pull request may close these issues.

1 participant