Instructions to use AbdulElahGwaith/transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbdulElahGwaith/transformers with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AbdulElahGwaith/transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download docs/source/en/main_classes/peft.md from AbdulElahGwaith/transformers: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/en/main_classes/peft.md
- Command line
-
hf download hf://AbdulElahGwaith/transformers/docs/source/en/main_classes/peft.md
-
curl -L -o peft.md https://huggingface.co/AbdulElahGwaith/transformers/resolve/main/docs/source/en/main_classes/peft.md
1.29 kB
PEFT
The [~integrations.PeftAdapterMixin] provides functions from the PEFT library for managing adapters with Transformers. This mixin currently supports LoRA, IA3, and AdaLora. Prefix tuning methods (prompt tuning, prompt learning) aren't supported because they can't be injected into a torch module.
[[autodoc]] integrations.PeftAdapterMixin - load_adapter - add_adapter - set_adapter - disable_adapters - enable_adapters - active_adapters - get_adapter_state_dict