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

base_model = AutoModelForQuestionAnswering.from_pretrained("hf-internal-testing/tiny-random-OPTForCausalLM")
model = PeftModel.from_pretrained(base_model, "peft-internal-testing/tiny_OPTForQuestionAnswering-lora")

Training procedure

Framework versions

  • PEFT 0.4.0.dev0
Downloads last month
31,528
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using peft-internal-testing/tiny_OPTForQuestionAnswering-lora 1