transformers
Package — Deep LearningPython 3.8+Advanced
Hugging Face: state-of-the-art NLP/vision/audio models (BERT, GPT, etc.)
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.8+
- Dependencies
- huggingface-hub, NumPy, packaging, PyYAML, regex, requests, tokenizers, safetensors, tqdm, filelock
- Install
pip install transformers
Learn by Difficulty
Quick Example
python
# Install: pip install transformers import transformers # Basic transformers usage print(f"Using transformers") # See documentation for detailed examples
transformers is a third-party package. Hugging Face: state-of-the-art NLP/vision/audio models (BERT, GPT, etc.). Install with: pip install transformers
Try in PlaygroundTags
packagedeep-learningnlpllmpretrained-models
Related Items
torch
Package — Deep Learning
PyTorch: dynamic neural networks with GPU acceleration by Meta
tensorflow
Package — Deep Learning
End-to-end ML platform by Google: neural networks, TPU support
tokenizers
Package — NLP
Hugging Face fast tokenizer library (Rust backend)
peft
Package — Deep Learning
Parameter-Efficient Fine-Tuning (LoRA, prefix tuning, adapters)
accelerate
Package — Deep Learning
Hugging Face library for multi-GPU, TPU, and mixed-precision training