e model weights to the safetensors format.   variant (str, optional) —
If specified, weights are saved in the format pytorch_model.<variant>.bin.    Upload model, scheduler, or pipeline files to the 🤗 Hugging Face Hub.  Examples:   Copied from diffusers import UNet2DConditionModel

unet = UNet2DConditionModel.from_pretrained("stabilityai/stable-diffusion-2", subfolder="unet")

# Push the `unet` to your namespace with the name "my-finetuned-unet