awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
huggingface avatar

huggingface/peft

0
View on GitHub↗
21,274 stars·2,337 forks·Python·Apache-2.0·32 viewshuggingface.co/docs/peft↗

Peft

This library provides a framework for parameter-efficient fine-tuning, enabling the adaptation of large pretrained models by training only a small subset of parameters. It functions as a distributed model training system and optimization toolkit, designed to reduce the computational and memory requirements typically associated with full model fine-tuning.

The project distinguishes itself through a suite of methods for modular adapter composition, including low-rank matrix decomposition and activation-based scaling. It supports the integration of multiple task-specific adapter modules, allowing users to merge, route, and combine these components into base model architectures. To ensure efficient inference, the library provides capabilities to integrate trained adapter weights directly into the original model.

The framework includes extensive support for memory-optimized training, utilizing techniques such as parameter offloading to system memory, low-bit quantization, and distributed parameter sharding across multiple hardware devices. These features allow for the training of massive models that exceed the memory capacity of individual graphics processing units. The library is distributed as a Python package and includes command-line tools for managing training tasks and authentication.

Features

  • Parameter Efficient Fine-Tuning - Provides a library for parameter-efficient fine-tuning of large pretrained models.
  • Large Language Model Fine-Tuning Frameworks - Provides a framework for adapting large pretrained models to downstream tasks through parameter-efficient fine-tuning.
  • Large Language Model Optimization - Provides a toolkit for optimizing large language models via weight decomposition and activation scaling.
  • Parameter Adaptation Techniques - Decomposes large model matrices into smaller low-rank matrices to enable fine-tuning with minimal trainable parameters.
  • Distributed Training Frameworks - Functions as a distributed training framework designed for memory-efficient sharding and parameter offloading.
  • Model Adapters - Enables modular adapter composition by merging and routing specialized adapter modules into base models.
  • Low-Rank Decompositions - Reduces trainable parameter counts by representing large weight updates as the product of two significantly smaller matrices.
  • Activation-Based Prompt Tuning - Implements activation-based tuning to adapt model behavior without modifying base weights.
  • Distributed Training - Scales model training across multiple hardware devices using distributed parameter sharding.
  • Distributed Training Sharding - Enables training of massive models by partitioning parameters and optimizer states across multiple hardware devices.
  • Distributed Training Utilities - Splits model parameters and gradients across multiple devices to train massive models exceeding single-GPU memory.
  • Weight Merging Utilities - Integrates trained adapter weights directly into the original model to eliminate inference latency.
  • Memory Optimization Techniques - Implements memory offloading techniques to move model parameters and optimizer states to system memory during training.
  • Weight Offloading - Moves sharded model parameters to system memory to reduce graphics memory consumption during training.
  • Model Weight Reconstruction - Integrates trained adapter matrices directly into base model weights to create standalone models for efficient inference.
  • Parameter-Efficient Adaptation - Integrates task-specific adapter modules into base architectures using parameter-efficient adaptation methods.
  • Training Memory Management - Optimizes memory usage during training through parameter offloading and low-bit quantization.
  • Frozen Base Models - Supports fine-tuning by keeping the primary model parameters frozen while training lightweight adapter layers.
  • Activation Scaling Adapters - Trains learned vectors to rescale internal model activations for task-specific adaptation.
  • Model Quantization - Supports low-bit quantization of model weights during fine-tuning to reduce memory footprint.
  • Orthogonal Adaptation Strategies - Applies multiplicative orthogonal weight updates to frozen models to adapt them to new tasks.
  • Application Development Tools - Library for parameter-efficient fine-tuning of large language models.
  • Large Language Models - Library for parameter-efficient fine-tuning of models.
  • Machine Learning - Library for adapting large pretrained models.
  • Machine Learning Libraries - Parameter-efficient fine-tuning for large models.
  • Model Fine Tuning - Implements state-of-the-art parameter-efficient fine-tuning techniques.
  • Model Optimization and Deployment - Parameter-efficient methods for fine-tuning large pre-trained models.
  • Model Training - Library for parameter-efficient fine-tuning of large models.
  • Model Training and Fine-tuning - Parameter-efficient fine-tuning library.
  • Computation and Optimization - Methods for parameter-efficient fine-tuning of pre-trained models.
  • Large Language Models (LLMs) - Listed in the “Large Language Models (LLMs)” section of the The Incredible Pytorch awesome list.
  • Weight Initialization - Uses gradient-based singular value decomposition to initialize adapter weights for faster convergence.
  • Gradient-Based Initializers - Accelerates convergence by initializing adapter weights using gradient-based singular value decomposition.
  • Adapter Routing Strategies - Routes and merges multiple trained low-rank modules to solve new tasks.
  • Adapter Management - Combines several trained adapter modules using weighted averages to create unified adapter configurations.
  • Adapter Dimension Suppressors - Identifies and suppresses specific adapter dimensions that cause catastrophic forgetting to recover original model knowledge.

