huggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
https://skillcdn.ai/gh/huggingface/transformersConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
6259c23 - License
Apache-2.0 - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Documents
- AFMoEAFMoE (Arcee Foundational Mixture of Experts) is a decoder-only transformer model that extends the Llama architecture with a sparse Mixture of Experts (MoE) approach. The model combines token-choice…docs/source/en/model_doc/afmoe.md
- AIMv2The AIMv2 model was proposed in Multimodal Autoregressive Pre-training of Large Vision Encoders by Enrico Fini, Mustafa Shukor, Xiujun Li, Philipp Dufter, Michal Klein, David Haldimann, Sai Aitharaju…docs/source/en/model_doc/aimv2.md
- ALBERTALBERT is designed to address memory limitations of scaling and training of BERT. It adds two parameter reduction techniques. The first, factorized embedding parametrization, splits the larger vocabu…docs/source/en/model_doc/albert.md
- ALIGNALIGN is pretrained on a noisy 1.8 billion alt‑text and image pair dataset to show that scale can make up for the noise. It uses a dual‑encoder architecture, EfficientNet for images and BERT for text…docs/source/en/model_doc/align.md
- AltCLIPAltCLIP replaces the CLIP text encoder with a multilingual XLM-R encoder and aligns image and text representations with teacher learning and contrastive learning.docs/source/en/model_doc/altclip.md
- ApertusApertus is a family of large language models from the Swiss AI Initiative.docs/source/en/model_doc/apertus.md
- Apertus 1.5Apertus 1.5 is a multimodal model from the Swiss AI Initiative that accepts text, images, and audio and generates text. It extends the Apertus language model with the EMU3.5 vision tokenizer and WavT…docs/source/en/model_doc/apertus1p5.md
- ArceeArcee is a decoder-only transformer model based on the Llama architecture with a key modification: it uses ReLU² (ReLU-squared) activation in the MLP blocks instead of SiLU, following recent research…docs/source/en/model_doc/arcee.md
- AriaAria is a multimodal mixture-of-experts (MoE) model. The goal of this model is to open-source a training recipe for creating a multimodal native model from scratch. Aria has 3.9B and 3.5B activated p…docs/source/en/model_doc/aria.md
- Audio Spectrogram TransformerThe Audio Spectrogram Transformer model was proposed in AST: Audio Spectrogram Transformer by Yuan Gong, Yu-An Chung, James Glass. The Audio Spectrogram Transformer applies a Vision Transformer to au…docs/source/en/model_doc/audio-spectrogram-transformer.md
- Audio Flamingo 3Audio Flamingo 3 (AF3) is a fully open large audio–language model designed for robust understanding and reasoning over speech, environmental sounds, and music. AF3 pairs a Whisper-style audio encoder…docs/source/en/model_doc/audioflamingo3.md
- Auto classesIn many cases, the architecture to use can be inferred from the name or path of the pretrained model provided to the from_pretrained() method. Instantiating [AutoConfig], [AutoModel], or [AutoTokeniz…docs/source/en/model_doc/auto.md
- AutoformerThe Autoformer model was proposed in Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting by Haixu Wu, Jiehui Xu, Jianmin Wang, Mingsheng Long.docs/source/en/model_doc/autoformer.md
- A.X-K1A.X-K1 is SK Telecom's Mixture-of-Experts large language model. It is built on the DeepSeek-V3 architecture — Multi-head Latent Attention (MLA) with a grouped sigmoid top-k MoE and a shared expert —…docs/source/en/model_doc/axk1.md
- A.X-K2A.X-K2 is SK Telecom's flagship large language model. It is a Mixture-of-Experts decoder built on the DeepSeek-V3.2 architecture — Multi-head Latent Attention (MLA) with DeepSeek Sparse Attention (DS…docs/source/en/model_doc/axk2.md
- Aya VisionAya Vision is a family of open-weight multimodal vision-language models from Cohere Labs. It is trained with a synthetic annotation framework that generates high-quality multilingual image captions,…docs/source/en/model_doc/aya_vision.md
- Ling 3Ling 3 Flash is a family of hybrid Mixture-of-Experts language models from InclusionAI. Ling 3.0 Flash groups five Kimi Delta Attention (KDA) layers with one Multi-head Latent Attention (MLA) layer,…docs/source/en/model_doc/bailing_hybrid.md
- BambaBamba is a 9B parameter decoder-only language model built on the Mamba-2 architecture. It is pretrained in two stages - it starts by training on 2T tokens from the Dolma v1.7 dataset and then trained…docs/source/en/model_doc/bamba.md
- BarkBark is a transformer-based text-to-speech model proposed by Suno AI in suno-ai/bark.docs/source/en/model_doc/bark.md
- BARTBART is a sequence-to-sequence model that combines the pretraining objectives from BERT and GPT. It's pretrained by corrupting text in different ways like deleting words, shuffling sentences, or mask…docs/source/en/model_doc/bart.md
- BARThezBARThez is a BART model designed for French language tasks. Unlike existing French BERT models, BARThez includes a pretrained encoder-decoder, allowing it to generate text as well. This model is also…docs/source/en/model_doc/barthez.md
- BARTphoBARTpho is a large-scale Vietnamese sequence-to-sequence model. It offers a word-based and syllable-based version. This model is built on the BART large architecture with its denoising pretraining.docs/source/en/model_doc/bartpho.md
- BeamBeam is Reflection's first open-weight model, a sparse mixture-of-experts (MoE) language model with 501B total parameters and 23B active parameters per token, built for coding, reasoning, and agentic…docs/source/en/model_doc/beam.md
- BEiTThe BEiT model was proposed in BEiT: BERT Pre-Training of Image Transformers by Hangbo Bao, Li Dong and Furu Wei. Inspired by BERT, BEiT is the first paper that makes self-supervised pre-training of…docs/source/en/model_doc/beit.md
- BertGenerationBertGeneration leverages pretrained BERT checkpoints for sequence-to-sequence tasks with the [EncoderDecoderModel] architecture. BertGeneration adapts the [BERT] for generative tasks.docs/source/en/model_doc/bert-generation.md
- BertJapaneseThe BERT models trained on Japanese text.docs/source/en/model_doc/bert-japanese.md
- BERTBERT is a bidirectional transformer pretrained on unlabeled text to predict masked tokens in a sentence and to predict whether one sentence follows another. The main idea is that by randomly masking…docs/source/en/model_doc/bert.md
- BERTweetBERTweet shares the same architecture as BERT-base, but it's pretrained like RoBERTa on English Tweets. It performs really well on Tweet-related tasks like part-of-speech tagging, named entity recogn…docs/source/en/model_doc/bertweet.md
- BigBirdBigBird is a transformer model built to handle sequence lengths up to 4096 compared to 512 for BERT. Traditional transformers struggle with long inputs because attention gets really expensive as the…docs/source/en/model_doc/big_bird.md
- BigBirdPegasusBigBirdPegasus is an encoder-decoder (sequence-to-sequence) transformer model for long-input summarization. It extends the BigBird architecture with an additional pretraining objective borrowed from…docs/source/en/model_doc/bigbird_pegasus.md
- BioGPTBioGPT is a generative Transformer model based on GPT-2 and pretrained on 15 million PubMed abstracts. It is designed for biomedical language tasks.docs/source/en/model_doc/biogpt.md
- Big Transfer (BiT)The BiT model was proposed in Big Transfer (BiT): General Visual Representation Learning by Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly, Neil Houlsby…docs/source/en/model_doc/bit.md
- BitNetTrained on a corpus of 4 trillion tokens, this model demonstrates that native 1-bit LLMs can achieve performance comparable to leading open-weight, full-precision models of similar size, while offeri…docs/source/en/model_doc/bitnet.md
- Blenderbot SmallNote that [BlenderbotSmallModel] and [BlenderbotSmallForConditionalGeneration] are only used in combination with the checkpoint facebook/blenderbot-90M. Larger Blenderbot checkpoints should instead b…docs/source/en/model_doc/blenderbot-small.md
- BlenderbotThe Blender chatbot model was proposed in Recipes for building an open-domain chatbot Stephen Roller, Emily Dinan, Naman Goyal, Da Ju, Mary Williamson, Yinhan Liu, Jing Xu, Myle Ott, Kurt Shuster, Er…docs/source/en/model_doc/blenderbot.md
- BLIP-2The BLIP-2 model was proposed in BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models by Junnan Li, Dongxu Li, Silvio Savarese, Steven Hoi. BLIP-2 le…docs/source/en/model_doc/blip-2.md
- BLIPBLIP (Bootstrapped Language-Image Pretraining) is a vision-language pretraining (VLP) framework designed for both understanding and generation tasks. Most existing pretrained models are only good at…docs/source/en/model_doc/blip.md
- BLOOMThe BLOOM model has been proposed with its various versions through the BigScience Workshop. BigScience is inspired by other open science initiatives where researchers have pooled their time and reso…docs/source/en/model_doc/bloom.md
- Byte Latent Transformer (BLT)The BLT model was proposed in Byte Latent Transformer: Patches Scale Better Than Tokens by Artidoro Pagnoni, Ram Pasunuru, Pedro Rodriguez, John Nguyen, Benjamin Muller, Margaret Li1, Chunting Zhou,…docs/source/en/model_doc/blt.md
- BridgeTowerThe BridgeTower model was proposed in BridgeTower: Building Bridges Between Encoders in Vision-Language Representative Learning by Xiao Xu, Chenfei Wu, Shachar Rosenman, Vasudev Lal, Wanxiang Che, Na…docs/source/en/model_doc/bridgetower.md
- BROSThe BROS model was proposed in BROS: A Pre-trained Language Model Focusing on Text and Layout for Better Key Information Extraction from Documents by Teakgyu Hong, Donghyun Kim, Mingi Ji, Wonseok Hwa…docs/source/en/model_doc/bros.md
- ByT5ByT5 is tokenizer-free version of the T5 model designed to works directly on raw UTF-8 bytes. This means it can process any language, more robust to noise like typos, and simpler to use because it do…docs/source/en/model_doc/byt5.md
- CamemBERTCamemBERT is a language model based on RoBERTa, but trained specifically on French text from the OSCAR dataset, making it more effective for French language tasks.docs/source/en/model_doc/camembert.md
- CanaryCanary-1B-v2 was proposed in Canary-1B-v2 & Parakeet-TDT-0.6B-v3: Efficient and High-Performance Models for Multilingual ASR and AST by Monica Sekoyan, Nithin Rao Koluguri, Nune Tadevosyan, Piotr Zel…docs/source/en/model_doc/canary.md
- CANINECANINE is a tokenization-free Transformer. It skips the usual step of splitting text into subwords or wordpieces and processes text character by character. That means it works directly with raw Unico…docs/source/en/model_doc/canine.md
- ChameleonThe Chameleon model was proposed in Chameleon: Mixed-Modal Early-Fusion Foundation Models by META AI Chameleon Team. Chameleon is a Vision-Language Model that use vector quantization to tokenize imag…docs/source/en/model_doc/chameleon.md
- Chinese-CLIPThe Chinese-CLIP model was proposed in Chinese CLIP: Contrastive Vision-Language Pretraining in Chinese by An Yang, Junshu Pan, Junyang Lin, Rui Men, Yichang Zhang, Jingren Zhou, Chang Zhou. Chinese-…docs/source/en/model_doc/chinese_clip.md
- CHMv2The Canopy Height Maps v2 (CHMv2) model was proposed in CHMv2: Improvements in Global Canopy Height Mapping using DINOv3. Building on our original high-resolution canopy height maps released in 2024,…docs/source/en/model_doc/chmv2.md
- CLAPCLAP (Contrastive Language-Audio Pretraining) is a multimodal model that combines audio data with natural language descriptions through contrastive learning.docs/source/en/model_doc/clap.md
- CLIPCLIP is a multimodal vision and language model motivated by overcoming the fixed number of object categories when training a computer vision model. CLIP learns about images directly from raw text by…docs/source/en/model_doc/clip.md
Skipped (50)
These manifests were not served. Fix them and push: the next commit is indexed again.
README.mdlink_missinga link names no file of the repository (./contributing)docs/source/en/accelerate.mdlink_missing3 links name no file of the repository (./fsdp, ./deepspeed, ./ddp)docs/source/en/add_audio_processing_components.mdlink_missing3 links name no file of the repository (./modular_transformers, ./auto_docstring, ./feature_extractors)docs/source/en/add_new_model.mdlink_missing7 links name no file of the repository (./modular_transformers, ./philosophy, ./installation#editable-install, ...)docs/source/en/add_vision_processing_components.mdlink_missing4 links name no file of the repository (./modular_transformers, ./auto_docstring, ./image_processors, ...)docs/source/en/amd_gpu.mdlink_missing12 links name no file of the repository (./attention_interface, ./kernel_doc/loading_kernels, ./quantization/awq, ...)docs/source/en/apple_silicon.mdlink_missing10 links name no file of the repository (./attention_interface, ./model_doc/gpt_oss, ./quantization/gguf#attention, ...)docs/source/en/assisted_decoding.mdlink_missing2 links name no file of the repository (./perf_torch_compile, ./kv_cache#fixed-size-cache)docs/source/en/attention_interface.mdlink_missinga link names no file of the repository (./kernel_doc/loading_kernels#flashattention-fallback)docs/source/en/auto_docstring.mdlink_missinga link names no file of the repository (./modular_transformers)docs/source/en/aws_trainium.mdlink_missing4 links name no file of the repository (./kv_cache#keep-generation-tensors-on-cpu, ./tensor_parallelism, ./expert_parallelism, ...)docs/source/en/backbones.mdlink_missing4 links name no file of the repository (./main_classes/backbones, ./model_doc/auto, ./model_doc/resnet, ...)docs/source/en/chat_content_patterns.mdlink_missinga link names no file of the repository (./chat_extras)docs/source/en/chat_extras.mdlink_missing3 links name no file of the repository (./model_doc/cohere, ./model_doc/mixtral, ./chat_response_parsing)docs/source/en/chat_response_parsing.mdlink_missing2 links name no file of the repository (./chat_extras, ./chat_templating)docs/source/en/chat_templating.mdlink_missing3 links name no file of the repository (./conversations, ./model_doc/llama, ./tasks/language_modeling)docs/source/en/chat_templating_multimodal.mdlink_missing6 links name no file of the repository (./fast_tokenizers, ./processors, ./llm_tutorial#prompt-format, ...)docs/source/en/chat_templating_writing.mdlink_missing2 links name no file of the repository (./chat_extras, ./model_doc/cohere)docs/source/en/community.mdlink_missinga link names no file of the repository (glossary)docs/source/en/community_integrations/axolotl.mdlink_missing3 links name no file of the repository (./trl, ../main_classes/quantization, ../attention_interface)docs/source/en/community_integrations/candle.mdlink_missinga link names no file of the repository (../installation#cache-directory)docs/source/en/community_integrations/executorch.mdlink_missinga link names no file of the repository (../serialization#executorch)docs/source/en/community_integrations/nemo_automodel_finetuning.mdlink_missinga link names no file of the repository (./nemo_automodel_pretraining)docs/source/en/community_integrations/nemo_automodel_pretraining.mdlink_missinga link names no file of the repository (./nemo_automodel_finetuning)docs/source/en/community_integrations/sglang.mdlink_missinga link names no file of the repository (./transformers_as_backend#model-implementation)docs/source/en/community_integrations/torchtitan.mdlink_missinga link names no file of the repository (../perf_torch_compile)docs/source/en/community_integrations/transformers_as_backend.mdlink_missing3 links name no file of the repository (../add_new_model, ../custom_models, ../add_vision_processing_components)docs/source/en/continuous_batching.mdlink_missing8 links name no file of the repository (./serve-cli/serving_optims#continuous-batching, ./continuous_batching_architecture#memory-management, ./continuous_batching_architecture#chunked-prefill, ...)docs/source/en/continuous_batching_architecture.mdlink_missinga link names no file of the repository (./continuous_batching)docs/source/en/conversations.mdlink_missing12 links name no file of the repository (./installation, ./serve-cli/serving, ./model_doc/auto, ...)docs/source/en/cpu.mdlink_missinga link names no file of the repository (./ddp)docs/source/en/custom_models.mdlink_missing3 links name no file of the repository (./models#model-classes, ./model_doc/auto, ./models#custom-models)docs/source/en/custom_tokenizers.mdlink_missinga link names no file of the repository (./fast_tokenizers#backends)docs/source/en/data_collators.mdlink_missinga link names no file of the repository (./main_classes/data_collator)docs/source/en/ddp.mdlink_missing3 links name no file of the repository (./accelerate, ./fsdp, ./deepspeed)docs/source/en/deepspeed.mdlink_missing2 links name no file of the repository (./debugging#deepspeed-cuda, ./accelerate#accelerate-config-file)docs/source/en/deepspeed_alst.mdlink_missing3 links name no file of the repository (./accelerate#accelerate-config-file, ./fsdp#evaluate-with-context-parallelism, ./perf_train_gpu_many)docs/source/en/expert_parallelism.mdlink_missing2 links name no file of the repository (./perf_infer_gpu_multi, ./fsdp)docs/source/en/experts_interface.mdlink_missinga link names no file of the repository (./quantization/finegrained_fp8)docs/source/en/exporters.mdlink_missing2 links name no file of the repository (./exporters_quantization, ./exporters_extend)docs/source/en/exporters_quantization.mdlink_missing2 links name no file of the repository (./exporters, ./exporters#how-exportforgeneration-works)docs/source/en/fast_tokenizers.mdlink_missinga link names no file of the repository (./custom_tokenizers)docs/source/en/feature_extractors.mdlink_missing2 links name no file of the repository (./model_doc/auto, ./model_doc/whisper)docs/source/en/fsdp.mdlink_missing8 links name no file of the repository (./ddp, ./tensor_parallelism, ./expert_parallelism, ...)docs/source/en/fusion_mapping.mdlink_missing2 links name no file of the repository (./monkey_patching, ./weightconverter)docs/source/en/glossary.mdlink_missing9 links name no file of the repository (./model_doc/dpt, ./perf_train_gpu_many#dataparallel, ./training, ...)docs/source/en/google_tpu.mdlink_missing2 links name no file of the repository (./kv_cache#keep-generation-tensors-on-cpu, ./kernel_doc/loading_kernels)docs/source/en/grad_accumulation.mdlink_missing4 links name no file of the repository (./trainer_recipes#custom-loss-function, ./model_memory_anatomy, ./grad_checkpointing, ...)docs/source/en/grad_checkpointing.mdlink_missing4 links name no file of the repository (./grad_accumulation, ./model_memory_anatomy, ./mixed_precision_training, ...)docs/source/en/hardware.mdlink_missing8 links name no file of the repository (./cpu, ./nvidia_gpu, ./amd_gpu, ...)