Spaces:
Runtime error
Runtime error
|
Download diffusers_repo/docs/source/en/api/models/auto_model.md from multimodalart/Cosmos-Predict2-2B: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/spaces/multimodalart/Cosmos-Predict2-2B/resolve/main/diffusers_repo/docs/source/en/api/models/auto_model.md
- Command line
-
hf download hf://spaces/multimodalart/Cosmos-Predict2-2B/diffusers_repo/docs/source/en/api/models/auto_model.md
-
curl -L -o auto_model.md https://huggingface.co/spaces/multimodalart/Cosmos-Predict2-2B/resolve/main/diffusers_repo/docs/source/en/api/models/auto_model.md
1.16 kB
A newer version of the Gradio SDK is available: 6.30.0
AutoModel
The AutoModel is designed to make it easy to load a checkpoint without needing to know the specific model class. AutoModel automatically retrieves the correct model class from the checkpoint config.json file.
from diffusers import AutoModel, AutoPipelineForText2Image
unet = AutoModel.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", subfolder="unet")
pipe = AutoPipelineForText2Image.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", unet=unet)
AutoModel
[[autodoc]] AutoModel - all - from_pretrained