-
Notifications
You must be signed in to change notification settings - Fork 0
HuggingFaceTransformers
title: Hugging Face Transformers type: framework created: 2026-05-26 last_updated: 2026-05-26 related: ["radar/tools/Ollama", "radar/languages/Txtai", "radar/techniques/LLMEvaluationMethodology", "radar/techniques/RagChunkingStrategies"] sources: ["https://github.com/huggingface/transformers"] radar_quadrant: Languages & Frameworks radar_ring: Assess radar_position: inner
Standard Python library for downloading, running, and fine-tuning pretrained transformer-based ML models. Provides a unified API across PyTorch, TensorFlow, and JAX for models covering text, vision, audio, and multimodal tasks.
Before Hugging Face, using pretrained models meant navigating each research team's one-off code release with incompatible dependencies. Transformers standardised the interface: every model on the Hugging Face Hub — BERT, GPT, LLaMA, Mistral, Whisper, CLIP, and thousands more — loads and runs through the same API regardless of architecture.
Core capabilities:
- Inference — load a pretrained model and run predictions in a few lines
- Pipelines — high-level wrappers for common tasks (text-generation, summarisation, classification, NER, translation, speech-to-text, image-to-text)
-
Fine-tuning — train or adapt a pretrained model on a custom dataset using the
Trainerclass - Model Hub integration — push and pull models, datasets, and tokenisers from huggingface.co
radar/tools/Ollama runs chat-optimised LLMs via an OpenAI-compatible local API — a higher-level abstraction for inference only. radar/languages/Txtai wraps Transformers internally for search and pipeline tasks. Transformers is the lower-level library both build on. It is the right choice when fine-tuning control is needed, when a specific model architecture is required, or when the task (NER, classification, ASR) falls outside what Ollama and txtai surface.
| Task | Example Models |
|---|---|
| Text generation | LLaMA, Mistral, Falcon, GPT-2 |
| Summarisation | BART, T5, Pegasus |
| Classification | BERT, RoBERTa, DistilBERT |
| Named entity recognition | BERT-NER, spaCy-transformers |
| Speech-to-text | Whisper |
| Image classification | ViT, CLIP |
| Embeddings | sentence-transformers, E5, BGE |
Hugging Face Transformers sits in the Assess ring of the Languages & Frameworks quadrant, at inner position. First studied via the GitHub repository (2024-07-31). The library underpins most of the LLM and RAG tooling already on this radar — naming it explicitly closes a gap and provides a home for fine-tuning and model evaluation work. Inner position reflects pip installation, broad task coverage, and direct applicability to any ML or LLM project requiring model-level access. Remaining gate before Trial is a completed fine-tuning run or custom pipeline on a real dataset with quality evaluated against a baseline.