How to use from the
Use from the
PEFT library
from peft import PeftModel
from transformers import AutoModelForSequenceClassification

base_model = AutoModelForSequenceClassification.from_pretrained("peft-internal-testing/tiny-random-OPTForCausalLM")
model = PeftModel.from_pretrained(base_model, "peft-internal-testing/tiny_OPTForSequenceClassification-lora")

Training procedure

Framework versions

  • PEFT 0.4.0.dev0
Downloads last month
23,405
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support