chunk_content: A adapter. 
  
  
  	Copied
  def create_weighted_lora_adapter(pipe, adapters, weights, adapter_name="default"):
      pipe.unet.add_weighted_adapter(adapters, weights, adapter_name)
      if isinstance(pipe.text_encoder, PeftModel):
          pipe.text_encoder.add_weighted_adapter(adapters, weights, adapter_name)
  
      return pipe
  Let’s load the second adapter from the model fine-tuned on images of a crochet toy, and give it a unique name:
  
  
  	Copied
  load_ada