Transformers
An open-source deep learning model library developed by Hugging Face that provides interfaces for loading, fine-tuning, and running inference on pre-trained models. It is one of the most widely adopted toolkits in the natural language processing field.
Core Facts
Hugging Face transitioned to an AI open-source community platform in 2018.
Hugging Face's Transformers library supports three major frameworks: PyTorch, TensorFlow, and JAX.
The Transformers library is maintained by Hugging Face and provides a unified interface for thousands of pre-trained models
Timeline (last 90 days)
One author implemented streaming loading of MoE experts in Transformers, running Qwen1.8 Flash Next on a Mac with 32GB of memory at a decoding speed of 13.9 tokens per second, compared with 14.8 tokens per second for StraTA, a difference of about 6%.
Ryzen 8 open-sourced the 500-million-parameter speech recognition model Rumble 2 Flash under the Apache 2.0 license, supporting more than 40 languages and running natively in Transformers and VLLM.
Hugging Face provides open-source libraries such as Transformers and Diffusers, and is widely regarded as the "GitHub" of open-source AI.
After migrating to the unified backend, the behavior of Gemma and StableLM is closer to the upstream Transformers reference implementation, which is a positive change for users who need to verify output comparability.
Migrating Gemma and StableLM to the Transformers backend means the model implementations switch from dedicated code paths to a unified backend framework, a refactor aimed at reducing forks and unifying entry points.
Transformers has become the de facto standard format for model weights and configurations, and the vast majority of open-source models provide accompanying files such as config.json and model.safetensors when released.
The Transformers backend means directly reusing the model definitions, weight mappings and configuration parsing logic in the Hugging Face Transformers library, rather than writing a separate implementation for each model inside vLLM.
vLLM released the v0.34.0rc0 pre-release version, migrating the Gemma and StableLM model families to the Transformers backend.
Post-migration throughput and memory performance cannot simply be extrapolated; A/B benchmark tests need to be run with a representative request distribution, focusing on three metrics: first-token latency, decoding throughput and peak memory usage.
The performance shift brought by the backend switch mainly comes from changes in operator selection and kernel scheduling; the old dedicated implementations may have hand-written fused operators for specific model structures, whereas the Transformers backend follows a generic path.
40 more timeline events
All Facts (20)
Hugging Face transitioned to an AI open-source community platform in 2018.
90%VerifiedHugging Face's Transformers library supports three major frameworks: PyTorch, TensorFlow, and JAX.
90%VerifiedThe Transformers library is maintained by Hugging Face and provides a unified interface for thousands of pre-trained models
80%VerifiedHugging Face is an AI company founded in 2016, whose open-source library Transformers has become the de facto standard toolkit in the NLP and large model domains.
80%VerifiedvLLM relies on Hugging Face's transformers library to load model architectures, tokenizers, and configurations.
75%VerifiedThe Hugging Face ecosystem includes components such as Model Hub, Datasets, Spaces, and Tokenizers.
65%VerifiedHuggingFace Transformers' Pipeline supports task types including sentiment analysis, text generation, named entity recognition, fill-mask, summarization, translation, and feature extraction.
65%VerifiedThe Pipeline API breaks NLP tasks down into three independent stages: preprocessing, model inference, and post-processing.
65%VerifiedThe storage path for HuggingFace models can be customized by setting the environment variable HF_HOME.
65%UnverifiedThe mainstream AI inference stack (PyTorch, Transformers, vLLM) is built on Python and relies on extensive Python code and complex dependency chains
90%UnverifiedTransformers库默认将模型下载到C盘用户目录/.cache/huggingface下
90%UnverifiedHugging Face的Transformers库、OpenAI的官方SDK、LangChain等几乎所有主流大模型工具都优先支持Python
90%UnverifiedThe Hugging Face platform supports mainstream open-source frameworks such as Transformers and Diffusers, and provides commercial services such as Spaces and Inference API.
70%UnverifiedHugging Face's Transformers library provides a unified API interface for tens of thousands of pre-trained models, supporting the three major frameworks PyTorch, TensorFlow, and JAX.
70%UnverifiedHugging Face Hub is deeply integrated with mainstream open-source libraries such as Transformers, Diffusers, and PEFT, allowing users to load any model with just a single line of code.
70%UnverifiedMuse Spark Open supports runtimes including SGLang, vLLM, TensorRT-LLM, Transformers, MLX, llama.cpp and Unsloth.
60%UnverifiedInput text in a Transformer first goes through a Tokenizer for segmentation, splitting the text into N tokens, which are the smallest units by which the language model understands semantics.
60%UnverifiedOne author implemented streaming loading of MoE experts in Transformers, running Qwen1.8 Flash Next on a Mac with 32GB of memory at a decoding speed of 13.9 tokens per second, compared with 14.8 tokens per second for StraTA, a difference of about 6%.
50%UnverifiedHugging Face provides open-source libraries such as Transformers and Diffusers, and is widely regarded as the "GitHub" of open-source AI.
50%UnverifiedTransformers has become the de facto standard format for model weights and configurations, and the vast majority of open-source models provide accompanying files such as config.json and model.safetensors when released.
50%