Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX Don't assume past_key_valus for encoder models
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.
- Loading branch information