Skip to content

Fix from_pretrain typo in StableCascade and Wuerstchen docstrings#13786

Open
aryanmotgi wants to merge 1 commit into
huggingface:mainfrom
aryanmotgi:fix-from-pretrain-typo-docstrings
Open

Fix from_pretrain typo in StableCascade and Wuerstchen docstrings#13786
aryanmotgi wants to merge 1 commit into
huggingface:mainfrom
aryanmotgi:fix-from-pretrain-typo-docstrings

Conversation

@aryanmotgi
Copy link
Copy Markdown

Bug

Two pipeline docstrings call .from_pretrain(...) instead of .from_pretrained(...):

  • src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py:47StableCascadeDecoderPipeline.from_pretrain(
  • src/diffusers/pipelines/deprecated/wuerstchen/pipeline_wuerstchen.py:48WuerstchenDecoderPipeline.from_pretrain(

Users copy-pasting the rendered example hit AttributeError: type object '...Pipeline' has no attribute 'from_pretrain'.

The sibling prior-pipeline call on the line directly above each typo already uses the correct from_pretrained, confirming this is a typo, not an intentional alias.

Fix

Rename from_pretrainfrom_pretrained in both docstrings.

The example snippets in StableCascadeDecoderPipeline and
WuerstchenDecoderPipeline call .from_pretrain(...) instead of
.from_pretrained(...). Users copy-pasting the rendered docs hit an
AttributeError. The sibling prior-pipeline call on the line above
already uses the correct from_pretrained.
@github-actions github-actions Bot added size/S PR with diff < 50 LOC pipelines and removed size/S PR with diff < 50 LOC labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant