support transformers >= 0.4