Instructions to use monsterapi/gpt2_alpaca-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use monsterapi/gpt2_alpaca-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("gpt2") model = PeftModel.from_pretrained(base_model, "monsterapi/gpt2_alpaca-lora") - Notebooks
- Google Colab
- Kaggle
File size: 767 Bytes
a32e068 ced7145 a32e068 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ---
library_name: peft
tags:
- gpt2
- code
- instruct
- alpaca-instruct
- alpaca
datasets:
- tatsu-lab/alpaca
base_model: gpt2
---
We finetuned gpt2 on tatsu-lab/alpaca Dataset for 5 epochs using [MonsterAPI](https://monsterapi.ai) no-code [LLM finetuner](https://docs.monsterapi.ai/fine-tune-a-large-language-model-llm).
This dataset is HuggingFaceH4/tatsu-lab/alpaca unfiltered, removing 36 instances of blatant alignment.
The finetuning session got completed in 20 minutes and costed us only `$3` for the entire finetuning run!
#### Hyperparameters & Run details:
- Model: gpt2
- Dataset: tatsu-lab/alpaca
- Learning rate: 0.0003
- Number of epochs: 5
- Data split: Training: 90% / Validation: 10%
- Gradient accumulation steps: 1
---
license: apache-2.0
---
|