huggingface/peft
🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.
https://skillcdn.ai/gh/huggingface/peft내 AI에 이 주소를 연결하면 이 스킬들을 쓸 수 있어요. 연결 방법 보기
- 미확인
- 기본 브랜치
main - 커밋
26d926a - 라이선스
Apache-2.0 - 검색단어
저장소 둘러보기
스킬과 문서의 원문에서 찾습니다. 원문과 다른 언어로 검색하면 스킬의 번역에서도 찾아요.
문서
- AdaLoRAAdaLoRA (Adaptive LoRA) is a method for optimizing the number of trainable parameters to assign to weight matrices and layers, unlike LoRA, which distributes parameters evenly across all modules. Mor…docs/source/package_reference/adalora.md
- AdaMSSAdaMSS (AdaMSS: Adaptive Multi-Subspace Approach for Parameter-Efficient Fine-Tuning) is a parameter-efficient fine-tuning method that decomposes weight matrices using SVD and clusters the decomposed…docs/source/package_reference/adamss.md
- LyCORISLyCORIS (Lora beYond Conventional methods, Other Rank adaptation Implementations for Stable diffusion) are LoRA-like matrix decomposition adapters that modify the cross-attention layer of the UNet. T…docs/source/package_reference/adapter_utils.md
- AutoPeftModelsThe AutoPeftModel classes loads the appropriate PEFT model for the task type by automatically inferring it from the configuration file. They are designed to quickly and easily load a PEFT model in a…docs/source/package_reference/auto_class.md
- BEFT: Bias-Efficient Fine-Tuning of Language Models in Low-Data RegimesBEFT is a parameter efficient fine-tuning algorithm (PEFT) that only fine-tunes the added bias terms of value projections from pretrained transformer models. BEFT demonstrates that fine-tuning the ad…docs/source/package_reference/beft.md
- BOFTOrthogonal Butterfly (BOFT) is a generic method designed for finetuning foundation models. It improves the parameter efficiency of the finetuning paradigm -- Orthogonal Finetuning (OFT), by taking in…docs/source/package_reference/boft.md
- C3A: Parameter-Efficient Fine-Tuning via Circular ConvolutionC3A is a parameter-efficient fine-tuning technique that leverages Circular Convolution to achieve high rank adaptation within reasonable resource limits.docs/source/package_reference/c3a.md
- CartridgesCartridges are a prompt-learning method that stores a compressed long-context representation as a parameterized KV-cache prefix. The core idea comes from the paper Cartridges: Lightweight and general…docs/source/package_reference/cartridges.md
- Configuration[PeftConfigMixin] is the base configuration class for storing the adapter configuration of a [PeftModel], and [PromptLearningConfig] is the base configuration class for soft prompt methods (p-tuning,…docs/source/package_reference/config.md
- Context-aware Prompt Tuning: Advancing In-Context Learning with Adversarial MethodsContext-Aware Prompt Tuning (CPT) is designed to enhance few-shot classification by refining only context embeddings. This approach combines ideas from In-Context Learning (ICL), Prompt Tuning (PT),…docs/source/package_reference/cpt.md
- DEFT: Decompositional Efficient Fine-Tuning for Text-to-Image ModelsDEFT (Decompositional Efficient Fine-Tuning) is a parameter-efficient fine-tuning method for text-to-image models. It decomposes the update of a frozen weight matrix W into two trainable components:…docs/source/package_reference/deft.md
- DeLoRA: Decoupled Low-rank AdaptationDeLoRA is a parameter-efficient fine-tuning technique that implicitly maintains a Frobenius boundary with respect to the pretrained weights by normalizing and scaling learnable low-rank matrices. Thi…docs/source/package_reference/delora.md
- Errors[[autodoc]] utils.error.PeftErrordocs/source/package_reference/errors.md
- FourierFT: Discrete Fourier Transformation Fine-TuningFourierFT is a parameter-efficient fine-tuning technique that leverages Discrete Fourier Transform to compress the model's tunable weights. This method outperforms LoRA in the GLUE benchmark and comm…docs/source/package_reference/fourierft.md
- FRoD: Full-Rank Efficient Fine-Tuning with Rotational DegreesFRoD is a parameter-efficient fine-tuning method that combines a shared full-rank basis with sparse learnable rotational degrees. The adapter update is expressed through fixed projection tensors and…docs/source/package_reference/frod.md
- Functions for PEFT integrationA collection of functions that could be useful for non-PeftModel models, e.g. transformers or diffusers integrationdocs/source/package_reference/functional.md
- GLoRAGeneralized Low-Rank Adaptation (GLoRA) is a PEFT method that generalizes LoRA and related approaches. GLoRA decomposes updates into configurable paths (A, B, C, D, E), where each path can use low-ra…docs/source/package_reference/glora.md
- GraLoRAGranular Low-Rank Adaptation (GraLoRA) is a PEFT method designed to enhance the expressivity of low-rank adaptation while improving robustness to outlier activations, based on insights from well-know…docs/source/package_reference/gralora.md
- Helper methodsA collection of helper functions for PEFT.docs/source/package_reference/helpers.md
- HiRAHigh-Rank Adaptation (HiRA) is a PEFT method that extends the LoRA approach by applying an element-wise modulation on the original weight matrix. Instead of adding a low-rank update directly, HiRA co…docs/source/package_reference/hira.md
- Hotswapping adaptersThe idea of hotswapping an adapter is the following: We can already load multiple adapters, e.g. two LoRAs, at the same time. But sometimes, we want to load one LoRA and then replace its weights in-p…docs/source/package_reference/hotswap.md
- Bridging The Gap between Low-rank and Orthogonal Adaptation via Householder Reflection Adaptation (HRA)HRA provides a new perspective connecting LoRA to OFT, which means it can harness the advantages of both strategies, by leveraging Householder reflections to reduce parameters and computation costs w…docs/source/package_reference/hra.md
- IA3Infused Adapter by Inhibiting and Amplifying Inner Activations, or IA3, is a method that adds three learned vectors to rescale the keys and values of the self-attention and encoder-decoder attention…docs/source/package_reference/ia3.md
- LayerNorm TuningLayerNorm Tuning (LN Tuning) is a PEFT method that only fine-tunes the parameters of the LayerNorm layers in a model. The paper has tested the performance of this method on large language models and…docs/source/package_reference/layernorm_tuning.md
- Lily: Low-Rank Interconnected Adaptation across LayersLily is a parameter-efficient fine-tuning technique that introduces cross-layer weight sharing for adapter matrices. Instead of learning an independent AB pair per layer as in LoRA, Lily uses locally…docs/source/package_reference/lily.md
- Llama-AdapterLlama-Adapter is a PEFT method specifically designed for turning Llama into an instruction-following model. The Llama model is frozen and only a set of adaptation prompts prefixed to the input instru…docs/source/package_reference/llama_adapter.md
- LoHaLow-Rank Hadamard Product (LoHa), is similar to LoRA except it approximates the large weight matrix with more low-rank matrices and combines them with the Hadamard product. This method is even more p…docs/source/package_reference/loha.md
- LoKrLow-Rank Kronecker Product (LoKr), is a LoRA-variant method that approximates the large weight matrix with two low-rank matrices and combines them with the Kronecker product. LoKr also provides an op…docs/source/package_reference/lokr.md
- LoRALow-Rank Adaptation (LoRA) is a PEFT method that decomposes a large matrix into two smaller low-rank matrices. This drastically reduces the number of parameters that need to be fine-tuned.docs/source/package_reference/lora.md
- LoRA conversionFunctions that allow to convert non-LoRA PEFT models to LoRA models.docs/source/package_reference/lora_conversion.md
- Block-Diagonal LoRA for Eliminating Communication Overhead in Tensor Parallel LoRA ServingBlock-Diagonal LoRA (BD-LoRA) is a LoRA variant in which some LoRA factors are constrained to be block-diagonal. This allows faster serving by eliminating communication overheads when running inferen…docs/source/package_reference/lora_variant_bdlora.md
- Weight-Decomposed Low-Rank Adaptation (DoRA)This technique decomposes the updates of the weights into two parts, magnitude and direction. Direction is handled by normal LoRA, whereas the magnitude is handled by a separate learnable parameter.…docs/source/package_reference/lora_variant_dora.md
- lora_variant_kasa.mdKaSA (Knowledge-aware Singular-value Adaptation) is a LoRA variant that uses the singular value decomposition of the base weight to filter out task-irrelevant knowledge and parametrizes the update wi…docs/source/package_reference/lora_variant_kasa.md
- MonteCLoRA (Monte Carlo Low-Rank Adaptation)MonteCLoRA wraps a standard LoRA adapter with a small variational module that draws Monte Carlo samples of stochastic perturbations on top of the LoRA A matrix during training. Concretely, it learns…docs/source/package_reference/lora_variant_monteclora.md
- lora_variant_velora.mdVeLoRA is a LoRA variant that reduces training memory by compressing the activations saved for the LoRA in the forward pass and then reconstructing them in the backwards pass to implement the update…docs/source/package_reference/lora_variant_velora.md
- Model mergePEFT provides several internal utilities for merging LoRA adapters with the TIES and DARE methods.docs/source/package_reference/merge_utils.md
- MiSSMiSS (Matrix Shard Sharing) is a PEFT method that achieves a good balance between model performance and computational efficiency. It requires only a single trainable matrix and introduces a shard-sha…docs/source/package_reference/miss.md
- Multitask prompt tuningMultitask prompt tuning decomposes the soft prompts of each task into a single learned transferable prompt instead of a separate prompt for each task. The single learned prompt can be adapted for eac…docs/source/package_reference/multitask_prompt_tuning.md
- OFTOrthogonal Finetuning (OFT) and OFTv2 is a method developed for adapting text-to-image diffusion models. It works by reparameterizing the pretrained weight matrices with its orthogonal matrix to pres…docs/source/package_reference/oft.md
- OSF (Orthogonal Subspace Fine-tuning)Orthogonal Subspace Fine-tuning (OSF) is a PEFT method designed for continual learning that constrains parameter updates to be orthogonal to previously important directions. This approach enables ful…docs/source/package_reference/osf.md
- P-tuningP-tuning is designed for natural language understanding (NLU) tasks and all language models.docs/source/package_reference/p_tuning.md
- PaCA: Partial Connection AdaptationPaCA (ICLR 2025) is a PEFT method that targets training speed and activation memory. It fine-tunes r randomly selected input columns ("partial connections") of each targeted pretrained weight. The on…docs/source/package_reference/paca.md
- PEANuT: Parameter-Efficient Adaptation with Weight-aware Neural TweakersPEANuT is a parameter-efficient fine-tuning technique that introduces weight-aware neural tweakers to generate adapter updates from the frozen pretrained weights themselves. Instead of learning a pur…docs/source/package_reference/peanut.md
- Models[PeftModel] is the base model class for specifying the base Transformer model and configuration to apply a PEFT method to. The base PeftModel contains methods for loading and saving models from the H…docs/source/package_reference/peft_model.md
- PEFT types[PeftType] includes the supported adapters in PEFT, and [TaskType] includes PEFT-supported tasks.docs/source/package_reference/peft_types.md
- PolytroponPolytropon is a multitask model with a number of different LoRA adapters in its "inventory". The model learns the correct combination of adapters from the inventory with a routing function to choose…docs/source/package_reference/poly.md
- Prefix tuningPrefix tuning prefixes a series of task-specific vectors to the input sequence that can be learned while keeping the pretrained model frozen. The prefix parameters are inserted in all of the model la…docs/source/package_reference/prefix_tuning.md
- Prompt tuningPrompt tuning adds a task-specific, virtual prompt to the input that consists of trainable vectors in the embedding space. The virtual token parameters are updated independently of the pretrained mod…docs/source/package_reference/prompt_tuning.md
- PSOFTPSOFT is an Orthogonal Fine-Tuning (OFT)-based parameter-efficient fine-tuning method that preserves the geometric relationships of pre-trained weight column vectors while achieving a balanced trade-…docs/source/package_reference/psoft.md
- PVeRA: Probabilistic Vector-Based Random Matrix AdaptationPVeRA is a parameter-efficient fine-tuning technique that is base on VeRA, in the family of the LoRA-based adapters. It keeps the very low parameter budget of VeRA, but increases the performance by l…docs/source/package_reference/pvera.md
제외됨 (23)
아래 매니페스트는 제공되지 않았습니다. 수정해서 푸시하면 다음 커밋부터 다시 색인됩니다.
docs/source/accelerate/deepspeed.mdlink_missinga link names no file of the repository (../package_reference/tuners)docs/source/developer_guides/custom_models.mdlink_missinga link names no file of the repository (../package_reference/lora)docs/source/developer_guides/memory_efficient_training.mdlink_missing3 links name no file of the repository (troubleshooting#using-trainable-tokens, quantization, torch_compile)docs/source/developer_guides/troubleshooting.mdlink_missing2 links name no file of the repository (../package_reference/trainable_tokens, ../package_reference/lora#efficiently-train-tokens-alongside-lora)docs/source/guides/peft_model_config.mdlink_missing2 links name no file of the repository (../package_reference/auto_class, ../developer_guides/custom_models)docs/source/install.mdlink_missinga link names no file of the repository (developer_guides/contributing#installation)docs/source/methods/overview.mdlink_missing11 links name no file of the repository (../developer_guides/checkpoint#merge-the-weights, ../package_reference/layernorm_tuning, ../package_reference/trainable_tokens, ...)docs/source/package_reference/adalora.mdlink_missinga link names no file of the repository (../developer_guides/contributing#documentation-improvements)docs/source/package_reference/adapter_utils.mdlink_missing2 links name no file of the repository (loha, lokr)docs/source/package_reference/boft.mdlink_missinga link names no file of the repository (./oft)docs/source/package_reference/cpt.mdlink_missing2 links name no file of the repository (../package_reference/prompt_tuning, ./prompt_tuning)docs/source/package_reference/helpers.mdlink_missinga link names no file of the repository (hotswap#starting-with-a-dummy-adapter)docs/source/package_reference/ia3.mdlink_missinga link names no file of the repository (./lora)docs/source/package_reference/llama_adapter.mdlink_missinga link names no file of the repository (./lora)docs/source/package_reference/loha.mdlink_missing4 links name no file of the repository (./adapter_utils, ./lokr, ./peft_model#peft.PeftMixedModel, ...)docs/source/package_reference/lora.mdlink_missing4 links name no file of the repository (../developer_guides/quantization, ../developer_guides/quantization#merging-adapters-into-quantized-weights, ../developer_guides/troubleshooting#merging-only-some-of-the-active-adapters, ...)docs/source/package_reference/merge_utils.mdlink_missinga link names no file of the repository (../developer_guides/model_merging)docs/source/package_reference/poly.mdlink_missinga link names no file of the repository (./lora#Arrow)docs/source/package_reference/prefix_tuning.mdlink_missinga link names no file of the repository (../package_reference/prompt_tuning)docs/source/package_reference/prompt_tuning.mdlink_missinga link names no file of the repository (../package_reference/prefix_tuning)docs/source/package_reference/road.mdlink_missinga link names no file of the repository (lora#inference-with-different-lora-adapters-in-the-same-batch)docs/source/package_reference/trainable_tokens.mdlink_missinga link names no file of the repository (lora#efficiently-train-tokens-alongside-lora)docs/source/quicktour.mdlink_missing6 links name no file of the repository (./package_reference/lora, ./methods/overview, package_reference/peft_types#peft.TaskType, ...)