Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7b499de
up
yiyixuxu Jan 10, 2026
b29873d
up up
yiyixuxu Jan 10, 2026
fbfe5c8
Merge branch 'main' into modular-doc-improv
yiyixuxu Jan 10, 2026
43ab148
update outputs
yiyixuxu Jan 10, 2026
34a743e
style
yiyixuxu Jan 10, 2026
ff09bf1
add modular_auto_docstring!
yiyixuxu Jan 10, 2026
d20f413
more auto docstring
yiyixuxu Jan 10, 2026
2a81f2e
style
yiyixuxu Jan 10, 2026
f0555af
up up up
yiyixuxu Jan 10, 2026
507953f
more more
yiyixuxu Jan 10, 2026
1c90ce3
up
yiyixuxu Jan 10, 2026
aea0d04
address feedbacks
yiyixuxu Jan 17, 2026
25c968a
add TODO in the description for empty docstring
yiyixuxu Jan 17, 2026
de03d7f
refactor based on dhruv's feedback: remove the class method
yiyixuxu Jan 17, 2026
002c3e8
add template method
yiyixuxu Jan 19, 2026
1f2dbc9
up
yiyixuxu Jan 19, 2026
fb15752
up up up
yiyixuxu Jan 19, 2026
8d45ff5
apply auto docstring
yiyixuxu Jan 19, 2026
f056af1
make style
yiyixuxu Jan 19, 2026
9452520
rmove space in make docstring
yiyixuxu Jan 19, 2026
7e9d2b9
Apply suggestions from code review
yiyixuxu Jan 19, 2026
b7127ce
revert change in z
yiyixuxu Jan 19, 2026
d75fbc4
Merge branch 'modular-doc-improv' of github.com:huggingface/diffusers…
yiyixuxu Jan 19, 2026
1f9576a
fix
yiyixuxu Jan 19, 2026
aba551c
Merge branch 'main' into modular-doc-improv
yiyixuxu Jan 19, 2026
23d0642
Apply style fixes
github-actions[bot] Jan 19, 2026
412e51c
include auto-docstring check in the modular ci. (#13004)
sayakpaul Jan 24, 2026
6a549f5
initial support: workflow
yiyixuxu Jan 25, 2026
20c35da
up up
yiyixuxu Jan 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/pr_modular_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,27 @@ jobs:
if: ${{ failure() }}
run: |
echo "Repo consistency check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and run 'make fix-copies'" >> $GITHUB_STEP_SUMMARY
check_auto_docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .[quality]
- name: Check auto docs
run: make modular-autodoctrings
- name: Check if failure
if: ${{ failure() }}
run: |
echo "Auto docstring checks failed. Please run `python utils/modular_auto_docstring.py --fix_and_overwrite`." >> $GITHUB_STEP_SUMMARY

run_fast_tests:
needs: [check_code_quality, check_repository_consistency]
needs: [check_code_quality, check_repository_consistency, check_auto_docs]
name: Fast PyTorch Modular Pipeline CPU tests

runs-on:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ fix-copies:
python utils/check_copies.py --fix_and_overwrite
python utils/check_dummies.py --fix_and_overwrite

# Auto docstrings in modular blocks
modular-autodoctrings:
python utils/modular_auto_docstring.py

# Run tests for the library

test:
Expand Down
335 changes: 182 additions & 153 deletions src/diffusers/modular_pipelines/modular_pipeline.py

Large diffs are not rendered by default.

Loading