Skip to content

[CLI] Clean up and improvements to diffusers CLI - #14381

Open
DN6 wants to merge 5 commits into
mainfrom
diffusers-cli-updates
Open

[CLI] Clean up and improvements to diffusers CLI#14381
DN6 wants to merge 5 commits into
mainfrom
diffusers-cli-updates

Conversation

@DN6

@DN6 DN6 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Few things that were missed in the initial implementation.

In this PR:

  • Write modular_model_index.json when saving a custom block. This allows ModularPipeline.from_pretrained to load and run custom blocks as pipelines.
  • Add auto CPU offload support for modular pipelines
  • Clean up output saving to handle multimodal output e.g. LTX video frames + audio, and batched video.
  • Add imageio and imageio-ffmpeg to required remote deps so that we can save videos with remote inference.

Fixes # (issue)

Before submitting

  • Did you use an AI agent (Claude Code, Codex, Cursor, etc.) to help with this PR? If so:
    • Did you read the Coding with AI agents guide?
    • Did you run the self-review skill on the diff?
    • Did you share the final self-review notes in the PR description or a comment?
  • Did you read the contributor guideline?
  • Did you read our philosophy doc? (important for complex PRs)
  • Was this discussed/approved via a GitHub issue or the forum? Please add a link to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?
  • Are you the author (or part of the team) of the model/pipeline (only applicable for model/pipeline related PRs)?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@github-actions github-actions Bot added the size/L PR with diff > 200 LOC label Aug 4, 2026
@DN6 DN6 changed the title [CLI] Clean and improvements to diffusers CLI [CLI] Clean up and improvements to diffusers CLI Aug 4, 2026
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L PR with diff > 200 LOC tests utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants