chunk_content: "unet")
      text_encoder_sub_dir = os.path.join(ckpt_dir, "text_encoder")
      pipe.unet.load_adapter(unet_sub_dir, adapter_name=adapter_name)
      if os.path.exists(text_encoder_sub_dir):
          pipe.text_encoder.load_adapter(text_encoder_sub_dir, adapter_name=adapter_name)
  To switch between adapters, write a function that uses set_adapter() method of PeftModel (see pipe.unet.set_adapter(adapter_name))
  
  
  	Copied
  def set_adapter(pipe, adapter_na