TypeError: LoraConfig.__init__() got an unexpected keyword argument 'enable_lora'

#6
by owi1972 - opened

I tried to use this model and followed the original blog post:
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline

load model

tokenizer = AutoTokenizer.from_pretrained("philschmid/instruct-igel-001")
model = AutoModelForCausalLM.from_pretrained("philschmid/instruct-igel-001")

load pipeline

generator = pipeline("text-generation",model=model,tokenizer=tokenizer)

run generation

generator("### Anweisung:\n{{input}}\n\n### Antwort:")

However when I run that code I get the following error:
TypeError: LoraConfig.init() got an unexpected keyword argument 'enable_lora'

Can someone tell me how to fix this issue?

Sign up or log in to comment