chunk_content: that uses set_adapter() method of PeftModel (see pipe.unet.set_adapter(adapter_name))
  
  
  	Copied
  def set_adapter(pipe, adapter_name):
      pipe.unet.set_adapter(adapter_name)
      if isinstance(pipe.text_encoder, PeftModel):
          pipe.text_encoder.set_adapter(adapter_name)
  Finally, add a function to create weighted LoRA adapter. 
  
  
  	Copied
  def create_weighted_lora_adapter(pipe, adapters, weights, adapter_name="default"):
      pipe.unet.add_weigh