Philosophy

🤗 Transformers is an opinionated library built for:

The library was designed with two strong goals in mind:

  1. Be as easy and fast to use as possible:
  1. Provide state-of-the-art models with performances as close as possible to the original models:

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, saved locally, and shared on the Hub with three methods: