Skip to content

Fix HybridChunedCache & Llama4 - #38299

Merged
Cyrilvallez merged 2 commits into
mainfrom
fix-hybrid-chunked-cache
May 22, 2025
Merged

Fix HybridChunedCache & Llama4#38299
Cyrilvallez merged 2 commits into
mainfrom
fix-hybrid-chunked-cache

Conversation

@Cyrilvallez

@Cyrilvallez Cyrilvallez commented May 22, 2025

Copy link
Copy Markdown
Member

What does this PR do?

As per the title!
It aligns HybridChunkedCache on what was done in #37972 (i.e. simply take the min between max_len and window), which was causing lengths mismatches with llama4 in get_mask_sizes with the default HybridChunkedCache!

@ArthurZucker ArthurZucker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niiiice!

@Cyrilvallez
Cyrilvallez merged commit 73286d8 into main May 22, 2025
@Cyrilvallez
Cyrilvallez deleted the fix-hybrid-chunked-cache branch May 22, 2025 15:25
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

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.

3 participants