A small compatibility shim for the transformers library
https://github.com/ekmett/transformers-compat/