How to use peft-internal-testing/tiny_GPT2ForTokenClassification-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForTokenClassification base_model = AutoModelForTokenClassification.from_pretrained("hf-internal-testing/tiny-random-gpt2") model = PeftModel.from_pretrained(base_model, "peft-internal-testing/tiny_GPT2ForTokenClassification-lora")
The community tab is the place to discuss and collaborate with the HF community!