chunk_content:  for inference. Load the configuration and model:
  
  
  	Copied
  import torch
  from peft import PeftModel, PeftConfig
  from transformers import AutoModelForCausalLM, AutoTokenizer
  
  peft_model_id = "smangrul/roberta-large-peft-p-tuning"
  config = PeftConfig.from_pretrained(peft_model_id)
  inference_model = AutoModelForSequenceClassification.from_pretrained(config.base_model_name_or_path)
  tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or