Fix warnings with recent version of transformers