Skip to content

FIX Don't assume past_key_valus for encoder models#2149

Merged
BenjaminBossan merged 1 commit intohuggingface:mainfrom
BenjaminBossan:fix-prefix-tuning-past_key_values-missing
Oct 14, 2024
Merged

FIX Don't assume past_key_valus for encoder models#2149
BenjaminBossan merged 1 commit intohuggingface:mainfrom
BenjaminBossan:fix-prefix-tuning-past_key_values-missing

Conversation

@BenjaminBossan
Copy link
Member

Don't assume that past_key_values is part of the model_kwargs.

This fix is similar to #2140 but for encoder-decoder models. It became necessary after huggingface/transformers#34048 was merged into transformers.

Fixes the currently failing CI.

Don't assume that past_key_values is part of the model_kwargs.

This fix is similar to huggingface#2140 but for encoder-decoder models. It became
necessary after huggingface/transformers#34048
was merged into transformers.
@BenjaminBossan BenjaminBossan requested a review from gante October 14, 2024 09:51
Copy link
Contributor

@gante gante left a comment

Choose a reason for hiding this comment

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

Makes sense, LGTM 👍

@BenjaminBossan BenjaminBossan merged commit c039b00 into huggingface:main Oct 14, 2024
@BenjaminBossan BenjaminBossan deleted the fix-prefix-tuning-past_key_values-missing branch October 14, 2024 10:36
yaswanth19 pushed a commit to yaswanth19/peft that referenced this pull request Oct 20, 2024
Don't assume that past_key_values is part of the model_kwargs.

This fix is similar to huggingface#2140 but for encoder-decoder models. It became
necessary after huggingface/transformers#34048
was merged into transformers.
yaswanth19 pushed a commit to yaswanth19/peft that referenced this pull request Oct 20, 2024
Don't assume that past_key_values is part of the model_kwargs.

This fix is similar to huggingface#2140 but for encoder-decoder models. It became
necessary after huggingface/transformers#34048
was merged into transformers.
BenjaminBossan added a commit to BenjaminBossan/peft that referenced this pull request Oct 22, 2024
Don't assume that past_key_values is part of the model_kwargs.

This fix is similar to huggingface#2140 but for encoder-decoder models. It became
necessary after huggingface/transformers#34048
was merged into transformers.
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
Don't assume that past_key_values is part of the model_kwargs.

This fix is similar to huggingface#2140 but for encoder-decoder models. It became
necessary after huggingface/transformers#34048
was merged into transformers.
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.

2 participants