his function is experimental and might change in the future.
It is required to be logged in (huggingface-cli login) when you want to use private or gated
models.
Example:

To load a textual inversion embedding vector in diffusers format:


	Copied
from diffusers import StableDiffusionPipeline
import torch

model_id = "runwayml/stable-diffusion-v1-5"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")

