Philosophy

🤗 Transformers is an opinionated library built for:

The library was designed with two strong goals in mind:

A few other goals:

Main concepts

The library is built around three types of classes for each model:

All these classes can be instantiated from pretrained instances and saved locally using two methods: