huggingface/peft
🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.
https://skillcdn.ai/gh/huggingface/peftConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
26d926a - 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
- PEFT checkpoint formatThis document describes how PEFT's checkpoint files are structured and how to convert between the PEFT format and other formats.docs/source/developer_guides/checkpoint.md
- Contribute to PEFTWe are happy to accept contributions to PEFT. If you plan to contribute, please read this to make the process as smooth as possible.docs/source/developer_guides/contributing.md
- Custom modelsSome fine-tuning techniques, such as prompt tuning, are specific to language models. That means in 🤗 PEFT, it is assumed a 🤗 Transformers model is being used. However, other fine-tuning techniques…docs/source/developer_guides/custom_models.md
- Adapter injectionWith PEFT, you can inject trainable adapters into any torch module which allows you to use adapter methods without relying on the modeling classes in PEFT. This works for all adapters except for thos…docs/source/developer_guides/low_level_api.md
- Memory Efficient Training🤗 PEFT makes fine-tuning parameter efficient, but not automatically memory efficient. This overview collects tips for cutting training memory and links to the detailed guides.docs/source/developer_guides/memory_efficient_training.md
- Mixed adapter typesNormally, it isn't possible to mix different adapter types in 🤗 PEFT. You can create a PEFT model with two different LoRA adapters (which can have different config options), but it is not possible t…docs/source/developer_guides/mixed_models.md
- Model mergingTraining a model for each task can be costly, take up storage space, and the models aren't able to learn new information to improve their performance. Multitask learning can overcome some of these li…docs/source/developer_guides/model_merging.md
- QuantizationQuantization represents data with fewer bits, making it a useful technique for reducing memory-usage and accelerating inference especially when it comes to large language models (LLMs). There are sev…docs/source/developer_guides/quantization.md
- torch.compileIn PEFT, torch.compile works for some but not all features. The reason why it won't always work is because PEFT is highly dynamic in certain places (loading and switching between multiple adapters, f…docs/source/developer_guides/torch_compile.md
- TroubleshootingIf you encounter any issue when using PEFT, please check the following list of common issues and their solutions.docs/source/developer_guides/troubleshooting.md
Skipped (23)
These manifests were not served. Fix them and push: the next commit is indexed again.
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, ...)