transformers

huggingface

The model-definition library behind most open machine learning work: thousands of pretrained text, vision, audio and multimodal models with a shared API for running, fine-tuning and training them in PyTorch and other frameworks.

PythonCreated

What is huggingface/transformers?

Transformers is the model-definition library behind a large share of practical machine learning. It provides thousands of pretrained models for text, vision, audio, video and multimodal tasks, each defined once in PyTorch, and it offers a common interface for running, fine-tuning and training them. Models are published on the Hugging Face Hub, so they can be loaded in a few lines of code.

Because the model definitions are shared, other training frameworks and inference engines can build on the same code rather than reimplementing each architecture. The README translates the documentation into many languages and points to the community resources around the library.

It suits machine-learning engineers and researchers who want to use or adapt pretrained models, and developers building applications that need state-of-the-art inference without training from scratch.

audiodeep-learningdeepseekgemmaglmhacktoberfestllmmachine-learning