transformers 4.42.4


State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Stars: 129553, Watchers: 129553, Forks: 25723, Open Issues: 1222

The huggingface/transformers repo was created 5 years ago and the last code push was 2 hours ago.
The project is extremely popular with a mindblowing 129553 github stars!

How to Install transformers

You can install transformers using pip

pip install transformers

or add it to a project with poetry

poetry add transformers

Package Details

The Hugging Face team (past and future) with the help of all our contributors (
Apache 2.0 License
GitHub Repo:


  • Scientific/Engineering/Artificial Intelligence
No  transformers  pypi packages just yet.


A list of common transformers errors.

Code Examples

Here are some transformers code examples and snippets.

GitHub Issues

The transformers package has 1222 open issues on GitHub

  • Error when running the T5 pre-training script
  • Ignored unknown kwarg option direction, while running (pytorch)
  • WIP Create
  • Fix TFLEDModel
  • GeneratorExp aren't supported by torch.jit.script when I try to export a previously trained model 'google/vit-base-patch16-224-in21k'.
  • Allow relative imports in dynamic code
  • Fix KerasMetricCallback prediction with generate() and inference of column names
  • A few minor questions regarding in examples
  • DebertaV2 For
  • wav2vec with LM leads to CPU OOM
  • Fix bad_word_ids not working with sentencepiece-based tokenizers
  • random word masking index shouble be great than 0
  • ValueError: No valid checkpoint found in output directory
  • CPU OOM when using IterableDataset with dataloader_num_workers > 0
  • how can i write tensorboard when i train model with the script ""

See more issues on GitHub

Related Packages & Articles

thinc 9.0.0

A refreshing functional take on deep learning, compatible with your favorite libraries

nlp 0.4.0

HuggingFace/NLP is an open library of NLP datasets.

spacy 3.7.5

Industrial-strength Natural Language Processing (NLP) in Python

keras 3.4.1

Keras is a deep learning API written in Python, running on top of the machine learning platform TensorFlow. The core data structures of Keras are layers and models. The philosophy is to keep simple things simple, while allowing the user to be fully in control when they need to (the ultimate control being the easy extensibility of the source code via subclassing).

tensorflow 2.17.0

TensorFlow is an open source machine learning framework for everyone.

gensim 4.3.3

Python framework for fast Vector Space Modelling