- The Transfo-XL modeling method reset_length becomes reset_memory_length.
Regarding pipelines:
- The FillMaskPipeline argument topk becomes top_k.
Migrating from pytorch-transformers to 🤗 Transformers
Here is a quick summary of what you should take care of when migrating from pytorch-transformers to 🤗 Transformers.
Positional order of some models' keywords inputs (attention_mask, token_type_ids...) changed
To be able to use Torchscript (see #1010, #1204 and #1195) the specific order of some models keywords inputs (attention_mask, token_type_ids...) has been changed.
If you used to call the models with keyword names for keyword arguments, e.g. model(inputs_ids, attention_mask=attention_mask, token_type_ids=token_type_ids), this should not cause any change.
If you used to call the models with positional inputs for keyword arguments, e.g. model(inputs_ids, attention_mask, token_type_ids), you may have to double check the exact order of input arguments.
