Instructions to use 1112lee/kaggle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use 1112lee/kaggle with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2-medium") model = PeftModel.from_pretrained(base_model, "1112lee/kaggle") - Notebooks
- Google Colab
- Kaggle
|
Download working/peft/docs/source/package_reference/config.md from 1112lee/kaggle: direct link, hf CLI and curl.
- Browser
- Download file 848 Bytes
-
https://huggingface.co/1112lee/kaggle/resolve/main/working/peft/docs/source/package_reference/config.md
- Command line
-
hf download hf://1112lee/kaggle/working/peft/docs/source/package_reference/config.md
-
curl -L -o config.md https://huggingface.co/1112lee/kaggle/resolve/main/working/peft/docs/source/package_reference/config.md
848 Bytes
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, prefix tuning, and prompt tuning). These base classes contain methods for saving and loading model configurations from the Hub, specifying the PEFT method to use, type of task to perform, and model configurations like number of layers and number of attention heads.
PeftConfigMixin
[[autodoc]] config.PeftConfigMixin - all
PeftConfig
[[autodoc]] PeftConfig - all
PromptLearningConfig
[[autodoc]] PromptLearningConfig - all