huggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
https://skillcdn.ai/gh/huggingface/transformersConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
6259c23 - License
Apache-2.0 - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Documents
- BackboneA backbone is a model used for feature extraction for higher level computer vision tasks such as object detection and image classification. Transformers provides an [AutoBackbone] class for initializ…docs/source/en/main_classes/backbones.md
- CallbacksCallbacks 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 M…docs/source/en/main_classes/callback.md
- ConfigurationThe 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 libr…docs/source/en/main_classes/configuration.md
- Continuous batchingThis page documents the classes behind continuous batching inference: submitting prompts, configuring scheduling and memory limits, and retrieving results.docs/source/en/main_classes/continuous_batching.md
- Data collatorData collators are objects that will form a batch by using a list of dataset elements as input. These elements are of the same type as the elements of train_dataset or eval_dataset.docs/source/en/main_classes/data_collator.md
- DeepSpeedDeepSpeed, powered by Zero Redundancy Optimizer (ZeRO), is an optimization library for training and fitting very large models onto a GPU. It is available in several ZeRO stages, where each stage prog…docs/source/en/main_classes/deepspeed.md
- ExecuTorchExecuTorch is an end-to-end solution for enabling on-device inference capabilities across mobile and edge devices including wearables, embedded devices and microcontrollers. It is part of the PyTorch…docs/source/en/main_classes/executorch.md
- ExportersNew export backends can be added to Transformers by subclassing [HfExporter] and registering it with [~exporters.register_backend].docs/source/en/main_classes/exporters.md
- Feature extractorA feature extractor is in charge of preparing input features for audio models. This includes feature extraction from sequences, e.g., pre-processing audio files to generate Log-Mel Spectrogram featur…docs/source/en/main_classes/feature_extractor.md
- Image processorAn image processor is in charge of loading images (optionally), preparing input features for vision models and post processing their outputs. This includes transformations such as resizing, normaliza…docs/source/en/main_classes/image_processor.md
- kernels.mdThis page documents the kernels configuration utilities.docs/source/en/main_classes/kernels.md
- Logging🤗 Transformers has a centralized logging system, so that you can setup the verbosity of the library easily.docs/source/en/main_classes/logging.md
- ModelsThe 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 (down…docs/source/en/main_classes/model.md
- OptimizationThe .optimization module provides:docs/source/en/main_classes/optimizer_schedules.md
- Model outputsAll models have outputs that are instances of subclasses of [~utils.ModelOutput]. Those are data structures containing all the information returned by the model, but that can also be used as tuples o…docs/source/en/main_classes/output.md
- PEFTThe [~integrations.PeftAdapterMixin] provides functions from the PEFT library for managing adapters with Transformers. This mixin supports all non-prompt-learning PEFT methods (LoRA, IA3, AdaLoRA, an…docs/source/en/main_classes/peft.md
- PipelinesThe pipelines are a great and easy way to use models for inference. These pipelines are objects that abstract most of the complex code from the library, offering a simple API dedicated to several tas…docs/source/en/main_classes/pipelines.md
- ProcessorsAny multi-modal model will require an object to encode or decode the data that groups several modalities (among text, vision and audio). This is handled by objects called processors, which group toge…docs/source/en/main_classes/processors.md
- QuantizationQuantization techniques reduce memory and computational costs by representing weights and activations with lower-precision data types like 8-bit integers (int8). This enables loading larger models yo…docs/source/en/main_classes/quantization.md
- GenerationEach framework has a generate method for text generation implemented in their respective GenerationMixin class:docs/source/en/main_classes/text_generation.md
- TokenizerA tokenizer is in charge of preparing the inputs for a model. The library contains tokenizers for all the models. Most of the tokenizers are available in two flavors: a full python implementation and…docs/source/en/main_classes/tokenizer.md
- TrainerThe [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…docs/source/en/main_classes/trainer.md
- Video processorA Video Processor is a utility responsible for preparing input features for video models, as well as handling the post-processing of their outputs. It provides transformations such as resizing, norma…docs/source/en/main_classes/video_processor.md
Skipped (50)
These manifests were not served. Fix them and push: the next commit is indexed again.
README.mdlink_missinga link names no file of the repository (./contributing)docs/source/en/accelerate.mdlink_missing3 links name no file of the repository (./fsdp, ./deepspeed, ./ddp)docs/source/en/add_audio_processing_components.mdlink_missing3 links name no file of the repository (./modular_transformers, ./auto_docstring, ./feature_extractors)docs/source/en/add_new_model.mdlink_missing7 links name no file of the repository (./modular_transformers, ./philosophy, ./installation#editable-install, ...)docs/source/en/add_vision_processing_components.mdlink_missing4 links name no file of the repository (./modular_transformers, ./auto_docstring, ./image_processors, ...)docs/source/en/amd_gpu.mdlink_missing12 links name no file of the repository (./attention_interface, ./kernel_doc/loading_kernels, ./quantization/awq, ...)docs/source/en/apple_silicon.mdlink_missing10 links name no file of the repository (./attention_interface, ./model_doc/gpt_oss, ./quantization/gguf#attention, ...)docs/source/en/assisted_decoding.mdlink_missing2 links name no file of the repository (./perf_torch_compile, ./kv_cache#fixed-size-cache)docs/source/en/attention_interface.mdlink_missinga link names no file of the repository (./kernel_doc/loading_kernels#flashattention-fallback)docs/source/en/auto_docstring.mdlink_missinga link names no file of the repository (./modular_transformers)docs/source/en/aws_trainium.mdlink_missing4 links name no file of the repository (./kv_cache#keep-generation-tensors-on-cpu, ./tensor_parallelism, ./expert_parallelism, ...)docs/source/en/backbones.mdlink_missing4 links name no file of the repository (./main_classes/backbones, ./model_doc/auto, ./model_doc/resnet, ...)docs/source/en/chat_content_patterns.mdlink_missinga link names no file of the repository (./chat_extras)docs/source/en/chat_extras.mdlink_missing3 links name no file of the repository (./model_doc/cohere, ./model_doc/mixtral, ./chat_response_parsing)docs/source/en/chat_response_parsing.mdlink_missing2 links name no file of the repository (./chat_extras, ./chat_templating)docs/source/en/chat_templating.mdlink_missing3 links name no file of the repository (./conversations, ./model_doc/llama, ./tasks/language_modeling)docs/source/en/chat_templating_multimodal.mdlink_missing6 links name no file of the repository (./fast_tokenizers, ./processors, ./llm_tutorial#prompt-format, ...)docs/source/en/chat_templating_writing.mdlink_missing2 links name no file of the repository (./chat_extras, ./model_doc/cohere)docs/source/en/community.mdlink_missinga link names no file of the repository (glossary)docs/source/en/community_integrations/axolotl.mdlink_missing3 links name no file of the repository (./trl, ../main_classes/quantization, ../attention_interface)docs/source/en/community_integrations/candle.mdlink_missinga link names no file of the repository (../installation#cache-directory)docs/source/en/community_integrations/executorch.mdlink_missinga link names no file of the repository (../serialization#executorch)docs/source/en/community_integrations/nemo_automodel_finetuning.mdlink_missinga link names no file of the repository (./nemo_automodel_pretraining)docs/source/en/community_integrations/nemo_automodel_pretraining.mdlink_missinga link names no file of the repository (./nemo_automodel_finetuning)docs/source/en/community_integrations/sglang.mdlink_missinga link names no file of the repository (./transformers_as_backend#model-implementation)docs/source/en/community_integrations/torchtitan.mdlink_missinga link names no file of the repository (../perf_torch_compile)docs/source/en/community_integrations/transformers_as_backend.mdlink_missing3 links name no file of the repository (../add_new_model, ../custom_models, ../add_vision_processing_components)docs/source/en/continuous_batching.mdlink_missing8 links name no file of the repository (./serve-cli/serving_optims#continuous-batching, ./continuous_batching_architecture#memory-management, ./continuous_batching_architecture#chunked-prefill, ...)docs/source/en/continuous_batching_architecture.mdlink_missinga link names no file of the repository (./continuous_batching)docs/source/en/conversations.mdlink_missing12 links name no file of the repository (./installation, ./serve-cli/serving, ./model_doc/auto, ...)docs/source/en/cpu.mdlink_missinga link names no file of the repository (./ddp)docs/source/en/custom_models.mdlink_missing3 links name no file of the repository (./models#model-classes, ./model_doc/auto, ./models#custom-models)docs/source/en/custom_tokenizers.mdlink_missinga link names no file of the repository (./fast_tokenizers#backends)docs/source/en/data_collators.mdlink_missinga link names no file of the repository (./main_classes/data_collator)docs/source/en/ddp.mdlink_missing3 links name no file of the repository (./accelerate, ./fsdp, ./deepspeed)docs/source/en/deepspeed.mdlink_missing2 links name no file of the repository (./debugging#deepspeed-cuda, ./accelerate#accelerate-config-file)docs/source/en/deepspeed_alst.mdlink_missing3 links name no file of the repository (./accelerate#accelerate-config-file, ./fsdp#evaluate-with-context-parallelism, ./perf_train_gpu_many)docs/source/en/expert_parallelism.mdlink_missing2 links name no file of the repository (./perf_infer_gpu_multi, ./fsdp)docs/source/en/experts_interface.mdlink_missinga link names no file of the repository (./quantization/finegrained_fp8)docs/source/en/exporters.mdlink_missing2 links name no file of the repository (./exporters_quantization, ./exporters_extend)docs/source/en/exporters_quantization.mdlink_missing2 links name no file of the repository (./exporters, ./exporters#how-exportforgeneration-works)docs/source/en/fast_tokenizers.mdlink_missinga link names no file of the repository (./custom_tokenizers)docs/source/en/feature_extractors.mdlink_missing2 links name no file of the repository (./model_doc/auto, ./model_doc/whisper)docs/source/en/fsdp.mdlink_missing8 links name no file of the repository (./ddp, ./tensor_parallelism, ./expert_parallelism, ...)docs/source/en/fusion_mapping.mdlink_missing2 links name no file of the repository (./monkey_patching, ./weightconverter)docs/source/en/glossary.mdlink_missing9 links name no file of the repository (./model_doc/dpt, ./perf_train_gpu_many#dataparallel, ./training, ...)docs/source/en/google_tpu.mdlink_missing2 links name no file of the repository (./kv_cache#keep-generation-tensors-on-cpu, ./kernel_doc/loading_kernels)docs/source/en/grad_accumulation.mdlink_missing4 links name no file of the repository (./trainer_recipes#custom-loss-function, ./model_memory_anatomy, ./grad_checkpointing, ...)docs/source/en/grad_checkpointing.mdlink_missing4 links name no file of the repository (./grad_accumulation, ./model_memory_anatomy, ./mixed_precision_training, ...)docs/source/en/hardware.mdlink_missing8 links name no file of the repository (./cpu, ./nvidia_gpu, ./amd_gpu, ...)