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/_config.py from 1112lee/kaggle: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/1112lee/kaggle/resolve/main/working/peft/docs/source/_config.py
- Command line
-
hf download hf://1112lee/kaggle/working/peft/docs/source/_config.py
-
curl -L -o _config.py https://huggingface.co/1112lee/kaggle/resolve/main/working/peft/docs/source/_config.py
280 Bytes
| # docstyle-ignore | |
| INSTALL_CONTENT = """ | |
| # PEFT installation | |
| ! pip install peft accelerate transformers | |
| # To install from source instead of the last release, comment the command above and uncomment the following one. | |
| # ! pip install git+https://github.com/huggingface/peft.git | |
| """ | |