om huggingface_hub import snapshot_download

local_dir = "./cat"
snapshot_download(
    "diffusers/cat_toy_example", local_dir=local_dir, repo_type="dataset", ignore_patterns=".gitattributes"
) Set the environment variable MODEL_NAME to a model id on the Hub or a path to a local model, and DATA_DIR  to the path where you just downloaded the cat images to. The script creates and saves the following files to your repository: learned_embeds.bin: t