Star history

Star history chart for huggingface/peftStar history chart for huggingface/peft

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Peft

Similar open-source projects, ranked by how many features they share with Peft.
  • microsoft/loramicrosoft avatar

    microsoft/LoRA

    13,264View on GitHub↗

    LoRA is a framework for parameter-efficient fine-tuning of large-scale neural networks. It functions by injecting trainable low-rank decomposition matrices into frozen model layers, allowing for task-specific adaptation while preserving the integrity of the original base model weights. The project distinguishes itself by enabling the direct merging of these trained low-rank matrices into primary model weights. This process eliminates additional computational overhead during inference, ensuring that adapted models maintain the same performance characteristics as the original architecture. Furt

    Pythonadaptationdebertadeep-learning
    View on GitHub↗13,264
  • zhaochenyang20/awesome-ml-sys-tutorialzhaochenyang20 avatar

    zhaochenyang20/Awesome-ML-SYS-Tutorial

    5,371View on GitHub↗

    This project provides a comprehensive technical guide and framework for engineering large-scale machine learning systems. It covers the full lifecycle of model development, focusing on the infrastructure and computational principles required to build, train, and serve generative AI models across distributed GPU clusters. The repository distinguishes itself by offering deep-dive tutorials and implementation strategies for complex system challenges. It emphasizes high-performance architectural primitives, such as collective communication orchestration, distributed tensor sharding, and static gr

    Python
    View on GitHub↗5,371
  • hiyouga/llama-factoryhiyouga avatar

    hiyouga/LLaMA-Factory

    72,241View on GitHub↗

    LLaMA-Factory is a comprehensive suite for dataset preparation, model fine-tuning, memory optimization, and standardized API deployment. It provides a unified platform for the supervised and reward-based fine-tuning of large language models and vision-language models. The framework includes a specialized toolkit for training vision-language models and a model serving interface that deploys trained models through high-performance APIs. It utilizes precision tuning and quantization techniques to reduce the hardware requirements and memory footprint of large models. The system covers data pipel

    Python
    View on GitHub↗72,241
  • pytorch/torchtunepytorch avatar

    pytorch/torchtune

    5,774View on GitHub↗

    Torchtune is a PyTorch-native library for fine-tuning, aligning, and quantizing large language models. It provides a configurable training pipeline orchestrated through YAML recipes, with CLI overrides and component swapping, distributed training via FSDP2, memory optimizations, and parameter-efficient fine-tuning methods like LoRA, DoRA, and QLoRA. The library distinguishes itself through its YAML-driven configuration system that defines all training parameters and instantiates components from config files, with full CLI override capability for any field or component at launch time. It suppo

    Python
    View on GitHub↗5,774
See all 30 alternatives to Peft→

Frequently asked questions

What does huggingface/peft do?

This library provides a framework for parameter-efficient fine-tuning, enabling the adaptation of large pretrained models by training only a small subset of parameters. It functions as a distributed model training system and optimization toolkit, designed to reduce the computational and memory requirements typically associated with full model fine-tuning.

What are the main features of huggingface/peft?

The main features of huggingface/peft are: Parameter Efficient Fine-Tuning, Large Language Model Fine-Tuning Frameworks, Large Language Model Optimization, Parameter Adaptation Techniques, Distributed Training Frameworks, Model Adapters, Low-Rank Decompositions, Activation-Based Prompt Tuning.

What are some open-source alternatives to huggingface/peft?

Open-source alternatives to huggingface/peft include: microsoft/lora — LoRA is a framework for parameter-efficient fine-tuning of large-scale neural networks. It functions by injecting… zhaochenyang20/awesome-ml-sys-tutorial — This project provides a comprehensive technical guide and framework for engineering large-scale machine learning… hiyouga/llama-factory — LLaMA-Factory is a comprehensive suite for dataset preparation, model fine-tuning, memory optimization, and… pytorch/torchtune — Torchtune is a PyTorch-native library for fine-tuning, aligning, and quantizing large language models. It provides a… deepspeedai/deepspeed — DeepSpeed is a high-performance library designed to scale deep learning model training and inference across massive… axolotl-ai-cloud/axolotl — Axolotl is a configuration-driven framework designed for the fine-tuning, evaluation, and quantization of large…