{"library":"transformers","type":"library","category":null,"description":"The central model-definition framework for state-of-the-art ML models across text, vision, audio, video, and multimodal tasks. Provides pretrained model weights, tokenizers, pipelines, and training APIs. Interfaces with PyTorch (primary), with 400+ model architectures and 750k+ checkpoints on the Hub. MAJOR VERSION NOTE: v5 released late 2025 — first major release in 5 years. v5 is PyTorch-only (TensorFlow/Flax/JAX removed). pip install transformers installs v5 as of Feb 2026. v4 was the last stable version before this; v4.57.x is the last v4 release. Requires Python 3.10+ in v5.","language":"python","status":"active","version":"5.2.0","tags":["transformers","huggingface","pytorch","llm","bert","gpt","pipeline","embeddings","fine-tuning","inference","pretrained-models"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install transformers[torch]","imports":["from transformers import pipeline","from transformers import AutoModelForCausalLM, AutoTokenizer","from transformers import AutoImageProcessor"]},{"cmd":"pip install transformers","imports":[]},{"cmd":"pip install transformers[vision]","imports":[]},{"cmd":"pip install transformers[audio]","imports":[]},{"cmd":"pip install 'transformers<5'","imports":[]}],"homepage":null,"github":"https://github.com/huggingface/transformers","docs":null,"changelog":null,"pypi":"https://pypi.org/project/transformers/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":74,"avg_install_s":39.6,"avg_import_s":7.58,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/transformers/compatibility"}}