chunk_content: might stem from in-place modifications,
  initialize the base model just like you did earlier and construct the inference model.
  
  
  	Copied
  from peft import PeftConfig, PeftModel
  
  
  config = PeftConfig.from_pretrained(repo_name)
  model = AutoModelForImageClassification.from_pretrained(
      config.base_model_name_or_path,
      label2id=label2id,
      id2label=id2label,
      ignore_mismatched_sizes=True,  # provide this in case you're planning to fine-tu