Getting Started

How to get started with Transformers

1

Install Transformers

Use pip to install the library with the command `pip install transformers` inside a virtual environment.

2

Load a Pretrained Model

Use the unified API to load a pretrained model from the Hugging Face Hub by instantiating one of the core classes.

3

Run Inference

Perform tasks such as text generation or image captioning using the loaded model.

4

Fine-tune or Build Custom Tools

Fine-tune models on custom datasets or build agents combining multiple models using additional libraries.

5

Share Your Work

Push custom models or tools to the Hugging Face Hub for sharing with the community.