# Transformers > Transformers is the model-definition framework for machine learning models in text, computer vision, audio, video, and multimodal tasks. Each page below links to its Markdown. The text of every page is in [llms-full.txt](https://huggingface.co/docs/transformers/main/llms-full.txt) (30.6 MB), and the text of each section in: - [Get started](https://huggingface.co/docs/transformers/main/llms-full/get-started.txt): 3 pages, 28 KB - [Base classes](https://huggingface.co/docs/transformers/main/llms-full/base-classes.txt): 28 pages, 437 KB - [Inference](https://huggingface.co/docs/transformers/main/llms-full/inference.txt): 41 pages, 600 KB - [Training](https://huggingface.co/docs/transformers/main/llms-full/training.txt): 24 pages, 185 KB - [Hardware](https://huggingface.co/docs/transformers/main/llms-full/hardware.txt): 9 pages, 55 KB - [Quantization](https://huggingface.co/docs/transformers/main/llms-full/quantization.txt): 34 pages, 202 KB - [Ecosystem integrations](https://huggingface.co/docs/transformers/main/llms-full/ecosystem-integrations.txt): 16 pages, 45 KB - [Resources](https://huggingface.co/docs/transformers/main/llms-full/resources.txt): 39 pages, 505 KB - [API](https://huggingface.co/docs/transformers/main/llms-full/api.txt): 616 pages, 28.6 MB ## Get started - [Transformers](https://huggingface.co/docs/transformers/main/index.md): Transformers is the model-definition framework for machine learning models in text, computer vision, audio, video, and multimodal tasks. - [Installation](https://huggingface.co/docs/transformers/main/installation.md): Transformers works with PyTorch. - [Quickstart](https://huggingface.co/docs/transformers/main/quicktour.md): Transformers is designed to be fast and easy to use so that everyone can start learning or building with transformer models. ## Base classes ### Models - [Loading models](https://huggingface.co/docs/transformers/main/models.md): Transformers provides many pretrained models that are ready to use with a single line of code. - [Dynamic weight loading](https://huggingface.co/docs/transformers/main/weightconverter.md): Checkpoints are often serialized in a format that does not match what a model expects at runtime. - [Backbones](https://huggingface.co/docs/transformers/main/backbones.md): Higher-level computer visions tasks, such as object detection or image segmentation, use several models together to generate a prediction. - [Customizing models](https://huggingface.co/docs/transformers/main/custom_models.md): Transformers models are designed to be customizable. - [Per-layer configurations](https://huggingface.co/docs/transformers/main/heterogeneous_configurations.md): Some checkpoints are heterogeneous (not layer-uniform). - [Customizing model components](https://huggingface.co/docs/transformers/main/how_to_hack_models.md): Another way to customize a model is to modify their components, rather than writing a new model entirely, allowing you to tailor a model to your specific use case. - [Monkey patching](https://huggingface.co/docs/transformers/main/monkey_patching.md): Monkey patching allows you to replace model components globally without modifying the original model code. - [Fusion mapping](https://huggingface.co/docs/transformers/main/fusion_mapping.md): Fusion mapping provides an opt-in way to replace model submodules at load time while preserving the original checkpoint format. - [Sharing](https://huggingface.co/docs/transformers/main/model_sharing.md): The Hugging Face Hub is a platform for sharing, discovering, and consuming models of all different types and sizes. - [Exporting to production](https://huggingface.co/docs/transformers/main/serialization.md): Export Transformers' models to different formats for optimized runtimes and devices. ### Models / Contribute - [Contribute to Transformers](https://huggingface.co/docs/transformers/main/contributing.md): There are two ways to open a PR: fix an issue that's open for contributions, or open a standalone PR that carries its own evidence. - [Add a model with modular transformers](https://huggingface.co/docs/transformers/main/modular_transformers.md): Modular transformers reduces the code needed to add a model by allowing imports and inheritance, in contrast to the single model, single file policy. - [Multimodal processors](https://huggingface.co/docs/transformers/main/multimodal_processing.md): A processor combines a tokenizer with one or more modality processors, such as an image processor, video processor, or feature extractor. - [Vision processing components](https://huggingface.co/docs/transformers/main/add_vision_processing_components.md): Adding a vision model requires image or video processing components on top of the standard modular approach. - [Audio processing components](https://huggingface.co/docs/transformers/main/add_audio_processing_components.md): Audio models require a feature extractor which is accessible behind the AutoFeatureExtractor entry point. - [Model structure rules](https://huggingface.co/docs/transformers/main/modeling_rules.md): Transformers enforces a set of static rules on every `modeling_*.py`, `modular_*.py`, and `configuration_*.py` file. - [Tracing model intermediate outputs](https://huggingface.co/docs/transformers/main/model_output_tracing.md): Every model's `forward()` method used to manually resolve `None` flags like `output_attentions` from config defaults, accumulate per-layer attention weights and hidden states into tuples, and convert… - [Auto-generating docstrings](https://huggingface.co/docs/transformers/main/auto_docstring.md): The `@auto_docstring` decorator generates consistent docstrings for model classes and methods. - [Writing model tests](https://huggingface.co/docs/transformers/main/testing.md): The Transformers test suite uses a mixin-based architecture to auto-generate 100+ tests from minimal code. - [Pull request checks](https://huggingface.co/docs/transformers/main/pr_checks.md): When you open a pull request, the Hugging Face CI runs several checks that must pass before your PR can be merged. - [Legacy model contribution](https://huggingface.co/docs/transformers/main/add_new_model.md): Many of the models in Transformers are contributed by developers and researchers. ### Preprocessors - [Tokenizers](https://huggingface.co/docs/transformers/main/fast_tokenizers.md): A tokenizer converts text into tensors, which are the inputs to a model. - [Customizing tokenizers](https://huggingface.co/docs/transformers/main/custom_tokenizers.md): Tokenizers are decoupled from their learned vocabularies. - [Tokenization algorithms](https://huggingface.co/docs/transformers/main/tokenizer_summary.md): Transformers support three subword tokenization algorithms: Byte pair encoding (BPE), Unigram, and WordPiece. - [Image processors](https://huggingface.co/docs/transformers/main/image_processors.md): Image processors convert images into pixel values, tensors that represent image colors and size. - [Video processors](https://huggingface.co/docs/transformers/main/video_processors.md): A Video Processor is a utility responsible for preparing input features for video models, as well as handling the post-processing of their outputs. - [Feature extractors](https://huggingface.co/docs/transformers/main/feature_extractors.md): Feature extractors preprocess audio data into the correct format for a given model. - [Processors](https://huggingface.co/docs/transformers/main/processors.md): Multimodal models require a preprocessor capable of handling inputs that combine more than one modality. ## Inference ### Pipeline API - [Pipeline](https://huggingface.co/docs/transformers/main/pipeline_tutorial.md): The Pipeline is a simple but powerful inference API that is readily available for a variety of machine learning tasks with any model from the Hugging Face Hub. - [Machine learning apps](https://huggingface.co/docs/transformers/main/pipeline_gradio.md): Gradio, a fast and easy library for building and sharing machine learning apps, is integrated with Pipeline to quickly create a simple interface for inference. - [Web server inference](https://huggingface.co/docs/transformers/main/pipeline_webserver.md): A web server is a system that waits for requests and serves them as they come in. - [Adding a new pipeline](https://huggingface.co/docs/transformers/main/add_new_pipeline.md): Make Pipeline your own by subclassing it and implementing a few methods. ### Generate API - [Text generation](https://huggingface.co/docs/transformers/main/llm_tutorial.md): Text generation is the most popular application for large language models (LLMs). - [Decoding methods](https://huggingface.co/docs/transformers/main/generation_strategies.md): A decoding strategy informs how a model should select the next generated token. - [Generation features](https://huggingface.co/docs/transformers/main/generation_features.md): The generate() API supports a couple features for building applications on top of it. - [Prompt engineering](https://huggingface.co/docs/transformers/main/tasks/prompting.md): Prompt engineering or prompting, uses natural language to improve large language model (LLM) performance on a variety of tasks. - [Perplexity of fixed-length models](https://huggingface.co/docs/transformers/main/perplexity.md): Perplexity (PPL) is one of the most common metrics for evaluating language models. ### Optimization - [Overview](https://huggingface.co/docs/transformers/main/optimization_overview.md): Transformers provides multiple inference optimization techniques to make models fast, affordable, and accessible. - [Attention backends](https://huggingface.co/docs/transformers/main/attention_interface.md): All attention implementations perform the same computation. - [Experts backends](https://huggingface.co/docs/transformers/main/experts_interface.md): All Mixture-of-Experts (MoE) implementations perform the same high-level computation. - [Continuous batching](https://huggingface.co/docs/transformers/main/continuous_batching.md): Continuous batching maximizes GPU utilization by dynamically rescheduling the batch at every generation step. - [Continuous batching architecture](https://huggingface.co/docs/transformers/main/continuous_batching_architecture.md): Traditional batching processes a fixed group of requests together and waits for the slowest one to finish before starting the next group. - [Paged attention](https://huggingface.co/docs/transformers/main/paged_attention.md): This page documents the paged attention forward function used in continuous batching. - [torch.compile for inference](https://huggingface.co/docs/transformers/main/perf_torch_compile.md): torch.compile compiles PyTorch code into optimized kernels that significantly speed up inference. - [Exporters](https://huggingface.co/docs/transformers/main/exporters.md): Export any PreTrainedModel to ONNX, ExecuTorch, or a standalone PyTorch program, regardless of the target runtime. - [Quantizing exports](https://huggingface.co/docs/transformers/main/exporters_quantization.md): Every export config can take a `quantizer`, which quantizes the model during the export. - [Extending the exporters](https://huggingface.co/docs/transformers/main/exporters_extend.md): `torch.export` traces the model into a graph, later stages transform that graph, and a final stage lowers or emits it for the target runtime. - [Tensor parallelism for inference](https://huggingface.co/docs/transformers/main/perf_infer_gpu_multi.md): Tensor parallelism slices a model layer into pieces so multiple hardware accelerators work on it simultaneously. - [Expert parallelism](https://huggingface.co/docs/transformers/main/expert_parallelism.md): Expert parallelism is a parallelism strategy for mixture-of-experts (MoE) models. - [How caching works](https://huggingface.co/docs/transformers/main/cache_explanation.md): Imagine you're having a conversation with someone, and instead of remembering what they previously said, they have to start from scratch every time you respond. - [Cache strategies](https://huggingface.co/docs/transformers/main/kv_cache.md): The key-value (KV) vectors are used to calculate attention scores. - [Assisted decoding](https://huggingface.co/docs/transformers/main/assisted_decoding.md): Assisted decoding speeds up text generation by allowing a helper propose candidate tokens before the main model commits to them. - [Getting the most out of LLMs](https://huggingface.co/docs/transformers/main/llm_tutorial_optimization.md): Large Language Models (LLMs) such as GPT3/4, Falcon, and Llama are rapidly advancing in their ability to tackle human-centric tasks, establishing themselves as essential tools in modern… ### Optimization / Kernels for inference - [Overview](https://huggingface.co/docs/transformers/main/kernel_doc/overview.md): PyTorch operations are general-purpose. - [Loading kernels](https://huggingface.co/docs/transformers/main/kernel_doc/loading_kernels.md): A kernel works as a drop-in replacement for standard PyTorch operations. - [Writing kernels](https://huggingface.co/docs/transformers/main/kernel_doc/writing_kernels.md): This guide explains how to write kernels that go beyond a stateless `forward` replacement. ### Chat with models - [Chat basics](https://huggingface.co/docs/transformers/main/conversations.md): Chat models are conversational models you can send a message to and receive a response. - [Chat templates](https://huggingface.co/docs/transformers/main/chat_templating.md): The chat basics guide covers how to store chat histories and generate text from chat models using TextGenerationPipeline. - [Chat message patterns](https://huggingface.co/docs/transformers/main/chat_content_patterns.md): Chat models expect conversations as a list of dictionaries. - [Multimodal chat templates](https://huggingface.co/docs/transformers/main/chat_templating_multimodal.md): Multimodal chat models accept inputs like images, audio or video, in addition to text. - [Tool use](https://huggingface.co/docs/transformers/main/chat_extras.md): Chat models are commonly trained with support for "function-calling" or "tool-use". - [Writing a chat template](https://huggingface.co/docs/transformers/main/chat_templating_writing.md): A chat template is a Jinja template stored in the tokenizer's `~PreTrainedTokenizer.chat_template` attribute. - [Response parsing](https://huggingface.co/docs/transformers/main/chat_response_parsing.md): It is increasingly common for chat models to generate structured outputs, rather than just a single reply string. ### Serving - [Serve CLI](https://huggingface.co/docs/transformers/main/serve-cli/serving.md): The `transformers serve` CLI is a lightweight option for local or self-hosted servers. - [Server optimizations](https://huggingface.co/docs/transformers/main/serve-cli/serving_optims.md): `transformers serve` includes optimizations to improve throughput and reduce memory usage. - [Cursor](https://huggingface.co/docs/transformers/main/serve-cli/cursor.md): Cursor is an AI-powered code editor that offers models like Sonnet, Gemini, and GPT. - [Jan](https://huggingface.co/docs/transformers/main/serve-cli/jan.md): Jan is an open-source ChatGPT alternative. - [Open WebUI](https://huggingface.co/docs/transformers/main/serve-cli/openweb_ui.md): Open WebUI provides a self-hosted interface for offline models. - [tiny-agents](https://huggingface.co/docs/transformers/main/serve-cli/tiny_agents.md): tiny-agents offers a minimal pattern for building tool-using agents. ## Training - [Parameter-efficient fine-tuning](https://huggingface.co/docs/transformers/main/peft.md): Parameter-efficient fine-tuning (PEFT) methods only fine-tune a small number of extra model parameters (adapters) on top of a pretrained model. ### Get started - [Trainer overview](https://huggingface.co/docs/transformers/main/trainer.md): Trainer is a complete training and evaluation loop for Transformers models. - [Fine-tuning](https://huggingface.co/docs/transformers/main/training.md): Fine-tuning continues training a large pretrained model on a smaller dataset specific to a task or domain. ### Customization - [Subclassing Trainer methods](https://huggingface.co/docs/transformers/main/trainer_customize.md): Subclass Trainer methods to change training behavior without rewriting the entire loop. - [Callbacks](https://huggingface.co/docs/transformers/main/trainer_callbacks.md): TrainerCallback hooks into specific training events (epoch start, evaluation, training end) to modify training state or control flow. - [Data collators](https://huggingface.co/docs/transformers/main/data_collators.md): A data collator assembles individual dataset samples into a batch for the model. - [Optimizers and schedulers](https://huggingface.co/docs/transformers/main/optimizers.md): An optimizer updates model weights during training. - [Hyperparameter search](https://huggingface.co/docs/transformers/main/hpo_train.md): Hyperparameters like learning rate, batch size, and number of epochs significantly affect training results. - [Trainer features](https://huggingface.co/docs/transformers/main/trainer_recipes.md): Each recipe below demonstrates a specific Trainer feature: custom loss functions, memory-efficient evaluation, checkpointing strategies, and more. ### Performance / Memory optimization - [Gradient accumulation](https://huggingface.co/docs/transformers/main/grad_accumulation.md): Large batches produce large activations that exhaust GPU memory. - [Gradient checkpointing](https://huggingface.co/docs/transformers/main/grad_checkpointing.md): The forward pass typically caches all intermediate activations for the backward pass to reuse. - [GPU memory usage](https://huggingface.co/docs/transformers/main/model_memory_anatomy.md): Training a 4B parameter model in mixed precision on a batch size of 16 requires roughly 85GB of GPU memory. ### Performance / Speed optimization - [Mixed precision training](https://huggingface.co/docs/transformers/main/mixed_precision_training.md): Full precision (fp32) training stores and computes everything in 32 bits. - [torch.compile for training](https://huggingface.co/docs/transformers/main/torch_compile.md): torch.compile compiles PyTorch code to fused kernels to make it run faster. - [Kernels for training](https://huggingface.co/docs/transformers/main/kernels.md): Custom kernels target specific ops like matrix multiplications, attention, and normalization to run them faster. - [Padding-free training](https://huggingface.co/docs/transformers/main/padding_free.md): Padding-free training (also called packing) concatenates several samples into a single sequence instead of padding each one to a fixed length. ### Distributed training - [Accelerate](https://huggingface.co/docs/transformers/main/accelerate.md): Accelerate provides a unified interface for distributed training backends like FSDP or DeepSpeed. - [DDP](https://huggingface.co/docs/transformers/main/ddp.md): DistributedDataParallel (DDP) maintains a full copy of a model on each GPU. - [FSDP2](https://huggingface.co/docs/transformers/main/fsdp.md): Fully Sharded Data Parallel (FSDP2) shards the model, gradients, and optimizer states across GPUs. - [DeepSpeed ZeRO](https://huggingface.co/docs/transformers/main/deepspeed.md): DeepSpeed ZeRO (Zero Redundancy Optimizer) eliminates memory redundancy across distributed training by sharding optimizer states, gradients, and parameters across GPUs. - [Ulysses sequence parallelism](https://huggingface.co/docs/transformers/main/deepspeed_alst.md): Ulysses sequence parallelism (SP) trains on very long sequences by splitting them across multiple GPUs. - [Tensor parallelism for training](https://huggingface.co/docs/transformers/main/tensor_parallelism.md): Tensor parallelism (TP) splits weight matrices column-wise or row-wise across GPUs. - [Debugging](https://huggingface.co/docs/transformers/main/debugging.md): Debugging distributed training problems typically falls into one of these categories: numerical issues, communication failures, runtime errors, and build errors. - [Parallelism methods](https://huggingface.co/docs/transformers/main/perf_train_gpu_many.md): Multi-GPU setups are effective for accelerating training and fitting large models in memory that otherwise wouldn't fit on a single GPU. ## Hardware - [Overview](https://huggingface.co/docs/transformers/main/hardware.md): Transformers runs on CPUs, NVIDIA GPUs, AMD GPUs, Apple Silicon, Google TPUs, AWS Trainium instances, and more through their PyTorch backends. - [Google TPU](https://huggingface.co/docs/transformers/main/google_tpu.md): Google Cloud TPUs run PyTorch natively through the torch_tpu package, which registers the `tpu` device. - [AWS Trainium](https://huggingface.co/docs/transformers/main/aws_trainium.md): AWS Trainium instances run PyTorch natively through the `torch-neuronx` package, which registers the `neuron` device. - [Intel Gaudi](https://huggingface.co/docs/transformers/main/intel_gaudi.md): Intel Gaudi accelerators run PyTorch on the Intel Gaudi stack, with the device string `hpu`. - [AMD GPU](https://huggingface.co/docs/transformers/main/amd_gpu.md): AMD Instinct (MI200, MI300, MI350 series) and Radeon GPUs run PyTorch through ROCm, AMD's GPU software stack. - [NVIDIA GPU](https://huggingface.co/docs/transformers/main/nvidia_gpu.md): NVIDIA GPUs run PyTorch through CUDA, with the device string `cuda`. - [Apple Silicon](https://huggingface.co/docs/transformers/main/apple_silicon.md): Apple Silicon (M-series) chips run PyTorch through the Metal Performance Shaders (MPS) backend, with the device string `mps`. - [Intel GPU](https://huggingface.co/docs/transformers/main/intel_gpu.md): Intel GPUs run PyTorch through the XPU backend, with the device string `xpu`. - [CPU](https://huggingface.co/docs/transformers/main/cpu.md): CPUs run Transformers models with the device string `cpu`, without an accelerator. ## Quantization - [Overview](https://huggingface.co/docs/transformers/main/quantization/overview.md): Quantization stores a model's weights, and sometimes its activations, in fewer bits so the model needs less memory. - [Quantization concepts](https://huggingface.co/docs/transformers/main/quantization/concept_guide.md): A quantized number can only take one of a small set of values, 256 for int8 and 16 for int4, so every quantization method introduces rounding error. - [Choose a method](https://huggingface.co/docs/transformers/main/quantization/selecting.md): If your checkpoint is already quantized, the checkpoint decides the method. - [Optimum](https://huggingface.co/docs/transformers/main/quantization/optimum.md): Optimum is an optimization library that supports quantization for Intel, Furiosa, ONNX Runtime, GPTQ, and lower-level PyTorch quantization functions. - [Contribute a quantization method](https://huggingface.co/docs/transformers/main/quantization/contribute.md): Transformers supports many quantization methods such as QLoRA, GPTQ, LLM.int8, and AWQ. ### Common tasks - [Save and share a model](https://huggingface.co/docs/transformers/main/quantization/save.md): Saving a model after quantizing it while loading lets you, and anyone you share it with, skip the quantization step next time. - [Keep modules in full precision](https://huggingface.co/docs/transformers/main/quantization/skip_modules.md): Some modules lose more accuracy than others when quantized. - [Dequantize a model](https://huggingface.co/docs/transformers/main/quantization/dequantize.md): Dequantizing converts quantized weights back to a higher-precision dtype like bf16. - [Fine-tune a model](https://huggingface.co/docs/transformers/main/quantization/finetune.md): Quantized weights can't be updated by gradients directly, so you fine-tune a quantized model by training a small adapter on top of the frozen quantized weights. - [Compile a model](https://huggingface.co/docs/transformers/main/quantization/compile.md): Quantization saves memory, but dequantizing weights inside every matmul can make generation slower than in bf16. torch.compile fuses that work into optimized kernels and recovers much of the speed. ### Quantize while loading - [bitsandbytes](https://huggingface.co/docs/transformers/main/quantization/bitsandbytes.md): The bitsandbytes library provides quantization tools for LLMs through a lightweight Python wrapper around hardware accelerator functions. - [EETQ](https://huggingface.co/docs/transformers/main/quantization/eetq.md): Easy and Efficient Quantization for Transformers (EETQ) quantizes weights to int8 with one scale per output channel, and runs the matmul with int8 weights and 16-bit activations. - [FBGEMM FP8](https://huggingface.co/docs/transformers/main/quantization/fbgemm_fp8.md): FBGEMM (Facebook GEneral Matrix Multiplication) FP8 quantization stores weights in FP8 with one scale per output channel, and quantizes activations to FP8 with one scale per token at runtime (W8A8). - [Fine-grained FP8](https://huggingface.co/docs/transformers/main/quantization/finegrained_fp8.md): Fine-grained FP8 stores weights in FP8 (E4M3) with one scale per 2D block of weights, 128x128 by default, and quantizes activations to FP8 at runtime with one scale per token for each 128-value group… - [Four Over Six](https://huggingface.co/docs/transformers/main/quantization/fouroversix.md): Four Over Six is a variant of NVFP4 quantization that scales the largest value in each block of 16 FP4 values to either 4 or 6, picking whichever gives the lower quantization error. - [FP-Quant](https://huggingface.co/docs/transformers/main/quantization/fp_quant.md): FP-Quant quantizes weights and activations to the MXFP4 or NVFP4 formats, applying a rotation (a Hadamard transform by default) before quantizing, and runs the matmuls with QuTLASS kernels on NVIDIA… - [GPTQ](https://huggingface.co/docs/transformers/main/quantization/gptq.md): GPTQ quantizes a model one layer at a time and uses a small calibration dataset to update the remaining weights so they compensate for each layer's rounding error. - [HIGGS](https://huggingface.co/docs/transformers/main/quantization/higgs.md): HIGGS applies a Hadamard transform to each weight matrix and then rounds groups of weights to a grid that minimizes the mean squared error, without calibration data. - [HQQ](https://huggingface.co/docs/transformers/main/quantization/hqq.md): Half-Quadratic Quantization (HQQ) optimizes its quantization parameters from the weights alone, so it doesn't need calibration data. - [Metal](https://huggingface.co/docs/transformers/main/quantization/metal.md): Metal quantization packs weights into `uint32` tensors with an affine scale and bias for each group, and runs a fused dequantize and matmul kernel on the Apple silicon GPU. - [MXFP4](https://huggingface.co/docs/transformers/main/quantization/mxfp4.md): MXFP4 is the 4-bit floating-point format from the Open Compute Project Microscaling (MX) specification. - [NVFP4](https://huggingface.co/docs/transformers/main/quantization/nvfp4.md): NVFP4 is NVIDIA's 4-bit floating-point format. - [Quanto](https://huggingface.co/docs/transformers/main/quantization/quanto.md): Quanto is a PyTorch quantization library from Optimum. - [SINQ](https://huggingface.co/docs/transformers/main/quantization/sinq.md): Sinkhorn-Normalized Quantization (SINQ) balances the scale of each weight matrix's rows and columns before quantizing it, which reduces the error from outliers without calibration data. - [torchao](https://huggingface.co/docs/transformers/main/quantization/torchao.md): torchao is a PyTorch architecture optimization library with support for custom high performance data types, quantization, and sparsity. ### Load pre-quantized checkpoints - [AQLM](https://huggingface.co/docs/transformers/main/quantization/aqlm.md): Additive Quantization of Language Models (AQLM) quantizes multiple weights together and takes advantage of interdependencies between them. - [AutoRound](https://huggingface.co/docs/transformers/main/quantization/auto_round.md): AutoRound is an advanced quantization algorithm that delivers strong accuracy, even at 2-bit precision. - [AWQ](https://huggingface.co/docs/transformers/main/quantization/awq.md): Activation-aware Weight Quantization (AWQ) preserves a small fraction of the weights that are important for LLM performance to compress a model to 4-bits with minimal performance degradation. - [BitNet](https://huggingface.co/docs/transformers/main/quantization/bitnet.md): BitNet replaces traditional linear layers in Multi-Head Attention and feed-forward networks with specialized BitLinear layers. - [compressed-tensors](https://huggingface.co/docs/transformers/main/quantization/compressed_tensors.md): compressed-tensors extends safetensors files to compressed tensor data types to provide a unified checkpoint format for storing and loading various quantization formats such as dense, int-quantized… - [GGUF](https://huggingface.co/docs/transformers/main/quantization/gguf.md): GGUF is a single-file format used to store models for inference with GGML, containing the model metadata and tensors. - [Quark](https://huggingface.co/docs/transformers/main/quantization/quark.md): Quark is a deep learning quantization toolkit designed to be agnostic to specific data types, algorithms, and hardware. - [SpQR](https://huggingface.co/docs/transformers/main/quantization/spqr.md): The SpQR quantization algorithm involves a 16x16 tiled bi-level group 3-bit quantization structure with sparse outliers. - [VPTQ](https://huggingface.co/docs/transformers/main/quantization/vptq.md): Vector Post-Training Quantization (VPTQ) is a Post-Training Quantization (PTQ) method that leverages vector quantization to quantize LLMs at an extremely low bit-width (<2-bit). ## Ecosystem integrations ### Inference engines - [Building a compatible model backend for inference](https://huggingface.co/docs/transformers/main/community_integrations/transformers_as_backend.md): Transformers models are compatible with inference engines like vLLM and SGLang. - [SGLang](https://huggingface.co/docs/transformers/main/community_integrations/sglang.md): SGLang is a low-latency, high-throughput inference engine for large language models (LLMs). - [TensorRT-LLM](https://huggingface.co/docs/transformers/main/community_integrations/tensorrt-llm.md): TensorRT-LLM optimizes LLM inference on NVIDIA GPUs. - [vLLM](https://huggingface.co/docs/transformers/main/community_integrations/vllm.md): vLLM is a high-throughput inference engine for serving LLMs at scale. ### Local deployment - [Candle](https://huggingface.co/docs/transformers/main/community_integrations/candle.md): Candle is a machine learning framework providing native Rust implementations of Transformers models. - [ExecuTorch](https://huggingface.co/docs/transformers/main/community_integrations/executorch.md): ExecuTorch is a lightweight runtime for model inference on edge devices. - [LiteRT](https://huggingface.co/docs/transformers/main/community_integrations/litert.md): LiteRT (formerly TensorFlow Lite) is Google's runtime for on-device inference. - [llama.cpp](https://huggingface.co/docs/transformers/main/community_integrations/llama_cpp.md): llama.cpp is a C/C++ inference engine for deploying large language models locally. - [MLX](https://huggingface.co/docs/transformers/main/community_integrations/mlx.md): MLX is an array framework for machine learning on Apple silicon that also works with CUDA. ### Pretraining - [NeMo Automodel](https://huggingface.co/docs/transformers/main/community_integrations/nemo_automodel_pretraining.md): NeMo Automodel is an open-source PyTorch DTensor-native training library from NVIDIA. - [Nanotron](https://huggingface.co/docs/transformers/main/community_integrations/nanotron.md): Nanotron is a distributed training framework with tensor, parallel, and data parallelism (3D parallelism). - [torchtitan](https://huggingface.co/docs/transformers/main/community_integrations/torchtitan.md): torchtitan is PyTorch's distributed training framework for large language models. ### Fine-tuning - [NeMo Automodel](https://huggingface.co/docs/transformers/main/community_integrations/nemo_automodel_finetuning.md): NeMo Automodel is an open-source PyTorch DTensor-native training library from NVIDIA. - [Axolotl](https://huggingface.co/docs/transformers/main/community_integrations/axolotl.md): Axolotl is a fine-tuning and post-training framework for large language models. - [TRL](https://huggingface.co/docs/transformers/main/community_integrations/trl.md): TRL is a post-training framework for foundation models. - [Unsloth](https://huggingface.co/docs/transformers/main/community_integrations/unsloth.md): Unsloth is a fine-tuning and reinforcement framework that speeds up training and reduces memory usage for large language models. ## Resources - [Glossary](https://huggingface.co/docs/transformers/main/glossary.md): This glossary defines general machine learning and 🤗 Transformers terms to help you better understand the documentation. - [Philosophy](https://huggingface.co/docs/transformers/main/philosophy.md): Transformers is a PyTorch-first library. - [Models timeline](https://huggingface.co/docs/transformers/main/models_timeline.md): The model timeline places every model in Transformers on a timeline by the month it was added to the library. - [Notebooks with examples](https://huggingface.co/docs/transformers/main/notebooks.md): You can find here a list of the official notebooks provided by Hugging Face. - [Community resources](https://huggingface.co/docs/transformers/main/community.md): This page regroups resources around 🤗 Transformers developed by the community. - [Troubleshoot](https://huggingface.co/docs/transformers/main/troubleshooting.md): Sometimes errors occur, but we are here to help! ### Task recipes / Natural language processing - [Text classification](https://huggingface.co/docs/transformers/main/tasks/sequence_classification.md): Text classification is a common NLP task that assigns a label or class to text. - [Token classification](https://huggingface.co/docs/transformers/main/tasks/token_classification.md): Token classification assigns a label to individual tokens in a sentence. - [Question answering](https://huggingface.co/docs/transformers/main/tasks/question_answering.md): Question answering tasks return an answer given a question. - [Causal language modeling](https://huggingface.co/docs/transformers/main/tasks/language_modeling.md): There are two types of language modeling, causal and masked. - [Masked language modeling](https://huggingface.co/docs/transformers/main/tasks/masked_language_modeling.md): Masked language modeling predicts a masked token in a sequence, and the model can attend to tokens bidirectionally. - [Translation](https://huggingface.co/docs/transformers/main/tasks/translation.md): Translation converts a sequence of text from one language to another. - [Summarization](https://huggingface.co/docs/transformers/main/tasks/summarization.md): Summarization creates a shorter version of a document or an article that captures all the important information. - [Multiple choice](https://huggingface.co/docs/transformers/main/tasks/multiple_choice.md): A multiple choice task is similar to question answering, except several candidate answers are provided along with a context and the model is trained to select the correct answer. ### Task recipes / Audio - [Audio classification](https://huggingface.co/docs/transformers/main/tasks/audio_classification.md): Audio classification - just like with text - assigns a class label as output from the input data. - [Automatic speech recognition](https://huggingface.co/docs/transformers/main/tasks/asr.md): Automatic speech recognition (ASR) converts a speech signal to text, mapping a sequence of audio inputs to text outputs. - [Audio-text-to-text](https://huggingface.co/docs/transformers/main/tasks/audio_text_to_text.md): Audio-text-to-text models accept both audio and text as inputs and generate text as output. - [Text to speech](https://huggingface.co/docs/transformers/main/tasks/text-to-speech.md): Text-to-speech (TTS) is the task of creating natural-sounding speech from text, where the speech can be generated in multiple languages and for multiple speakers. ### Task recipes / Computer vision - [Image classification](https://huggingface.co/docs/transformers/main/tasks/image_classification.md): Image classification assigns a label or class to an image. - [Image segmentation](https://huggingface.co/docs/transformers/main/tasks/semantic_segmentation.md): Image segmentation models separate areas corresponding to different areas of interest in an image. - [Video classification](https://huggingface.co/docs/transformers/main/tasks/video_classification.md): Video classification is the task of assigning a label or class to an entire video. - [Object detection](https://huggingface.co/docs/transformers/main/tasks/object_detection.md): Object detection is the computer vision task of detecting instances (such as humans, buildings, or cars) in an image. - [Instance segmentation](https://huggingface.co/docs/transformers/main/tasks/instance_segmentation.md): Instance segmentation is the computer vision task of detecting objects in an image and segmenting each one at the pixel level. - [Zero-shot object detection](https://huggingface.co/docs/transformers/main/tasks/zero_shot_object_detection.md): Traditionally, models used for object detection require labeled image datasets for training, and are limited to detecting the set of classes from the training data. - [Zero-shot image classification](https://huggingface.co/docs/transformers/main/tasks/zero_shot_image_classification.md): Zero-shot image classification is a task that involves classifying images into different categories using a model that was not explicitly trained on data containing labeled examples from those… - [Depth estimation](https://huggingface.co/docs/transformers/main/tasks/monocular_depth_estimation.md): Monocular depth estimation is a computer vision task that involves predicting the depth information of a scene from a single image. - [Image feature extraction](https://huggingface.co/docs/transformers/main/tasks/image_feature_extraction.md): Image feature extraction is the task of extracting semantically meaningful features given an image. - [Mask generation](https://huggingface.co/docs/transformers/main/tasks/mask_generation.md): Mask generation is the task of generating semantically meaningful masks for an image. - [Keypoint detection](https://huggingface.co/docs/transformers/main/tasks/keypoint_detection.md): Keypoint detection identifies and locates specific points of interest within an image. - [Knowledge distillation for computer vision](https://huggingface.co/docs/transformers/main/tasks/knowledge_distillation_for_image_classification.md): Knowledge distillation is a technique used to transfer knowledge from a larger, more complex model (teacher) to a smaller, simpler model (student). - [Keypoint matching](https://huggingface.co/docs/transformers/main/tasks/keypoint_matching.md): Keypoint matching matches different points of interests that belong to same object appearing in two different images. - [Training vision models using Backbone API](https://huggingface.co/docs/transformers/main/tasks/training_vision_backbone.md): Computer vision workflows follow a common pattern. ### Task recipes / Multimodal - [Image captioning](https://huggingface.co/docs/transformers/main/tasks/image_captioning.md): Image captioning is the task of predicting a caption for a given image. - [Document question answering](https://huggingface.co/docs/transformers/main/tasks/document_question_answering.md): Document Question Answering, also referred to as Document Visual Question Answering, is a task that involves providing answers to questions posed about document images. - [Visual question answering](https://huggingface.co/docs/transformers/main/tasks/visual_question_answering.md): Visual Question Answering (VQA) is the task of answering open-ended questions based on an image. - [Image-text-to-text](https://huggingface.co/docs/transformers/main/tasks/image_text_to_text.md): Image-text-to-text models, also known as vision language models (VLMs), are language models that take an image input. - [Any-to-any](https://huggingface.co/docs/transformers/main/tasks/any_to_any.md): Multimodal (any-to-any) models are language models capable of processing diverse types of input data (e.g., text, images, audio, or video) and generating outputs in any of these modalities. - [Video-text-to-text](https://huggingface.co/docs/transformers/main/tasks/video_text_to_text.md): Video-text-to-text, also known as video language models are models that can process video and output text. - [Visual document retrieval](https://huggingface.co/docs/transformers/main/tasks/visual_document_retrieval.md): Documents can contain multimodal data if they include charts, tables, and visuals in addition to text. ## API ### Main classes - [Auto classes](https://huggingface.co/docs/transformers/main/model_doc/auto.md): In many cases, the architecture to use can be inferred from the name or path of the pretrained model provided to the `from_pretrained()` method. - [Backbones](https://huggingface.co/docs/transformers/main/main_classes/backbones.md): A backbone is a model used for feature extraction for higher level computer vision tasks such as object detection and image classification. - [Callbacks](https://huggingface.co/docs/transformers/main/main_classes/callback.md): Callbacks are objects that can customize the behavior of the training loop in the PyTorch Trainer that can inspect the training loop state (for progress reporting, logging on TensorBoard or other ML… - [Configuration](https://huggingface.co/docs/transformers/main/main_classes/configuration.md): The base class PreTrainedConfig implements the common methods for loading/saving a configuration either from a local file or directory, or from a pretrained model configuration provided by the… - [Continuous batching](https://huggingface.co/docs/transformers/main/main_classes/continuous_batching.md): This page documents the classes behind continuous batching inference: submitting prompts, configuring scheduling and memory limits, and retrieving results. - [Data collator](https://huggingface.co/docs/transformers/main/main_classes/data_collator.md): Data collators are objects that will form a batch by using a list of dataset elements as input. - [Logging](https://huggingface.co/docs/transformers/main/main_classes/logging.md): 🤗 Transformers has a centralized logging system, so that you can setup the verbosity of the library easily. - [Models](https://huggingface.co/docs/transformers/main/main_classes/model.md): The base class PreTrainedModel implements the common methods for loading/saving a model either from a local file or directory, or from a pretrained model configuration provided by the library… - [Text generation](https://huggingface.co/docs/transformers/main/main_classes/text_generation.md): Each framework has a generate method for text generation implemented in their respective `GenerationMixin` class: - [Optimization](https://huggingface.co/docs/transformers/main/main_classes/optimizer_schedules.md): The `.optimization` module provides: - [Model outputs](https://huggingface.co/docs/transformers/main/main_classes/output.md): All models have outputs that are instances of subclasses of ModelOutput. - [PEFT](https://huggingface.co/docs/transformers/main/main_classes/peft.md): The PeftAdapterMixin provides functions from the PEFT library for managing adapters with Transformers. - [Pipelines](https://huggingface.co/docs/transformers/main/main_classes/pipelines.md): The pipelines are a great and easy way to use models for inference. - [Processors](https://huggingface.co/docs/transformers/main/main_classes/processors.md): Any multi-modal model will require an object to encode or decode the data that groups several modalities (among text, vision and audio). - [Exporters](https://huggingface.co/docs/transformers/main/main_classes/exporters.md): New export backends can be added to Transformers by subclassing `HfExporter` and registering it with register_backend(). - [Quantization](https://huggingface.co/docs/transformers/main/main_classes/quantization.md): Quantization techniques reduce memory and computational costs by representing weights and activations with lower-precision data types like 8-bit integers (int8). - [Tokenizer](https://huggingface.co/docs/transformers/main/main_classes/tokenizer.md): A tokenizer is in charge of preparing the inputs for a model. - [Trainer](https://huggingface.co/docs/transformers/main/main_classes/trainer.md): The Trainer class provides an API for feature-complete training in PyTorch, and it supports distributed training on multiple GPUs/TPUs, mixed precision for NVIDIA GPUs, AMD GPUs, and `torch.amp` for… - [DeepSpeed](https://huggingface.co/docs/transformers/main/main_classes/deepspeed.md): DeepSpeed, powered by Zero Redundancy Optimizer (ZeRO), is an optimization library for training and fitting very large models onto a GPU. - [ExecuTorch](https://huggingface.co/docs/transformers/main/main_classes/executorch.md): `ExecuTorch` is an end-to-end solution for enabling on-device inference capabilities across mobile and edge devices including wearables, embedded devices and microcontrollers. - [Feature extractor](https://huggingface.co/docs/transformers/main/main_classes/feature_extractor.md): A feature extractor is in charge of preparing input features for audio models. - [Image processor](https://huggingface.co/docs/transformers/main/main_classes/image_processor.md): An image processor is in charge of loading images (optionally), preparing input features for vision models and post processing their outputs. - [Video processor](https://huggingface.co/docs/transformers/main/main_classes/video_processor.md): A Video Processor is a utility responsible for preparing input features for video models, as well as handling the post-processing of their outputs. - [Kernels](https://huggingface.co/docs/transformers/main/main_classes/kernels.md): This page documents the kernels configuration utilities. ### Models / Text models - [A.X-K1](https://huggingface.co/docs/transformers/main/model_doc/axk1.md): A.X-K1 is SK Telecom's Mixture-of-Experts large language model. - [A.X-K2](https://huggingface.co/docs/transformers/main/model_doc/axk2.md): A.X-K2 is SK Telecom's flagship large language model. - [AFMoE](https://huggingface.co/docs/transformers/main/model_doc/afmoe.md): AFMoE (Arcee Foundational Mixture of Experts) is a decoder-only transformer model that extends the Llama architecture with a sparse Mixture of Experts (MoE) approach. - [ALBERT](https://huggingface.co/docs/transformers/main/model_doc/albert.md): ALBERT is designed to address memory limitations of scaling and training of BERT. - [Apertus](https://huggingface.co/docs/transformers/main/model_doc/apertus.md): Apertus is a family of large language models from the Swiss AI Initiative. - [Arcee](https://huggingface.co/docs/transformers/main/model_doc/arcee.md): Arcee 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… - [Bamba](https://huggingface.co/docs/transformers/main/model_doc/bamba.md): Bamba is a 9B parameter decoder-only language model built on the Mamba-2 architecture. - [BART](https://huggingface.co/docs/transformers/main/model_doc/bart.md): BART is a sequence-to-sequence model that combines the pretraining objectives from BERT and GPT. - [BARThez](https://huggingface.co/docs/transformers/main/model_doc/barthez.md): BARThez is a BART model designed for French language tasks. - [BARTpho](https://huggingface.co/docs/transformers/main/model_doc/bartpho.md): BARTpho is a large-scale Vietnamese sequence-to-sequence model. - [Beam](https://huggingface.co/docs/transformers/main/model_doc/beam.md): Beam 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… - [BERT](https://huggingface.co/docs/transformers/main/model_doc/bert.md): BERT is a bidirectional transformer pretrained on unlabeled text to predict masked tokens in a sentence and to predict whether one sentence follows another. - [BertGeneration](https://huggingface.co/docs/transformers/main/model_doc/bert-generation.md): BertGeneration leverages pretrained BERT checkpoints for sequence-to-sequence tasks with the EncoderDecoderModel architecture. - [BertJapanese](https://huggingface.co/docs/transformers/main/model_doc/bert-japanese.md): The BERT models trained on Japanese text. - [BERTweet](https://huggingface.co/docs/transformers/main/model_doc/bertweet.md): BERTweet shares the same architecture as BERT-base, but it's pretrained like RoBERTa on English Tweets. - [BigBird](https://huggingface.co/docs/transformers/main/model_doc/big_bird.md): BigBird is a transformer model built to handle sequence lengths up to 4096 compared to 512 for BERT. - [BigBirdPegasus](https://huggingface.co/docs/transformers/main/model_doc/bigbird_pegasus.md): BigBirdPegasus is an encoder-decoder (sequence-to-sequence) transformer model for long-input summarization. - [BioGpt](https://huggingface.co/docs/transformers/main/model_doc/biogpt.md): BioGPT is a generative Transformer model based on GPT-2 and pretrained on 15 million PubMed abstracts. - [BitNet](https://huggingface.co/docs/transformers/main/model_doc/bitnet.md): Trained 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… - [Blenderbot](https://huggingface.co/docs/transformers/main/model_doc/blenderbot.md): The 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… - [Blenderbot Small](https://huggingface.co/docs/transformers/main/model_doc/blenderbot-small.md): Note that BlenderbotSmallModel and BlenderbotSmallForConditionalGeneration are only used in combination with the checkpoint facebook/blenderbot-90M. - [BLOOM](https://huggingface.co/docs/transformers/main/model_doc/bloom.md): The BLOOM model has been proposed with its various versions through the BigScience Workshop. - [BLT](https://huggingface.co/docs/transformers/main/model_doc/blt.md): 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… - [ByT5](https://huggingface.co/docs/transformers/main/model_doc/byt5.md): ByT5 is tokenizer-free version of the T5 model designed to works directly on raw UTF-8 bytes. - [CamemBERT](https://huggingface.co/docs/transformers/main/model_doc/camembert.md): CamemBERT 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. - [CANINE](https://huggingface.co/docs/transformers/main/model_doc/canine.md): CANINE is a tokenization-free Transformer. - [CodeGen](https://huggingface.co/docs/transformers/main/model_doc/codegen.md): The CodeGen model was proposed in A Conversational Paradigm for Program Synthesis by Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, and Caiming Xiong. - [CodeLlama](https://huggingface.co/docs/transformers/main/model_doc/code_llama.md): Code Llama is a specialized family of large language models based on Llama 2 for coding tasks. - [Cohere](https://huggingface.co/docs/transformers/main/model_doc/cohere.md): Cohere Command-R is a 35B parameter multilingual large language model designed for long context tasks like retrieval-augmented generation (RAG) and calling external APIs and tools. - [Cohere2](https://huggingface.co/docs/transformers/main/model_doc/cohere2.md): Cohere Command R7B is an open weights research release of a 7B billion parameter model. - [Cohere2Moe](https://huggingface.co/docs/transformers/main/model_doc/cohere2_moe.md): [Command A+] is a Mixture-of-Experts (MoE) language model from Cohere. - [ConvBERT](https://huggingface.co/docs/transformers/main/model_doc/convbert.md): The ConvBERT model was proposed in ConvBERT: Improving BERT with Span-based Dynamic Convolution by Zihang Jiang, Weihao Yu, Daquan Zhou, Yunpeng Chen, Jiashi Feng, Shuicheng Yan. - [CPM](https://huggingface.co/docs/transformers/main/model_doc/cpm.md): The CPM model was proposed in CPM: A Large-scale Generative Chinese Pre-trained Language Model by Zhengyan Zhang, Xu Han, Hao Zhou, Pei Ke, Yuxian Gu, Deming Ye, Yujia Qin, Yusheng Su, Haozhe Ji… - [CPMANT](https://huggingface.co/docs/transformers/main/model_doc/cpmant.md): CPMAnt is a 10B-parameter open-source Chinese pre-trained language model and the first milestone of the CPM-Live open training project. - [CTRL](https://huggingface.co/docs/transformers/main/model_doc/ctrl.md): CTRL model was proposed in CTRL: A Conditional Transformer Language Model for Controllable Generation by Nitish Shirish Keskar*, Bryan McCann*, Lav R. - [DBRX](https://huggingface.co/docs/transformers/main/model_doc/dbrx.md): DBRX is a transformer-based decoder-only large language model (LLM) that was trained using next-token prediction. - [DeBERTa](https://huggingface.co/docs/transformers/main/model_doc/deberta.md): DeBERTa improves the pretraining efficiency of BERT and RoBERTa with two key ideas, disentangled attention and an enhanced mask decoder. - [DeBERTa-v2](https://huggingface.co/docs/transformers/main/model_doc/deberta-v2.md): DeBERTa-v2 improves on the original DeBERTa architecture by using a SentencePiece-based tokenizer and a new vocabulary size of 128K. - [DeepSeek-OCR-2](https://huggingface.co/docs/transformers/main/model_doc/deepseek_ocr2.md): The DeepSeek-OCR-2 model was proposed in Visual Causal Flow: A Novel Approach to OCR-Specialized Vision-Language Models by the DeepSeek team. - [DeepSeek-V2](https://huggingface.co/docs/transformers/main/model_doc/deepseek_v2.md): The DeepSeek-V2 model was proposed in DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model by DeepSeek-AI Team. - [DeepSeek-V3](https://huggingface.co/docs/transformers/main/model_doc/deepseek_v3.md): The DeepSeek-V3 model was proposed in DeepSeek-V3 Technical Report by DeepSeek-AI Team. - [DeepSeek-V3.2](https://huggingface.co/docs/transformers/main/model_doc/deepseek_v32.md): DeepSeek-V3.2-Exp is an experimental release from DeepSeek-AI that introduces DeepSeek Sparse Attention (DSA), a trainable, fine-grained sparse attention mechanism designed to improve training and… - [DeepSeek-V4](https://huggingface.co/docs/transformers/main/model_doc/deepseek_v4.md): DeepSeek-V4 is the next-generation MoE language model from DeepSeek (paper). - [DiffLlama](https://huggingface.co/docs/transformers/main/model_doc/diffllama.md): The DiffLlama model was proposed in Differential Transformer by Kazuma Matsumoto and . - [DistilBERT](https://huggingface.co/docs/transformers/main/model_doc/distilbert.md): DistilBERT is pretrained by knowledge distillation to create a smaller model with faster inference and requires less compute to train. - [Doge](https://huggingface.co/docs/transformers/main/model_doc/doge.md): Doge is a series of small language models based on the Doge architecture, aiming to combine the advantages of state-space and self-attention algorithms, calculate dynamic masks from cached value… - [Dory](https://huggingface.co/docs/transformers/main/model_doc/dory.md): Dory is a looped (latent-recurrent) language model from NVIDIA. - [dots1](https://huggingface.co/docs/transformers/main/model_doc/dots1.md): dots.llm1 is a 142B-parameter mixture-of-experts model that activates 14B parameters per token, using top-6-of-128 routed experts plus 2 shared experts. - [DPR](https://huggingface.co/docs/transformers/main/model_doc/dpr.md): Dense Passage Retrieval (DPR) is a set of tools and models for state-of-the-art open-domain Q&A research. - [ELECTRA](https://huggingface.co/docs/transformers/main/model_doc/electra.md): ELECTRA modifies the pretraining objective of traditional masked language models like BERT. - [Encoder Decoder Models](https://huggingface.co/docs/transformers/main/model_doc/encoder-decoder.md): `EncoderDecoderModel` initializes a sequence-to-sequence model with any pretrained autoencoder and pretrained autoregressive model. - [Ergo](https://huggingface.co/docs/transformers/main/model_doc/ergo.md): Ergo is a Mixture of Experts (MoE) language model developed by Amazon FMR. - [ERNIE](https://huggingface.co/docs/transformers/main/model_doc/ernie.md): ERNIE1.0, ERNIE2.0, ERNIE3.0, ERNIE-Gram, ERNIE-health are a series of powerful models proposed by baidu, especially in Chinese tasks. - [Ernie4_5](https://huggingface.co/docs/transformers/main/model_doc/ernie4_5.md): The Ernie 4.5 model was released in the Ernie 4.5 Model Family release by baidu. - [Ernie4_5_MoE](https://huggingface.co/docs/transformers/main/model_doc/ernie4_5_moe.md): The Ernie 4.5 Moe model was released in the Ernie 4.5 Model Family release by baidu. - [ESM](https://huggingface.co/docs/transformers/main/model_doc/esm.md): This page provides code and pre-trained weights for Transformer protein language models from Meta AI's Fundamental AI Research Team, providing the state-of-the-art ESMFold and ESM-2, and the… - [ESMC](https://huggingface.co/docs/transformers/main/model_doc/esmc.md): ESMC (ESM Cambrian) is a family of protein language models released by BioHub. - [ESMFold2](https://huggingface.co/docs/transformers/main/model_doc/esmfold2.md): ESMFold2 is an all-atom protein structure prediction model. - [EuroBERT](https://huggingface.co/docs/transformers/main/model_doc/eurobert.md): EuroBERT is a multilingual encoder model based on a refreshed transformer architecture, akin to Llama but with bidirectional attention. - [EXAONE](https://huggingface.co/docs/transformers/main/model_doc/exaone.md): EXAONE covers the EXAONE 3.0, EXAONE 3.5 and EXAONE Deep language models developed by LG AI Research. - [EXAONE-4.0](https://huggingface.co/docs/transformers/main/model_doc/exaone4.md): EXAONE 4.0 model is the language model, which integrates a Non-reasoning mode and Reasoning mode to achieve both the excellent usability of EXAONE 3.5 and the advanced reasoning abilities of EXAONE… - [EXAONE-4.5](https://huggingface.co/docs/transformers/main/model_doc/exaone4_5.md): EXAONE 4.5 model is the first open-weight vision language model developed by LG AI Research. - [EXAONE-MoE](https://huggingface.co/docs/transformers/main/model_doc/exaone_moe.md): K-EXAONE model is a large-scale multilingual language model developed by LG AI Research. - [Falcon](https://huggingface.co/docs/transformers/main/model_doc/falcon.md): Falcon is a family of large language models, available in 7B, 40B, and 180B parameters, as pretrained and instruction tuned variants. - [Falcon3](https://huggingface.co/docs/transformers/main/model_doc/falcon3.md): Falcon3 represents a natural evolution from previous releases, emphasizing expanding the models' science, math, and code capabilities. - [FalconH1](https://huggingface.co/docs/transformers/main/model_doc/falcon_h1.md): The FalconH1 model was developed by the TII Pretraining team. - [FalconMamba](https://huggingface.co/docs/transformers/main/model_doc/falcon_mamba.md): FalconMamba is a 7B large language model, available as pretrained and instruction-tuned variants, based on the Mamba. - [FLAN-T5](https://huggingface.co/docs/transformers/main/model_doc/flan-t5.md): FLAN-T5 was released in the paper Scaling Instruction-Finetuned Language Models - it is an enhanced version of T5 that has been finetuned in a mixture of tasks. - [FLAN-UL2](https://huggingface.co/docs/transformers/main/model_doc/flan-ul2.md): Flan-UL2 is an encoder decoder model based on the T5 architecture. - [FlauBERT](https://huggingface.co/docs/transformers/main/model_doc/flaubert.md): The FlauBERT model was proposed in the paper FlauBERT: Unsupervised Language Model Pre-training for French by Hang Le et al. - [FlexOlmo](https://huggingface.co/docs/transformers/main/model_doc/flex_olmo.md): FlexOlmo is a new class of language models (LMs) that supports (1) distributed training without data sharing, where different model parameters are independently trained on closed datasets, and (2)… - [Flint](https://huggingface.co/docs/transformers/main/model_doc/flint.md): Flint is Recursive's mixture-of-experts language model. - [FNet](https://huggingface.co/docs/transformers/main/model_doc/fnet.md): The FNet model was proposed in FNet: Mixing Tokens with Fourier Transforms by James Lee-Thorp, Joshua Ainslie, Ilya Eckstein, Santiago Ontanon. - [FSMT](https://huggingface.co/docs/transformers/main/model_doc/fsmt.md): FSMT (FairSeq MachineTranslation) models were introduced in Facebook FAIR's WMT19 News Translation Task Submission by Nathan Ng, Kyra Yee, Alexei Baevski, Myle Ott, Michael Auli, Sergey Edunov. - [Fun-ASR-Nano](https://huggingface.co/docs/transformers/main/model_doc/fun_asr_nano.md): Fun-ASR-Nano is an 800M-parameter end-to-end speech recognition model developed by Alibaba DAMO Academy's FunAudioLLM team. - [Funnel Transformer](https://huggingface.co/docs/transformers/main/model_doc/funnel.md): The Funnel Transformer model was proposed in the paper Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processing. - [Fuyu](https://huggingface.co/docs/transformers/main/model_doc/fuyu.md): The Fuyu model was created by ADEPT, and authored by Rohan Bavishi, Erich Elsen, Curtis Hawthorne, Maxwell Nye, Augustus Odena, Arushi Somani, Sağnak Taşırlar. - [Gemma](https://huggingface.co/docs/transformers/main/model_doc/gemma.md): Gemma is a family of lightweight language models with pretrained and instruction-tuned variants, available in 2B and 7B parameters. - [Gemma2](https://huggingface.co/docs/transformers/main/model_doc/gemma2.md): Gemma 2 is a family of language models with pretrained and instruction-tuned variants, available in 2B, 9B, 27B parameters. - [GLM-4](https://huggingface.co/docs/transformers/main/model_doc/glm.md): The GLM Model was proposed in ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools by GLM Team, THUDM & ZhipuAI. - [GLM-4-0414](https://huggingface.co/docs/transformers/main/model_doc/glm4.md): The GLM family welcomes new members GLM-4-0414 series models. - [GLM-4.5, GLM-4.6, GLM-4.7](https://huggingface.co/docs/transformers/main/model_doc/glm4_moe.md): GLM-4.7, GLM-4.6 and GLM-4.5 language model use this class. - [GLM-4.7-Flash](https://huggingface.co/docs/transformers/main/model_doc/glm4_moe_lite.md): Glm4MoeLite (GLM-4.7-Flash) is a 30B-parameter mixture-of-experts model with approximately 3B active parameters per token, designed for lightweight deployment that balances performance and efficiency. - [GLM-5, GLM-5.1, GLM-5.2, GLM-5.3](https://huggingface.co/docs/transformers/main/model_doc/glm_moe_dsa.md): GLM-5, GLM-5.1, GLM-5.2 and GLM-5.3 language model use this class. - [GLM-Image](https://huggingface.co/docs/transformers/main/model_doc/glm_image.md): GLM-Image is an image generation model that adopts a hybrid autoregressive + diffusion decoder architecture, effectively pushing the upper bound of visual fidelity and fine-grained details. - [GPT](https://huggingface.co/docs/transformers/main/model_doc/openai-gpt.md): GPT (Generative Pre-trained Transformer) (blog post) focuses on effectively learning text representations and transferring them to tasks. - [GPT Neo](https://huggingface.co/docs/transformers/main/model_doc/gpt_neo.md): GPT-Neo is an open-source alternative to GPT-2 and GPT-3 models, built with Mesh TensorFlow for TPUs. - [GPT NeoX](https://huggingface.co/docs/transformers/main/model_doc/gpt_neox.md): We introduce GPT-NeoX-20B, a 20 billion parameter autoregressive language model trained on the Pile, whose weights will be made freely and openly available to the public through a permissive license. - [GPT NeoX Japanese](https://huggingface.co/docs/transformers/main/model_doc/gpt_neox_japanese.md): GPT-NeoX-Japanese, a Japanese language model based on GPT-NeoX. - [GPT-J](https://huggingface.co/docs/transformers/main/model_doc/gptj.md): The GPT-J model was released in the kingoflolz/mesh-transformer-jax repository by Ben Wang and Aran Komatsuzaki. - [GPT2](https://huggingface.co/docs/transformers/main/model_doc/gpt2.md): GPT-2 is a scaled up version of GPT, a causal transformer language model, with 10x more parameters and training data. - [GPTBigCode](https://huggingface.co/docs/transformers/main/model_doc/gpt_bigcode.md): The GPTBigCode model was proposed in SantaCoder: don't reach for the stars! by BigCode. - [GptOss](https://huggingface.co/docs/transformers/main/model_doc/gpt_oss.md): GptOss is a sparse mixture-of-experts (MoE) language model from OpenAI that routes each token to 4 of 128 experts. - [GPTSw3](https://huggingface.co/docs/transformers/main/model_doc/gpt-sw3.md): The GPT-Sw3 model was first proposed in Lessons Learned from GPT-SW3: Building the First Large-Scale Generative Language Model for Swedish by Ariel Ekgren, Amaru Cuba Gyllensten, Evangelia Gogoulou… - [Granite](https://huggingface.co/docs/transformers/main/model_doc/granite.md): Granite is a 3B parameter language model trained with the Power scheduler. - [GraniteMoe](https://huggingface.co/docs/transformers/main/model_doc/granitemoe.md): The GraniteMoe model was proposed in Power Scheduler: A Batch Size and Token Number Agnostic Learning Rate Scheduler by Yikang Shen, Matthew Stallone, Mayank Mishra, Gaoyuan Zhang, Shawn Tan, Aditya… - [GraniteMoeHybrid](https://huggingface.co/docs/transformers/main/model_doc/granitemoehybrid.md): The GraniteMoeHybrid model builds on top of GraniteMoeSharedModel and Bamba. - [GraniteMoeShared](https://huggingface.co/docs/transformers/main/model_doc/granitemoeshared.md): The GraniteMoe model was proposed in Power Scheduler: A Batch Size and Token Number Agnostic Learning Rate Scheduler by Yikang Shen, Matthew Stallone, Mayank Mishra, Gaoyuan Zhang, Shawn Tan, Aditya… - [GraniteMoeSWA](https://huggingface.co/docs/transformers/main/model_doc/granitemoe_swa.md): GraniteMoeSWA combines the mixture-of-experts (MoE) architecture of GraniteMoeShared with the sliding-window attention and learnable attention sinks of GraniteSWA: - [GraniteSWA](https://huggingface.co/docs/transformers/main/model_doc/granite_swa.md): GraniteSWA is a Granite variant that adds two changes for more memory-efficient long-context inference: - [GTE](https://huggingface.co/docs/transformers/main/model_doc/gte.md): GTE was proposed in mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval by Xin Zhang, Yanzhao Zhang, Dingkun Long, Wen Xie, Ziqi Dai, Jialong Tang… - [Helium](https://huggingface.co/docs/transformers/main/model_doc/helium.md): Helium was proposed in Announcing Helium-1 Preview by the Kyutai Team. - [HerBERT](https://huggingface.co/docs/transformers/main/model_doc/herbert.md): The HerBERT model was proposed in KLEJ: Comprehensive Benchmark for Polish Language Understanding by Piotr Rybak, Robert Mroczkowski, Janusz Tracz, and Ireneusz Gawlik. - [HRM-Text](https://huggingface.co/docs/transformers/main/model_doc/hrm_text.md): HRM-Text is the improved autoregressive language-modeling variant of the Hierarchical Reasoning Model (HRM, Hierarchical Reasoning Model) by the Sapient AI team. - [HunYuanDenseV1](https://huggingface.co/docs/transformers/main/model_doc/hunyuan_v1_dense.md): HunYuanDenseV1 is Tencent's dense language model series, available in sizes from 0.5B to 7B parameters. - [HunYuanMoEV1](https://huggingface.co/docs/transformers/main/model_doc/hunyuan_v1_moe.md): HunYuanMoEV1 is Tencent's mixture-of-experts language model with 80B total parameters and 13B active parameters per token. - [HunYuanVL](https://huggingface.co/docs/transformers/main/model_doc/hunyuan_vl.md): HunYuanVL is a vision-language model for image-text understanding and generation proposed in HunyuanOCR Technical Report . - [HyperCLOVAX](https://huggingface.co/docs/transformers/main/model_doc/hyperclovax.md): HyperCLOVA X SEED Think is NAVER Cloud's language model combining pruning and knowledge distillation with advanced reasoning capabilities. - [HYV3](https://huggingface.co/docs/transformers/main/model_doc/hy_v3.md): Hy3-preview is a large-scale Mixture-of-Experts (MoE) language model developed by the Tencent HunYuan team. - [HYV4](https://huggingface.co/docs/transformers/main/model_doc/hy_v4.md): Hy4-Preview is a 780B-parameter mixture-of-experts language model that activates 49B parameters per token. - [HYV4VL](https://huggingface.co/docs/transformers/main/model_doc/hy_v4_vl.md): HYV4VL combines the HYV4 mixture-of-experts text backbone with a vision encoder for image-text and video-text generation. - [I-BERT](https://huggingface.co/docs/transformers/main/model_doc/ibert.md): The I-BERT model was proposed in I-BERT: Integer-only BERT Quantization by Sehoon Kim, Amir Gholami, Zhewei Yao, Michael W. - [InternLM3](https://huggingface.co/docs/transformers/main/model_doc/internlm3.md): InternLM3 is an 8B instruction-tuned language model developed by Shanghai AI Laboratory. - [IQuestCoder](https://huggingface.co/docs/transformers/main/model_doc/iquestcoder.md): IQuest-Coder-V1 is a family of code language models developed by IQuest Lab, available in 7B, 14B and 40B sizes with base, instruct and thinking variants. - [Jais2](https://huggingface.co/docs/transformers/main/model_doc/jais2.md): Jais2 a next-generation Arabic open-weight LLM trained on the richest Arabic-first dataset to date. - [Jamba](https://huggingface.co/docs/transformers/main/model_doc/jamba.md): Jamba is a hybrid Transformer-Mamba mixture-of-experts (MoE) language model ranging from 52B to 398B total parameters. - [JetMoe](https://huggingface.co/docs/transformers/main/model_doc/jetmoe.md): JetMoe-8B is an 8B Mixture-of-Experts (MoE) language model developed by Yikang Shen and MyShell. - [JEV](https://huggingface.co/docs/transformers/main/model_doc/jev.md): JEV is a decision head that scores single-token labels with a linear layer at the last token of the prompt, soft-capped like the logits of a language model head. - [jina_embeddings_v3](https://huggingface.co/docs/transformers/main/model_doc/jina_embeddings_v3.md): The Jina-Embeddings-v3 is a multilingual, multi-task text embedding model designed for a variety of NLP applications. - [KimiLinear](https://huggingface.co/docs/transformers/main/model_doc/kimi_linear.md): Kimi Linear is a hybrid linear attention architecture from Moonshot AI, introduced in Kimi Linear: An Expressive, Efficient Attention Architecture. - [Kolibri1](https://huggingface.co/docs/transformers/main/model_doc/kolibri1.md): Kolibri 1 is Aleph Alpha's mixture-of-experts reasoning model with a focus on German and English. - [Kolibri1_1](https://huggingface.co/docs/transformers/main/model_doc/kolibri1_1.md): Kolibri 1.1 is Aleph Alpha's successor to Kolibri 1. - [Laguna](https://huggingface.co/docs/transformers/main/model_doc/laguna.md): Laguna is Poolside's mixture-of-experts language model family. - [Lara Mini](https://huggingface.co/docs/transformers/main/model_doc/lara_mini.md): Lara Mini is a multilingual base language model by Translated with 7.2B total and 0.6B active parameters per token. - [LED](https://huggingface.co/docs/transformers/main/model_doc/led.md): Longformer-Encoder-Decoder (LED) is an encoder-decoder transformer model for sequence-to-sequence tasks like summarization. - [LFM2](https://huggingface.co/docs/transformers/main/model_doc/lfm2.md): LFM2 represents a new generation of Liquid Foundation Models developed by Liquid AI, specifically designed for edge AI and on-device deployment. - [LFM2Moe](https://huggingface.co/docs/transformers/main/model_doc/lfm2_moe.md): LFM2-MoE is a Mixture-of-Experts (MoE) variant of LFM2. - [LFM3](https://huggingface.co/docs/transformers/main/model_doc/lfm3.md): LFM3 is the third generation of Liquid Foundation Models by Liquid AI. - [Ling 3](https://huggingface.co/docs/transformers/main/model_doc/bailing_hybrid.md): Ling 3 Flash is a family of hybrid Mixture-of-Experts language models from InclusionAI. - [LLaMA](https://huggingface.co/docs/transformers/main/model_doc/llama.md): Llama is a family of large language models ranging from 7B to 65B parameters. - [Llama2](https://huggingface.co/docs/transformers/main/model_doc/llama2.md): Llama 2 is a family of large language models, Llama 2 and Llama 2-Chat, available in 7B, 13B, and 70B parameters. - [Llama3](https://huggingface.co/docs/transformers/main/model_doc/llama3.md): The Llama3 model was proposed in Introducing Meta Llama 3: The most capable openly available LLM to date by the meta AI team. - [LongCatFlash](https://huggingface.co/docs/transformers/main/model_doc/longcat_flash.md): The LongCatFlash model was proposed in LongCat-Flash Technical Report by the Meituan LongCat Team. - [Longformer](https://huggingface.co/docs/transformers/main/model_doc/longformer.md): Longformer is a transformer model designed for processing long documents. - [LongT5](https://huggingface.co/docs/transformers/main/model_doc/longt5.md): The LongT5 model was proposed in LongT5: Efficient Text-To-Text Transformer for Long Sequences by Mandy Guo, Joshua Ainslie, David Uthus, Santiago Ontanon, Jianmo Ni, Yun-Hsuan Sung and Yinfei Yang. - [LUKE](https://huggingface.co/docs/transformers/main/model_doc/luke.md): The LUKE model was proposed in LUKE: Deep Contextualized Entity Representations with Entity-aware Self-attention by Ikuya Yamada, Akari Asai, Hiroyuki Shindo, Hideaki Takeda and Yuji Matsumoto. - [M2M100](https://huggingface.co/docs/transformers/main/model_doc/m2m_100.md): The M2M100 model was proposed in Beyond English-Centric Multilingual Machine Translation by Angela Fan, Shruti Bhosale, Holger Schwenk, Zhiyi Ma, Ahmed El-Kishky, Siddharth Goyal, Mandeep Baines… - [MADLAD-400](https://huggingface.co/docs/transformers/main/model_doc/madlad-400.md): MADLAD-400 models were released in the paper MADLAD-400: A Multilingual And Document-Level Large Audited Dataset. - [Mamba](https://huggingface.co/docs/transformers/main/model_doc/mamba.md): Mamba is a selective structured state space model (SSMs) designed to work around Transformers computational inefficiency when dealing with long sequences. - [Mamba2](https://huggingface.co/docs/transformers/main/model_doc/mamba2.md): Mamba 2 is based on the state space duality (SSD) framework which connects structured state space models (SSMs) and attention variants. - [MarianMT](https://huggingface.co/docs/transformers/main/model_doc/marian.md): MarianMT is a machine translation model trained with the Marian framework which is written in pure C++. - [MarkupLM](https://huggingface.co/docs/transformers/main/model_doc/markuplm.md): The MarkupLM model was proposed in MarkupLM: Pre-training of Text and Markup Language for Visually-rich Document Understanding by Junlong Li, Yiheng Xu, Lei Cui, Furu Wei. - [MBart and MBart-50](https://huggingface.co/docs/transformers/main/model_doc/mbart.md): mBART is a multilingual machine translation model that pretrains the entire translation model (encoder-decoder) unlike previous methods that only focused on parts of the model. - [MegatronBERT](https://huggingface.co/docs/transformers/main/model_doc/megatron-bert.md): The MegatronBERT model was proposed in Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism by Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared… - [Mellum](https://huggingface.co/docs/transformers/main/model_doc/mellum.md): Mellum is a code-focused Mixture-of-Experts language model developed by JetBrains. - [MiMo-V2-Flash](https://huggingface.co/docs/transformers/main/model_doc/mimo_v2_flash.md): MiMo-V2-Flash is a Mixture-of-Experts (MoE) language model developed by the Xiaomi MiMo team. - [MiniCPM3](https://huggingface.co/docs/transformers/main/model_doc/minicpm3.md): MiniCPM3 is the third-generation MiniCPM dense language model from OpenBMB. - [MiniCPM5-15B-A2.5B](https://huggingface.co/docs/transformers/main/model_doc/minicpm5_moe.md): MiniCPM5-15B-A2.5B is a decoder-only language model with 15 billion parameters and 2.5 billion active parameters per token. - [MiniMax](https://huggingface.co/docs/transformers/main/model_doc/minimax.md): The MiniMax-Text-01 model was proposed in MiniMax-01: Scaling Foundation Models with Lightning Attention by MiniMax, Aonian Li, Bangwei Gong, Bo Yang, Boji Shan, Chang Liu, Cheng Zhu, Chunhao Zhang… - [MiniMax-M2](https://huggingface.co/docs/transformers/main/model_doc/minimax_m2.md): MiniMax-M2 is a compact, fast, and cost-effective MoE model (230 billion total parameters with 10 billion active parameters) built for elite performance in coding and agentic tasks, all while… - [MiniMax-M3-VL](https://huggingface.co/docs/transformers/main/model_doc/minimax_m3_vl.md): MiniMax-M3-VL is the vision-language member of the MiniMax-M3 family. - [Ministral](https://huggingface.co/docs/transformers/main/model_doc/ministral.md): Ministral is a 8B parameter language model that extends the Mistral architecture with alternating attention pattern. - [Ministral3](https://huggingface.co/docs/transformers/main/model_doc/ministral3.md): A balanced model in the Ministral 3 family, Ministral 3 8B is a powerful, efficient tiny language model with vision capabilities. - [Mistral](https://huggingface.co/docs/transformers/main/model_doc/mistral.md): Mistral is a 7B parameter language model, available as a pretrained and instruction-tuned variant, focused on balancing the scaling costs of large models with performance and efficient inference. - [Mixtral](https://huggingface.co/docs/transformers/main/model_doc/mixtral.md): Mixtral-8x7B was introduced in the Mixtral of Experts blogpost by Albert Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand… - [mLUKE](https://huggingface.co/docs/transformers/main/model_doc/mluke.md): The mLUKE model was proposed in mLUKE: The Power of Entity Representations in Multilingual Pretrained Language Models by Ryokan Ri, Ikuya Yamada, and Yoshimasa Tsuruoka. - [MobileBERT](https://huggingface.co/docs/transformers/main/model_doc/mobilebert.md): MobileBERT is a lightweight and efficient variant of BERT, specifically designed for resource-limited devices such as mobile phones. - [ModernBert](https://huggingface.co/docs/transformers/main/model_doc/modernbert.md): ModernBERT is a modernized version of `BERT` trained on 2T tokens. - [ModernBERTDecoder](https://huggingface.co/docs/transformers/main/model_doc/modernbert-decoder.md): ModernBERT Decoder has the same architecture as ModernBERT but it is trained from scratch with a causal language modeling objective from the Ettin paper. - [ModernVBert](https://huggingface.co/docs/transformers/main/model_doc/modernvbert.md): ModernVBert is a Vision-Language encoder that combines ModernBert with a SigLIP vision encoder. - [MPNet](https://huggingface.co/docs/transformers/main/model_doc/mpnet.md): The MPNet model was proposed in MPNet: Masked and Permuted Pre-training for Language Understanding by Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, Tie-Yan Liu. - [MPT](https://huggingface.co/docs/transformers/main/model_doc/mpt.md): The MPT model was proposed by the MosaicML team and released with multiple sizes and finetuned variants. - [MRA](https://huggingface.co/docs/transformers/main/model_doc/mra.md): The MRA model was proposed in Multi Resolution Analysis (MRA) for Approximate Self-Attention by Zhanpeng Zeng, Sourav Pal, Jeffery Kline, Glenn M Fung, and Vikas Singh. - [MT5](https://huggingface.co/docs/transformers/main/model_doc/mt5.md): mT5 is a multilingual variant of T5, trained on 101 languages. - [Muse Spark Open](https://huggingface.co/docs/transformers/main/model_doc/muse_spark.md): Muse Spark Open is a multimodal mixture-of-experts (MoE) model developed by Meta that accepts text, images, audio, and video as input and generates text. - [MuseGlimmer](https://huggingface.co/docs/transformers/main/model_doc/muse_glimmer.md): MuseGlimmer is a 30B multimodal model from Meta Superintelligence Lab, built for agents that run locally on consumer hardware. - [MuseGlimmerAssistant](https://huggingface.co/docs/transformers/main/model_doc/muse_glimmer_assistant.md): MuseGlimmerAssistant is the DFlash drafter for MuseGlimmer. - [MVP](https://huggingface.co/docs/transformers/main/model_doc/mvp.md): The MVP model was proposed in MVP: Multi-task Supervised Pre-training for Natural Language Generation by Tianyi Tang, Junyi Li, Wayne Xin Zhao and Ji-Rong Wen. - [myt5](https://huggingface.co/docs/transformers/main/model_doc/myt5.md): The myt5 model was proposed in MYTE: Morphology-Driven Byte Encoding for Better and Fairer Multilingual Language Modeling by Tomasz Limisiewicz, Terra Blevins, Hila Gonen, Orevaoghene Ahia, and Luke… - [NanoChat](https://huggingface.co/docs/transformers/main/model_doc/nanochat.md): NanoChat is a compact decoder-only transformer model designed for educational purposes and efficient training. - [Nemotron](https://huggingface.co/docs/transformers/main/model_doc/nemotron.md): Minitron is released under the NVIDIA Open Model License Agreement. - [NemotronH](https://huggingface.co/docs/transformers/main/model_doc/nemotron_h.md): NemotronH is a hybrid architecture combining attention and state-space layers for efficient long-context language modeling. - [NemotronH Omni](https://huggingface.co/docs/transformers/main/model_doc/nemotron_h_omni.md): NemotronH Omni is a multimodal reasoning model from NVIDIA that pairs the NemotronH hybrid Mamba-Transformer language model with a RADIO vision encoder and an optional Parakeet-based sound encoder. - [NLLB](https://huggingface.co/docs/transformers/main/model_doc/nllb.md): NLLB: No Language Left Behind is a multilingual translation model. - [NLLB-MoE](https://huggingface.co/docs/transformers/main/model_doc/nllb-moe.md): The NLLB model was presented in No Language Left Behind: Scaling Human-Centered Machine Translation by Marta R. - [NomicBERT](https://huggingface.co/docs/transformers/main/model_doc/nomic_bert.md): NomicBERT was proposed in Nomic Embed: Training a Reproducible Long Context Text Embedder by Zach Nussbaum, John X. - [Nyströmformer](https://huggingface.co/docs/transformers/main/model_doc/nystromformer.md): The Nyströmformer model was proposed in Nyströmformer: A Nyström-Based Algorithm for Approximating Self-Attention by Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin… - [OLMo](https://huggingface.co/docs/transformers/main/model_doc/olmo.md): OLMo is a 7B-parameter dense language model. - [OLMo2](https://huggingface.co/docs/transformers/main/model_doc/olmo2.md): OLMo2 improves on OLMo by changing the architecture and training recipes of the original models. - [Olmo3](https://huggingface.co/docs/transformers/main/model_doc/olmo3.md): Olmo3 is an improvement on OLMo2. - [OLMoE](https://huggingface.co/docs/transformers/main/model_doc/olmoe.md): OLMoE is a sparse Mixture-of-Experts (MoE) language model with 7B parameters but only 1B parameters are used per input token. - [OlmoHybrid](https://huggingface.co/docs/transformers/main/model_doc/olmo_hybrid.md): OLMo Hybrid is a hybrid architecture model from Ai2 that combines standard transformer attention layers with linear attention layers using the Gated Deltanet. - [OpenAI Privacy Filter](https://huggingface.co/docs/transformers/main/model_doc/openai_privacy_filter.md): OpenAI Privacy Filter is a bidirectional token-classification model for personally identifiable information (PII) detection and masking in text. - [OPT](https://huggingface.co/docs/transformers/main/model_doc/opt.md): OPT is a suite of open-source decoder-only pre-trained transformers whose parameters range from 125M to 175B. - [Param2Moe](https://huggingface.co/docs/transformers/main/model_doc/param2moe.md): Param2Moe is the architecture of Param-2-17B-MoE-A2.4B, a Mixture of Experts (MoE) language model with 17B total parameters and 2.4B active per token, developed by BharatGen AI. - [Pegasus](https://huggingface.co/docs/transformers/main/model_doc/pegasus.md): Pegasus is an encoder-decoder (sequence-to-sequence) transformer model pretrained on unlabeled text to perform abstractive summarization. - [PEGASUS-X](https://huggingface.co/docs/transformers/main/model_doc/pegasus_x.md): PEGASUS-X is an encoder-decoder (sequence-to-sequence) transformer model for long-input summarization. - [Persimmon](https://huggingface.co/docs/transformers/main/model_doc/persimmon.md): The Persimmon model was created by ADEPT, and authored by Erich Elsen, Augustus Odena, Maxwell Nye, Sağnak Taşırlar, Tri Dao, Curtis Hawthorne, Deepak Moparthi, Arushi Somani. - [Phi](https://huggingface.co/docs/transformers/main/model_doc/phi.md): Phi is a 1.3B parameter transformer model optimized for Python code generation. - [Phi-3](https://huggingface.co/docs/transformers/main/model_doc/phi3.md): The Phi-3 model was proposed in Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone by Microsoft. - [PhiMoE](https://huggingface.co/docs/transformers/main/model_doc/phimoe.md): The PhiMoE model was proposed in Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone by Microsoft. - [PhoBERT](https://huggingface.co/docs/transformers/main/model_doc/phobert.md): The PhoBERT model was proposed in PhoBERT: Pre-trained language models for Vietnamese by Dat Quoc Nguyen, Anh Tuan Nguyen. - [PLBart](https://huggingface.co/docs/transformers/main/model_doc/plbart.md): The PLBART model was proposed in Unified Pre-training for Program Understanding and Generation by Wasi Uddin Ahmad, Saikat Chakraborty, Baishakhi Ray, Kai-Wei Chang. - [ProphetNet](https://huggingface.co/docs/transformers/main/model_doc/prophetnet.md): The ProphetNet model was proposed in ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-training, by Yu Yan, Weizhen Qi, Yeyun Gong, Dayiheng Liu, Nan Duan, Jiusheng Chen, Ruofei… - [Qwen2](https://huggingface.co/docs/transformers/main/model_doc/qwen2.md): Qwen2 is a family of large language models (pretrained, instruction-tuned and mixture-of-experts) available in sizes from 0.5B to 72B parameters. - [Qwen2MoE](https://huggingface.co/docs/transformers/main/model_doc/qwen2_moe.md): Qwen2MoE is a Mixture-of-Experts (MoE) variant of Qwen2, available as a base model and an aligned chat model. - [Qwen3](https://huggingface.co/docs/transformers/main/model_doc/qwen3.md): Qwen3 is the dense model architecture in the Qwen3 family, available in sizes from 0.6B to 32B parameters. - [Qwen3.5](https://huggingface.co/docs/transformers/main/model_doc/qwen3_5.md): Qwen3.5 is Qwen's natively multimodal foundation model family, trained from scratch on interleaved text, image, and video tokens. - [Qwen3.5 Moe](https://huggingface.co/docs/transformers/main/model_doc/qwen3_5_moe.md): Decode is roughly flat because the single-token DeltaNet recurrence is memory-bandwidth-bound; the win is on the chunked-prefill core and grows with prompt length. - [Qwen3MoE](https://huggingface.co/docs/transformers/main/model_doc/qwen3_moe.md): Qwen3MoE is the mixture-of-experts variant in the Qwen3 family, with 30.5B total parameters and 3.3B active parameters per token. - [Qwen3Next](https://huggingface.co/docs/transformers/main/model_doc/qwen3_next.md): The Qwen3-Next series represents our next-generation foundation models, optimized for extreme context length and large-scale parameter efficiency. - [Qwen4](https://huggingface.co/docs/transformers/main/model_doc/qwen4.md): Qwen4 uses Gated DeltaNet and Qwen Sparse Attention with GatedResidual connections and a dense SwiGLU feed-forward network. - [Qwen4 MoE](https://huggingface.co/docs/transformers/main/model_doc/qwen4_moe.md): Qwen4 MoE uses the mixture-of-experts and per-layer embedding architecture described in Qwen4-Exp. - [Qwen4-Exp](https://huggingface.co/docs/transformers/main/model_doc/qwen4_exp.md): Qwen4-Exp builds on Qwen3.5's hybrid text and multimodal architecture with three key components: GatedResidual (GR), Qwen Sparse Attention (QSA), and Per-Layer Embedding (PLE). - [RAG](https://huggingface.co/docs/transformers/main/model_doc/rag.md): Retrieval-Augmented Generation (RAG) combines a pretrained language model (parametric memory) with access to an external data source (non-parametric memory) by means of a pretrained neural retriever. - [RecurrentGemma](https://huggingface.co/docs/transformers/main/model_doc/recurrent_gemma.md): The Recurrent Gemma model was proposed in RecurrentGemma: Moving Past Transformers for Efficient Open Language Models by the Griffin, RLHF and Gemma Teams of Google. - [Reformer](https://huggingface.co/docs/transformers/main/model_doc/reformer.md): The Reformer model was proposed in the paper Reformer: The Efficient Transformer by Nikita Kitaev, Łukasz Kaiser, Anselm Levskaya. - [RemBERT](https://huggingface.co/docs/transformers/main/model_doc/rembert.md): The RemBERT model was proposed in Rethinking Embedding Coupling in Pre-trained Language Models by Hyung Won Chung, Thibault Févry, Henry Tsai, Melvin Johnson, Sebastian Ruder. - [RoBERTa](https://huggingface.co/docs/transformers/main/model_doc/roberta.md): RoBERTa improves BERT with new pretraining objectives, demonstrating BERT was undertrained and training design is important. - [RoBERTa-PreLayerNorm](https://huggingface.co/docs/transformers/main/model_doc/roberta-prelayernorm.md): The RoBERTa-PreLayerNorm model was proposed in fairseq: A Fast, Extensible Toolkit for Sequence Modeling by Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier… - [RoCBert](https://huggingface.co/docs/transformers/main/model_doc/roc_bert.md): RoCBert is a pretrained Chinese BERT model designed against adversarial attacks like typos and synonyms. - [RoFormer](https://huggingface.co/docs/transformers/main/model_doc/roformer.md): RoFormer introduces Rotary Position Embedding (RoPE) to encode token positions by rotating the inputs in 2D space. - [RWKV](https://huggingface.co/docs/transformers/main/model_doc/rwkv.md): The RWKV model (version 4) was proposed in this repo - [SarvamMLA](https://huggingface.co/docs/transformers/main/model_doc/sarvam_mla.md): SarvamMLA is a 105B parameter Mixture of Experts (MoE) language model developed by Sarvam AI. - [SarvamMoE](https://huggingface.co/docs/transformers/main/model_doc/sarvam_moe.md): SarvamMoE is the architecture of Sarvam-30B, a 30B parameter Mixture of Experts (MoE) language model developed by Sarvam AI. - [Seed-Oss](https://huggingface.co/docs/transformers/main/model_doc/seed_oss.md): SeedOss is ByteDance Seed's 36B-parameter dense language model with native 512K context length. - [SmolLM3](https://huggingface.co/docs/transformers/main/model_doc/smollm3.md): SmolLM3 is a fully open, compact language model designed for efficient deployment while maintaining strong performance. - [SolarOpen](https://huggingface.co/docs/transformers/main/model_doc/solar_open.md): The SolarOpen model was proposed in Solar Open Technical Report by Upstage Team. - [Splinter](https://huggingface.co/docs/transformers/main/model_doc/splinter.md): The Splinter model was proposed in Few-Shot Question Answering by Pretraining Span Selection by Ori Ram, Yuval Kirstain, Jonathan Berant, Amir Globerson, Omer Levy. - [SqueezeBERT](https://huggingface.co/docs/transformers/main/model_doc/squeezebert.md): The SqueezeBERT model was proposed in SqueezeBERT: What can computer vision teach NLP about efficient neural networks? by Forrest N. - [StableLm](https://huggingface.co/docs/transformers/main/model_doc/stablelm.md): StableLM 3B 4E1T (blog post) was proposed in StableLM 3B 4E1T: Technical Report by Stability AI and is the first model in a series of multi-epoch pre-trained language models. - [Starcoder2](https://huggingface.co/docs/transformers/main/model_doc/starcoder2.md): StarCoder2 is a family of open LLMs for code and comes in 3 different sizes with 3B, 7B and 15B parameters. - [Step3p7](https://huggingface.co/docs/transformers/main/model_doc/step3p7.md): Step-3.7-Flash was proposed in Step 3.7 Flash by StepFun. - [SwitchTransformers](https://huggingface.co/docs/transformers/main/model_doc/switch_transformers.md): Switch Transformers is a sparse T5 model where the MLP layer is replaced by a Mixture-of-Experts (MoE). - [T5](https://huggingface.co/docs/transformers/main/model_doc/t5.md): T5 is an encoder-decoder transformer available in a range of sizes from 60M to 11B parameters. - [T5Gemma](https://huggingface.co/docs/transformers/main/model_doc/t5gemma.md): T5Gemma (aka encoder-decoder Gemma) was proposed in a research paper by Google. - [T5Gemma2](https://huggingface.co/docs/transformers/main/model_doc/t5gemma2.md): T5Gemma 2 is a family of pretrained encoder-decoder large language models with strong multilingual, multimodal and long-context capability, available in 270M-270M, 1B-1B and 4B-4B parameters. - [T5v1.1](https://huggingface.co/docs/transformers/main/model_doc/t5v1.1.md): T5v1.1 was released in the google-research/text-to-text-transfer-transformer repository by Colin Raffel et al. - [UL2](https://huggingface.co/docs/transformers/main/model_doc/ul2.md): The T5 model was presented in Unifying Language Learning Paradigms by Yi Tay, Mostafa Dehghani, Vinh Q. - [UltraBERT](https://huggingface.co/docs/transformers/main/model_doc/ultrabert.md): UltraBERT was introduced in UltraBERT: Beyond the Limit of BERT Pre-Training by Jungwoo Park, Taewhoo Lee, and Jaewoo Kang. - [UltraVBert](https://huggingface.co/docs/transformers/main/model_doc/ultravbert.md): UltraVBert extends ModernVBert by pairing the UltraBERT text encoder with a SigLIP vision encoder for visual document understanding and retrieval. - [UMT5](https://huggingface.co/docs/transformers/main/model_doc/umt5.md): The UMT5 model was proposed in UniMax: Fairer and More Effective Language Sampling for Large-Scale Multilingual Pretraining by Hyung Won Chung, Xavier Garcia, Adam Roberts, Yi Tay, Orhan Firat… - [VaultGemma](https://huggingface.co/docs/transformers/main/model_doc/vaultgemma.md): VaultGemma is a text-only decoder model derived from Gemma 2, notably it drops the norms after the Attention and MLP blocks, and uses full attention for all layers instead of alternating between full… - [X-MOD](https://huggingface.co/docs/transformers/main/model_doc/xmod.md): The X-MOD model was proposed in Lifting the Curse of Multilinguality by Pre-training Modular Transformers by Jonas Pfeiffer, Naman Goyal, Xi Lin, Xian Li, James Cross, Sebastian Riedel, and Mikel… - [XGLM](https://huggingface.co/docs/transformers/main/model_doc/xglm.md): The XGLM model was proposed in Few-shot Learning with Multilingual Language Models by Xi Victoria Lin, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal… - [XLM](https://huggingface.co/docs/transformers/main/model_doc/xlm.md): XLM demonstrates cross-lingual pretraining with two approaches, unsupervised training on a single language and supervised training on more than one language with a cross-lingual language model… - [XLM-RoBERTa](https://huggingface.co/docs/transformers/main/model_doc/xlm-roberta.md): XLM-RoBERTa is a large multilingual masked language model trained on 2.5TB of filtered CommonCrawl data across 100 languages. - [XLM-RoBERTa-XL](https://huggingface.co/docs/transformers/main/model_doc/xlm-roberta-xl.md): XLM-RoBERTa-XL is a 3.5B parameter multilingual masked language model pretrained on 100 languages. - [XLM-V](https://huggingface.co/docs/transformers/main/model_doc/xlm-v.md): XLM-V is multilingual language model with a one million token vocabulary trained on 2.5TB of data from Common Crawl (same as XLM-R). - [XLNet](https://huggingface.co/docs/transformers/main/model_doc/xlnet.md): The XLNet model was proposed in XLNet: Generalized Autoregressive Pretraining for Language Understanding by Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, Quoc V. - [xLSTM](https://huggingface.co/docs/transformers/main/model_doc/xlstm.md): The xLSTM model was proposed in xLSTM: Extended Long Short-Term Memory by Maximilian Beck*, Korbinian Pöppel*, Markus Spanring, Andreas Auer, Oleksandra Prudnikova, Michael Kopp, Günter Klambauer… - [YOSO](https://huggingface.co/docs/transformers/main/model_doc/yoso.md): The YOSO model was proposed in You Only Sample (Almost) Once: Linear Cost Self-Attention Via Bernoulli Sampling by Zhanpeng Zeng, Yunyang Xiong, Sathya N. - [Youtu-LLM](https://huggingface.co/docs/transformers/main/model_doc/youtu.md): The Youtu-LLM model was proposed in Youtu-LLM Technical Report by Tencent Youtu Team. - [Zamba](https://huggingface.co/docs/transformers/main/model_doc/zamba.md): Zamba (blog post) is a large language model (LLM) trained by Zyphra, and made available under an Apache 2.0 license. - [Zamba2](https://huggingface.co/docs/transformers/main/model_doc/zamba2.md): Zamba2 is a large language model (LLM) trained by Zyphra, and made available under an Apache 2.0 license. - [ZAYA](https://huggingface.co/docs/transformers/main/model_doc/zaya.md): ZAYA1 is a 760M active / 8.4B total parameter MoE language model trained by Zyphra. ### Models / Vision models - [Aimv2](https://huggingface.co/docs/transformers/main/model_doc/aimv2.md): The 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… - [BEiT](https://huggingface.co/docs/transformers/main/model_doc/beit.md): The BEiT model was proposed in BEiT: BERT Pre-Training of Image Transformers by Hangbo Bao, Li Dong and Furu Wei. - [BiT](https://huggingface.co/docs/transformers/main/model_doc/bit.md): 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. - [CHMv2](https://huggingface.co/docs/transformers/main/model_doc/chmv2.md): The Canopy Height Maps v2 (CHMv2) model was proposed in CHMv2: Improvements in Global Canopy Height Mapping using DINOv3. - [Conditional DETR](https://huggingface.co/docs/transformers/main/model_doc/conditional_detr.md): The Conditional DETR model was proposed in Conditional DETR for Fast Training Convergence by Depu Meng, Xiaokang Chen, Zejia Fan, Gang Zeng, Houqiang Li, Yuhui Yuan, Lei Sun, Jingdong Wang. - [ConvNeXT](https://huggingface.co/docs/transformers/main/model_doc/convnext.md): The ConvNeXT model was proposed in A ConvNet for the 2020s by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie. - [ConvNeXTV2](https://huggingface.co/docs/transformers/main/model_doc/convnextv2.md): The ConvNeXt V2 model was proposed in ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders by Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon… - [CvT](https://huggingface.co/docs/transformers/main/model_doc/cvt.md): Convolutional Vision Transformer (CvT) is a model that combines the strengths of convolutional neural networks (CNNs) and Vision transformers for the computer vision tasks. - [D-FINE](https://huggingface.co/docs/transformers/main/model_doc/d_fine.md): The D-FINE model was proposed in D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement by Yansong Peng, Hebei Li, Peixi Wu, Yueyi Zhang, Xiaoyan Sun, Feng Wu - [DAB-DETR](https://huggingface.co/docs/transformers/main/model_doc/dab-detr.md): The DAB-DETR model was proposed in DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETR by Shilong Liu, Feng Li, Hao Zhang, Xiao Yang, Xianbiao Qi, Hang Su, Jun Zhu, Lei Zhang. - [Deformable DETR](https://huggingface.co/docs/transformers/main/model_doc/deformable_detr.md): Deformable DETR improves on the original DETR by using a deformable attention module. - [DEIMv2](https://huggingface.co/docs/transformers/main/model_doc/deimv2.md): DEIMv2 (DETR with Improved Matching v2) was proposed in DEIMv2: Real-Time Object Detection Meets DINOv3 by Shihua Huang, Yongjie Hou, Longfei Liu, Xuanlong Yu, and Xi Shen. - [DeiT](https://huggingface.co/docs/transformers/main/model_doc/deit.md): The DeiT model was proposed in Training data-efficient image transformers & distillation through attention by Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles… - [Depth Anything](https://huggingface.co/docs/transformers/main/model_doc/depth_anything.md): Depth Anything is designed to be a foundation model for monocular depth estimation (MDE). - [Depth Anything V2](https://huggingface.co/docs/transformers/main/model_doc/depth_anything_v2.md): Depth Anything V2 was introduced in the paper of the same name by Lihe Yang et al. - [DepthPro](https://huggingface.co/docs/transformers/main/model_doc/depth_pro.md): The DepthPro model was proposed in Depth Pro: Sharp Monocular Metric Depth in Less Than a Second by Aleksei Bochkovskii, Amaël Delaunoy, Hugo Germain, Marcel Santos, Yichao Zhou, Stephan R. - [DETR](https://huggingface.co/docs/transformers/main/model_doc/detr.md): DETR consists of a convolutional backbone followed by an encoder-decoder Transformer which can be trained end-to-end for object detection. - [DiNAT](https://huggingface.co/docs/transformers/main/model_doc/dinat.md): DiNAT was proposed in Dilated Neighborhood Attention Transformer by Ali Hassani and Humphrey Shi. - [DINOV2](https://huggingface.co/docs/transformers/main/model_doc/dinov2.md): DINOv2 is a vision foundation model that uses ViT as a feature extractor for multiple downstream tasks like image classification and depth estimation. - [DINOv2 with Registers](https://huggingface.co/docs/transformers/main/model_doc/dinov2_with_registers.md): The DINOv2 with Registers model was proposed in Vision Transformers Need Registers by Timothée Darcet, Maxime Oquab, Julien Mairal, Piotr Bojanowski. - [DINOv3](https://huggingface.co/docs/transformers/main/model_doc/dinov3.md): DINOv3 is a family of versatile vision foundation models that outperforms the specialized state of the art across a broad range of settings, without fine-tuning. - [DPT](https://huggingface.co/docs/transformers/main/model_doc/dpt.md): The DPT model was proposed in Vision Transformers for Dense Prediction by René Ranftl, Alexey Bochkovskiy, Vladlen Koltun. - [EfficientLoFTR](https://huggingface.co/docs/transformers/main/model_doc/efficientloftr.md): EfficientLoFTR is an efficient detector-free local feature matching method that produces semi-dense matches across images with sparse-like speed. - [EfficientNet](https://huggingface.co/docs/transformers/main/model_doc/efficientnet.md): The EfficientNet model was proposed in EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks by Mingxing Tan and Quoc V. - [EoMT](https://huggingface.co/docs/transformers/main/model_doc/eomt.md): The Encoder-only Mask Transformer (EoMT) model was introduced in the CVPR 2025 Highlight Paper Your ViT is Secretly an Image Segmentation Model by Tommie Kerssies, Niccolò Cavagnero, Alexander… - [EoMT-DINOv3](https://huggingface.co/docs/transformers/main/model_doc/eomt_dinov3.md): The EoMT-DINOv3 family extends the Encoder-only Mask Transformer architecture with Vision Transformers that are pre-trained using DINOv3. - [FocalNet](https://huggingface.co/docs/transformers/main/model_doc/focalnet.md): The FocalNet model was proposed in Focal Modulation Networks by Jianwei Yang, Chunyuan Li, Xiyang Dai, Lu Yuan, Jianfeng Gao. - [GLPN](https://huggingface.co/docs/transformers/main/model_doc/glpn.md): The GLPN model was proposed in Global-Local Path Networks for Monocular Depth Estimation with Vertical CutDepth by Doyeon Kim, Woonghyun Ga, Pyungwhan Ahn, Donggyu Joo, Sehwan Chun, Junmo Kim. - [HGNet-V2](https://huggingface.co/docs/transformers/main/model_doc/hgnet_v2.md): HGNetV2 is a next-generation convolutional neural network (CNN) backbone built for optimal accuracy-latency tradeoff on NVIDIA GPUs. - [Hiera](https://huggingface.co/docs/transformers/main/model_doc/hiera.md): Hiera was proposed in Hiera: A Hierarchical Vision Transformer without the Bells-and-Whistles by Chaitanya Ryali, Yuan-Ting Hu, Daniel Bolya, Chen Wei, Haoqi Fan, Po-Yao Huang, Vaibhav Aggarwal… - [I-JEPA](https://huggingface.co/docs/transformers/main/model_doc/ijepa.md): I-JEPA is a self-supervised learning method that learns semantic image representations by predicting parts of an image from other parts of the image. - [ImageGPT](https://huggingface.co/docs/transformers/main/model_doc/imagegpt.md): The ImageGPT model was proposed in Generative Pretraining from Pixels by Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, Ilya Sutskever. - [LeViT](https://huggingface.co/docs/transformers/main/model_doc/levit.md): The LeViT model was proposed in LeViT: Introducing Convolutions to Vision Transformers by Ben Graham, Alaaeldin El-Nouby, Hugo Touvron, Pierre Stock, Armand Joulin, Hervé Jégou, Matthijs Douze. - [LightGlue](https://huggingface.co/docs/transformers/main/model_doc/lightglue.md): LightGlue is a deep neural network that learns to match local features across images. - [LW-DETR](https://huggingface.co/docs/transformers/main/model_doc/lw_detr.md): LW-DETR proposes a light-weight Detection Transformer (DETR) architecture designed to compete with and surpass the dominant YOLO series for real-time object detection. - [Mask2Former](https://huggingface.co/docs/transformers/main/model_doc/mask2former.md): The Mask2Former model was proposed in Masked-attention Mask Transformer for Universal Image Segmentation by Bowen Cheng, Ishan Misra, Alexander G. - [MaskFormer](https://huggingface.co/docs/transformers/main/model_doc/maskformer.md): The MaskFormer model was proposed in Per-Pixel Classification is Not All You Need for Semantic Segmentation by Bowen Cheng, Alexander G. - [MLCD](https://huggingface.co/docs/transformers/main/model_doc/mlcd.md): The MLCD models were released by the DeepGlint-AI team in unicom, which focuses on building foundational visual models for large multimodal language models using large-scale datasets such as… - [MobileNetV1](https://huggingface.co/docs/transformers/main/model_doc/mobilenet_v1.md): MobileNet V1 is a family of efficient convolutional neural networks optimized for on-device or embedded vision tasks. - [MobileNetV2](https://huggingface.co/docs/transformers/main/model_doc/mobilenet_v2.md): MobileNet V2 improves performance on mobile devices with a more efficient architecture. - [MobileViT](https://huggingface.co/docs/transformers/main/model_doc/mobilevit.md): MobileViT is a lightweight vision transformer for mobile devices that merges CNN's efficiency and inductive biases with transformers global context modeling. - [MobileViTV2](https://huggingface.co/docs/transformers/main/model_doc/mobilevitv2.md): The MobileViTV2 model was proposed in Separable Self-attention for Mobile Vision Transformers by Sachin Mehta and Mohammad Rastegari. - [Pixio](https://huggingface.co/docs/transformers/main/model_doc/pixio.md): Pixio is a vision foundation model that uses ViT as a feature extractor for multiple downstream tasks like depth estimation, semantic segmentation, feed-forward 3D reconstruction, robotics, and image… - [PoolFormer](https://huggingface.co/docs/transformers/main/model_doc/poolformer.md): The PoolFormer model was proposed in MetaFormer is Actually What You Need for Vision by Sea AI Labs. - [Prompt Depth Anything](https://huggingface.co/docs/transformers/main/model_doc/prompt_depth_anything.md): The Prompt Depth Anything model was introduced in Prompting Depth Anything for 4K Resolution Accurate Metric Depth Estimation by Haotong Lin, Sida Peng, Jingxiao Chen, Songyou Peng, Jiaming Sun… - [Pyramid Vision Transformer (PVT)](https://huggingface.co/docs/transformers/main/model_doc/pvt.md): The PVT model was proposed in Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions by Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang… - [Pyramid Vision Transformer v2 (PVTv2)](https://huggingface.co/docs/transformers/main/model_doc/pvt_v2.md): The PVTv2 model was proposed in PVT v2: Improved Baselines with Pyramid Vision Transformer by Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. - [RADIO](https://huggingface.co/docs/transformers/main/model_doc/radio.md): RADIO (Reduce All Domains Into One) is a family of vision foundation models from NVIDIA trained by multi-teacher distillation (e.g. CLIP, DINOv2, SAM) into a single ViT backbone. - [RegNet](https://huggingface.co/docs/transformers/main/model_doc/regnet.md): The RegNet model was proposed in Designing Network Design Spaces by Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, Piotr Dollár. - [ResNet](https://huggingface.co/docs/transformers/main/model_doc/resnet.md): The ResNet model was proposed in Deep Residual Learning for Image Recognition by Kaiming He, Xiangyu Zhang, Shaoqing Ren and Jian Sun. - [RF-DETR](https://huggingface.co/docs/transformers/main/model_doc/rf_detr.md): RF-DETR proposes a Receptive Field Detection Transformer (DETR) architecture designed to compete with and surpass the dominant YOLO series for real-time object detection. - [RT-DETR](https://huggingface.co/docs/transformers/main/model_doc/rt_detr.md): The RT-DETR model was proposed in DETRs Beat YOLOs on Real-time Object Detection by Wenyu Lv, Yian Zhao, Shangliang Xu, Jinman Wei, Guanzhong Wang, Cheng Cui, Yuning Du, Qingqing Dang, Yi Liu. - [RT-DETRv2](https://huggingface.co/docs/transformers/main/model_doc/rt_detr_v2.md): The RT-DETRv2 model was proposed in RT-DETRv2: Improved Baseline with Bag-of-Freebies for Real-Time Detection Transformer by Wenyu Lv, Yian Zhao, Qinyao Chang, Kui Huang, Guanzhong Wang, Yi Liu. - [SAM2](https://huggingface.co/docs/transformers/main/model_doc/sam2.md): SAM2 (Segment Anything Model 2) was proposed in Segment Anything in Images and Videos by Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman… - [Sam3Tracker](https://huggingface.co/docs/transformers/main/model_doc/sam3_tracker.md): SAM3 (Segment Anything Model 3) was introduced in SAM 3: Segment Anything with Concepts. - [Sapiens2](https://huggingface.co/docs/transformers/main/model_doc/sapiens2.md): The Sapiens2 model was proposed in Sapiens2 by Rawal Khirodkar, He Wen, Julieta Martinez, Yuan Dong, Zhaoen Su, Shunsuke Saito. - [SegFormer](https://huggingface.co/docs/transformers/main/model_doc/segformer.md): SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers is a semantic segmentation model that combines a hierarchical Transformer encoder (Mix Transformer, MiT) with a… - [SegGpt](https://huggingface.co/docs/transformers/main/model_doc/seggpt.md): The SegGPT model was proposed in SegGPT: Segmenting Everything In Context by Xinlong Wang, Xiaosong Zhang, Yue Cao, Wen Wang, Chunhua Shen, Tiejun Huang. - [Segment Anything](https://huggingface.co/docs/transformers/main/model_doc/sam.md): SAM (Segment Anything Model) was proposed in Segment Anything by Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alex Berg… - [Segment Anything High Quality](https://huggingface.co/docs/transformers/main/model_doc/sam_hq.md): SAM-HQ (High-Quality Segment Anything Model) was proposed in Segment Anything in High Quality by Lei Ke, Mingqiao Ye, Martin Danelljan, Yifan Liu, Yu-Wing Tai, Chi-Keung Tang, Fisher Yu. - [SuperGlue](https://huggingface.co/docs/transformers/main/model_doc/superglue.md): SuperGlue is a neural network that matches two sets of local features by jointly finding correspondences and rejecting non-matchable points. - [SuperPoint](https://huggingface.co/docs/transformers/main/model_doc/superpoint.md): SuperPoint is the result of self-supervised training of a fully-convolutional network for interest point detection and description. - [SwiftFormer](https://huggingface.co/docs/transformers/main/model_doc/swiftformer.md): The SwiftFormer model was proposed in SwiftFormer: Efficient Additive Attention for Transformer-based Real-time Mobile Vision Applications by Abdelrahman Shaker, Muhammad Maaz, Hanoona Rasheed… - [Swin Transformer](https://huggingface.co/docs/transformers/main/model_doc/swin.md): Swin Transformer is a hierarchical vision transformer. - [Swin Transformer V2](https://huggingface.co/docs/transformers/main/model_doc/swinv2.md): Swin Transformer V2 is a 3B parameter model that focuses on how to scale a vision model to billions of parameters. - [Swin2SR](https://huggingface.co/docs/transformers/main/model_doc/swin2sr.md): The Swin2SR model was proposed in Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restoration by Marcos V. - [Table Transformer](https://huggingface.co/docs/transformers/main/model_doc/table-transformer.md): The Table Transformer model was proposed in PubTables-1M: Towards comprehensive table extraction from unstructured documents by Brandon Smock, Rohith Pesala, Robin Abraham. - [TextNet](https://huggingface.co/docs/transformers/main/model_doc/textnet.md): The TextNet model was proposed in FAST: Faster Arbitrarily-Shaped Text Detector with Minimalist Kernel Representation by Zhe Chen, Jiahao Wang, Wenhai Wang, Guo Chen, Enze Xie, Ping Luo, Tong Lu. - [Timm Wrapper](https://huggingface.co/docs/transformers/main/model_doc/timm_wrapper.md): Helper class to enable loading timm models to be used with the transformers library and its autoclasses. - [UperNet](https://huggingface.co/docs/transformers/main/model_doc/upernet.md): The UPerNet model was proposed in Unified Perceptual Parsing for Scene Understanding by Tete Xiao, Yingcheng Liu, Bolei Zhou, Yuning Jiang, Jian Sun. - [UVDoc](https://huggingface.co/docs/transformers/main/model_doc/uvdoc.md): UVDoc The main purpose of text image correction is to carry out geometric transformation on the image to correct the document distortion, inclination, perspective deformation and other problems in… - [VidEoMT](https://huggingface.co/docs/transformers/main/model_doc/videomt.md): The VidEoMT model was proposed in Your ViT is Secretly Also a Video Segmentation Model by Narges Norouzi, Idil Esen Zulfikar, Niccolò Cavagnero, Tommie Kerssies, Bastian Leibe, Gijs Dubbelman, Daan… - [Vision Transformer (ViT)](https://huggingface.co/docs/transformers/main/model_doc/vit.md): Vision Transformer (ViT) is a transformer adapted for computer vision tasks. - [ViTDet](https://huggingface.co/docs/transformers/main/model_doc/vitdet.md): The ViTDet model was proposed in Exploring Plain Vision Transformer Backbones for Object Detection by Yanghao Li, Hanzi Mao, Ross Girshick, Kaiming He. - [ViTMAE](https://huggingface.co/docs/transformers/main/model_doc/vit_mae.md): ViTMAE is a self-supervised vision model that is pretrained by masking large portions of an image (~75%). - [ViTMatte](https://huggingface.co/docs/transformers/main/model_doc/vitmatte.md): The ViTMatte model was proposed in Boosting Image Matting with Pretrained Plain Vision Transformers by Jingfeng Yao, Xinggang Wang, Shusheng Yang, Baoyuan Wang. - [ViTMSN](https://huggingface.co/docs/transformers/main/model_doc/vit_msn.md): The ViTMSN model was proposed in Masked Siamese Networks for Label-Efficient Learning by Mahmoud Assran, Mathilde Caron, Ishan Misra, Piotr Bojanowski, Florian Bordes, Pascal Vincent, Armand Joulin… - [ViTPose](https://huggingface.co/docs/transformers/main/model_doc/vitpose.md): ViTPose is a vision transformer-based model for keypoint (pose) estimation. - [YOLOS](https://huggingface.co/docs/transformers/main/model_doc/yolos.md): YOLOS uses a Vision Transformer (ViT) for object detection with minimal modifications and region priors. - [ZoeDepth](https://huggingface.co/docs/transformers/main/model_doc/zoedepth.md): ZoeDepth is a depth estimation model that combines the generalization performance of relative depth estimation (how far objects are from each other) and metric depth estimation (precise depth… ### Models / Audio models - [Audio Spectrogram Transformer](https://huggingface.co/docs/transformers/main/model_doc/audio-spectrogram-transformer.md): The Audio Spectrogram Transformer model was proposed in AST: Audio Spectrogram Transformer by Yuan Gong, Yu-An Chung, James Glass. - [Bark](https://huggingface.co/docs/transformers/main/model_doc/bark.md): Bark is a transformer-based text-to-speech model proposed by Suno AI in suno-ai/bark. - [Canary](https://huggingface.co/docs/transformers/main/model_doc/canary.md): Canary-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… - [CLAP](https://huggingface.co/docs/transformers/main/model_doc/clap.md): CLAP (Contrastive Language-Audio Pretraining) is a multimodal model that combines audio data with natural language descriptions through contrastive learning. - [Cohere ASR](https://huggingface.co/docs/transformers/main/model_doc/cohere_asr.md): Cohere ASR, released by Cohere on March 26th, 2026, is a 2B parameter Conformer-based encoder-decoder speech recognition model. - [CSM](https://huggingface.co/docs/transformers/main/model_doc/csm.md): The Conversational Speech Model (CSM) is the first open-source contextual text-to-speech model released by Sesame. - [dac](https://huggingface.co/docs/transformers/main/model_doc/dac.md): The DAC model was proposed in Descript Audio Codec: High-Fidelity Audio Compression with Improved RVQGAN by Rithesh Kumar, Prem Seetharaman, Alejandro Luebs, Ishaan Kumar, Kundan Kumar. - [Dia](https://huggingface.co/docs/transformers/main/model_doc/dia.md): Dia is an open-source text-to-speech (TTS) model (1.6B parameters) developed by Nari Labs. - [EnCodec](https://huggingface.co/docs/transformers/main/model_doc/encodec.md): The EnCodec neural codec model was proposed in High Fidelity Neural Audio Compression by Alexandre Défossez, Jade Copet, Gabriel Synnaeve, Yossi Adi. - [FastSpeech2Conformer](https://huggingface.co/docs/transformers/main/model_doc/fastspeech2_conformer.md): The FastSpeech2Conformer model was proposed with the paper Recent Developments On Espnet Toolkit Boosted By Conformer by Pengcheng Guo, Florian Boyer, Xuankai Chang, Tomoki Hayashi, Yosuke Higuchi… - [GLM-ASR](https://huggingface.co/docs/transformers/main/model_doc/glmasr.md): GLM-ASR-Nano-2512 is a robust, open-source speech recognition model with 1.5B parameters. - [Gradium Phonon TTS](https://huggingface.co/docs/transformers/main/model_doc/gradium_phonon_tts.md): Gradium Phonon TTS is Gradium's family of on-device text-to-speech models, trained with the recipe of Pocket TTS: a causal transformer reads a voice prompt and the text, then emits one continuous… - [GraniteSpeech](https://huggingface.co/docs/transformers/main/model_doc/granite_speech.md): The Granite Speech model (blog post) is a multimodal language model, consisting of a speech encoder, speech projector, large language model, and LoRA adapter(s). - [GraniteSpeech5](https://huggingface.co/docs/transformers/main/model_doc/granite_speech5.md): Granite Speech 5.0 Turbo CTC is a lightweight (~470M parameters) conformer encoder for automatic speech recognition, trained with Connectionist Temporal Classification (CTC) on BPE targets. - [GraniteSpeechPlus](https://huggingface.co/docs/transformers/main/model_doc/granite_speech_plus.md): Granite Speech Plus is a variant of Granite Speech whose projector consumes the concatenation of the encoder's final hidden states with an arbitrary subset of its intermediate hidden states (along… - [Higgs Audio V2](https://huggingface.co/docs/transformers/main/model_doc/higgs_audio_v2.md): Higgs Audio V2 is a powerful audio foundation model developed by Boson AI. - [Higgs Audio V2 Tokenizer](https://huggingface.co/docs/transformers/main/model_doc/higgs_audio_v2_tokenizer.md): Model Architecture: - [Hubert](https://huggingface.co/docs/transformers/main/model_doc/hubert.md): HuBERT is a self-supervised speech model to cluster aligned target labels for BERT-like prediction loss and applying the prediction loss only over masked regions to force the model to learn both… - [Kyutai Speech-To-Text](https://huggingface.co/docs/transformers/main/model_doc/kyutai_speech_to_text.md): Kyutai STT is a speech-to-text model architecture based on the Mimi codec, which encodes audio into discrete tokens in a streaming fashion, and a Moshi-like autoregressive decoder. - [LASR](https://huggingface.co/docs/transformers/main/model_doc/lasr.md): LASR is the architecture behind MedASR, a speech-to-text model from Google Health AI pre-trained for medical dictation. - [Liquid Codec](https://huggingface.co/docs/transformers/main/model_doc/liquid_codec.md): Liquid Codec is the speech codec of LFM3-Audio by Liquid AI: 24 kHz audio to 12 codebooks of 2016 codes at 12.5 Hz, and back. - [Mimi](https://huggingface.co/docs/transformers/main/model_doc/mimi.md): Mimi is a neural audio codec model with pretrained and quantized variants, designed for efficient speech representation and compression. - [MMS](https://huggingface.co/docs/transformers/main/model_doc/mms.md): The MMS model was proposed in Scaling Speech Technology to 1,000+ Languages by Vineel Pratap, Andros Tjandra, Bowen Shi, Paden Tomasello, Arun Babu, Sayani Kundu, Ali Elkahky, Zhaoheng Ni, Apoorv… - [Moonshine](https://huggingface.co/docs/transformers/main/model_doc/moonshine.md): Moonshine is an encoder-decoder speech recognition model optimized for real-time transcription and recognizing voice commands. - [Moonshine Streaming](https://huggingface.co/docs/transformers/main/model_doc/moonshine_streaming.md): Moonshine Streaming is a streaming variant of the Moonshine speech recognition model, optimized for real-time transcription with low latency. - [Moshi](https://huggingface.co/docs/transformers/main/model_doc/moshi.md): The Moshi model was proposed in Moshi: a speech-text foundation model for real-time dialogue by Alexandre Défossez, Laurent Mazaré, Manu Orsini, Amélie Royer, Patrick Pérez, Hervé Jégou, Edouard… - [MOSS-Transcribe-Diarize](https://huggingface.co/docs/transformers/main/model_doc/moss_transcribe_diarize.md): MOSS-Transcribe-Diarize 0.9B is an end-to-end audio understanding model for long-form multi-speaker transcription, speaker diarization, and timestamps. - [MusicGen](https://huggingface.co/docs/transformers/main/model_doc/musicgen.md): The MusicGen model was proposed in the paper Simple and Controllable Music Generation by Jade Copet, Felix Kreuk, Itai Gat, Tal Remez, David Kant, Gabriel Synnaeve, Yossi Adi and Alexandre Défossez. - [MusicGen Melody](https://huggingface.co/docs/transformers/main/model_doc/musicgen_melody.md): The MusicGen Melody model was proposed in Simple and Controllable Music Generation by Jade Copet, Felix Kreuk, Itai Gat, Tal Remez, David Kant, Gabriel Synnaeve, Yossi Adi and Alexandre Défossez. - [Nemotron 3 Diarization](https://huggingface.co/docs/transformers/main/model_doc/nemotron3_diarization.md): Nemotron 3 Diarization is an open-weight streaming speaker diarization model designed to determine "who spoke when" in real-world audio. - [Nemotron 3.5 ASR](https://huggingface.co/docs/transformers/main/model_doc/nemotron3_5_asr.md): Nemotron 3.5 ASR is a 600M-parameter multilingual speech recognition model from NVIDIA, built for high-quality transcription in both low-latency streaming and high-throughput batch settings, with… - [Nemotron 3.5 Transcribe](https://huggingface.co/docs/transformers/main/model_doc/nemotron3_5_transcribe.md): Nemotron 3.5 Transcribe is an audio language model for multilingual transcription, speaker-attributed transcription, speech translation and audio question answering. - [Nemotron ASR Streaming](https://huggingface.co/docs/transformers/main/model_doc/nemotron_asr_streaming.md): Nemotron ASR Streaming is a 600M-parameter English speech recognition model from NVIDIA, built for high-quality transcription in both low-latency streaming and high-throughput batch settings, with… - [NeuCodec](https://huggingface.co/docs/transformers/main/model_doc/neucodec.md): The NeuCodec model was proposed in Finite Scalar Quantization Enables Redundant and Transmission-Robust Neural Audio Compression at Low Bit-rates. - [Omnilingual ASR](https://huggingface.co/docs/transformers/main/model_doc/omniasr.md): OmniASR (Omnilingual ASR) is a suite of multilingual speech-recognition models from Meta FAIR, introduced in Omnilingual ASR: Open-Source Multilingual Speech Recognition for 1600+ Languages, that… - [Omnilingual ASR CTC](https://huggingface.co/docs/transformers/main/model_doc/omniasr_ctc.md): Check the OmniASR page for more information about this model family and checkpoints. - [Parakeet](https://huggingface.co/docs/transformers/main/model_doc/parakeet.md): Parakeet models, introduced by NVIDIA NeMo, are models that combine a Fast Conformer encoder with connectionist temporal classification (CTC), recurrent neural network transducer (RNNT) or token and… - [PE Audio](https://huggingface.co/docs/transformers/main/model_doc/pe_audio.md): PE Audio is the audio branch of Meta's Perception Encoder family. - [Pocket TTS](https://huggingface.co/docs/transformers/main/model_doc/pocket_tts.md): Pocket TTS is Kyutai's 100M-parameter text-to-speech model, a Continuous Audio Language Model that runs faster than real time on CPU. - [Pocket TTS Audio Tokenizer](https://huggingface.co/docs/transformers/main/model_doc/pocket_tts_audio_tokenizer.md): The audio tokenizer of Pocket TTS: a codec with Mimi's architecture (SEANet convolutions and a small causal transformer on each side) whose residual vector quantizer is replaced by a continuous… - [Pop2Piano](https://huggingface.co/docs/transformers/main/model_doc/pop2piano.md): The Pop2Piano model was proposed in Pop2Piano : Pop Audio-based Piano Cover Generation by Jongho Choi and Kyogu Lee. - [Qwen3 ASR](https://huggingface.co/docs/transformers/main/model_doc/qwen3_asr.md): Qwen3 ASR is an automatic speech recognition model from Alibaba's Qwen team that combines a Whisper-style audio encoder with a Qwen3 language model decoder for speech-to-text transcription. - [Seamless-M4T](https://huggingface.co/docs/transformers/main/model_doc/seamless_m4t.md): The SeamlessM4T model was proposed in SeamlessM4T — Massively Multilingual & Multimodal Machine Translation by the Seamless Communication team from Meta AI. - [SeamlessM4T-v2](https://huggingface.co/docs/transformers/main/model_doc/seamless_m4t_v2.md): The SeamlessM4T-v2 model was proposed in Seamless: Multilingual Expressive and Streaming Speech Translation by the Seamless Communication team from Meta AI. - [SEW](https://huggingface.co/docs/transformers/main/model_doc/sew.md): SEW (Squeezed and Efficient Wav2Vec) was proposed in Performance-Efficiency Trade-offs in Unsupervised Pre-training for Speech Recognition by Felix Wu, Kwangyoun Kim, Jing Pan, Kyu Han, Kilian Q. - [SEW-D](https://huggingface.co/docs/transformers/main/model_doc/sew-d.md): SEW-D (Squeezed and Efficient Wav2Vec with Disentangled attention) was proposed in Performance-Efficiency Trade-offs in Unsupervised Pre-training for Speech Recognition by Felix Wu, Kwangyoun Kim… - [Speech2Text](https://huggingface.co/docs/transformers/main/model_doc/speech_to_text.md): The Speech2Text model was proposed in fairseq S2T: Fast Speech-to-Text Modeling with fairseq by Changhan Wang, Yun Tang, Xutai Ma, Anne Wu, Dmytro Okhonko, Juan Pino. - [SpeechT5](https://huggingface.co/docs/transformers/main/model_doc/speecht5.md): The SpeechT5 model was proposed in SpeechT5: Unified-Modal Encoder-Decoder Pre-Training for Spoken Language Processing by Junyi Ao, Rui Wang, Long Zhou, Chengyi Wang, Shuo Ren, Yu Wu, Shujie Liu, Tom… - [UniSpeech](https://huggingface.co/docs/transformers/main/model_doc/unispeech.md): The UniSpeech model was proposed in UniSpeech: Unified Speech Representation Learning with Labeled and Unlabeled Data by Chengyi Wang, Yu Wu, Yao Qian, Kenichi Kumatani, Shujie Liu, Furu Wei, Michael… - [UniSpeech-SAT](https://huggingface.co/docs/transformers/main/model_doc/unispeech-sat.md): The UniSpeech-SAT model was proposed in UniSpeech-SAT: Universal Speech Representation Learning with Speaker Aware Pre-Training by Sanyuan Chen, Yu Wu, Chengyi Wang, Zhengyang Chen, Zhuo Chen, Shujie… - [UnivNet](https://huggingface.co/docs/transformers/main/model_doc/univnet.md): The UnivNet model was proposed in UnivNet: A Neural Vocoder with Multi-Resolution Spectrogram Discriminators for High-Fidelity Waveform Generation by Won Jang, Dan Lim, Jaesam Yoon, Bongwan Kin, and… - [VibeVoice](https://huggingface.co/docs/transformers/main/model_doc/vibevoice.md): VibeVoice is a novel framework for synthesizing high-fidelity, long-form speech with multiple speakers by employing a next-token diffusion approach within a Large Language Model (LLM) structure. - [VibeVoice Acoustic Tokenizer](https://huggingface.co/docs/transformers/main/model_doc/vibevoice_acoustic_tokenizer.md): VibeVoice is a novel framework for synthesizing high-fidelity, long-form speech with multiple speakers by employing a next-token diffusion approach within a Large Language Model (LLM) structure. - [VibeVoice ASR](https://huggingface.co/docs/transformers/main/model_doc/vibevoice_asr.md): VibeVoice ASR is an automatic speech recognition model from Microsoft that combines acoustic and semantic audio tokenizers with a causal language model for robust speech-to-text transcription. - [VITS](https://huggingface.co/docs/transformers/main/model_doc/vits.md): VITS (Variational Inference with adversarial learning for end-to-end Text-to-Speech) is an end-to-end speech synthesis model, simplifying the traditional two-stage text-to-speech (TTS) systems. - [Wav2Vec2](https://huggingface.co/docs/transformers/main/model_doc/wav2vec2.md): The Wav2Vec2 model was proposed in wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations by Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli. - [Wav2Vec2-BERT](https://huggingface.co/docs/transformers/main/model_doc/wav2vec2-bert.md): The Wav2Vec2-BERT model was proposed in Seamless: Multilingual Expressive and Streaming Speech Translation by the Seamless Communication team from Meta AI. - [Wav2Vec2-Conformer](https://huggingface.co/docs/transformers/main/model_doc/wav2vec2-conformer.md): The Wav2Vec2-Conformer was added to an updated version of fairseq S2T: Fast Speech-to-Text Modeling with fairseq by Changhan Wang, Yun Tang, Xutai Ma, Anne Wu, Sravya Popuri, Dmytro Okhonko, Juan… - [Wav2Vec2Phoneme](https://huggingface.co/docs/transformers/main/model_doc/wav2vec2_phoneme.md): The Wav2Vec2Phoneme model was proposed in Simple and Effective Zero-shot Cross-lingual Phoneme Recognition (Xu et al., 2021) by Qiantong Xu, Alexei Baevski, Michael Auli. - [WavLM](https://huggingface.co/docs/transformers/main/model_doc/wavlm.md): The WavLM model was proposed in WavLM: Large-Scale Self-Supervised Pre-Training for Full Stack Speech Processing by Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li… - [WavTokenizer](https://huggingface.co/docs/transformers/main/model_doc/wavtokenizer.md): WavTokenizer encodes 24 kHz mono audio into discrete tokens using a single codebook, at 40 or 75 tokens per second depending on the checkpoint. - [Whisper](https://huggingface.co/docs/transformers/main/model_doc/whisper.md): Whisper is an encoder-decoder (sequence-to-sequence) transformer pretrained on 680,000 hours of labeled audio data. - [X-Codec](https://huggingface.co/docs/transformers/main/model_doc/xcodec.md): The X-Codec model was proposed in Codec Does Matter: Exploring the Semantic Shortcoming of Codec for Audio Language Model by Zhen Ye, Peiwen Sun, Jiahe Lei, Hongzhan Lin, Xu Tan, Zheqi Dai, Qiuqiang… - [X-Codec2](https://huggingface.co/docs/transformers/main/model_doc/xcodec2.md): The X-Codec2 model was proposed in Llasa: Scaling Train-Time and Inference-Time Compute for Llama-based Speech Synthesis. - [XLS-R](https://huggingface.co/docs/transformers/main/model_doc/xls_r.md): The XLS-R model was proposed in XLS-R: Self-supervised Cross-lingual Speech Representation Learning at Scale by Arun Babu, Changhan Wang, Andros Tjandra, Kushal Lakhotia, Qiantong Xu, Naman Goyal… - [XLSR-Wav2Vec2](https://huggingface.co/docs/transformers/main/model_doc/xlsr_wav2vec2.md): The XLSR-Wav2Vec2 model was proposed in Unsupervised Cross-Lingual Representation Learning For Speech Recognition by Alexis Conneau, Alexei Baevski, Ronan Collobert, Abdelrahman Mohamed, Michael Auli. ### Models / Video models - [PE Video](https://huggingface.co/docs/transformers/main/model_doc/pe_video.md): PE Video is the video branch of Meta's Perception Encoder family. - [SAM2 Video](https://huggingface.co/docs/transformers/main/model_doc/sam2_video.md): SAM2 (Segment Anything Model 2) was proposed in Segment Anything in Images and Videos by Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman… - [Sam3TrackerVideo](https://huggingface.co/docs/transformers/main/model_doc/sam3_tracker_video.md): SAM3 (Segment Anything Model 3) was introduced in SAM 3: Segment Anything with Concepts. - [TimeSformer](https://huggingface.co/docs/transformers/main/model_doc/timesformer.md): The TimeSformer model was proposed in TimeSformer: Is Space-Time Attention All You Need for Video Understanding? by Facebook Research. - [V-JEPA 2](https://huggingface.co/docs/transformers/main/model_doc/vjepa2.md): V-JEPA 2 (blog post) is a self-supervised approach to training video encoders developed by FAIR, Meta. - [VideoMAE](https://huggingface.co/docs/transformers/main/model_doc/videomae.md): The VideoMAE model was proposed in VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training by Zhan Tong, Yibing Song, Jue Wang, Limin Wang. - [VideoPrism](https://huggingface.co/docs/transformers/main/model_doc/videoprism.md): The VideoPrism model was proposed in the paper VideoPrism: A Foundational Visual Encoder for Video Understanding by Google DeepMind (blog post). - [ViViT](https://huggingface.co/docs/transformers/main/model_doc/vivit.md): The Vivit model was proposed in ViViT: A Video Vision Transformer by Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Lučić, Cordelia Schmid. ### Models / Multimodal models - [ALIGN](https://huggingface.co/docs/transformers/main/model_doc/align.md): ALIGN is pretrained on a noisy 1.8 billion alt‑text and image pair dataset to show that scale can make up for the noise. - [AltCLIP](https://huggingface.co/docs/transformers/main/model_doc/altclip.md): AltCLIP replaces the CLIP text encoder with a multilingual XLM-R encoder and aligns image and text representations with teacher learning and contrastive learning. - [Apertus 1.5](https://huggingface.co/docs/transformers/main/model_doc/apertus1p5.md): Apertus 1.5 is a multimodal model from the Swiss AI Initiative that accepts text, images, and audio and generates text. - [Aria](https://huggingface.co/docs/transformers/main/model_doc/aria.md): Aria is a multimodal mixture-of-experts (MoE) model. - [AudioFlamingo3](https://huggingface.co/docs/transformers/main/model_doc/audioflamingo3.md): Audio Flamingo 3 (AF3) is a fully open large audio–language model designed for robust understanding and reasoning over speech, environmental sounds, and music. - [AyaVision](https://huggingface.co/docs/transformers/main/model_doc/aya_vision.md): Aya Vision is a family of open-weight multimodal vision-language models from Cohere Labs. - [BLIP](https://huggingface.co/docs/transformers/main/model_doc/blip.md): BLIP (Bootstrapped Language-Image Pretraining) is a vision-language pretraining (VLP) framework designed for both understanding and generation tasks. - [BLIP-2](https://huggingface.co/docs/transformers/main/model_doc/blip-2.md): The 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. - [BridgeTower](https://huggingface.co/docs/transformers/main/model_doc/bridgetower.md): The 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… - [BROS](https://huggingface.co/docs/transformers/main/model_doc/bros.md): The 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… - [Chameleon](https://huggingface.co/docs/transformers/main/model_doc/chameleon.md): The Chameleon model was proposed in Chameleon: Mixed-Modal Early-Fusion Foundation Models by META AI Chameleon Team. - [Chinese-CLIP](https://huggingface.co/docs/transformers/main/model_doc/chinese_clip.md): The 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. - [CLIP](https://huggingface.co/docs/transformers/main/model_doc/clip.md): CLIP is a multimodal vision and language model motivated by overcoming the fixed number of object categories when training a computer vision model. - [CLIPSeg](https://huggingface.co/docs/transformers/main/model_doc/clipseg.md): The CLIPSeg model was proposed in Image Segmentation Using Text and Image Prompts by Timo Lüddecke and Alexander Ecker. - [CLVP](https://huggingface.co/docs/transformers/main/model_doc/clvp.md): The CLVP (Contrastive Language-Voice Pretrained Transformer) model was proposed in Better speech synthesis through scaling by James Betker. - [Code World Model (CWM)](https://huggingface.co/docs/transformers/main/model_doc/cwm.md): The Code World Model (CWM) model was proposed in CWM: An Open-Weights LLM for Research on Code Generation with World Models by Meta FAIR CodeGen Team. - [Cohere2Vision](https://huggingface.co/docs/transformers/main/model_doc/cohere2_vision.md): Command A Vision (blog post) is a state-of-the-art multimodal model designed to seamlessly integrate visual and textual information for a wide range of applications. - [CohereCompass](https://huggingface.co/docs/transformers/main/model_doc/cohere_compass.md): CohereCompass is the base architecture for small, specialized (vision-)language models trained by Cohere. - [ColModernVBert](https://huggingface.co/docs/transformers/main/model_doc/colmodernvbert.md): ColModernVBert is a model for efficient visual document retrieval. - [ColPali](https://huggingface.co/docs/transformers/main/model_doc/colpali.md): ColPali is a model designed to retrieve documents by analyzing their visual features. - [ColQwen2](https://huggingface.co/docs/transformers/main/model_doc/colqwen2.md): ColQwen2 is a variant of the ColPali model designed to retrieve documents by analyzing their visual features. - [Cosmos3 Edge](https://huggingface.co/docs/transformers/main/model_doc/cosmos3_edge.md): Cosmos3 Edge is NVIDIA's multimodal reasoning model from the Cosmos3 family. - [Cosmos3 Omni](https://huggingface.co/docs/transformers/main/model_doc/cosmos3_omni.md): Cosmos3 is a mixture-of-transformers (MoT) Vision Foundation Model from NVIDIA, composed of a Reasoner tower and a Generator tower. - [Data2Vec](https://huggingface.co/docs/transformers/main/model_doc/data2vec.md): The Data2Vec model was proposed in data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Language by Alexei Baevski, Wei-Ning Hsu, Qiantong Xu, Arun Babu, Jiatao Gu and… - [DeepseekVL](https://huggingface.co/docs/transformers/main/model_doc/deepseek_vl.md): Deepseek-VL was introduced by the DeepSeek AI team. - [DeepseekVLHybrid](https://huggingface.co/docs/transformers/main/model_doc/deepseek_vl_hybrid.md): Deepseek-VL-Hybrid was introduced by the DeepSeek AI team. - [DePlot](https://huggingface.co/docs/transformers/main/model_doc/deplot.md): DePlot was proposed in the paper DePlot: One-shot visual language reasoning by plot-to-table translation from Fangyu Liu, Julian Martin Eisenschlos, Francesco Piccinno, Syrine Krichene, Chenxi Pang… - [DiffusionGemma](https://huggingface.co/docs/transformers/main/model_doc/diffusion_gemma.md): DiffusionGemma is engineered to reduce the sequential bottlenecks of standard causal language models. - [Donut](https://huggingface.co/docs/transformers/main/model_doc/donut.md): Donut (Document Understanding Transformer) is a visual document understanding model that doesn't require an Optical Character Recognition (OCR) engine. - [Dots 3 Note Preview](https://huggingface.co/docs/transformers/main/model_doc/dots3_note.md): Dots 3 Note Preview is a mixture-of-experts causal language model with native text, image, video, and audio inputs. - [EdgeTAM](https://huggingface.co/docs/transformers/main/model_doc/edgetam.md): The EdgeTAM model was proposed in EdgeTAM: On-Device Track Anything Model Chong Zhou, Chenchen Zhu, Yunyang Xiong, Saksham Suri, Fanyi Xiao, Lemeng Wu, Raghuraman Krishnamoorthi, Bo Dai, Chen Change… - [EdgeTamVideo](https://huggingface.co/docs/transformers/main/model_doc/edgetam_video.md): The EdgeTAM model was proposed in EdgeTAM: On-Device Track Anything Model Chong Zhou, Chenchen Zhu, Yunyang Xiong, Saksham Suri, Fanyi Xiao, Lemeng Wu, Raghuraman Krishnamoorthi, Bo Dai, Chen Change… - [EmbeddingGemma2](https://huggingface.co/docs/transformers/main/model_doc/embedding_gemma2.md): EmbeddingGemma 2 is a multimodal embedding model from Google built on the Gemma 4 architecture. - [Emu3](https://huggingface.co/docs/transformers/main/model_doc/emu3.md): The Emu3 model was proposed in Emu3: Next-Token Prediction is All You Need by Xinlong Wang, Xiaosong Zhang, Zhengxiong Luo, Quan Sun, Yufeng Cui, Jinsheng Wang, Fan Zhang, Yueze Wang, Zhen Li, Qiying… - [ernie4_5_vl_moe](https://huggingface.co/docs/transformers/main/model_doc/ernie4_5_vl_moe.md): The Ernie 4.5 VL MoE model was released in the Ernie 4.5 Model Family release by baidu. - [Evolla](https://huggingface.co/docs/transformers/main/model_doc/evolla.md): The Evolla model was proposed in Decoding the Molecular Language of Proteins with Evolla by Zhou et al.. - [FastVLM](https://huggingface.co/docs/transformers/main/model_doc/fast_vlm.md): FastVLM is an open-source vision-language model featuring a novel hybrid vision encoder, FastViTHD. - [FLAVA](https://huggingface.co/docs/transformers/main/model_doc/flava.md): The FLAVA model was proposed in FLAVA: A Foundational Language And Vision Alignment Model by Amanpreet Singh, Ronghang Hu, Vedanuj Goswami, Guillaume Couairon, Wojciech Galuba, Marcus Rohrbach, and… - [Florence2](https://huggingface.co/docs/transformers/main/model_doc/florence2.md): Florence-2 is an advanced vision foundation model that uses a prompt-based approach to handle a wide range of vision and vision-language tasks. - [Gemma 4 Assistant](https://huggingface.co/docs/transformers/main/model_doc/gemma4_assistant.md): Gemma 4 Assistant is a small, text-only model that enables speculative decoding with for Gemma 4 models using the Multi-Token Prediction (MTP) method and associated candidate generator. - [Gemma 4 Unified Assistant](https://huggingface.co/docs/transformers/main/model_doc/gemma4_unified_assistant.md): Gemma 4 Unified Assistant is a small, text-only model that enables speculative decoding with for Gemma 4 Unified models using the Multi-Token Prediction (MTP) method and associated candidate… - [Gemma3](https://huggingface.co/docs/transformers/main/model_doc/gemma3.md): Gemma 3 is a multimodal model with pretrained and instruction-tuned variants, available in 1B, 13B, and 27B parameters. - [Gemma3n](https://huggingface.co/docs/transformers/main/model_doc/gemma3n.md): Gemma3n is a multimodal model with pretrained and instruction-tuned variants, available in E4B and E2B sizes. - [Gemma4](https://huggingface.co/docs/transformers/main/model_doc/gemma4.md): Gemma 4 is a multimodal model with pretrained and instruction-tuned variants, available in E2B, E4B, 31B and 26B-A4B (MoE) parameter sizes. - [Gemma4 Unified](https://huggingface.co/docs/transformers/main/model_doc/gemma4_unified.md): Gemma 4 12B Unified is an encoder-free multimodal model with pretrained and instruction-tuned variants. - [GIT](https://huggingface.co/docs/transformers/main/model_doc/git.md): The GIT model was proposed in GIT: A Generative Image-to-text Transformer for Vision and Language by Jianfeng Wang, Zhengyuan Yang, Xiaowei Hu, Linjie Li, Kevin Lin, Zhe Gan, Zicheng Liu, Ce Liu… - [GLM-5.3-Flash](https://huggingface.co/docs/transformers/main/model_doc/glm5_next.md): The GLM-5.3-Flash model use this class. - [Glm46V](https://huggingface.co/docs/transformers/main/model_doc/glm46v.md): The GLM-V model was proposed in GLM-4.5V and GLM-4.1V-Thinking: Towards Versatile Multimodal Reasoning with Scalable Reinforcement Learning. - [glm4v](https://huggingface.co/docs/transformers/main/model_doc/glm4v.md): The GLM-V model was proposed in GLM-4.5V and GLM-4.1V-Thinking: Towards Versatile Multimodal Reasoning with Scalable Reinforcement Learning. - [glm4v_moe](https://huggingface.co/docs/transformers/main/model_doc/glm4v_moe.md): The GLM-V model was proposed in GLM-4.5V and GLM-4.1V-Thinking: Towards Versatile Multimodal Reasoning with Scalable Reinforcement Learning. - [Glmga](https://huggingface.co/docs/transformers/main/model_doc/glmga.md): Paper and author details for the Glmga model are not available yet. - [GlmOcr](https://huggingface.co/docs/transformers/main/model_doc/glm_ocr.md): GLM-OCR is a multimodal OCR (Optical Character Recognition) model designed for complex document understanding from Z.ai. - [GOT-OCR2](https://huggingface.co/docs/transformers/main/model_doc/got_ocr2.md): The GOT-OCR2 model was proposed in General OCR Theory: Towards OCR-2.0 via a Unified End-to-end Model by Haoran Wei, Chenglong Liu, Jinyue Chen, Jia Wang, Lingyu Kong, Yanming Xu, Zheng Ge, Liang… - [Granite4Vision](https://huggingface.co/docs/transformers/main/model_doc/granite4_vision.md): Granite Vision 4.1 is a vision-language model from IBM Research designed for enterprise-grade document data extraction. - [GraniteDocling](https://huggingface.co/docs/transformers/main/model_doc/granite_docling.md): GraniteDocling is a vision-language model for document conversion. - [GraniteVision](https://huggingface.co/docs/transformers/main/model_doc/granitevision.md): The Granite Vision model is a variant of LLaVA-NeXT, leveraging a Granite language model alongside a SigLIP visual encoder. - [Grounding DINO](https://huggingface.co/docs/transformers/main/model_doc/grounding-dino.md): The Grounding DINO model was proposed in Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection by Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie… - [GroupViT](https://huggingface.co/docs/transformers/main/model_doc/groupvit.md): The GroupViT model was proposed in GroupViT: Semantic Segmentation Emerges from Text Supervision by Jiarui Xu, Shalini De Mello, Sifei Liu, Wonmin Byeon, Thomas Breuel, Jan Kautz, Xiaolong Wang. - [HyperCLOVAX Vision V2](https://huggingface.co/docs/transformers/main/model_doc/hyperclovax_vision_v2.md): HyperCLOVAX Vision V2 is a multimodal vision-language model developed by NAVER. - [IDEFICS](https://huggingface.co/docs/transformers/main/model_doc/idefics.md): The IDEFICS model was proposed in OBELICS: An Open Web-Scale Filtered Dataset of Interleaved Image-Text Documents by Hugo Laurençon, Lucile Saulnier, Léo Tronchon, Stas Bekman, Amanpreet Singh, Anton… - [Idefics2](https://huggingface.co/docs/transformers/main/model_doc/idefics2.md): The Idefics2 model was proposed in What matters when building vision-language models? by Léo Tronchon, Hugo Laurencon, Victor Sanh. - [Idefics3](https://huggingface.co/docs/transformers/main/model_doc/idefics3.md): The Idefics3 model was proposed in Building and better understanding vision-language models: insights and future directions by Hugo Laurençon, Andrés Marafioti, Victor Sanh, and Léo Tronchon. - [Inkling](https://huggingface.co/docs/transformers/main/model_doc/inkling.md): Inkling is a general-purpose multimodal model from Thinking Machines Lab that accepts text, image, and audio inputs and generates text. - [Inkling2](https://huggingface.co/docs/transformers/main/model_doc/inkling2.md): Inkling 2 Small is a multimodal model from Thinking Machines Lab that accepts text and image inputs and generates text outputs. - [Inkling2Loop](https://huggingface.co/docs/transformers/main/model_doc/inkling2_loop.md): Inkling 2 Mini is a multimodal model from Thinking Machines Lab that accepts text and image inputs and generates text outputs. - [InstructBLIP](https://huggingface.co/docs/transformers/main/model_doc/instructblip.md): The InstructBLIP model was proposed in InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning by Wenliang Dai, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong, Junqi Zhao… - [InstructBlipVideo](https://huggingface.co/docs/transformers/main/model_doc/instructblipvideo.md): The InstructBLIPVideo is an extension of the models proposed in InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning by Wenliang Dai, Junnan Li, Dongxu Li, Anthony… - [InternVL](https://huggingface.co/docs/transformers/main/model_doc/internvl.md): The InternVL3 family of Visual Language Models was introduced in InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Models. - [Janus](https://huggingface.co/docs/transformers/main/model_doc/janus.md): The Janus Model was originally proposed in Janus: Decoupling Visual Encoding for Unified Multimodal Understanding and Generation by DeepSeek AI team and later refined in Janus-Pro: Unified Multimodal… - [KimiK-2.5](https://huggingface.co/docs/transformers/main/model_doc/kimi_k25.md): This model class supports all three different releases: KimiK-2.5,KimiK-2.6, KimiK-2.7 - [KOSMOS-2](https://huggingface.co/docs/transformers/main/model_doc/kosmos-2.md): The KOSMOS-2 model was proposed in Kosmos-2: Grounding Multimodal Large Language Models to the World by Zhiliang Peng, Wenhui Wang, Li Dong, Yaru Hao, Shaohan Huang, Shuming Ma, Furu Wei. - [KOSMOS-2.5](https://huggingface.co/docs/transformers/main/model_doc/kosmos2_5.md): The Kosmos-2.5 model was proposed in KOSMOS-2.5: A Multimodal Literate Model by Microsoft. - [LayoutLM](https://huggingface.co/docs/transformers/main/model_doc/layoutlm.md): LayoutLM jointly learns text and the document layout rather than focusing only on text. - [LayoutLMV2](https://huggingface.co/docs/transformers/main/model_doc/layoutlmv2.md): The LayoutLMV2 model was proposed in LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understanding by Yang Xu, Yiheng Xu, Tengchao Lv, Lei Cui, Furu Wei, Guoxin Wang, Yijuan Lu, Dinei… - [LayoutLMV3](https://huggingface.co/docs/transformers/main/model_doc/layoutlmv3.md): The LayoutLMv3 model was proposed in LayoutLMv3: Pre-training for Document AI with Unified Text and Image Masking by Yupan Huang, Tengchao Lv, Lei Cui, Yutong Lu, Furu Wei. - [LayoutXLM](https://huggingface.co/docs/transformers/main/model_doc/layoutxlm.md): LayoutXLM was proposed in LayoutXLM: Multimodal Pre-training for Multilingual Visually-rich Document Understanding by Yiheng Xu, Tengchao Lv, Lei Cui, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha… - [LFM2-VL](https://huggingface.co/docs/transformers/main/model_doc/lfm2_vl.md): LFM2-VL first series of vision-language foundation models developed by Liquid AI. - [LFM3-VL](https://huggingface.co/docs/transformers/main/model_doc/lfm3_vl.md): LFM3-VL is the vision-language model family built on LFM3 by Liquid AI. - [LightOnOcr](https://huggingface.co/docs/transformers/main/model_doc/lighton_ocr.md): LightOnOcr is a compact, end-to-end vision–language model for Optical Character Recognition (OCR) and document understanding. - [LiLT](https://huggingface.co/docs/transformers/main/model_doc/lilt.md): The LiLT model was proposed in LiLT: A Simple yet Effective Language-Independent Layout Transformer for Structured Document Understanding by Jiapeng Wang, Lianwen Jin, Kai Ding. - [Llama4](https://huggingface.co/docs/transformers/main/model_doc/llama4.md): Llama 4, developed by Meta, introduces a new auto-regressive Mixture-of-Experts (MoE) architecture. - [LLaVA](https://huggingface.co/docs/transformers/main/model_doc/llava.md): LLaVa is an open-source chatbot trained by fine-tuning LlamA/Vicuna on GPT-generated multimodal instruction-following data. - [LLaVA-NeXT](https://huggingface.co/docs/transformers/main/model_doc/llava_next.md): LLaVA‑NeXT improves on Llava by increasing the input image resolution by 4x more pixels and supporting 3 aspect ratios (up to 672x672, 336x1344, 1344x336) to better grasp visual details. - [LLaVa-NeXT-Video](https://huggingface.co/docs/transformers/main/model_doc/llava_next_video.md): The LLaVa-NeXT-Video model was proposed in LLaVA-NeXT: A Strong Zero-shot Video Understanding Model by Yuanhan Zhang, Bo Li, Haotian Liu, Yong Jae Lee, Liangke Gui, Di Fu, Jiashi Feng, Ziwei Liu… - [LLaVA-Onevision](https://huggingface.co/docs/transformers/main/model_doc/llava_onevision.md): The LLaVA-OneVision model was proposed in LLaVA-OneVision: Easy Visual Task Transfer by Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Yanwei Li, Ziwei Liu, Chunyuan… - [LLaVA-OneVision-1.5](https://huggingface.co/docs/transformers/main/model_doc/llava_onevision1_5.md): LLaVA-OneVision-1.5 was introduced in LLaVA-OneVision-1.5: Fully Open Framework for Democratized Multimodal Training. - [LXMERT](https://huggingface.co/docs/transformers/main/model_doc/lxmert.md): The LXMERT model was proposed in LXMERT: Learning Cross-Modality Encoder Representations from Transformers by Hao Tan & Mohit Bansal. - [MatCha](https://huggingface.co/docs/transformers/main/model_doc/matcha.md): MatCha has been proposed in the paper MatCha: Enhancing Visual Language Pretraining with Math Reasoning and Chart Derendering, from Fangyu Liu, Francesco Piccinno, Syrine Krichene, Chenxi Pang… - [MetaCLIP 2](https://huggingface.co/docs/transformers/main/model_doc/metaclip_2.md): MetaCLIP 2 is a replication of the original CLIP model trained on 300+ languages. - [MGP-STR](https://huggingface.co/docs/transformers/main/model_doc/mgp-str.md): The MGP-STR model was proposed in Multi-Granularity Prediction for Scene Text Recognition by Peng Wang, Cheng Da, and Cong Yao. - [MiniCPM-OCR](https://huggingface.co/docs/transformers/main/model_doc/minicpm_ocr.md): MiniCPM-OCR is a document-understanding model from the MiniCPM-V family developed by OpenBMB. - [MiniCPM-V](https://huggingface.co/docs/transformers/main/model_doc/minicpmv4_6.md): MiniCPM-V is a series of efficient multimodal large language models developed by OpenBMB. - [MiniCPM-V 4.7](https://huggingface.co/docs/transformers/main/model_doc/minicpmv4_7.md): MiniCPM-V is a series of efficient multimodal large language models developed by OpenBMB. - [Mistral Large 4](https://huggingface.co/docs/transformers/main/model_doc/mistral_large4.md): Mistral Large 4 is a natively multimodal mixture-of-experts model with 1 trillion parameters and 49 billion active parameters per token (52 billion including the embeddings and the output layer). - [Mistral3](https://huggingface.co/docs/transformers/main/model_doc/mistral3.md): Mistral 3 is a latency optimized model with a lot fewer layers to reduce the time per forward pass. - [Mistral4](https://huggingface.co/docs/transformers/main/model_doc/mistral4.md): Mistral 4 is a powerful hybrid model with the capability of acting as both a general instruction model and a reasoning model. - [mllama](https://huggingface.co/docs/transformers/main/model_doc/mllama.md): The Llama 3.2-Vision collection of multimodal large language models (LLMs) is a collection of pretrained and instruction-tuned image reasoning generative models in 11B and 90B sizes (text \+ images… - [MM Grounding DINO](https://huggingface.co/docs/transformers/main/model_doc/mm-grounding-dino.md): MM Grounding DINO model was proposed in An Open and Comprehensive Pipeline for Unified Object Grounding and Detection by Xiangyu Zhao, Yicheng Chen, Shilin Xu, Xiangtai Li, Xinjiang Wang, Yining Li… - [Molmo2](https://huggingface.co/docs/transformers/main/model_doc/molmo2.md): Molmo2 is a family of open-weight vision-language models by AllenAI that are state-of-the-art among open-source models, with exceptional capabilities in point-driven grounding for single image… - [Molmo3](https://huggingface.co/docs/transformers/main/model_doc/molmo3.md): Molmo3 is a family of open vision-language models from the Allen Institute for AI (Ai2), focused on spatial and 3D understanding and grounding. - [MusicFlamingo](https://huggingface.co/docs/transformers/main/model_doc/musicflamingo.md): Music Flamingo is a fully open large audio–language model designed for robust understanding and reasoning over music. - [NeoMME](https://huggingface.co/docs/transformers/main/model_doc/neomme.md): NeoMME is a family of efficient 260M and 800M parameter multimodal-native multilingual foundation encoders from H Company. - [Nougat](https://huggingface.co/docs/transformers/main/model_doc/nougat.md): The Nougat model was proposed in Nougat: Neural Optical Understanding for Academic Documents by Lukas Blecher, Guillem Cucurull, Thomas Scialom, Robert Stojnic. - [OmDet-Turbo](https://huggingface.co/docs/transformers/main/model_doc/omdet-turbo.md): The OmDet-Turbo model was proposed in Real-time Transformer-based Open-Vocabulary Detection with Efficient Fusion Head by Tiancheng Zhao, Peng Liu, Xuan He, Lu Zhang, Kyusong Lee. - [OneFormer](https://huggingface.co/docs/transformers/main/model_doc/oneformer.md): The OneFormer model was proposed in OneFormer: One Transformer to Rule Universal Image Segmentation by Jitesh Jain, Jiachen Li, MangTik Chiu, Ali Hassani, Nikita Orlov, Humphrey Shi. - [Ovis2](https://huggingface.co/docs/transformers/main/model_doc/ovis2.md): The Ovis2 is an updated version of the Ovis model developed by the AIDC-AI team at Alibaba International Digital Commerce Group. - [Ovis2.5](https://huggingface.co/docs/transformers/main/model_doc/ovis2_5.md): Ovis2.5 is a multimodal model from AIDC-AI for image, video, and text understanding. - [OWL-ViT](https://huggingface.co/docs/transformers/main/model_doc/owlvit.md): The OWL-ViT (short for Vision Transformer for Open-World Localization) was proposed in Simple Open-Vocabulary Object Detection with Vision Transformers by Matthias Minderer, Alexey Gritsenko, Austin… - [OWLv2](https://huggingface.co/docs/transformers/main/model_doc/owlv2.md): OWLv2 was proposed in Scaling Open-Vocabulary Object Detection by Matthias Minderer, Alexey Gritsenko, Neil Houlsby. - [PaddleOCRVL](https://huggingface.co/docs/transformers/main/model_doc/paddleocr_vl.md): Huggingface Hub: PaddleOCR-VL | Github Repo: PaddleOCR - [PaliGemma](https://huggingface.co/docs/transformers/main/model_doc/paligemma.md): PaliGemma is a family of vision-language models (VLMs), combining SigLIP with the Gemma 2B model. - [PE Audio Video](https://huggingface.co/docs/transformers/main/model_doc/pe_audio_video.md): PE Audio Video is the joint audio–video branch of Meta's Perception Encoder family. - [Perceiver](https://huggingface.co/docs/transformers/main/model_doc/perceiver.md): The Perceiver IO model was proposed in Perceiver IO: A General Architecture for Structured Inputs & Outputs by Andrew Jaegle, Sebastian Borgeaud, Jean-Baptiste Alayrac, Carl Doersch, Catalin Ionescu… - [PerceptionLM](https://huggingface.co/docs/transformers/main/model_doc/perception_lm.md): The PerceptionLM model was proposed in PerceptionLM: Open-Access Data and Models for Detailed Visual Understanding by Jang Hyun Cho et al. - [Phi4 Multimodal](https://huggingface.co/docs/transformers/main/model_doc/phi4_multimodal.md): Phi4 Multimodal is a multimodal model capable of text, image, and speech and audio inputs or any combination of these. - [PI0](https://huggingface.co/docs/transformers/main/model_doc/pi0.md): PI0 is a vision-language-action model for robotics manipulation. - [PI0.5](https://huggingface.co/docs/transformers/main/model_doc/pi05.md): PI0.5 is a vision-language-action model for robot manipulation from Physical Intelligence. - [Pix2Struct](https://huggingface.co/docs/transformers/main/model_doc/pix2struct.md): The Pix2Struct model was proposed in Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understanding by Kenton Lee, Mandar Joshi, Iulia Turc, Hexiang Hu, Fangyu Liu, Julian… - [Pixtral](https://huggingface.co/docs/transformers/main/model_doc/pixtral.md): Pixtral is a multimodal model trained to understand natural images and documents. - [PP-DocLayoutV2](https://huggingface.co/docs/transformers/main/model_doc/pp_doclayout_v2.md): PP-DocLayoutV2 is a dedicated lightweight model for layout analysis, focusing specifically on element detection, classification, and reading order prediction. - [PP-DocLayoutV3](https://huggingface.co/docs/transformers/main/model_doc/pp_doclayout_v3.md): PP-DocLayoutV3 is a unified and high-efficiency model designed for comprehensive layout analysis. - [PP-DocLayoutV4](https://huggingface.co/docs/transformers/main/model_doc/pp_doclayout_v4.md): PP-DocLayoutV4 is an end-to-end document layout analysis model that predicts, in a single forward pass, what each layout element is, the quadrilateral that encloses it, and the logits the reading… - [PP-FormulaNet](https://huggingface.co/docs/transformers/main/model_doc/pp_formulanet.md): PP-FormulaNet-L and PP-FormulaNet_plus-L are part of a series of dedicated lightweight models for table structure recognition, focusing on accurately recognizing table structures in documents and… - [PP-OCRv5_mobile_det](https://huggingface.co/docs/transformers/main/model_doc/pp_ocrv5_mobile_det.md): PP-OCRv5_mobile_det is a dedicated lightweight model for text detection, focusing specifically on efficient detection and understanding of text elements in multi-language documents and natural scenes. - [PP-OCRv5_mobile_rec](https://huggingface.co/docs/transformers/main/model_doc/pp_ocrv5_mobile_rec.md): PP-OCRv5_mobile_rec is a dedicated lightweight model for text recognition, focusing specifically on efficient recognition and understanding of text elements in multi-language documents and natural… - [PP-OCRv5_server_det](https://huggingface.co/docs/transformers/main/model_doc/pp_ocrv5_server_det.md): PP-OCRv5_server_det is a high-performance text detection model optimized for server-side applications, focusing on accurate detection of multi-language text in documents and natural scenes. - [PP-OCRv5_server_rec](https://huggingface.co/docs/transformers/main/model_doc/pp_ocrv5_server_rec.md): PP-OCRv5_server_rec is a dedicated lightweight model for text recognition, focusing specifically on efficient recognition and understanding of text elements in multi-language documents and natural… - [PP-OCRv6_medium_det](https://huggingface.co/docs/transformers/main/model_doc/pp_ocrv6_medium_det.md): PP-OCRv6_medium_det is the largest model in the PP-OCRv6 detection series developed by the PaddleOCR team. - [PP-OCRv6_small_det](https://huggingface.co/docs/transformers/main/model_doc/pp_ocrv6_small_det.md): PP-OCRv6_small_det is the small model in the PP-OCRv6 detection series developed by the PaddleOCR team. - [PP-OCRv6_small_rec](https://huggingface.co/docs/transformers/main/model_doc/pp_ocrv6_small_rec.md): PP-OCRv6_small_rec is the mid-tier recognition model in the PP-OCRv6 series. - [PP-OCRv6_tiny_rec](https://huggingface.co/docs/transformers/main/model_doc/pp_ocrv6_tiny_rec.md): PP-OCRv6_tiny_rec is the most lightweight recognition model in the PP-OCRv6 series. - [PPChart2Table](https://huggingface.co/docs/transformers/main/model_doc/pp_chart2table.md): PP-Chart2Table is a SOTA multimodal model developed by the PaddlePaddle team, specializing in chart parsing for both Chinese and English. - [PPLCNet](https://huggingface.co/docs/transformers/main/model_doc/pp_lcnet.md): PP-LCNet PP-LCNet is a family of efficient, lightweight convolutional neural networks designed for real-world document understanding and OCR tasks. - [PPLCNetV3](https://huggingface.co/docs/transformers/main/model_doc/pp_lcnet_v3.md): PPLCNetV3 is a lightweight CPU-optimized convolutional backbone designed for efficient image classification and downstream vision tasks. - [PPLCNetV4](https://huggingface.co/docs/transformers/main/model_doc/pp_lcnet_v4.md): PPLCNetV4 is provided as a backbone network only. - [QianfanOCR](https://huggingface.co/docs/transformers/main/model_doc/qianfan_ocr.md): Qianfan-OCR is a 4B-parameter end-to-end document intelligence model developed by the Baidu Qianfan Team. - [Qwen2.5-Omni](https://huggingface.co/docs/transformers/main/model_doc/qwen2_5_omni.md): The Qwen2.5-Omni model is a unified multiple modalities model proposed in Qwen2.5-Omni Technical Report from Qwen team, Alibaba Group. - [Qwen2.5-VL](https://huggingface.co/docs/transformers/main/model_doc/qwen2_5_vl.md): Qwen2.5-VL is a multimodal vision-language model, available in 3B, 7B, and 72B parameters, pretrained on 4.1T tokens. - [Qwen2Audio](https://huggingface.co/docs/transformers/main/model_doc/qwen2_audio.md): The Qwen2-Audio is the new model series of large audio-language models from the Qwen team. - [Qwen2VL](https://huggingface.co/docs/transformers/main/model_doc/qwen2_vl.md): The Qwen2-VL (blog post) model is a major update to Qwen-VL from the Qwen team at Alibaba Research. - [Qwen3-Omni-MoE](https://huggingface.co/docs/transformers/main/model_doc/qwen3_omni_moe.md): The Qwen3-Omni-MOE model is a unified multiple modalities model proposed in Qwen3-Omni Technical Report from Qwen team, Alibaba Group. - [Qwen3VL](https://huggingface.co/docs/transformers/main/model_doc/qwen3_vl.md): Qwen3-VL is a multimodal vision-language model series, encompassing both dense and MoE variants, as well as Instruct and Thinking versions. - [Qwen3VLMoe](https://huggingface.co/docs/transformers/main/model_doc/qwen3_vl_moe.md): Qwen3-VL is a multimodal vision-language model series, encompassing both dense and MoE variants, as well as Instruct and Thinking versions. - [SAM3](https://huggingface.co/docs/transformers/main/model_doc/sam3.md): SAM3 (Segment Anything Model 3) was introduced in SAM 3: Segment Anything with Concepts. - [SAM3 Video](https://huggingface.co/docs/transformers/main/model_doc/sam3_video.md): SAM3 (Segment Anything Model 3) was introduced in SAM 3: Segment Anything with Concepts. - [SAM3-LiteText](https://huggingface.co/docs/transformers/main/model_doc/sam3_lite_text.md): SAM3-LiteText was proposed in SAM3-LiteText: An Anatomical Study of the SAM3 Text Encoder for Efficient Vision-Language Segmentation by Chengxi Zeng, Yuxuan Jiang, Ge Gao, Shuai Wang, Duolikun… - [ShieldGemma2](https://huggingface.co/docs/transformers/main/model_doc/shieldgemma2.md): The ShieldGemma 2 model was proposed in a technical report by Google. - [SigLIP](https://huggingface.co/docs/transformers/main/model_doc/siglip.md): SigLIP is a multimodal image-text model similar to CLIP. - [SigLIP2](https://huggingface.co/docs/transformers/main/model_doc/siglip2.md): SigLIP2 is a family of multilingual vision-language encoders that builds on the SigLIP training recipe. - [SLANet](https://huggingface.co/docs/transformers/main/model_doc/slanet.md): SLANet and SLANet_plus are part of a series of dedicated lightweight models for table structure recognition, focusing on accurately recognizing table structures in documents and natural scenes. - [SLANeXt](https://huggingface.co/docs/transformers/main/model_doc/slanext.md): SLANeXt_wired and SLANeXt_wireless are part of a series of dedicated lightweight models for table structure recognition, focusing on accurately recognizing table structures in documents and natural… - [SmolVLM](https://huggingface.co/docs/transformers/main/model_doc/smolvlm.md): SmolVLM2 (blog post) is an adaptation of the Idefics3 model with two main differences: - [Speech Encoder Decoder Models](https://huggingface.co/docs/transformers/main/model_doc/speech-encoder-decoder.md): The SpeechEncoderDecoderModel can be used to initialize a speech-to-text model with any pretrained speech autoencoding model as the encoder (e.g. Wav2Vec2, Hubert) and any pretrained autoregressive… - [TAPAS](https://huggingface.co/docs/transformers/main/model_doc/tapas.md): The TAPAS model was proposed in TAPAS: Weakly Supervised Table Parsing via Pre-training by Jonathan Herzig, Paweł Krzysztof Nowak, Thomas Müller, Francesco Piccinno and Julian Martin Eisenschlos. - [TIPSv2](https://huggingface.co/docs/transformers/main/model_doc/tipsv2.md): TIPSv2 (Text-Image Pre-training with Spatial awareness) is a family of contrastive vision-language encoders proposed in TIPSv2: Advancing Vision-Language Pretraining with Enhanced Patch-Text… - [TIPSv2 DPT](https://huggingface.co/docs/transformers/main/model_doc/tipsv2_dpt.md): TIPSv2 with dense prediction transformer head (DPT), see the TIPSv2 documentation for more information. - [TrOCR](https://huggingface.co/docs/transformers/main/model_doc/trocr.md): TrOCR is a text recognition model for both image understanding and text generation. - [TVP](https://huggingface.co/docs/transformers/main/model_doc/tvp.md): The text-visual prompting (TVP) framework was proposed in the paper Text-Visual Prompting for Efficient 2D Temporal Video Grounding by Yimeng Zhang, Xin Chen, Jinghan Jia, Sijia Liu, Ke Ding. - [UDOP](https://huggingface.co/docs/transformers/main/model_doc/udop.md): The UDOP model was proposed in Unifying Vision, Text, and Layout for Universal Document Processing by Zineng Tang, Ziyi Yang, Guoxin Wang, Yuwei Fang, Yang Liu, Chenguang Zhu, Michael Zeng, Cha… - [UnlimitedOcr](https://huggingface.co/docs/transformers/main/model_doc/unlimited_ocr.md): The UnlimitedOcr model was proposed in Unlimited OCR Works by Youyang Yin, Huanhuan Liu, Qunyi Xie, Chaorun Liu, Shiqi Yang, Shaohua Wang, Zhanlong Liu, Hao Zou, Jinyue Chen, Shu Wei, Jingjing Wu… - [VideoLlama3](https://huggingface.co/docs/transformers/main/model_doc/video_llama_3.md): The VideoLLaMA3 model is a major update to VideoLLaMA2 from Alibaba DAMO Academy. - [VideoLlava](https://huggingface.co/docs/transformers/main/model_doc/video_llava.md): Video-LLaVa is an open-source multimodal LLM trained by fine-tuning LlamA/Vicuna on multimodal instruction-following data generated by Llava1.5 and VideChat. - [ViLT](https://huggingface.co/docs/transformers/main/model_doc/vilt.md): The ViLT model was proposed in ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision by Wonjae Kim, Bokyung Son, Ildoo Kim. - [VipLlava](https://huggingface.co/docs/transformers/main/model_doc/vipllava.md): The VipLlava model was proposed in Making Large Multimodal Models Understand Arbitrary Visual Prompts by Mu Cai, Haotian Liu, Siva Karthik Mustikovela, Gregory P. - [Vision Encoder Decoder Models](https://huggingface.co/docs/transformers/main/model_doc/vision-encoder-decoder.md): The VisionEncoderDecoderModel can be used to initialize an image-to-text model with any pretrained Transformer-based vision model as the encoder (e.g. ViT, BEiT, DeiT, Swin) and any pretrained… - [Vision Text Dual Encoder](https://huggingface.co/docs/transformers/main/model_doc/vision-text-dual-encoder.md): The VisionTextDualEncoderModel can be used to initialize a vision-text dual encoder model with any pretrained vision autoencoding model as the vision encoder (e.g. ViT, BEiT, DeiT) and any pretrained… - [VisualBERT](https://huggingface.co/docs/transformers/main/model_doc/visual_bert.md): VisualBERT is a vision-and-language model. - [Voxtral](https://huggingface.co/docs/transformers/main/model_doc/voxtral.md): Voxtral is an upgrade of Ministral 3B and Mistral Small 3B, extending its language capabilities with audio input support. - [VoxtralRealtime](https://huggingface.co/docs/transformers/main/model_doc/voxtral_realtime.md): VoxtralRealtime is a streaming speech-to-text model from Mistral AI, designed for real-time automatic speech recognition (ASR). - [X-CLIP](https://huggingface.co/docs/transformers/main/model_doc/xclip.md): The X-CLIP model was proposed in Expanding Language-Image Pretrained Models for General Video Recognition by Bolin Ni, Houwen Peng, Minghao Chen, Songyang Zhang, Gaofeng Meng, Jianlong Fu, Shiming… ### Models / Reinforcement learning models - [Decision Transformer](https://huggingface.co/docs/transformers/main/model_doc/decision_transformer.md): The Decision Transformer model was proposed in Decision Transformer: Reinforcement Learning via Sequence Modeling by Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Michael Laskin… ### Models / Time series models - [Autoformer](https://huggingface.co/docs/transformers/main/model_doc/autoformer.md): The 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. - [Informer](https://huggingface.co/docs/transformers/main/model_doc/informer.md): The Informer model was proposed in Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting by Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and… - [PatchTSMixer](https://huggingface.co/docs/transformers/main/model_doc/patchtsmixer.md): The PatchTSMixer model was proposed in TSMixer: Lightweight MLP-Mixer Model for Multivariate Time Series Forecasting by Vijay Ekambaram, Arindam Jati, Nam Nguyen, Phanwadee Sinthong and Jayant… - [PatchTST](https://huggingface.co/docs/transformers/main/model_doc/patchtst.md): The PatchTST model was proposed in A Time Series is Worth 64 Words: Long-term Forecasting with Transformers by Yuqi Nie, Nam H. - [Time Series Transformer](https://huggingface.co/docs/transformers/main/model_doc/time_series_transformer.md): The Time Series Transformer model is a vanilla encoder-decoder Transformer for time series forecasting. - [TimesFM](https://huggingface.co/docs/transformers/main/model_doc/timesfm.md): TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model proposed in A decoder-only foundation model for time-series forecasting by Abhimanyu Das, Weihao Kong, Rajat Sen… - [TimesFM2.5](https://huggingface.co/docs/transformers/main/model_doc/timesfm2_5.md): TimesFM 2.5 (Time Series Foundation Model) is a pretrained time-series foundation model proposed in A decoder-only foundation model for time-series forecasting by Abhimanyu Das, Weihao Kong, Rajat… - [WeatherNext 2](https://huggingface.co/docs/transformers/main/model_doc/weathernext2.md): Google DeepMind and Google Research developed WeatherNext 2, published the technical report, and released the original JAX checkpoints on Google Cloud Storage. ### Internal helpers - [Custom layers and utilities](https://huggingface.co/docs/transformers/main/internal/modeling_utils.md): This page lists all the custom layers used by the library, as well as the utility functions and classes it provides for modeling. - [Utilities for model debugging](https://huggingface.co/docs/transformers/main/internal/model_debugging_utils.md): This page lists all the debugging and model adding tools used by the library, as well as the utility functions it provides for it. - [Utilities for pipelines](https://huggingface.co/docs/transformers/main/internal/pipelines_utils.md): This page lists all the utility functions the library provides for pipelines. - [Utilities for tokenizers](https://huggingface.co/docs/transformers/main/internal/tokenization_utils.md): This page lists all the utility functions used by the tokenizers, mainly the class PreTrainedTokenizerBase that implements the common methods between PreTrainedTokenizer and PreTrainedTokenizerFast. - [Utilities for Trainer](https://huggingface.co/docs/transformers/main/internal/trainer_utils.md): This page lists all the utility functions used by Trainer. - [Utilities for generation](https://huggingface.co/docs/transformers/main/internal/generation_utils.md): This page lists all the utility functions used by generate(). - [Utilities for image processors](https://huggingface.co/docs/transformers/main/internal/image_processing_utils.md): This page lists all the utility functions used by the image processors, mainly the functional transformations used to process the images. - [Utilities for audio processing](https://huggingface.co/docs/transformers/main/internal/audio_utils.md): This page lists all the utility functions that can be used by the audio `FeatureExtractor` in order to compute special features from a raw audio using common algorithms such as Short Time Fourier… - [General utilities](https://huggingface.co/docs/transformers/main/internal/file_utils.md): This page lists all of Transformers general utility functions that are found in the file `utils.py`. - [Importing utilities](https://huggingface.co/docs/transformers/main/internal/import_utils.md): This page goes through the transformers utilities to enable lazy and fast object import. - [Utilities for time series](https://huggingface.co/docs/transformers/main/internal/time_series_utils.md): This page lists all the utility functions and classes that can be used for Time Series based models. - [Rotary embeddings utilities](https://huggingface.co/docs/transformers/main/internal/rope_utils.md): This page explains how the Rotary Embedding is computed and applied in Transformers and what types of RoPE are supported. ### Reference - [Environment variables](https://huggingface.co/docs/transformers/main/reference/environment_variables.md): Boolean variables accept `1`, `on`, `yes`, or `true` in any capitalization.