Closed BenjaminBossan closed 1 month ago
Don't assume that past_key_values is part of the model_kwargs.
past_key_values
model_kwargs
This fix is similar to #2140 but for encoder-decoder models. It became necessary after https://github.com/huggingface/transformers/pull/34048 was merged into transformers.
Fixes the currently failing CI.
Don't assume that
past_key_values
is part of themodel_kwargs
.This fix is similar to #2140 but for encoder-decoder models. It became necessary after https://github.com/huggingface/transformers/pull/34048 was merged into transformers.
Fixes the currently failing CI.